diff --git a/pom.xml b/pom.xml index 7bd2a57d..564a6a04 100644 --- a/pom.xml +++ b/pom.xml @@ -4,13 +4,13 @@ 4.0.0 ru.kontur.diadoc diadocsdk - 3.25.2 + 4.0.0-rc.6 jar UTF-8 - 2.6.1 + 4.28.1 4.5.6 4.5.10 2.6 @@ -26,7 +26,7 @@ 3.8.0 1.5.0.Final - 0.5.0 + 0.6.1 diff --git a/proto/Docflow/BilateralDocflow.proto b/proto/Docflow/BilateralDocflow.proto index af1d7545..2191455a 100644 --- a/proto/Docflow/BilateralDocflow.proto +++ b/proto/Docflow/BilateralDocflow.proto @@ -8,6 +8,7 @@ option java_outer_classname = "BilateralDocflowProtos"; message BilateralDocflow { + option deprecated = true; optional bool IsFinished = 1; optional ReceiptDocflow ReceiptDocflow = 2; diff --git a/proto/Docflow/Docflow.proto b/proto/Docflow/Docflow.proto index d9738910..757c4644 100644 --- a/proto/Docflow/Docflow.proto +++ b/proto/Docflow/Docflow.proto @@ -16,6 +16,7 @@ option java_outer_classname = "DocflowProtos"; message Docflow { + option deprecated = true; optional bool IsFinished = 1; optional SignedAttachment DocumentAttachment = 2; @@ -47,12 +48,14 @@ message Docflow message DocflowStatus { + option deprecated = true; optional DocflowStatusModel PrimaryStatus = 1; optional DocflowStatusModel SecondaryStatus = 2; } message DocflowStatusModel { + option deprecated = true; optional DocflowStatusSeverity Severity = 1 [default = UnknownDocflowStatusSeverity]; optional string StatusText = 2; optional string StatusHint = 3; diff --git a/proto/Docflow/DocflowApi.proto b/proto/Docflow/DocflowApi.proto index 191c9b75..63560dab 100644 --- a/proto/Docflow/DocflowApi.proto +++ b/proto/Docflow/DocflowApi.proto @@ -26,6 +26,7 @@ message GetDocflowRequest message GetDocflowBatchResponse { + option deprecated = true; repeated DocumentWithDocflow Documents = 1; } @@ -49,6 +50,7 @@ message SearchDocflowsRequest message SearchDocflowsResponse { + option deprecated = true; repeated DocumentWithDocflow Documents = 1; optional bool HaveMoreDocuments = 2; } @@ -63,12 +65,14 @@ message GetDocflowsByPacketIdRequest message FetchedDocument { + option deprecated = true; required DocumentWithDocflow Document = 1; required bytes IndexKey = 2; } message GetDocflowsByPacketIdResponse { + option deprecated = true; repeated FetchedDocument Documents = 1; optional bytes NextPageIndexKey = 2; } @@ -90,6 +94,7 @@ message GetDocflowEventsRequest message GetDocflowEventsResponse { + option deprecated = true; optional int32 TotalCount = 1; repeated DocflowEvent Events = 2; required TotalCountType TotalCountType = 3; @@ -97,6 +102,7 @@ message GetDocflowEventsResponse message DocflowEvent { + option deprecated = true; optional string EventId = 1; optional Timestamp Timestamp = 2; optional DocumentId DocumentId = 3; diff --git a/proto/Docflow/DocumentInfo.proto b/proto/Docflow/DocumentInfo.proto index e3b6fd11..49201265 100644 --- a/proto/Docflow/DocumentInfo.proto +++ b/proto/Docflow/DocumentInfo.proto @@ -8,6 +8,7 @@ option java_outer_classname = "DocumentInfoProtos"; message DocumentInfo { + option deprecated = true; optional DocumentType DocumentType = 1 [default = UnknownDocumentType]; optional DocumentDirection DocumentDirection = 2 [default = UnknownDocumentDirection]; optional bool IsTest = 3; @@ -30,12 +31,14 @@ message DocumentInfo message DocumentDateAndNumber { + option deprecated = true; optional string DocumentDate = 1; optional string DocumentNumber = 2; } message BasicDocumentInfo { + option deprecated = true; optional string Total = 1; optional bool NoVat = 2; optional string Vat = 3; @@ -45,6 +48,7 @@ message BasicDocumentInfo message InvoiceDocumentInfo { + option deprecated = true; optional string Total = 1; optional string Vat = 2; optional int32 CurrencyCode = 3; @@ -53,6 +57,7 @@ message InvoiceDocumentInfo message InvoiceCorrectionDocumentInfo { + option deprecated = true; optional string TotalInc = 1; optional string TotalDec = 2; optional string VatInc = 3; @@ -65,18 +70,21 @@ message InvoiceCorrectionDocumentInfo message PriceListDocumentInfo { + option deprecated = true; optional string PriceListEffectiveDate = 1; optional DocumentDateAndNumber ContractDocumentDateAndNumber = 2; } message ContractDocumentInfo { + option deprecated = true; optional string ContractPrice = 1; optional string ContractType = 2; } message SupplementaryAgreementDocumentInfo { + option deprecated = true; optional string ContractType = 1; required DocumentDateAndNumber ContractDocumentDateAndNumber = 2; required DocumentDateAndNumber DocumentDateAndNumber = 3; @@ -85,6 +93,7 @@ message SupplementaryAgreementDocumentInfo message UniversalTransferDocumentInfo { + option deprecated = true; optional string Total = 1; optional string Vat = 2; optional int32 CurrencyCode = 3; @@ -95,6 +104,7 @@ message UniversalTransferDocumentInfo message UniversalCorrectionDocumentInfo { + option deprecated = true; optional string TotalInc = 1; optional string TotalDec = 2; optional string VatInc = 3; diff --git a/proto/Docflow/DocumentWithDocflow.proto b/proto/Docflow/DocumentWithDocflow.proto index d4a196e8..8e72b694 100644 --- a/proto/Docflow/DocumentWithDocflow.proto +++ b/proto/Docflow/DocumentWithDocflow.proto @@ -8,8 +8,11 @@ package Diadoc.Api.Proto.Docflow; option java_outer_classname = "DocumentWithDocflowProtos"; +option deprecated = true; + message DocumentWithDocflow { + option deprecated = true; optional DocumentId DocumentId = 1; optional string LastEventId = 2; optional Timestamp LastEventTimestamp = 3; diff --git a/proto/Docflow/InvoiceDocflow.proto b/proto/Docflow/InvoiceDocflow.proto index 7ec7c4e9..ce3bf4e7 100644 --- a/proto/Docflow/InvoiceDocflow.proto +++ b/proto/Docflow/InvoiceDocflow.proto @@ -8,6 +8,7 @@ option java_outer_classname = "InvoiceDocflowProtos"; message InboundInvoiceDocflow { + option deprecated = true; optional bool IsFinished = 1; optional InboundInvoiceReceiptDocflow ReceiptDocflow = 2; @@ -23,6 +24,7 @@ message InboundInvoiceDocflow message OutboundInvoiceDocflow { + option deprecated = true; optional bool IsFinished = 1; optional ReceiptDocflow ReceiptDocflow = 2; @@ -40,6 +42,7 @@ message OutboundInvoiceDocflow message InvoiceConfirmationDocflow { + option deprecated = true; optional bool IsFinished = 1; optional SignedAttachment ConfirmationAttachment = 2; @@ -49,6 +52,7 @@ message InvoiceConfirmationDocflow message InboundInvoiceReceiptDocflow { + option deprecated = true; optional bool IsFinished = 1; optional SignedAttachment ReceiptAttachment = 2; @@ -58,6 +62,7 @@ message InboundInvoiceReceiptDocflow message InvoiceCorrectionRequestDocflow { + option deprecated = true; optional bool IsFinished = 1; optional SignedAttachment CorrectionRequestAttachment = 2; diff --git a/proto/Docflow/ReceiptDocflow.proto b/proto/Docflow/ReceiptDocflow.proto index 149fdf31..e5ccc6fc 100644 --- a/proto/Docflow/ReceiptDocflow.proto +++ b/proto/Docflow/ReceiptDocflow.proto @@ -6,6 +6,8 @@ option java_outer_classname = "ReceiptDocflowProtos"; message ReceiptDocflow { + option deprecated = true; + optional bool IsFinished = 1; optional SignedAttachment ReceiptAttachment = 2; diff --git a/proto/Docflow/RecipientSignatureDocflow.proto b/proto/Docflow/RecipientSignatureDocflow.proto index ec7d86b2..ecbf8a95 100644 --- a/proto/Docflow/RecipientSignatureDocflow.proto +++ b/proto/Docflow/RecipientSignatureDocflow.proto @@ -7,6 +7,8 @@ option java_outer_classname = "RecipientSignatureDocflowProtos"; message RecipientSignatureDocflow { + option deprecated = true; + optional bool IsFinished = 1; optional Signature RecipientSignature = 2; diff --git a/proto/Docflow/RecipientSignatureRejectionDocflow.proto b/proto/Docflow/RecipientSignatureRejectionDocflow.proto index c9fda384..1e0cbc6c 100644 --- a/proto/Docflow/RecipientSignatureRejectionDocflow.proto +++ b/proto/Docflow/RecipientSignatureRejectionDocflow.proto @@ -5,8 +5,12 @@ package Diadoc.Api.Proto.Docflow; option java_outer_classname = "RecipientSignatureRejectionDocflowProtos"; +option deprecated = true; + message RecipientSignatureRejectionDocflow { + option deprecated = true; + optional bool IsFinished = 1; optional SignedAttachment RecipientSignatureRejectionAttachment = 2; diff --git a/proto/Docflow/RevocationDocflow.proto b/proto/Docflow/RevocationDocflow.proto index 91ddae91..7fa0bd0b 100644 --- a/proto/Docflow/RevocationDocflow.proto +++ b/proto/Docflow/RevocationDocflow.proto @@ -6,8 +6,12 @@ package Diadoc.Api.Proto.Docflow; option java_outer_classname = "RevocationDocflowProtos"; +option deprecated = true; + message RevocationDocflow { + option deprecated = true; + optional bool IsFinished = 1; optional SignedAttachment RevocationRequestAttachment = 2; diff --git a/proto/Docflow/UnilateralDocflow.proto b/proto/Docflow/UnilateralDocflow.proto index 74890d8c..f76ade5f 100644 --- a/proto/Docflow/UnilateralDocflow.proto +++ b/proto/Docflow/UnilateralDocflow.proto @@ -4,8 +4,12 @@ package Diadoc.Api.Proto.Docflow; option java_outer_classname = "UnilateralDocflowProtos"; +option deprecated = true; + message UnilateralDocflow { + option deprecated = true; + optional bool IsFinished = 1; optional ReceiptDocflow ReceiptDocflow = 2; diff --git a/proto/Docflow/UniversalTransferDocumentDocflow.proto b/proto/Docflow/UniversalTransferDocumentDocflow.proto index 34be8fcd..34197f64 100644 --- a/proto/Docflow/UniversalTransferDocumentDocflow.proto +++ b/proto/Docflow/UniversalTransferDocumentDocflow.proto @@ -9,8 +9,11 @@ package Diadoc.Api.Proto.Docflow; option java_outer_classname = "UniversalTransferDocumentDocflowProtos"; +option deprecated = true; + message InboundUniversalTransferDocumentDocflow { + option deprecated = true; optional bool IsFinished = 1; optional InboundInvoiceReceiptDocflow ReceiptDocflow = 2; @@ -37,6 +40,7 @@ message InboundUniversalTransferDocumentDocflow message OutboundUniversalTransferDocumentDocflow { + option deprecated = true; optional bool IsFinished = 1; optional ReceiptDocflow ReceiptDocflow = 2; diff --git a/proto/Docflow/XmlBilateralDocflow.proto b/proto/Docflow/XmlBilateralDocflow.proto index b8467f3d..c616d003 100644 --- a/proto/Docflow/XmlBilateralDocflow.proto +++ b/proto/Docflow/XmlBilateralDocflow.proto @@ -7,8 +7,12 @@ package Diadoc.Api.Proto.Docflow; option java_outer_classname = "XmlBilateralDocflowProtos"; +option deprecated = true; + message XmlBilateralDocflow { + option deprecated = true; + optional bool IsFinished = 1; optional ReceiptDocflow ReceiptDocflow = 2; @@ -26,6 +30,7 @@ message XmlBilateralDocflow message BuyerTitleDocflow { + option deprecated = true; optional bool IsFinished = 1; optional SignedAttachment BuyerTitleAttachment = 2; diff --git a/proto/Documents/BilateralDocument.proto b/proto/Documents/BilateralDocument.proto index 5865f067..155f1608 100644 --- a/proto/Documents/BilateralDocument.proto +++ b/proto/Documents/BilateralDocument.proto @@ -43,6 +43,7 @@ message SupplementaryAgreementMetadata { } message BilateralDocumentMetadata { + option deprecated = true; optional BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; optional ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; } diff --git a/proto/Documents/NonformalizedDocument.proto b/proto/Documents/NonformalizedDocument.proto index 128cfacb..53b654b9 100644 --- a/proto/Documents/NonformalizedDocument.proto +++ b/proto/Documents/NonformalizedDocument.proto @@ -5,6 +5,7 @@ package Diadoc.Api.Proto.Documents.NonformalizedDocument; option java_outer_classname = "NonformalizedDocumentProtos"; message NonformalizedDocumentMetadata { + option deprecated = true; optional NonformalizedDocumentStatus DocumentStatus = 1 [default = UnknownNonformalizedDocumentStatus]; optional ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; } diff --git a/proto/Events/DiadocMessage-PostApi.proto b/proto/Events/DiadocMessage-PostApi.proto index ff020573..e59c498c 100644 --- a/proto/Events/DiadocMessage-PostApi.proto +++ b/proto/Events/DiadocMessage-PostApi.proto @@ -58,6 +58,7 @@ message MessageToPost { } message EncryptedXmlDocumentAttachment { + option deprecated = true; required SignedContent SignedContent = 1; optional string Comment = 3; repeated DocumentId InitialDocumentIds = 4; @@ -69,6 +70,7 @@ message EncryptedXmlDocumentAttachment { } message EncryptedInvoiceAttachment { + option deprecated = true; required SignedContent SignedContent = 1; optional string Comment = 3; repeated DocumentId InitialDocumentIds = 4; @@ -81,6 +83,7 @@ message EncryptedInvoiceAttachment { } message EncryptedDocumentMetadata { + option deprecated = true; required string FileId = 1; required string BuyerFnsParticipantId = 2; required string SenderFnsParticipantId = 3; @@ -104,6 +107,7 @@ message EncryptedInvoiceCorrectionMetadata { } message XmlDocumentAttachment { + option deprecated = true; required SignedContent SignedContent = 1; optional string Comment = 3; repeated DocumentId InitialDocumentIds = 4; @@ -114,6 +118,7 @@ message XmlDocumentAttachment { } message NonformalizedAttachment { + option deprecated = true; required SignedContent SignedContent = 1; required string FileName = 2; optional string Comment = 3; @@ -128,6 +133,7 @@ message NonformalizedAttachment { } message BasicDocumentAttachment { + option deprecated = true; required SignedContent SignedContent = 1; required string FileName = 2; optional string Comment = 3; @@ -144,6 +150,7 @@ message BasicDocumentAttachment { } message Torg13Attachment { + option deprecated = true; required SignedContent SignedContent = 1; required string FileName = 2; optional string Comment = 3; @@ -160,6 +167,7 @@ message Torg13Attachment { } message AcceptanceCertificateAttachment { + option deprecated = true; required SignedContent SignedContent = 1; required string FileName = 2; optional string Comment = 3; @@ -177,6 +185,7 @@ message AcceptanceCertificateAttachment { } message TrustConnectionRequestAttachment { + option deprecated = true; required SignedContent SignedContent = 1; required string FileName = 2; optional string Comment = 3; @@ -191,6 +200,7 @@ message StructuredDataAttachment { } message PriceListAttachment { + option deprecated = true; required SignedContent SignedContent = 1; required string FileName = 2; optional string Comment = 3; @@ -207,6 +217,7 @@ message PriceListAttachment { } message ReconciliationActAttachment { + option deprecated = true; required SignedContent SignedContent = 1; required string FileName = 2; optional string Comment = 3; @@ -221,6 +232,7 @@ message ReconciliationActAttachment { } message ContractAttachment { + option deprecated = true; required SignedContent SignedContent = 1; required string FileName = 2; optional string Comment = 3; @@ -236,6 +248,7 @@ message ContractAttachment { } message SupplementaryAgreementAttachment { + option deprecated = true; required SignedContent SignedContent = 1; required string FileName = 2; optional string Comment = 3; @@ -253,6 +266,7 @@ message SupplementaryAgreementAttachment { } message ServiceDetailsAttachment { + option deprecated = true; required SignedContent SignedContent = 1; required string FileName = 2; optional string Comment = 3; diff --git a/proto/ExternalServiceAuthInfo.proto b/proto/ExternalServiceAuthInfo.proto index 7be23b1b..88005d86 100644 --- a/proto/ExternalServiceAuthInfo.proto +++ b/proto/ExternalServiceAuthInfo.proto @@ -2,7 +2,10 @@ package Diadoc.Api.Proto; option java_outer_classname = "ExternalServiceAuthInfoProtos"; +option deprecated = true; + message ExternalServiceAuthInfo { + option deprecated = true; optional string ServiceUserId = 1; optional string Thumbprint = 2; } \ No newline at end of file diff --git a/proto/Invoicing/ExtendedOrganizationInfo.proto b/proto/Invoicing/ExtendedOrganizationInfo.proto index 72a20872..28135996 100644 --- a/proto/Invoicing/ExtendedOrganizationInfo.proto +++ b/proto/Invoicing/ExtendedOrganizationInfo.proto @@ -5,6 +5,7 @@ package Diadoc.Api.Proto.Invoicing.Organizations; option java_outer_classname = "ExtendedOrganizationInfoProtos"; message ExtendedOrganizationInfo { + option deprecated = true; optional string BoxId = 1; // идентификатор ящика в Диадоке optional string OrgName = 2; // название //НаимОрг optional string Inn = 3; // ИНН //ИНН ФЛ-ИНН diff --git a/proto/Invoicing/Official.proto b/proto/Invoicing/Official.proto index 70a0d156..49240181 100644 --- a/proto/Invoicing/Official.proto +++ b/proto/Invoicing/Official.proto @@ -2,8 +2,11 @@ package Diadoc.Api.Proto.Invoicing; option java_outer_classname = "OfficialProtos"; +option deprecated = true; + // Должностное лицо message Official { + option deprecated = true; required string Surname = 1; required string FirstName = 2; optional string Patronymic = 3; @@ -11,6 +14,7 @@ message Official { } message Attorney { + option deprecated = true; optional string Date = 1; // дата выдачи доверенности optional string Number = 2; // номер доверенности optional string IssuerOrganizationName = 3; // организация, представитель которой выдал доверенность diff --git a/proto/Invoicing/OrganizationInfo.proto b/proto/Invoicing/OrganizationInfo.proto index 0761d29d..1e6d0fe8 100644 --- a/proto/Invoicing/OrganizationInfo.proto +++ b/proto/Invoicing/OrganizationInfo.proto @@ -4,7 +4,10 @@ package Diadoc.Api.Proto.Invoicing; option java_outer_classname = "OrganizationInfoProtos"; +option deprecated = true; + message DocflowParticipant { + option deprecated = true; optional string BoxId = 1; // идентификатор ящика в Диадоке optional string Inn = 2; // ИНН организации-участника обмена optional string Kpp = 3; // КПП организации-участника обмена @@ -12,11 +15,13 @@ message DocflowParticipant { } message DiadocOrganizationInfo { + option deprecated = true; optional string BoxId = 1; // идентификатор ящика в Диадоке optional OrganizationInfo OrgInfo = 2; // реквизиты организации } message OrganizationInfo { + option deprecated = true; required string Name = 1; // название optional string Inn = 2; // ИНН optional string Kpp = 3; // КПП diff --git a/proto/PowersOfAttorney/PowerOfAttorney.proto b/proto/PowersOfAttorney/PowerOfAttorney.proto index a6d76f23..db128636 100644 --- a/proto/PowersOfAttorney/PowerOfAttorney.proto +++ b/proto/PowersOfAttorney/PowerOfAttorney.proto @@ -22,6 +22,7 @@ message PowerOfAttorney { repeated PowerOfAttorney DelegationChain = 8; required PowerOfAttorneyPermissionsInfo PermissionsInfo = 9; optional PowerOfAttorneyDelegationInfo DelegationInfo = 10; + repeated PowerOfAttorneyRepresentative Representatives = 11; } message PowerOfAttorneyIssuer { @@ -137,8 +138,9 @@ enum PowerOfAttorneySendingType { } message PowerOfAttorneyDelegationInfo { - required string RootRegistrationNumber = 1; - optional string ParentRegistrationNumber = 2; + required string RootRegistrationNumber = 1; + optional string ParentRegistrationNumber = 2; + repeated PowerOfAttorneyIssuer RootIssuers = 3; } message PowerOfAttorneyContent { @@ -156,3 +158,39 @@ message PowerOfAttorneyContentV2 { required bytes Signature = 2; required PowerOfAttorneyFullId FullId = 3; } + +message PowerOfAttorneyRepresentative { + optional PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType]; + optional PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + optional PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + optional PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + optional PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + optional PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + } +enum PowerOfAttorneyRepresentativeType { + UnknownRepresentativeType = 0; + RepresentativeLegalEntity = 1; + RepresentativeIndividualEntity = 2; + RepresentativePhysicalEntity = 3; + RepresentativeLegalSubsidiaryEntity = 4; + RepresentativeForeignLegalSubsidiaryEntity = 5; + } +message PowerOfAttorneyRepresentativeLegalEntity { + optional string Inn = 1; + required string Kpp = 2; + required string OrganizationName = 3; + repeated PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; +} +message PowerOfAttorneyRepresentativeIndividualEntity { + required string Inn = 1; + required string OrganizationName = 2; + } +message PowerOfAttorneyRepresentativePhysicalEntity { + optional string Inn = 1; + required FullName PersonName = 2; +} +message PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity { + optional string Inn = 1; + optional string Kpp = 2; + required string OrganizationName = 3; +} \ No newline at end of file diff --git a/proto/User.proto b/proto/User.proto index e07f134c..be1bb13a 100644 --- a/proto/User.proto +++ b/proto/User.proto @@ -5,6 +5,7 @@ package Diadoc.Api.Proto; option java_outer_classname = "UserProtos"; message User { + option deprecated = true; optional string Id = 1; optional string LastName = 2; optional string FirstName = 3; diff --git a/proto/Users/UserToUpdate.proto b/proto/Users/UserToUpdate.proto deleted file mode 100644 index 28d39ce3..00000000 --- a/proto/Users/UserToUpdate.proto +++ /dev/null @@ -1,21 +0,0 @@ -import "User.proto"; - -package Diadoc.Api.Proto.Users; - -option java_outer_classname = "UserToUpdateProtos"; - -message UserToUpdate -{ - optional UserLoginPatch Login = 1; - optional UserFullNamePatch FullName = 2; -} - -message UserLoginPatch -{ - optional string Login = 1; -} - -message UserFullNamePatch -{ - optional FullName FullName = 1; -} \ No newline at end of file diff --git a/src/main/java/Diadoc/Api/DiadocApi.java b/src/main/java/Diadoc/Api/DiadocApi.java index 992d6328..052e6e94 100644 --- a/src/main/java/Diadoc/Api/DiadocApi.java +++ b/src/main/java/Diadoc/Api/DiadocApi.java @@ -1,7 +1,8 @@ package Diadoc.Api; -import Diadoc.Api.auth.AuthManager; -import Diadoc.Api.auth.AuthenticateClient; +import Diadoc.Api.auth.*; +import Diadoc.Api.auth.oidc.OidcAuthManager; +import Diadoc.Api.auth.oidc.TokenProvider; import Diadoc.Api.counteragent.CounteragentClient; import Diadoc.Api.counteragentGroup.CounteragentGroupClient; import Diadoc.Api.department.DepartmentClient; @@ -29,6 +30,7 @@ public class DiadocApi { + private final AuthenticationType authenticationType; private final AuthManager authManager; private final AuthenticateClient authClient; private final OrganizationClient organizationClient; @@ -56,12 +58,21 @@ public class DiadocApi { private final DiadocHttpClient diadocHttpClient; public DiadocApi(String apiClientId, String url, @Nullable HttpHost proxyHost, @Nullable ConnectionSettings connectionSettings) { + this(new AuthManager(apiClientId), url, proxyHost, connectionSettings); + } + + public DiadocApi(TokenProvider tokenProvider, String url, @Nullable HttpHost proxyHost, @Nullable ConnectionSettings connectionSettings) { + this(new OidcAuthManager(tokenProvider), url, proxyHost, connectionSettings); + } + + private DiadocApi(IAuthManager authManager, String url, @Nullable HttpHost proxyHost, @Nullable ConnectionSettings connectionSettings) { if (url == null) { throw new IllegalArgumentException("url"); } - authManager = new AuthManager(apiClientId); + this.authManager = authManager.getAuthenticationType().equals(AuthenticationType.DIADOC) ? (AuthManager) authManager : new FallbackAuthManager(); diadocHttpClient = new DiadocHttpClient(authManager.getCredentialsProvider(), url, proxyHost, connectionSettings); - authClient = new AuthenticateClient(authManager, diadocHttpClient); + authenticationType = authManager.getAuthenticationType(); + authClient = authManager.createAuthenticateClient(diadocHttpClient); organizationClient = new OrganizationClient(diadocHttpClient); departmentClient = new DepartmentClient(diadocHttpClient); employeeClient = new EmployeeClient(diadocHttpClient); @@ -83,7 +94,6 @@ public DiadocApi(String apiClientId, String url, @Nullable HttpHost proxyHost, @ employeePowerOfAttorneyClient = new EmployeePowerOfAttorneyClient(diadocHttpClient); documentWorkflowClient = new DocumentWorkflowClient(diadocHttpClient); operatorClient = new OperatorClient(diadocHttpClient); - authManager.setCredentials(null); } public DiadocApi(String apiClientId, String url) { @@ -187,6 +197,10 @@ public AuthManager getAuthManager() { return authManager; } + public AuthenticationType getAuthenticationType() { + return authenticationType; + } + public TemplateClient getTemplateClient() { return templateClient; } diff --git a/src/main/java/Diadoc/Api/Proto/AcquireCounteragentProtos.java b/src/main/java/Diadoc/Api/Proto/AcquireCounteragentProtos.java index 9ae22da2..36125149 100644 --- a/src/main/java/Diadoc/Api/Proto/AcquireCounteragentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/AcquireCounteragentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: AcquireCounteragent.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class AcquireCounteragentProtos { private AcquireCounteragentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AcquireCounteragentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface AcquireCounteragentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.AcquireCounteragentRequest) @@ -14,52 +31,63 @@ public interface AcquireCounteragentRequestOrBuilder extends /** * optional string OrgId = 1; + * @return Whether the orgId field is set. */ boolean hasOrgId(); /** * optional string OrgId = 1; + * @return The orgId. */ java.lang.String getOrgId(); /** * optional string OrgId = 1; + * @return The bytes for orgId. */ com.google.protobuf.ByteString getOrgIdBytes(); /** * optional string Inn = 2; + * @return Whether the inn field is set. */ boolean hasInn(); /** * optional string Inn = 2; + * @return The inn. */ java.lang.String getInn(); /** * optional string Inn = 2; + * @return The bytes for inn. */ com.google.protobuf.ByteString getInnBytes(); /** * optional string MessageToCounteragent = 3; + * @return Whether the messageToCounteragent field is set. */ boolean hasMessageToCounteragent(); /** * optional string MessageToCounteragent = 3; + * @return The messageToCounteragent. */ java.lang.String getMessageToCounteragent(); /** * optional string MessageToCounteragent = 3; + * @return The bytes for messageToCounteragent. */ com.google.protobuf.ByteString getMessageToCounteragentBytes(); /** * optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4; + * @return Whether the invitationDocument field is set. */ boolean hasInvitationDocument(); /** * optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4; + * @return The invitationDocument. */ Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getInvitationDocument(); /** @@ -69,14 +97,17 @@ public interface AcquireCounteragentRequestOrBuilder extends /** * optional string BoxId = 5; + * @return Whether the boxId field is set. */ boolean hasBoxId(); /** * optional string BoxId = 5; + * @return The boxId. */ java.lang.String getBoxId(); /** * optional string BoxId = 5; + * @return The bytes for boxId. */ com.google.protobuf.ByteString getBoxIdBytes(); @@ -88,105 +119,33 @@ public static final class AcquireCounteragentRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.AcquireCounteragentRequest) AcquireCounteragentRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AcquireCounteragentRequest.class.getName()); + } // Use AcquireCounteragentRequest.newBuilder() to construct. private AcquireCounteragentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private AcquireCounteragentRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AcquireCounteragentRequest defaultInstance; - public static AcquireCounteragentRequest getDefaultInstance() { - return defaultInstance; } - - public AcquireCounteragentRequest getDefaultInstanceForType() { - return defaultInstance; + private AcquireCounteragentRequest() { + orgId_ = ""; + inn_ = ""; + messageToCounteragent_ = ""; + boxId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AcquireCounteragentRequest( - 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; - orgId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - inn_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - messageToCounteragent_ = bs; - break; - } - case 34: { - Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = invitationDocument_.toBuilder(); - } - invitationDocument_ = input.readMessage(Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invitationDocument_); - invitationDocument_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - boxId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_fieldAccessorTable @@ -194,33 +153,23 @@ private AcquireCounteragentRequest( Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest.class, Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AcquireCounteragentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AcquireCounteragentRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ORGID_FIELD_NUMBER = 1; - private java.lang.Object orgId_; + @SuppressWarnings("serial") + private volatile java.lang.Object orgId_ = ""; /** * optional string OrgId = 1; + * @return Whether the orgId field is set. */ + @java.lang.Override public boolean hasOrgId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string OrgId = 1; + * @return The orgId. */ + @java.lang.Override public java.lang.String getOrgId() { java.lang.Object ref = orgId_; if (ref instanceof java.lang.String) { @@ -237,7 +186,9 @@ public java.lang.String getOrgId() { } /** * optional string OrgId = 1; + * @return The bytes for orgId. */ + @java.lang.Override public com.google.protobuf.ByteString getOrgIdBytes() { java.lang.Object ref = orgId_; @@ -253,16 +204,21 @@ public java.lang.String getOrgId() { } public static final int INN_FIELD_NUMBER = 2; - private java.lang.Object inn_; + @SuppressWarnings("serial") + private volatile java.lang.Object inn_ = ""; /** * optional string Inn = 2; + * @return Whether the inn field is set. */ + @java.lang.Override public boolean hasInn() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Inn = 2; + * @return The inn. */ + @java.lang.Override public java.lang.String getInn() { java.lang.Object ref = inn_; if (ref instanceof java.lang.String) { @@ -279,7 +235,9 @@ public java.lang.String getInn() { } /** * optional string Inn = 2; + * @return The bytes for inn. */ + @java.lang.Override public com.google.protobuf.ByteString getInnBytes() { java.lang.Object ref = inn_; @@ -295,16 +253,21 @@ public java.lang.String getInn() { } public static final int MESSAGETOCOUNTERAGENT_FIELD_NUMBER = 3; - private java.lang.Object messageToCounteragent_; + @SuppressWarnings("serial") + private volatile java.lang.Object messageToCounteragent_ = ""; /** * optional string MessageToCounteragent = 3; + * @return Whether the messageToCounteragent field is set. */ + @java.lang.Override public boolean hasMessageToCounteragent() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string MessageToCounteragent = 3; + * @return The messageToCounteragent. */ + @java.lang.Override public java.lang.String getMessageToCounteragent() { java.lang.Object ref = messageToCounteragent_; if (ref instanceof java.lang.String) { @@ -321,7 +284,9 @@ public java.lang.String getMessageToCounteragent() { } /** * optional string MessageToCounteragent = 3; + * @return The bytes for messageToCounteragent. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageToCounteragentBytes() { java.lang.Object ref = messageToCounteragent_; @@ -340,34 +305,44 @@ public java.lang.String getMessageToCounteragent() { private Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument invitationDocument_; /** * optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4; + * @return Whether the invitationDocument field is set. */ + @java.lang.Override public boolean hasInvitationDocument() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4; + * @return The invitationDocument. */ + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getInvitationDocument() { - return invitationDocument_; + return invitationDocument_ == null ? Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance() : invitationDocument_; } /** * optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4; */ + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocumentOrBuilder getInvitationDocumentOrBuilder() { - return invitationDocument_; + return invitationDocument_ == null ? Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance() : invitationDocument_; } public static final int BOXID_FIELD_NUMBER = 5; - private java.lang.Object boxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object boxId_ = ""; /** * optional string BoxId = 5; + * @return Whether the boxId field is set. */ + @java.lang.Override public boolean hasBoxId() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string BoxId = 5; + * @return The boxId. */ + @java.lang.Override public java.lang.String getBoxId() { java.lang.Object ref = boxId_; if (ref instanceof java.lang.String) { @@ -384,7 +359,9 @@ public java.lang.String getBoxId() { } /** * optional string BoxId = 5; + * @return The bytes for boxId. */ + @java.lang.Override public com.google.protobuf.ByteString getBoxIdBytes() { java.lang.Object ref = boxId_; @@ -399,14 +376,8 @@ public java.lang.String getBoxId() { } } - private void initFields() { - orgId_ = ""; - inn_ = ""; - messageToCounteragent_ = ""; - invitationDocument_ = Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance(); - boxId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -422,65 +393,136 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getOrgIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, orgId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getInnBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, inn_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getMessageToCounteragentBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, messageToCounteragent_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, invitationDocument_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getInvitationDocument()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getBoxIdBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, boxId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getOrgIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, orgId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getInnBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, inn_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getMessageToCounteragentBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, messageToCounteragent_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, invitationDocument_); + .computeMessageSize(4, getInvitationDocument()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getBoxIdBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, boxId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest)) { + return super.equals(obj); + } + Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest other = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest) obj; + + if (hasOrgId() != other.hasOrgId()) return false; + if (hasOrgId()) { + if (!getOrgId() + .equals(other.getOrgId())) return false; + } + if (hasInn() != other.hasInn()) return false; + if (hasInn()) { + if (!getInn() + .equals(other.getInn())) return false; + } + if (hasMessageToCounteragent() != other.hasMessageToCounteragent()) return false; + if (hasMessageToCounteragent()) { + if (!getMessageToCounteragent() + .equals(other.getMessageToCounteragent())) return false; + } + if (hasInvitationDocument() != other.hasInvitationDocument()) return false; + if (hasInvitationDocument()) { + if (!getInvitationDocument() + .equals(other.getInvitationDocument())) return false; + } + if (hasBoxId() != other.hasBoxId()) return false; + if (hasBoxId()) { + if (!getBoxId() + .equals(other.getBoxId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOrgId()) { + hash = (37 * hash) + ORGID_FIELD_NUMBER; + hash = (53 * hash) + getOrgId().hashCode(); + } + if (hasInn()) { + hash = (37 * hash) + INN_FIELD_NUMBER; + hash = (53 * hash) + getInn().hashCode(); + } + if (hasMessageToCounteragent()) { + hash = (37 * hash) + MESSAGETOCOUNTERAGENT_FIELD_NUMBER; + hash = (53 * hash) + getMessageToCounteragent().hashCode(); + } + if (hasInvitationDocument()) { + hash = (37 * hash) + INVITATIONDOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getInvitationDocument().hashCode(); + } + if (hasBoxId()) { + hash = (37 * hash) + BOXID_FIELD_NUMBER; + hash = (53 * hash) + getBoxId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -504,42 +546,57 @@ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequ } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -559,6 +616,7 @@ public static final class Builder extends return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_fieldAccessorTable @@ -577,46 +635,39 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getInvitationDocumentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; orgId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); inn_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); messageToCounteragent_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - if (invitationDocumentBuilder_ == null) { - invitationDocument_ = Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance(); - } else { - invitationDocumentBuilder_.clear(); + invitationDocument_ = null; + if (invitationDocumentBuilder_ != null) { + invitationDocumentBuilder_.dispose(); + invitationDocumentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); boxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest getDefaultInstanceForType() { return Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest build() { Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest result = buildPartial(); if (!result.isInitialized()) { @@ -625,39 +676,43 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest bui return result; } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest buildPartial() { Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest result = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.orgId_ = orgId_; to_bitField0_ |= 0x00000001; } - result.orgId_ = orgId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inn_ = inn_; to_bitField0_ |= 0x00000002; } - result.inn_ = inn_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.messageToCounteragent_ = messageToCounteragent_; to_bitField0_ |= 0x00000004; } - result.messageToCounteragent_ = messageToCounteragent_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.invitationDocument_ = invitationDocumentBuilder_ == null + ? invitationDocument_ + : invitationDocumentBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (invitationDocumentBuilder_ == null) { - result.invitationDocument_ = invitationDocument_; - } else { - result.invitationDocument_ = invitationDocumentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.boxId_ = boxId_; to_bitField0_ |= 0x00000010; } - result.boxId_ = boxId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest) { return mergeFrom((Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest)other); @@ -670,57 +725,99 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest other) { if (other == Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest.getDefaultInstance()) return this; if (other.hasOrgId()) { - bitField0_ |= 0x00000001; orgId_ = other.orgId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasInn()) { - bitField0_ |= 0x00000002; inn_ = other.inn_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasMessageToCounteragent()) { - bitField0_ |= 0x00000004; messageToCounteragent_ = other.messageToCounteragent_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasInvitationDocument()) { mergeInvitationDocument(other.getInvitationDocument()); } if (other.hasBoxId()) { - bitField0_ |= 0x00000010; boxId_ = other.boxId_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasInvitationDocument()) { if (!getInvitationDocument().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + orgId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + inn_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + messageToCounteragent_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getInvitationDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + boxId_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -728,12 +825,14 @@ public Builder mergeFrom( private java.lang.Object orgId_ = ""; /** * optional string OrgId = 1; + * @return Whether the orgId field is set. */ public boolean hasOrgId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string OrgId = 1; + * @return The orgId. */ public java.lang.String getOrgId() { java.lang.Object ref = orgId_; @@ -751,6 +850,7 @@ public java.lang.String getOrgId() { } /** * optional string OrgId = 1; + * @return The bytes for orgId. */ public com.google.protobuf.ByteString getOrgIdBytes() { @@ -767,36 +867,37 @@ public java.lang.String getOrgId() { } /** * optional string OrgId = 1; + * @param value The orgId to set. + * @return This builder for chaining. */ public Builder setOrgId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } orgId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string OrgId = 1; + * @return This builder for chaining. */ public Builder clearOrgId() { - bitField0_ = (bitField0_ & ~0x00000001); orgId_ = getDefaultInstance().getOrgId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string OrgId = 1; + * @param value The bytes for orgId to set. + * @return This builder for chaining. */ public Builder setOrgIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } orgId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -804,12 +905,14 @@ public Builder setOrgIdBytes( private java.lang.Object inn_ = ""; /** * optional string Inn = 2; + * @return Whether the inn field is set. */ public boolean hasInn() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Inn = 2; + * @return The inn. */ public java.lang.String getInn() { java.lang.Object ref = inn_; @@ -827,6 +930,7 @@ public java.lang.String getInn() { } /** * optional string Inn = 2; + * @return The bytes for inn. */ public com.google.protobuf.ByteString getInnBytes() { @@ -843,36 +947,37 @@ public java.lang.String getInn() { } /** * optional string Inn = 2; + * @param value The inn to set. + * @return This builder for chaining. */ public Builder setInn( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } inn_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string Inn = 2; + * @return This builder for chaining. */ public Builder clearInn() { - bitField0_ = (bitField0_ & ~0x00000002); inn_ = getDefaultInstance().getInn(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string Inn = 2; + * @param value The bytes for inn to set. + * @return This builder for chaining. */ public Builder setInnBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } inn_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -880,12 +985,14 @@ public Builder setInnBytes( private java.lang.Object messageToCounteragent_ = ""; /** * optional string MessageToCounteragent = 3; + * @return Whether the messageToCounteragent field is set. */ public boolean hasMessageToCounteragent() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string MessageToCounteragent = 3; + * @return The messageToCounteragent. */ public java.lang.String getMessageToCounteragent() { java.lang.Object ref = messageToCounteragent_; @@ -903,6 +1010,7 @@ public java.lang.String getMessageToCounteragent() { } /** * optional string MessageToCounteragent = 3; + * @return The bytes for messageToCounteragent. */ public com.google.protobuf.ByteString getMessageToCounteragentBytes() { @@ -919,55 +1027,58 @@ public java.lang.String getMessageToCounteragent() { } /** * optional string MessageToCounteragent = 3; + * @param value The messageToCounteragent to set. + * @return This builder for chaining. */ public Builder setMessageToCounteragent( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } messageToCounteragent_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string MessageToCounteragent = 3; + * @return This builder for chaining. */ public Builder clearMessageToCounteragent() { - bitField0_ = (bitField0_ & ~0x00000004); messageToCounteragent_ = getDefaultInstance().getMessageToCounteragent(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string MessageToCounteragent = 3; + * @param value The bytes for messageToCounteragent to set. + * @return This builder for chaining. */ public Builder setMessageToCounteragentBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } messageToCounteragent_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument invitationDocument_ = Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance(); + private Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument invitationDocument_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument, Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.Builder, Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocumentOrBuilder> invitationDocumentBuilder_; /** * optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4; + * @return Whether the invitationDocument field is set. */ public boolean hasInvitationDocument() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4; + * @return The invitationDocument. */ public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getInvitationDocument() { if (invitationDocumentBuilder_ == null) { - return invitationDocument_; + return invitationDocument_ == null ? Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance() : invitationDocument_; } else { return invitationDocumentBuilder_.getMessage(); } @@ -981,11 +1092,11 @@ public Builder setInvitationDocument(Diadoc.Api.Proto.AcquireCounteragentProtos. throw new NullPointerException(); } invitationDocument_ = value; - onChanged(); } else { invitationDocumentBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -995,11 +1106,11 @@ public Builder setInvitationDocument( Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.Builder builderForValue) { if (invitationDocumentBuilder_ == null) { invitationDocument_ = builderForValue.build(); - onChanged(); } else { invitationDocumentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1007,31 +1118,33 @@ public Builder setInvitationDocument( */ public Builder mergeInvitationDocument(Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument value) { if (invitationDocumentBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - invitationDocument_ != Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance()) { - invitationDocument_ = - Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.newBuilder(invitationDocument_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + invitationDocument_ != null && + invitationDocument_ != Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance()) { + getInvitationDocumentBuilder().mergeFrom(value); } else { invitationDocument_ = value; } - onChanged(); } else { invitationDocumentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (invitationDocument_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4; */ public Builder clearInvitationDocument() { - if (invitationDocumentBuilder_ == null) { - invitationDocument_ = Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance(); - onChanged(); - } else { - invitationDocumentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + invitationDocument_ = null; + if (invitationDocumentBuilder_ != null) { + invitationDocumentBuilder_.dispose(); + invitationDocumentBuilder_ = null; + } + onChanged(); return this; } /** @@ -1049,7 +1162,8 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocumentOrBuilder ge if (invitationDocumentBuilder_ != null) { return invitationDocumentBuilder_.getMessageOrBuilder(); } else { - return invitationDocument_; + return invitationDocument_ == null ? + Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance() : invitationDocument_; } } /** @@ -1072,12 +1186,14 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocumentOrBuilder ge private java.lang.Object boxId_ = ""; /** * optional string BoxId = 5; + * @return Whether the boxId field is set. */ public boolean hasBoxId() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string BoxId = 5; + * @return The boxId. */ public java.lang.String getBoxId() { java.lang.Object ref = boxId_; @@ -1095,6 +1211,7 @@ public java.lang.String getBoxId() { } /** * optional string BoxId = 5; + * @return The bytes for boxId. */ public com.google.protobuf.ByteString getBoxIdBytes() { @@ -1111,36 +1228,37 @@ public java.lang.String getBoxId() { } /** * optional string BoxId = 5; + * @param value The boxId to set. + * @return This builder for chaining. */ public Builder setBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string BoxId = 5; + * @return This builder for chaining. */ public Builder clearBoxId() { - bitField0_ = (bitField0_ & ~0x00000010); boxId_ = getDefaultInstance().getBoxId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string BoxId = 5; + * @param value The bytes for boxId to set. + * @return This builder for chaining. */ public Builder setBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1148,12 +1266,52 @@ public Builder setBoxIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.AcquireCounteragentRequest) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AcquireCounteragentRequest) + private static final Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest DEFAULT_INSTANCE; static { - defaultInstance = new AcquireCounteragentRequest(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest(); + } + + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcquireCounteragentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AcquireCounteragentRequest) } public interface InvitationDocumentOrBuilder extends @@ -1162,10 +1320,12 @@ public interface InvitationDocumentOrBuilder extends /** * required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1; + * @return Whether the signedContent field is set. */ boolean hasSignedContent(); /** * required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1; + * @return The signedContent. */ Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent getSignedContent(); /** @@ -1175,37 +1335,45 @@ public interface InvitationDocumentOrBuilder extends /** * required string FileName = 2; + * @return Whether the fileName field is set. */ boolean hasFileName(); /** * required string FileName = 2; + * @return The fileName. */ java.lang.String getFileName(); /** * required string FileName = 2; + * @return The bytes for fileName. */ com.google.protobuf.ByteString getFileNameBytes(); /** * optional bool SignatureRequested = 3 [default = false]; + * @return Whether the signatureRequested field is set. */ boolean hasSignatureRequested(); /** * optional bool SignatureRequested = 3 [default = false]; + * @return The signatureRequested. */ boolean getSignatureRequested(); /** * optional string Type = 4; + * @return Whether the type field is set. */ boolean hasType(); /** * optional string Type = 4; + * @return The type. */ java.lang.String getType(); /** * optional string Type = 4; + * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); @@ -1217,98 +1385,31 @@ public static final class InvitationDocument extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.InvitationDocument) InvitationDocumentOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvitationDocument.class.getName()); + } // Use InvitationDocument.newBuilder() to construct. private InvitationDocument(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private InvitationDocument(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InvitationDocument defaultInstance; - public static InvitationDocument getDefaultInstance() { - return defaultInstance; } - - public InvitationDocument getDefaultInstanceForType() { - return defaultInstance; + private InvitationDocument() { + fileName_ = ""; + type_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvitationDocument( - 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: { - Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = signedContent_.toBuilder(); - } - signedContent_ = input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signedContent_); - signedContent_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - fileName_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - signatureRequested_ = input.readBool(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - type_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_InvitationDocument_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_InvitationDocument_fieldAccessorTable @@ -1316,54 +1417,49 @@ private InvitationDocument( Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.class, Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InvitationDocument parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvitationDocument(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int SIGNEDCONTENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent signedContent_; /** * required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1; + * @return Whether the signedContent field is set. */ + @java.lang.Override public boolean hasSignedContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1; + * @return The signedContent. */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent getSignedContent() { - return signedContent_; + return signedContent_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance() : signedContent_; } /** * required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContentOrBuilder getSignedContentOrBuilder() { - return signedContent_; + return signedContent_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance() : signedContent_; } public static final int FILENAME_FIELD_NUMBER = 2; - private java.lang.Object fileName_; + @SuppressWarnings("serial") + private volatile java.lang.Object fileName_ = ""; /** * required string FileName = 2; + * @return Whether the fileName field is set. */ + @java.lang.Override public boolean hasFileName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string FileName = 2; + * @return The fileName. */ + @java.lang.Override public java.lang.String getFileName() { java.lang.Object ref = fileName_; if (ref instanceof java.lang.String) { @@ -1380,7 +1476,9 @@ public java.lang.String getFileName() { } /** * required string FileName = 2; + * @return The bytes for fileName. */ + @java.lang.Override public com.google.protobuf.ByteString getFileNameBytes() { java.lang.Object ref = fileName_; @@ -1396,31 +1494,40 @@ public java.lang.String getFileName() { } public static final int SIGNATUREREQUESTED_FIELD_NUMBER = 3; - private boolean signatureRequested_; + private boolean signatureRequested_ = false; /** * optional bool SignatureRequested = 3 [default = false]; + * @return Whether the signatureRequested field is set. */ + @java.lang.Override public boolean hasSignatureRequested() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool SignatureRequested = 3 [default = false]; + * @return The signatureRequested. */ + @java.lang.Override public boolean getSignatureRequested() { return signatureRequested_; } public static final int TYPE_FIELD_NUMBER = 4; - private java.lang.Object type_; + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; /** * optional string Type = 4; + * @return Whether the type field is set. */ + @java.lang.Override public boolean hasType() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Type = 4; + * @return The type. */ + @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { @@ -1437,7 +1544,9 @@ public java.lang.String getType() { } /** * optional string Type = 4; + * @return The bytes for type. */ + @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; @@ -1452,13 +1561,8 @@ public java.lang.String getType() { } } - private void initFields() { - signedContent_ = Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance(); - fileName_ = ""; - signatureRequested_ = false; - type_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1480,60 +1584,125 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, signedContent_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSignedContent()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getFileNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, fileName_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, signatureRequested_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getTypeBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, type_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, signedContent_); + .computeMessageSize(1, getSignedContent()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getFileNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, fileName_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, signatureRequested_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getTypeBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, type_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument)) { + return super.equals(obj); + } + Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument other = (Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument) obj; + + if (hasSignedContent() != other.hasSignedContent()) return false; + if (hasSignedContent()) { + if (!getSignedContent() + .equals(other.getSignedContent())) return false; + } + if (hasFileName() != other.hasFileName()) return false; + if (hasFileName()) { + if (!getFileName() + .equals(other.getFileName())) return false; + } + if (hasSignatureRequested() != other.hasSignatureRequested()) return false; + if (hasSignatureRequested()) { + if (getSignatureRequested() + != other.getSignatureRequested()) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom( - com.google.protobuf.ByteString data) + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSignedContent()) { + hash = (37 * hash) + SIGNEDCONTENT_FIELD_NUMBER; + hash = (53 * hash) + getSignedContent().hashCode(); + } + if (hasFileName()) { + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + } + if (hasSignatureRequested()) { + hash = (37 * hash) + SIGNATUREREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSignatureRequested()); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } @@ -1555,42 +1724,57 @@ public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument pars } public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1610,6 +1794,7 @@ public static final class Builder extends return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_InvitationDocument_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_InvitationDocument_fieldAccessorTable @@ -1628,44 +1813,38 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getSignedContentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (signedContentBuilder_ == null) { - signedContent_ = Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance(); - } else { - signedContentBuilder_.clear(); + bitField0_ = 0; + signedContent_ = null; + if (signedContentBuilder_ != null) { + signedContentBuilder_.dispose(); + signedContentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); fileName_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); signatureRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000004); type_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_InvitationDocument_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getDefaultInstanceForType() { return Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument build() { Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument result = buildPartial(); if (!result.isInitialized()) { @@ -1674,35 +1853,39 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument buildPartial() { Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument result = new Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.signedContent_ = signedContentBuilder_ == null + ? signedContent_ + : signedContentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (signedContentBuilder_ == null) { - result.signedContent_ = signedContent_; - } else { - result.signedContent_ = signedContentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fileName_ = fileName_; to_bitField0_ |= 0x00000002; } - result.fileName_ = fileName_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.signatureRequested_ = signatureRequested_; to_bitField0_ |= 0x00000004; } - result.signatureRequested_ = signatureRequested_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.type_ = type_; to_bitField0_ |= 0x00000008; } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument) { return mergeFrom((Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument)other); @@ -1718,72 +1901,109 @@ public Builder mergeFrom(Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDo mergeSignedContent(other.getSignedContent()); } if (other.hasFileName()) { - bitField0_ |= 0x00000002; fileName_ = other.fileName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasSignatureRequested()) { setSignatureRequested(other.getSignatureRequested()); } if (other.hasType()) { - bitField0_ |= 0x00000008; type_ = other.type_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasSignedContent()) { - return false; } if (!hasFileName()) { - return false; } if (!getSignedContent().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSignedContentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + fileName_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + signatureRequested_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + type_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent signedContent_ = Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance(); + private Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent signedContent_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent, Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.Builder, Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContentOrBuilder> signedContentBuilder_; /** * required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1; + * @return Whether the signedContent field is set. */ public boolean hasSignedContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1; + * @return The signedContent. */ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent getSignedContent() { if (signedContentBuilder_ == null) { - return signedContent_; + return signedContent_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance() : signedContent_; } else { return signedContentBuilder_.getMessage(); } @@ -1797,11 +2017,11 @@ public Builder setSignedContent(Diadoc.Api.Proto.Events.DiadocMessage_PostApiPro throw new NullPointerException(); } signedContent_ = value; - onChanged(); } else { signedContentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1811,11 +2031,11 @@ public Builder setSignedContent( Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.Builder builderForValue) { if (signedContentBuilder_ == null) { signedContent_ = builderForValue.build(); - onChanged(); } else { signedContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1823,31 +2043,33 @@ public Builder setSignedContent( */ public Builder mergeSignedContent(Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent value) { if (signedContentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - signedContent_ != Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance()) { - signedContent_ = - Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.newBuilder(signedContent_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + signedContent_ != null && + signedContent_ != Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance()) { + getSignedContentBuilder().mergeFrom(value); } else { signedContent_ = value; } - onChanged(); } else { signedContentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (signedContent_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1; */ public Builder clearSignedContent() { - if (signedContentBuilder_ == null) { - signedContent_ = Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance(); - onChanged(); - } else { - signedContentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + signedContent_ = null; + if (signedContentBuilder_ != null) { + signedContentBuilder_.dispose(); + signedContentBuilder_ = null; + } + onChanged(); return this; } /** @@ -1865,7 +2087,8 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContentOrBuilde if (signedContentBuilder_ != null) { return signedContentBuilder_.getMessageOrBuilder(); } else { - return signedContent_; + return signedContent_ == null ? + Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance() : signedContent_; } } /** @@ -1888,12 +2111,14 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContentOrBuilde private java.lang.Object fileName_ = ""; /** * required string FileName = 2; + * @return Whether the fileName field is set. */ public boolean hasFileName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string FileName = 2; + * @return The fileName. */ public java.lang.String getFileName() { java.lang.Object ref = fileName_; @@ -1911,6 +2136,7 @@ public java.lang.String getFileName() { } /** * required string FileName = 2; + * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { @@ -1927,36 +2153,37 @@ public java.lang.String getFileName() { } /** * required string FileName = 2; + * @param value The fileName to set. + * @return This builder for chaining. */ public Builder setFileName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } fileName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string FileName = 2; + * @return This builder for chaining. */ public Builder clearFileName() { - bitField0_ = (bitField0_ & ~0x00000002); fileName_ = getDefaultInstance().getFileName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string FileName = 2; + * @param value The bytes for fileName to set. + * @return This builder for chaining. */ public Builder setFileNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } fileName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1964,27 +2191,35 @@ public Builder setFileNameBytes( private boolean signatureRequested_ ; /** * optional bool SignatureRequested = 3 [default = false]; + * @return Whether the signatureRequested field is set. */ + @java.lang.Override public boolean hasSignatureRequested() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool SignatureRequested = 3 [default = false]; + * @return The signatureRequested. */ + @java.lang.Override public boolean getSignatureRequested() { return signatureRequested_; } /** * optional bool SignatureRequested = 3 [default = false]; + * @param value The signatureRequested to set. + * @return This builder for chaining. */ public Builder setSignatureRequested(boolean value) { - bitField0_ |= 0x00000004; + signatureRequested_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional bool SignatureRequested = 3 [default = false]; + * @return This builder for chaining. */ public Builder clearSignatureRequested() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1996,12 +2231,14 @@ public Builder clearSignatureRequested() { private java.lang.Object type_ = ""; /** * optional string Type = 4; + * @return Whether the type field is set. */ public boolean hasType() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Type = 4; + * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; @@ -2019,6 +2256,7 @@ public java.lang.String getType() { } /** * optional string Type = 4; + * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { @@ -2035,36 +2273,37 @@ public java.lang.String getType() { } /** * optional string Type = 4; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } type_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string Type = 4; + * @return This builder for chaining. */ public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000008); type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string Type = 4; + * @param value The bytes for type to set. + * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } type_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2072,12 +2311,52 @@ public Builder setTypeBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.InvitationDocument) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.InvitationDocument) + private static final Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument DEFAULT_INSTANCE; static { - defaultInstance = new InvitationDocument(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument(); + } + + public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvitationDocument parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.InvitationDocument) } public interface AcquireCounteragentResultOrBuilder extends @@ -2086,24 +2365,29 @@ public interface AcquireCounteragentResultOrBuilder extends /** * required string OrgId = 1; + * @return Whether the orgId field is set. */ boolean hasOrgId(); /** * required string OrgId = 1; + * @return The orgId. */ java.lang.String getOrgId(); /** * required string OrgId = 1; + * @return The bytes for orgId. */ com.google.protobuf.ByteString getOrgIdBytes(); /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return Whether the invitationDocumentId field is set. */ boolean hasInvitationDocumentId(); /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return The invitationDocumentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId(); /** @@ -2118,87 +2402,30 @@ public static final class AcquireCounteragentResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.AcquireCounteragentResult) AcquireCounteragentResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AcquireCounteragentResult.class.getName()); + } // Use AcquireCounteragentResult.newBuilder() to construct. private AcquireCounteragentResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private AcquireCounteragentResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AcquireCounteragentResult defaultInstance; - public static AcquireCounteragentResult getDefaultInstance() { - return defaultInstance; - } - - public AcquireCounteragentResult getDefaultInstanceForType() { - return defaultInstance; + private AcquireCounteragentResult() { + orgId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AcquireCounteragentResult( - 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; - orgId_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = invitationDocumentId_.toBuilder(); - } - invitationDocumentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invitationDocumentId_); - invitationDocumentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_fieldAccessorTable @@ -2206,33 +2433,23 @@ private AcquireCounteragentResult( Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult.class, Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AcquireCounteragentResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AcquireCounteragentResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ORGID_FIELD_NUMBER = 1; - private java.lang.Object orgId_; + @SuppressWarnings("serial") + private volatile java.lang.Object orgId_ = ""; /** * required string OrgId = 1; + * @return Whether the orgId field is set. */ + @java.lang.Override public boolean hasOrgId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string OrgId = 1; + * @return The orgId. */ + @java.lang.Override public java.lang.String getOrgId() { java.lang.Object ref = orgId_; if (ref instanceof java.lang.String) { @@ -2249,7 +2466,9 @@ public java.lang.String getOrgId() { } /** * required string OrgId = 1; + * @return The bytes for orgId. */ + @java.lang.Override public com.google.protobuf.ByteString getOrgIdBytes() { java.lang.Object ref = orgId_; @@ -2268,28 +2487,30 @@ public java.lang.String getOrgId() { private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_; /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return Whether the invitationDocumentId field is set. */ + @java.lang.Override public boolean hasInvitationDocumentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return The invitationDocumentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocumentIdOrBuilder() { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } - private void initFields() { - orgId_ = ""; - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2309,44 +2530,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getOrgIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, orgId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, invitationDocumentId_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getInvitationDocumentId()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getOrgIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, orgId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, invitationDocumentId_); + .computeMessageSize(2, getInvitationDocumentId()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult)) { + return super.equals(obj); + } + Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult other = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult) obj; + + if (hasOrgId() != other.hasOrgId()) return false; + if (hasOrgId()) { + if (!getOrgId() + .equals(other.getOrgId())) return false; + } + if (hasInvitationDocumentId() != other.hasInvitationDocumentId()) return false; + if (hasInvitationDocumentId()) { + if (!getInvitationDocumentId() + .equals(other.getInvitationDocumentId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOrgId()) { + hash = (37 * hash) + ORGID_FIELD_NUMBER; + hash = (53 * hash) + getOrgId().hashCode(); + } + if (hasInvitationDocumentId()) { + hash = (37 * hash) + INVITATIONDOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getInvitationDocumentId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2370,42 +2638,57 @@ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResu } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2425,6 +2708,7 @@ public static final class Builder extends return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_fieldAccessorTable @@ -2443,40 +2727,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getInvitationDocumentIdFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; orgId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (invitationDocumentIdBuilder_ == null) { - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - invitationDocumentIdBuilder_.clear(); + invitationDocumentId_ = null; + if (invitationDocumentIdBuilder_ != null) { + invitationDocumentIdBuilder_.dispose(); + invitationDocumentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult getDefaultInstanceForType() { return Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult build() { Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult result = buildPartial(); if (!result.isInitialized()) { @@ -2485,27 +2765,31 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult buil return result; } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult buildPartial() { Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult result = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.orgId_ = orgId_; to_bitField0_ |= 0x00000001; } - result.orgId_ = orgId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.invitationDocumentId_ = invitationDocumentIdBuilder_ == null + ? invitationDocumentId_ + : invitationDocumentIdBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (invitationDocumentIdBuilder_ == null) { - result.invitationDocumentId_ = invitationDocumentId_; - } else { - result.invitationDocumentId_ = invitationDocumentIdBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult) { return mergeFrom((Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult)other); @@ -2518,46 +2802,72 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult other) { if (other == Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult.getDefaultInstance()) return this; if (other.hasOrgId()) { - bitField0_ |= 0x00000001; orgId_ = other.orgId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasInvitationDocumentId()) { mergeInvitationDocumentId(other.getInvitationDocumentId()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasOrgId()) { - return false; } if (hasInvitationDocumentId()) { if (!getInvitationDocumentId().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + orgId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getInvitationDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2565,12 +2875,14 @@ public Builder mergeFrom( private java.lang.Object orgId_ = ""; /** * required string OrgId = 1; + * @return Whether the orgId field is set. */ public boolean hasOrgId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string OrgId = 1; + * @return The orgId. */ public java.lang.String getOrgId() { java.lang.Object ref = orgId_; @@ -2588,6 +2900,7 @@ public java.lang.String getOrgId() { } /** * required string OrgId = 1; + * @return The bytes for orgId. */ public com.google.protobuf.ByteString getOrgIdBytes() { @@ -2604,55 +2917,58 @@ public java.lang.String getOrgId() { } /** * required string OrgId = 1; + * @param value The orgId to set. + * @return This builder for chaining. */ public Builder setOrgId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } orgId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string OrgId = 1; + * @return This builder for chaining. */ public Builder clearOrgId() { - bitField0_ = (bitField0_ & ~0x00000001); orgId_ = getDefaultInstance().getOrgId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string OrgId = 1; + * @param value The bytes for orgId to set. + * @return This builder for chaining. */ public Builder setOrgIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } orgId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> invitationDocumentIdBuilder_; /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return Whether the invitationDocumentId field is set. */ public boolean hasInvitationDocumentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return The invitationDocumentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() { if (invitationDocumentIdBuilder_ == null) { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } else { return invitationDocumentIdBuilder_.getMessage(); } @@ -2666,11 +2982,11 @@ public Builder setInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.Documen throw new NullPointerException(); } invitationDocumentId_ = value; - onChanged(); } else { invitationDocumentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2680,11 +2996,11 @@ public Builder setInvitationDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (invitationDocumentIdBuilder_ == null) { invitationDocumentId_ = builderForValue.build(); - onChanged(); } else { invitationDocumentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2692,31 +3008,33 @@ public Builder setInvitationDocumentId( */ public Builder mergeInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (invitationDocumentIdBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - invitationDocumentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(invitationDocumentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + invitationDocumentId_ != null && + invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getInvitationDocumentIdBuilder().mergeFrom(value); } else { invitationDocumentId_ = value; } - onChanged(); } else { invitationDocumentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (invitationDocumentId_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; */ public Builder clearInvitationDocumentId() { - if (invitationDocumentIdBuilder_ == null) { - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - invitationDocumentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + invitationDocumentId_ = null; + if (invitationDocumentIdBuilder_ != null) { + invitationDocumentIdBuilder_.dispose(); + invitationDocumentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -2734,7 +3052,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume if (invitationDocumentIdBuilder_ != null) { return invitationDocumentIdBuilder_.getMessageOrBuilder(); } else { - return invitationDocumentId_; + return invitationDocumentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } } /** @@ -2757,12 +3076,52 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.AcquireCounteragentResult) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AcquireCounteragentResult) + private static final Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult DEFAULT_INSTANCE; static { - defaultInstance = new AcquireCounteragentResult(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult(); + } + + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcquireCounteragentResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AcquireCounteragentResult) } public interface AcquireCounteragentResultV2OrBuilder extends @@ -2771,24 +3130,29 @@ public interface AcquireCounteragentResultV2OrBuilder extends /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ boolean hasBoxId(); /** * required string BoxId = 1; + * @return The boxId. */ java.lang.String getBoxId(); /** * required string BoxId = 1; + * @return The bytes for boxId. */ com.google.protobuf.ByteString getBoxIdBytes(); /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return Whether the invitationDocumentId field is set. */ boolean hasInvitationDocumentId(); /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return The invitationDocumentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId(); /** @@ -2803,87 +3167,30 @@ public static final class AcquireCounteragentResultV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.AcquireCounteragentResultV2) AcquireCounteragentResultV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AcquireCounteragentResultV2.class.getName()); + } // Use AcquireCounteragentResultV2.newBuilder() to construct. private AcquireCounteragentResultV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private AcquireCounteragentResultV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AcquireCounteragentResultV2 defaultInstance; - public static AcquireCounteragentResultV2 getDefaultInstance() { - return defaultInstance; - } - - public AcquireCounteragentResultV2 getDefaultInstanceForType() { - return defaultInstance; + private AcquireCounteragentResultV2() { + boxId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AcquireCounteragentResultV2( - 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; - boxId_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = invitationDocumentId_.toBuilder(); - } - invitationDocumentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invitationDocumentId_); - invitationDocumentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_fieldAccessorTable @@ -2891,33 +3198,23 @@ private AcquireCounteragentResultV2( Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2.class, Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AcquireCounteragentResultV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AcquireCounteragentResultV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int BOXID_FIELD_NUMBER = 1; - private java.lang.Object boxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object boxId_ = ""; /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ + @java.lang.Override public boolean hasBoxId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string BoxId = 1; + * @return The boxId. */ + @java.lang.Override public java.lang.String getBoxId() { java.lang.Object ref = boxId_; if (ref instanceof java.lang.String) { @@ -2934,7 +3231,9 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @return The bytes for boxId. */ + @java.lang.Override public com.google.protobuf.ByteString getBoxIdBytes() { java.lang.Object ref = boxId_; @@ -2953,28 +3252,30 @@ public java.lang.String getBoxId() { private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_; /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return Whether the invitationDocumentId field is set. */ + @java.lang.Override public boolean hasInvitationDocumentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return The invitationDocumentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocumentIdOrBuilder() { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } - private void initFields() { - boxId_ = ""; - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2994,44 +3295,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getBoxIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, boxId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, invitationDocumentId_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getInvitationDocumentId()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getBoxIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, boxId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, invitationDocumentId_); + .computeMessageSize(2, getInvitationDocumentId()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 other = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2) obj; + + if (hasBoxId() != other.hasBoxId()) return false; + if (hasBoxId()) { + if (!getBoxId() + .equals(other.getBoxId())) return false; + } + if (hasInvitationDocumentId() != other.hasInvitationDocumentId()) return false; + if (hasInvitationDocumentId()) { + if (!getInvitationDocumentId() + .equals(other.getInvitationDocumentId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBoxId()) { + hash = (37 * hash) + BOXID_FIELD_NUMBER; + hash = (53 * hash) + getBoxId().hashCode(); + } + if (hasInvitationDocumentId()) { + hash = (37 * hash) + INVITATIONDOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getInvitationDocumentId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3055,42 +3403,57 @@ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResu } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3110,6 +3473,7 @@ public static final class Builder extends return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_fieldAccessorTable @@ -3128,40 +3492,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getInvitationDocumentIdFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; boxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (invitationDocumentIdBuilder_ == null) { - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - invitationDocumentIdBuilder_.clear(); + invitationDocumentId_ = null; + if (invitationDocumentIdBuilder_ != null) { + invitationDocumentIdBuilder_.dispose(); + invitationDocumentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 build() { Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 result = buildPartial(); if (!result.isInitialized()) { @@ -3170,27 +3530,31 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 bu return result; } + @java.lang.Override public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 buildPartial() { Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 result = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.boxId_ = boxId_; to_bitField0_ |= 0x00000001; } - result.boxId_ = boxId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.invitationDocumentId_ = invitationDocumentIdBuilder_ == null + ? invitationDocumentId_ + : invitationDocumentIdBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (invitationDocumentIdBuilder_ == null) { - result.invitationDocumentId_ = invitationDocumentId_; - } else { - result.invitationDocumentId_ = invitationDocumentIdBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2) { return mergeFrom((Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2)other); @@ -3203,46 +3567,72 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 other) { if (other == Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2.getDefaultInstance()) return this; if (other.hasBoxId()) { - bitField0_ |= 0x00000001; boxId_ = other.boxId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasInvitationDocumentId()) { mergeInvitationDocumentId(other.getInvitationDocumentId()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasBoxId()) { - return false; } if (hasInvitationDocumentId()) { if (!getInvitationDocumentId().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + boxId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getInvitationDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3250,12 +3640,14 @@ public Builder mergeFrom( private java.lang.Object boxId_ = ""; /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ public boolean hasBoxId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string BoxId = 1; + * @return The boxId. */ public java.lang.String getBoxId() { java.lang.Object ref = boxId_; @@ -3273,6 +3665,7 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @return The bytes for boxId. */ public com.google.protobuf.ByteString getBoxIdBytes() { @@ -3289,55 +3682,58 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @param value The boxId to set. + * @return This builder for chaining. */ public Builder setBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string BoxId = 1; + * @return This builder for chaining. */ public Builder clearBoxId() { - bitField0_ = (bitField0_ & ~0x00000001); boxId_ = getDefaultInstance().getBoxId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string BoxId = 1; + * @param value The bytes for boxId to set. + * @return This builder for chaining. */ public Builder setBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> invitationDocumentIdBuilder_; /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return Whether the invitationDocumentId field is set. */ public boolean hasInvitationDocumentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; + * @return The invitationDocumentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() { if (invitationDocumentIdBuilder_ == null) { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } else { return invitationDocumentIdBuilder_.getMessage(); } @@ -3351,11 +3747,11 @@ public Builder setInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.Documen throw new NullPointerException(); } invitationDocumentId_ = value; - onChanged(); } else { invitationDocumentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3365,11 +3761,11 @@ public Builder setInvitationDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (invitationDocumentIdBuilder_ == null) { invitationDocumentId_ = builderForValue.build(); - onChanged(); } else { invitationDocumentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3377,31 +3773,33 @@ public Builder setInvitationDocumentId( */ public Builder mergeInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (invitationDocumentIdBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - invitationDocumentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(invitationDocumentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + invitationDocumentId_ != null && + invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getInvitationDocumentIdBuilder().mergeFrom(value); } else { invitationDocumentId_ = value; } - onChanged(); } else { invitationDocumentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (invitationDocumentId_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2; */ public Builder clearInvitationDocumentId() { - if (invitationDocumentIdBuilder_ == null) { - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - invitationDocumentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + invitationDocumentId_ = null; + if (invitationDocumentIdBuilder_ != null) { + invitationDocumentIdBuilder_.dispose(); + invitationDocumentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -3419,7 +3817,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume if (invitationDocumentIdBuilder_ != null) { return invitationDocumentIdBuilder_.getMessageOrBuilder(); } else { - return invitationDocumentId_; + return invitationDocumentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } } /** @@ -3442,32 +3841,72 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.AcquireCounteragentResultV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AcquireCounteragentResultV2) + private static final Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 DEFAULT_INSTANCE; static { - defaultInstance = new AcquireCounteragentResultV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2(); + } + + public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcquireCounteragentResultV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AcquireCounteragentResultV2) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_InvitationDocument_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_InvitationDocument_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_fieldAccessorTable; @@ -3475,7 +3914,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -3488,7 +3927,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume "itationDocument\022\r\n\005BoxId\030\005 \001(\t\"\226\001\n\022Invit" + "ationDocument\022=\n\rSignedContent\030\001 \002(\0132&.D" + "iadoc.Api.Proto.Events.SignedContent\022\020\n\010" + - "FileName\030\002 \002(\t\022!\n\022SignatureRequested\030\003 \001", + "FileName\030\002 \002(\t\022!\n\022SignatureRequested\030\003 \001" + "(\010:\005false\022\014\n\004Type\030\004 \001(\t\"f\n\031AcquireCounte" + "ragentResult\022\r\n\005OrgId\030\001 \002(\t\022:\n\024Invitatio" + "nDocumentId\030\002 \001(\0132\034.Diadoc.Api.Proto.Doc" + @@ -3497,20 +3936,12 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume "\001(\0132\034.Diadoc.Api.Proto.DocumentIdB\033B\031Acq" + "uireCounteragentProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.getDescriptor(), Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_fieldAccessorTable = new @@ -3535,6 +3966,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_descriptor, new java.lang.String[] { "BoxId", "InvitationDocumentId", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.getDescriptor(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/AddressProtos.java b/src/main/java/Diadoc/Api/Proto/AddressProtos.java index 751cc4a9..1079d817 100644 --- a/src/main/java/Diadoc/Api/Proto/AddressProtos.java +++ b/src/main/java/Diadoc/Api/Proto/AddressProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Address.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class AddressProtos { private AddressProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AddressProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface AddressOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Address) @@ -14,10 +31,12 @@ public interface AddressOrBuilder extends /** * optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1; + * @return Whether the russianAddress field is set. */ boolean hasRussianAddress(); /** * optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1; + * @return The russianAddress. */ Diadoc.Api.Proto.AddressProtos.RussianAddress getRussianAddress(); /** @@ -27,10 +46,12 @@ public interface AddressOrBuilder extends /** * optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2; + * @return Whether the foreignAddress field is set. */ boolean hasForeignAddress(); /** * optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2; + * @return The foreignAddress. */ Diadoc.Api.Proto.AddressProtos.ForeignAddress getForeignAddress(); /** @@ -40,14 +61,17 @@ public interface AddressOrBuilder extends /** * optional string AddressCode = 3; + * @return Whether the addressCode field is set. */ boolean hasAddressCode(); /** * optional string AddressCode = 3; + * @return The addressCode. */ java.lang.String getAddressCode(); /** * optional string AddressCode = 3; + * @return The bytes for addressCode. */ com.google.protobuf.ByteString getAddressCodeBytes(); @@ -59,100 +83,30 @@ public static final class Address extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Address) AddressOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Address.class.getName()); + } // Use Address.newBuilder() to construct. private Address(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Address(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Address defaultInstance; - public static Address getDefaultInstance() { - return defaultInstance; } - - public Address getDefaultInstanceForType() { - return defaultInstance; + private Address() { + addressCode_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Address( - 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: { - Diadoc.Api.Proto.AddressProtos.RussianAddress.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = russianAddress_.toBuilder(); - } - russianAddress_ = input.readMessage(Diadoc.Api.Proto.AddressProtos.RussianAddress.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(russianAddress_); - russianAddress_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.AddressProtos.ForeignAddress.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = foreignAddress_.toBuilder(); - } - foreignAddress_ = input.readMessage(Diadoc.Api.Proto.AddressProtos.ForeignAddress.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(foreignAddress_); - foreignAddress_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - addressCode_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_Address_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_Address_fieldAccessorTable @@ -160,75 +114,75 @@ private Address( Diadoc.Api.Proto.AddressProtos.Address.class, Diadoc.Api.Proto.AddressProtos.Address.Builder.class); } - public static com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - public Address parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Address(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser
getParserForType() { - return PARSER; - } - private int bitField0_; public static final int RUSSIANADDRESS_FIELD_NUMBER = 1; private Diadoc.Api.Proto.AddressProtos.RussianAddress russianAddress_; /** * optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1; + * @return Whether the russianAddress field is set. */ + @java.lang.Override public boolean hasRussianAddress() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1; + * @return The russianAddress. */ + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.RussianAddress getRussianAddress() { - return russianAddress_; + return russianAddress_ == null ? Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance() : russianAddress_; } /** * optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1; */ + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.RussianAddressOrBuilder getRussianAddressOrBuilder() { - return russianAddress_; + return russianAddress_ == null ? Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance() : russianAddress_; } public static final int FOREIGNADDRESS_FIELD_NUMBER = 2; private Diadoc.Api.Proto.AddressProtos.ForeignAddress foreignAddress_; /** * optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2; + * @return Whether the foreignAddress field is set. */ + @java.lang.Override public boolean hasForeignAddress() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2; + * @return The foreignAddress. */ + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.ForeignAddress getForeignAddress() { - return foreignAddress_; + return foreignAddress_ == null ? Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance() : foreignAddress_; } /** * optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2; */ + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.ForeignAddressOrBuilder getForeignAddressOrBuilder() { - return foreignAddress_; + return foreignAddress_ == null ? Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance() : foreignAddress_; } public static final int ADDRESSCODE_FIELD_NUMBER = 3; - private java.lang.Object addressCode_; + @SuppressWarnings("serial") + private volatile java.lang.Object addressCode_ = ""; /** * optional string AddressCode = 3; + * @return Whether the addressCode field is set. */ + @java.lang.Override public boolean hasAddressCode() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AddressCode = 3; + * @return The addressCode. */ + @java.lang.Override public java.lang.String getAddressCode() { java.lang.Object ref = addressCode_; if (ref instanceof java.lang.String) { @@ -245,7 +199,9 @@ public java.lang.String getAddressCode() { } /** * optional string AddressCode = 3; + * @return The bytes for addressCode. */ + @java.lang.Override public com.google.protobuf.ByteString getAddressCodeBytes() { java.lang.Object ref = addressCode_; @@ -260,12 +216,8 @@ public java.lang.String getAddressCode() { } } - private void initFields() { - russianAddress_ = Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance(); - foreignAddress_ = Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance(); - addressCode_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -287,51 +239,107 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, russianAddress_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRussianAddress()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, foreignAddress_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getForeignAddress()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getAddressCodeBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, addressCode_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, russianAddress_); + .computeMessageSize(1, getRussianAddress()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, foreignAddress_); + .computeMessageSize(2, getForeignAddress()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getAddressCodeBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, addressCode_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.AddressProtos.Address)) { + return super.equals(obj); + } + Diadoc.Api.Proto.AddressProtos.Address other = (Diadoc.Api.Proto.AddressProtos.Address) obj; + + if (hasRussianAddress() != other.hasRussianAddress()) return false; + if (hasRussianAddress()) { + if (!getRussianAddress() + .equals(other.getRussianAddress())) return false; + } + if (hasForeignAddress() != other.hasForeignAddress()) return false; + if (hasForeignAddress()) { + if (!getForeignAddress() + .equals(other.getForeignAddress())) return false; + } + if (hasAddressCode() != other.hasAddressCode()) return false; + if (hasAddressCode()) { + if (!getAddressCode() + .equals(other.getAddressCode())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRussianAddress()) { + hash = (37 * hash) + RUSSIANADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getRussianAddress().hashCode(); + } + if (hasForeignAddress()) { + hash = (37 * hash) + FOREIGNADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getForeignAddress().hashCode(); + } + if (hasAddressCode()) { + hash = (37 * hash) + ADDRESSCODE_FIELD_NUMBER; + hash = (53 * hash) + getAddressCode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.AddressProtos.Address parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.AddressProtos.Address parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.AddressProtos.Address parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -355,42 +363,57 @@ public static Diadoc.Api.Proto.AddressProtos.Address parseFrom( } public static Diadoc.Api.Proto.AddressProtos.Address parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AddressProtos.Address parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.AddressProtos.Address parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.AddressProtos.Address parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.AddressProtos.Address parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AddressProtos.Address parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.AddressProtos.Address prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -410,6 +433,7 @@ public static final class Builder extends return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_Address_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_Address_fieldAccessorTable @@ -428,47 +452,42 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getRussianAddressFieldBuilder(); getForeignAddressFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (russianAddressBuilder_ == null) { - russianAddress_ = Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance(); - } else { - russianAddressBuilder_.clear(); + bitField0_ = 0; + russianAddress_ = null; + if (russianAddressBuilder_ != null) { + russianAddressBuilder_.dispose(); + russianAddressBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (foreignAddressBuilder_ == null) { - foreignAddress_ = Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance(); - } else { - foreignAddressBuilder_.clear(); + foreignAddress_ = null; + if (foreignAddressBuilder_ != null) { + foreignAddressBuilder_.dispose(); + foreignAddressBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); addressCode_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_Address_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.Address getDefaultInstanceForType() { return Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.Address build() { Diadoc.Api.Proto.AddressProtos.Address result = buildPartial(); if (!result.isInitialized()) { @@ -477,35 +496,37 @@ public Diadoc.Api.Proto.AddressProtos.Address build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.Address buildPartial() { Diadoc.Api.Proto.AddressProtos.Address result = new Diadoc.Api.Proto.AddressProtos.Address(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.AddressProtos.Address result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.russianAddress_ = russianAddressBuilder_ == null + ? russianAddress_ + : russianAddressBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (russianAddressBuilder_ == null) { - result.russianAddress_ = russianAddress_; - } else { - result.russianAddress_ = russianAddressBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.foreignAddress_ = foreignAddressBuilder_ == null + ? foreignAddress_ + : foreignAddressBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (foreignAddressBuilder_ == null) { - result.foreignAddress_ = foreignAddress_; - } else { - result.foreignAddress_ = foreignAddressBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.addressCode_ = addressCode_; to_bitField0_ |= 0x00000004; } - result.addressCode_ = addressCode_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.AddressProtos.Address) { return mergeFrom((Diadoc.Api.Proto.AddressProtos.Address)other); @@ -524,64 +545,99 @@ public Builder mergeFrom(Diadoc.Api.Proto.AddressProtos.Address other) { mergeForeignAddress(other.getForeignAddress()); } if (other.hasAddressCode()) { - bitField0_ |= 0x00000004; addressCode_ = other.addressCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasRussianAddress()) { if (!getRussianAddress().isInitialized()) { - return false; } } if (hasForeignAddress()) { if (!getForeignAddress().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.AddressProtos.Address parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getRussianAddressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getForeignAddressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + addressCode_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.AddressProtos.Address) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.AddressProtos.RussianAddress russianAddress_ = Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance(); + private Diadoc.Api.Proto.AddressProtos.RussianAddress russianAddress_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.AddressProtos.RussianAddress, Diadoc.Api.Proto.AddressProtos.RussianAddress.Builder, Diadoc.Api.Proto.AddressProtos.RussianAddressOrBuilder> russianAddressBuilder_; /** * optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1; + * @return Whether the russianAddress field is set. */ public boolean hasRussianAddress() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1; + * @return The russianAddress. */ public Diadoc.Api.Proto.AddressProtos.RussianAddress getRussianAddress() { if (russianAddressBuilder_ == null) { - return russianAddress_; + return russianAddress_ == null ? Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance() : russianAddress_; } else { return russianAddressBuilder_.getMessage(); } @@ -595,11 +651,11 @@ public Builder setRussianAddress(Diadoc.Api.Proto.AddressProtos.RussianAddress v throw new NullPointerException(); } russianAddress_ = value; - onChanged(); } else { russianAddressBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -609,11 +665,11 @@ public Builder setRussianAddress( Diadoc.Api.Proto.AddressProtos.RussianAddress.Builder builderForValue) { if (russianAddressBuilder_ == null) { russianAddress_ = builderForValue.build(); - onChanged(); } else { russianAddressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -621,31 +677,33 @@ public Builder setRussianAddress( */ public Builder mergeRussianAddress(Diadoc.Api.Proto.AddressProtos.RussianAddress value) { if (russianAddressBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - russianAddress_ != Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance()) { - russianAddress_ = - Diadoc.Api.Proto.AddressProtos.RussianAddress.newBuilder(russianAddress_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + russianAddress_ != null && + russianAddress_ != Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance()) { + getRussianAddressBuilder().mergeFrom(value); } else { russianAddress_ = value; } - onChanged(); } else { russianAddressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (russianAddress_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1; */ public Builder clearRussianAddress() { - if (russianAddressBuilder_ == null) { - russianAddress_ = Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance(); - onChanged(); - } else { - russianAddressBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + russianAddress_ = null; + if (russianAddressBuilder_ != null) { + russianAddressBuilder_.dispose(); + russianAddressBuilder_ = null; + } + onChanged(); return this; } /** @@ -663,7 +721,8 @@ public Diadoc.Api.Proto.AddressProtos.RussianAddressOrBuilder getRussianAddressO if (russianAddressBuilder_ != null) { return russianAddressBuilder_.getMessageOrBuilder(); } else { - return russianAddress_; + return russianAddress_ == null ? + Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance() : russianAddress_; } } /** @@ -683,21 +742,23 @@ public Diadoc.Api.Proto.AddressProtos.RussianAddressOrBuilder getRussianAddressO return russianAddressBuilder_; } - private Diadoc.Api.Proto.AddressProtos.ForeignAddress foreignAddress_ = Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance(); + private Diadoc.Api.Proto.AddressProtos.ForeignAddress foreignAddress_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.AddressProtos.ForeignAddress, Diadoc.Api.Proto.AddressProtos.ForeignAddress.Builder, Diadoc.Api.Proto.AddressProtos.ForeignAddressOrBuilder> foreignAddressBuilder_; /** * optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2; + * @return Whether the foreignAddress field is set. */ public boolean hasForeignAddress() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2; + * @return The foreignAddress. */ public Diadoc.Api.Proto.AddressProtos.ForeignAddress getForeignAddress() { if (foreignAddressBuilder_ == null) { - return foreignAddress_; + return foreignAddress_ == null ? Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance() : foreignAddress_; } else { return foreignAddressBuilder_.getMessage(); } @@ -711,11 +772,11 @@ public Builder setForeignAddress(Diadoc.Api.Proto.AddressProtos.ForeignAddress v throw new NullPointerException(); } foreignAddress_ = value; - onChanged(); } else { foreignAddressBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -725,11 +786,11 @@ public Builder setForeignAddress( Diadoc.Api.Proto.AddressProtos.ForeignAddress.Builder builderForValue) { if (foreignAddressBuilder_ == null) { foreignAddress_ = builderForValue.build(); - onChanged(); } else { foreignAddressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -737,31 +798,33 @@ public Builder setForeignAddress( */ public Builder mergeForeignAddress(Diadoc.Api.Proto.AddressProtos.ForeignAddress value) { if (foreignAddressBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - foreignAddress_ != Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance()) { - foreignAddress_ = - Diadoc.Api.Proto.AddressProtos.ForeignAddress.newBuilder(foreignAddress_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + foreignAddress_ != null && + foreignAddress_ != Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance()) { + getForeignAddressBuilder().mergeFrom(value); } else { foreignAddress_ = value; } - onChanged(); } else { foreignAddressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (foreignAddress_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2; */ public Builder clearForeignAddress() { - if (foreignAddressBuilder_ == null) { - foreignAddress_ = Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance(); - onChanged(); - } else { - foreignAddressBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + foreignAddress_ = null; + if (foreignAddressBuilder_ != null) { + foreignAddressBuilder_.dispose(); + foreignAddressBuilder_ = null; + } + onChanged(); return this; } /** @@ -779,7 +842,8 @@ public Diadoc.Api.Proto.AddressProtos.ForeignAddressOrBuilder getForeignAddressO if (foreignAddressBuilder_ != null) { return foreignAddressBuilder_.getMessageOrBuilder(); } else { - return foreignAddress_; + return foreignAddress_ == null ? + Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance() : foreignAddress_; } } /** @@ -802,12 +866,14 @@ public Diadoc.Api.Proto.AddressProtos.ForeignAddressOrBuilder getForeignAddressO private java.lang.Object addressCode_ = ""; /** * optional string AddressCode = 3; + * @return Whether the addressCode field is set. */ public boolean hasAddressCode() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AddressCode = 3; + * @return The addressCode. */ public java.lang.String getAddressCode() { java.lang.Object ref = addressCode_; @@ -825,6 +891,7 @@ public java.lang.String getAddressCode() { } /** * optional string AddressCode = 3; + * @return The bytes for addressCode. */ public com.google.protobuf.ByteString getAddressCodeBytes() { @@ -841,36 +908,37 @@ public java.lang.String getAddressCode() { } /** * optional string AddressCode = 3; + * @param value The addressCode to set. + * @return This builder for chaining. */ public Builder setAddressCode( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } addressCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string AddressCode = 3; + * @return This builder for chaining. */ public Builder clearAddressCode() { - bitField0_ = (bitField0_ & ~0x00000004); addressCode_ = getDefaultInstance().getAddressCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string AddressCode = 3; + * @param value The bytes for addressCode to set. + * @return This builder for chaining. */ public Builder setAddressCodeBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } addressCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -878,12 +946,52 @@ public Builder setAddressCodeBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Address) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Address) + private static final Diadoc.Api.Proto.AddressProtos.Address DEFAULT_INSTANCE; static { - defaultInstance = new Address(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.AddressProtos.Address(); + } + + public static Diadoc.Api.Proto.AddressProtos.Address getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Address parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser
parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser
getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.AddressProtos.Address getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Address) } public interface RussianAddressOrBuilder extends @@ -891,261 +999,291 @@ public interface RussianAddressOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string ZipCode = 1; - * *
      * индекс
      * 
+ * + * optional string ZipCode = 1; + * @return Whether the zipCode field is set. */ boolean hasZipCode(); /** - * optional string ZipCode = 1; - * *
      * индекс
      * 
+ * + * optional string ZipCode = 1; + * @return The zipCode. */ java.lang.String getZipCode(); /** - * optional string ZipCode = 1; - * *
      * индекс
      * 
+ * + * optional string ZipCode = 1; + * @return The bytes for zipCode. */ com.google.protobuf.ByteString getZipCodeBytes(); /** - * required string Region = 2; - * *
      * регион (код)
      * 
+ * + * required string Region = 2; + * @return Whether the region field is set. */ boolean hasRegion(); /** - * required string Region = 2; - * *
      * регион (код)
      * 
+ * + * required string Region = 2; + * @return The region. */ java.lang.String getRegion(); /** - * required string Region = 2; - * *
      * регион (код)
      * 
+ * + * required string Region = 2; + * @return The bytes for region. */ com.google.protobuf.ByteString getRegionBytes(); /** - * optional string Territory = 3; - * *
      * район
      * 
+ * + * optional string Territory = 3; + * @return Whether the territory field is set. */ boolean hasTerritory(); /** - * optional string Territory = 3; - * *
      * район
      * 
+ * + * optional string Territory = 3; + * @return The territory. */ java.lang.String getTerritory(); /** - * optional string Territory = 3; - * *
      * район
      * 
+ * + * optional string Territory = 3; + * @return The bytes for territory. */ com.google.protobuf.ByteString getTerritoryBytes(); /** - * optional string City = 4; - * *
      * город
      * 
+ * + * optional string City = 4; + * @return Whether the city field is set. */ boolean hasCity(); /** - * optional string City = 4; - * *
      * город
      * 
+ * + * optional string City = 4; + * @return The city. */ java.lang.String getCity(); /** - * optional string City = 4; - * *
      * город
      * 
+ * + * optional string City = 4; + * @return The bytes for city. */ com.google.protobuf.ByteString getCityBytes(); /** - * optional string Locality = 5; - * *
      * населенный пункт
      * 
+ * + * optional string Locality = 5; + * @return Whether the locality field is set. */ boolean hasLocality(); /** - * optional string Locality = 5; - * *
      * населенный пункт
      * 
+ * + * optional string Locality = 5; + * @return The locality. */ java.lang.String getLocality(); /** - * optional string Locality = 5; - * *
      * населенный пункт
      * 
+ * + * optional string Locality = 5; + * @return The bytes for locality. */ com.google.protobuf.ByteString getLocalityBytes(); /** - * optional string Street = 6; - * *
      * улица
      * 
+ * + * optional string Street = 6; + * @return Whether the street field is set. */ boolean hasStreet(); /** - * optional string Street = 6; - * *
      * улица
      * 
+ * + * optional string Street = 6; + * @return The street. */ java.lang.String getStreet(); /** - * optional string Street = 6; - * *
      * улица
      * 
+ * + * optional string Street = 6; + * @return The bytes for street. */ com.google.protobuf.ByteString getStreetBytes(); /** - * optional string Building = 7; - * *
      * дом
      * 
+ * + * optional string Building = 7; + * @return Whether the building field is set. */ boolean hasBuilding(); /** - * optional string Building = 7; - * *
      * дом
      * 
+ * + * optional string Building = 7; + * @return The building. */ java.lang.String getBuilding(); /** - * optional string Building = 7; - * *
      * дом
      * 
+ * + * optional string Building = 7; + * @return The bytes for building. */ com.google.protobuf.ByteString getBuildingBytes(); /** - * optional string Block = 8; - * *
      * корпус
      * 
+ * + * optional string Block = 8; + * @return Whether the block field is set. */ boolean hasBlock(); /** - * optional string Block = 8; - * *
      * корпус
      * 
+ * + * optional string Block = 8; + * @return The block. */ java.lang.String getBlock(); /** - * optional string Block = 8; - * *
      * корпус
      * 
+ * + * optional string Block = 8; + * @return The bytes for block. */ com.google.protobuf.ByteString getBlockBytes(); /** - * optional string Apartment = 9; - * *
      * квартира
      * 
+ * + * optional string Apartment = 9; + * @return Whether the apartment field is set. */ boolean hasApartment(); /** - * optional string Apartment = 9; - * *
      * квартира
      * 
+ * + * optional string Apartment = 9; + * @return The apartment. */ java.lang.String getApartment(); /** - * optional string Apartment = 9; - * *
      * квартира
      * 
+ * + * optional string Apartment = 9; + * @return The bytes for apartment. */ com.google.protobuf.ByteString getApartmentBytes(); /** - * optional string OtherInformation = 10; - * *
      * иные сведения
      * 
+ * + * optional string OtherInformation = 10; + * @return Whether the otherInformation field is set. */ boolean hasOtherInformation(); /** - * optional string OtherInformation = 10; - * *
      * иные сведения
      * 
+ * + * optional string OtherInformation = 10; + * @return The otherInformation. */ java.lang.String getOtherInformation(); /** - * optional string OtherInformation = 10; - * *
      * иные сведения
      * 
+ * + * optional string OtherInformation = 10; + * @return The bytes for otherInformation. */ com.google.protobuf.ByteString getOtherInformationBytes(); @@ -1157,128 +1295,39 @@ public static final class RussianAddress extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.RussianAddress) RussianAddressOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RussianAddress.class.getName()); + } // Use RussianAddress.newBuilder() to construct. private RussianAddress(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private RussianAddress(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RussianAddress defaultInstance; - public static RussianAddress getDefaultInstance() { - return defaultInstance; } - - public RussianAddress getDefaultInstanceForType() { - return defaultInstance; + private RussianAddress() { + zipCode_ = ""; + region_ = ""; + territory_ = ""; + city_ = ""; + locality_ = ""; + street_ = ""; + building_ = ""; + block_ = ""; + apartment_ = ""; + otherInformation_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RussianAddress( - 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; - zipCode_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - region_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - territory_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - city_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - locality_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - street_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - building_ = bs; - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - block_ = bs; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - apartment_ = bs; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - otherInformation_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_RussianAddress_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_RussianAddress_fieldAccessorTable @@ -1286,41 +1335,31 @@ private RussianAddress( Diadoc.Api.Proto.AddressProtos.RussianAddress.class, Diadoc.Api.Proto.AddressProtos.RussianAddress.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RussianAddress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RussianAddress(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ZIPCODE_FIELD_NUMBER = 1; - private java.lang.Object zipCode_; + @SuppressWarnings("serial") + private volatile java.lang.Object zipCode_ = ""; /** - * optional string ZipCode = 1; - * *
      * индекс
      * 
+ * + * optional string ZipCode = 1; + * @return Whether the zipCode field is set. */ + @java.lang.Override public boolean hasZipCode() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional string ZipCode = 1; - * *
      * индекс
      * 
+ * + * optional string ZipCode = 1; + * @return The zipCode. */ + @java.lang.Override public java.lang.String getZipCode() { java.lang.Object ref = zipCode_; if (ref instanceof java.lang.String) { @@ -1336,12 +1375,14 @@ public java.lang.String getZipCode() { } } /** - * optional string ZipCode = 1; - * *
      * индекс
      * 
+ * + * optional string ZipCode = 1; + * @return The bytes for zipCode. */ + @java.lang.Override public com.google.protobuf.ByteString getZipCodeBytes() { java.lang.Object ref = zipCode_; @@ -1357,24 +1398,29 @@ public java.lang.String getZipCode() { } public static final int REGION_FIELD_NUMBER = 2; - private java.lang.Object region_; + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; /** - * required string Region = 2; - * *
      * регион (код)
      * 
+ * + * required string Region = 2; + * @return Whether the region field is set. */ + @java.lang.Override public boolean hasRegion() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * required string Region = 2; - * *
      * регион (код)
      * 
+ * + * required string Region = 2; + * @return The region. */ + @java.lang.Override public java.lang.String getRegion() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { @@ -1390,12 +1436,14 @@ public java.lang.String getRegion() { } } /** - * required string Region = 2; - * *
      * регион (код)
      * 
+ * + * required string Region = 2; + * @return The bytes for region. */ + @java.lang.Override public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; @@ -1411,24 +1459,29 @@ public java.lang.String getRegion() { } public static final int TERRITORY_FIELD_NUMBER = 3; - private java.lang.Object territory_; + @SuppressWarnings("serial") + private volatile java.lang.Object territory_ = ""; /** - * optional string Territory = 3; - * *
      * район
      * 
+ * + * optional string Territory = 3; + * @return Whether the territory field is set. */ + @java.lang.Override public boolean hasTerritory() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional string Territory = 3; - * *
      * район
      * 
+ * + * optional string Territory = 3; + * @return The territory. */ + @java.lang.Override public java.lang.String getTerritory() { java.lang.Object ref = territory_; if (ref instanceof java.lang.String) { @@ -1444,12 +1497,14 @@ public java.lang.String getTerritory() { } } /** - * optional string Territory = 3; - * *
      * район
      * 
+ * + * optional string Territory = 3; + * @return The bytes for territory. */ + @java.lang.Override public com.google.protobuf.ByteString getTerritoryBytes() { java.lang.Object ref = territory_; @@ -1465,24 +1520,29 @@ public java.lang.String getTerritory() { } public static final int CITY_FIELD_NUMBER = 4; - private java.lang.Object city_; + @SuppressWarnings("serial") + private volatile java.lang.Object city_ = ""; /** - * optional string City = 4; - * *
      * город
      * 
+ * + * optional string City = 4; + * @return Whether the city field is set. */ + @java.lang.Override public boolean hasCity() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional string City = 4; - * *
      * город
      * 
+ * + * optional string City = 4; + * @return The city. */ + @java.lang.Override public java.lang.String getCity() { java.lang.Object ref = city_; if (ref instanceof java.lang.String) { @@ -1498,12 +1558,14 @@ public java.lang.String getCity() { } } /** - * optional string City = 4; - * *
      * город
      * 
+ * + * optional string City = 4; + * @return The bytes for city. */ + @java.lang.Override public com.google.protobuf.ByteString getCityBytes() { java.lang.Object ref = city_; @@ -1519,24 +1581,29 @@ public java.lang.String getCity() { } public static final int LOCALITY_FIELD_NUMBER = 5; - private java.lang.Object locality_; + @SuppressWarnings("serial") + private volatile java.lang.Object locality_ = ""; /** - * optional string Locality = 5; - * *
      * населенный пункт
      * 
+ * + * optional string Locality = 5; + * @return Whether the locality field is set. */ + @java.lang.Override public boolean hasLocality() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** - * optional string Locality = 5; - * *
      * населенный пункт
      * 
+ * + * optional string Locality = 5; + * @return The locality. */ + @java.lang.Override public java.lang.String getLocality() { java.lang.Object ref = locality_; if (ref instanceof java.lang.String) { @@ -1552,12 +1619,14 @@ public java.lang.String getLocality() { } } /** - * optional string Locality = 5; - * *
      * населенный пункт
      * 
+ * + * optional string Locality = 5; + * @return The bytes for locality. */ + @java.lang.Override public com.google.protobuf.ByteString getLocalityBytes() { java.lang.Object ref = locality_; @@ -1573,24 +1642,29 @@ public java.lang.String getLocality() { } public static final int STREET_FIELD_NUMBER = 6; - private java.lang.Object street_; + @SuppressWarnings("serial") + private volatile java.lang.Object street_ = ""; /** - * optional string Street = 6; - * *
      * улица
      * 
+ * + * optional string Street = 6; + * @return Whether the street field is set. */ + @java.lang.Override public boolean hasStreet() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional string Street = 6; - * *
      * улица
      * 
+ * + * optional string Street = 6; + * @return The street. */ + @java.lang.Override public java.lang.String getStreet() { java.lang.Object ref = street_; if (ref instanceof java.lang.String) { @@ -1606,12 +1680,14 @@ public java.lang.String getStreet() { } } /** - * optional string Street = 6; - * *
      * улица
      * 
+ * + * optional string Street = 6; + * @return The bytes for street. */ + @java.lang.Override public com.google.protobuf.ByteString getStreetBytes() { java.lang.Object ref = street_; @@ -1627,24 +1703,29 @@ public java.lang.String getStreet() { } public static final int BUILDING_FIELD_NUMBER = 7; - private java.lang.Object building_; + @SuppressWarnings("serial") + private volatile java.lang.Object building_ = ""; /** - * optional string Building = 7; - * *
      * дом
      * 
+ * + * optional string Building = 7; + * @return Whether the building field is set. */ + @java.lang.Override public boolean hasBuilding() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** - * optional string Building = 7; - * *
      * дом
      * 
+ * + * optional string Building = 7; + * @return The building. */ + @java.lang.Override public java.lang.String getBuilding() { java.lang.Object ref = building_; if (ref instanceof java.lang.String) { @@ -1660,12 +1741,14 @@ public java.lang.String getBuilding() { } } /** - * optional string Building = 7; - * *
      * дом
      * 
+ * + * optional string Building = 7; + * @return The bytes for building. */ + @java.lang.Override public com.google.protobuf.ByteString getBuildingBytes() { java.lang.Object ref = building_; @@ -1681,24 +1764,29 @@ public java.lang.String getBuilding() { } public static final int BLOCK_FIELD_NUMBER = 8; - private java.lang.Object block_; + @SuppressWarnings("serial") + private volatile java.lang.Object block_ = ""; /** - * optional string Block = 8; - * *
      * корпус
      * 
+ * + * optional string Block = 8; + * @return Whether the block field is set. */ + @java.lang.Override public boolean hasBlock() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional string Block = 8; - * *
      * корпус
      * 
+ * + * optional string Block = 8; + * @return The block. */ + @java.lang.Override public java.lang.String getBlock() { java.lang.Object ref = block_; if (ref instanceof java.lang.String) { @@ -1714,12 +1802,14 @@ public java.lang.String getBlock() { } } /** - * optional string Block = 8; - * *
      * корпус
      * 
+ * + * optional string Block = 8; + * @return The bytes for block. */ + @java.lang.Override public com.google.protobuf.ByteString getBlockBytes() { java.lang.Object ref = block_; @@ -1735,24 +1825,29 @@ public java.lang.String getBlock() { } public static final int APARTMENT_FIELD_NUMBER = 9; - private java.lang.Object apartment_; + @SuppressWarnings("serial") + private volatile java.lang.Object apartment_ = ""; /** - * optional string Apartment = 9; - * *
      * квартира
      * 
+ * + * optional string Apartment = 9; + * @return Whether the apartment field is set. */ + @java.lang.Override public boolean hasApartment() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** - * optional string Apartment = 9; - * *
      * квартира
      * 
+ * + * optional string Apartment = 9; + * @return The apartment. */ + @java.lang.Override public java.lang.String getApartment() { java.lang.Object ref = apartment_; if (ref instanceof java.lang.String) { @@ -1768,12 +1863,14 @@ public java.lang.String getApartment() { } } /** - * optional string Apartment = 9; - * *
      * квартира
      * 
+ * + * optional string Apartment = 9; + * @return The bytes for apartment. */ + @java.lang.Override public com.google.protobuf.ByteString getApartmentBytes() { java.lang.Object ref = apartment_; @@ -1789,24 +1886,29 @@ public java.lang.String getApartment() { } public static final int OTHERINFORMATION_FIELD_NUMBER = 10; - private java.lang.Object otherInformation_; + @SuppressWarnings("serial") + private volatile java.lang.Object otherInformation_ = ""; /** - * optional string OtherInformation = 10; - * *
      * иные сведения
      * 
+ * + * optional string OtherInformation = 10; + * @return Whether the otherInformation field is set. */ + @java.lang.Override public boolean hasOtherInformation() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** - * optional string OtherInformation = 10; - * *
      * иные сведения
      * 
+ * + * optional string OtherInformation = 10; + * @return The otherInformation. */ + @java.lang.Override public java.lang.String getOtherInformation() { java.lang.Object ref = otherInformation_; if (ref instanceof java.lang.String) { @@ -1822,12 +1924,14 @@ public java.lang.String getOtherInformation() { } } /** - * optional string OtherInformation = 10; - * *
      * иные сведения
      * 
+ * + * optional string OtherInformation = 10; + * @return The bytes for otherInformation. */ + @java.lang.Override public com.google.protobuf.ByteString getOtherInformationBytes() { java.lang.Object ref = otherInformation_; @@ -1842,19 +1946,8 @@ public java.lang.String getOtherInformation() { } } - private void initFields() { - zipCode_ = ""; - region_ = ""; - territory_ = ""; - city_ = ""; - locality_ = ""; - street_ = ""; - building_ = ""; - block_ = ""; - apartment_ = ""; - otherInformation_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1868,100 +1961,210 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getZipCodeBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, zipCode_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getRegionBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, region_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getTerritoryBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, territory_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getCityBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, city_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getLocalityBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, locality_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getStreetBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, street_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getBuildingBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, building_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getBlockBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, block_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getApartmentBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, apartment_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(10, getOtherInformationBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, otherInformation_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getZipCodeBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, zipCode_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getRegionBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, region_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getTerritoryBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, territory_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getCityBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, city_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getLocalityBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, locality_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getStreetBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, street_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getBuildingBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, building_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getBlockBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, block_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getApartmentBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, apartment_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getOtherInformationBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, otherInformation_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.AddressProtos.RussianAddress)) { + return super.equals(obj); + } + Diadoc.Api.Proto.AddressProtos.RussianAddress other = (Diadoc.Api.Proto.AddressProtos.RussianAddress) obj; + + if (hasZipCode() != other.hasZipCode()) return false; + if (hasZipCode()) { + if (!getZipCode() + .equals(other.getZipCode())) return false; + } + if (hasRegion() != other.hasRegion()) return false; + if (hasRegion()) { + if (!getRegion() + .equals(other.getRegion())) return false; + } + if (hasTerritory() != other.hasTerritory()) return false; + if (hasTerritory()) { + if (!getTerritory() + .equals(other.getTerritory())) return false; + } + if (hasCity() != other.hasCity()) return false; + if (hasCity()) { + if (!getCity() + .equals(other.getCity())) return false; + } + if (hasLocality() != other.hasLocality()) return false; + if (hasLocality()) { + if (!getLocality() + .equals(other.getLocality())) return false; + } + if (hasStreet() != other.hasStreet()) return false; + if (hasStreet()) { + if (!getStreet() + .equals(other.getStreet())) return false; + } + if (hasBuilding() != other.hasBuilding()) return false; + if (hasBuilding()) { + if (!getBuilding() + .equals(other.getBuilding())) return false; + } + if (hasBlock() != other.hasBlock()) return false; + if (hasBlock()) { + if (!getBlock() + .equals(other.getBlock())) return false; + } + if (hasApartment() != other.hasApartment()) return false; + if (hasApartment()) { + if (!getApartment() + .equals(other.getApartment())) return false; + } + if (hasOtherInformation() != other.hasOtherInformation()) return false; + if (hasOtherInformation()) { + if (!getOtherInformation() + .equals(other.getOtherInformation())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasZipCode()) { + hash = (37 * hash) + ZIPCODE_FIELD_NUMBER; + hash = (53 * hash) + getZipCode().hashCode(); + } + if (hasRegion()) { + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + } + if (hasTerritory()) { + hash = (37 * hash) + TERRITORY_FIELD_NUMBER; + hash = (53 * hash) + getTerritory().hashCode(); + } + if (hasCity()) { + hash = (37 * hash) + CITY_FIELD_NUMBER; + hash = (53 * hash) + getCity().hashCode(); + } + if (hasLocality()) { + hash = (37 * hash) + LOCALITY_FIELD_NUMBER; + hash = (53 * hash) + getLocality().hashCode(); + } + if (hasStreet()) { + hash = (37 * hash) + STREET_FIELD_NUMBER; + hash = (53 * hash) + getStreet().hashCode(); + } + if (hasBuilding()) { + hash = (37 * hash) + BUILDING_FIELD_NUMBER; + hash = (53 * hash) + getBuilding().hashCode(); + } + if (hasBlock()) { + hash = (37 * hash) + BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getBlock().hashCode(); + } + if (hasApartment()) { + hash = (37 * hash) + APARTMENT_FIELD_NUMBER; + hash = (53 * hash) + getApartment().hashCode(); + } + if (hasOtherInformation()) { + hash = (37 * hash) + OTHERINFORMATION_FIELD_NUMBER; + hash = (53 * hash) + getOtherInformation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1985,42 +2188,57 @@ public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom( } public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.AddressProtos.RussianAddress prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2040,6 +2258,7 @@ public static final class Builder extends return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_RussianAddress_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_RussianAddress_fieldAccessorTable @@ -2049,60 +2268,43 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.AddressProtos.RussianAddress.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; zipCode_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); region_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); territory_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); city_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); locality_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); street_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); building_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); block_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); apartment_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); otherInformation_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_RussianAddress_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.RussianAddress getDefaultInstanceForType() { return Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.RussianAddress build() { Diadoc.Api.Proto.AddressProtos.RussianAddress result = buildPartial(); if (!result.isInitialized()) { @@ -2111,55 +2313,61 @@ public Diadoc.Api.Proto.AddressProtos.RussianAddress build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.RussianAddress buildPartial() { Diadoc.Api.Proto.AddressProtos.RussianAddress result = new Diadoc.Api.Proto.AddressProtos.RussianAddress(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.AddressProtos.RussianAddress result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.zipCode_ = zipCode_; to_bitField0_ |= 0x00000001; } - result.zipCode_ = zipCode_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; to_bitField0_ |= 0x00000002; } - result.region_ = region_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.territory_ = territory_; to_bitField0_ |= 0x00000004; } - result.territory_ = territory_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.city_ = city_; to_bitField0_ |= 0x00000008; } - result.city_ = city_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.locality_ = locality_; to_bitField0_ |= 0x00000010; } - result.locality_ = locality_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.street_ = street_; to_bitField0_ |= 0x00000020; } - result.street_ = street_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.building_ = building_; to_bitField0_ |= 0x00000040; } - result.building_ = building_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.block_ = block_; to_bitField0_ |= 0x00000080; } - result.block_ = block_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.apartment_ = apartment_; to_bitField0_ |= 0x00000100; } - result.apartment_ = apartment_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.otherInformation_ = otherInformation_; to_bitField0_ |= 0x00000200; } - result.otherInformation_ = otherInformation_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.AddressProtos.RussianAddress) { return mergeFrom((Diadoc.Api.Proto.AddressProtos.RussianAddress)other); @@ -2172,103 +2380,170 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.AddressProtos.RussianAddress other) { if (other == Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance()) return this; if (other.hasZipCode()) { - bitField0_ |= 0x00000001; zipCode_ = other.zipCode_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasRegion()) { - bitField0_ |= 0x00000002; region_ = other.region_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTerritory()) { - bitField0_ |= 0x00000004; territory_ = other.territory_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCity()) { - bitField0_ |= 0x00000008; city_ = other.city_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasLocality()) { - bitField0_ |= 0x00000010; locality_ = other.locality_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasStreet()) { - bitField0_ |= 0x00000020; street_ = other.street_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasBuilding()) { - bitField0_ |= 0x00000040; building_ = other.building_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasBlock()) { - bitField0_ |= 0x00000080; block_ = other.block_; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasApartment()) { - bitField0_ |= 0x00000100; apartment_ = other.apartment_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasOtherInformation()) { - bitField0_ |= 0x00000200; otherInformation_ = other.otherInformation_; + bitField0_ |= 0x00000200; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasRegion()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.AddressProtos.RussianAddress parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + zipCode_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + region_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + territory_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + city_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + locality_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + street_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + building_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + block_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + apartment_ = input.readBytes(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + otherInformation_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.AddressProtos.RussianAddress) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; private java.lang.Object zipCode_ = ""; /** - * optional string ZipCode = 1; - * *
        * индекс
        * 
+ * + * optional string ZipCode = 1; + * @return Whether the zipCode field is set. */ public boolean hasZipCode() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional string ZipCode = 1; - * *
        * индекс
        * 
+ * + * optional string ZipCode = 1; + * @return The zipCode. */ public java.lang.String getZipCode() { java.lang.Object ref = zipCode_; @@ -2285,11 +2560,12 @@ public java.lang.String getZipCode() { } } /** - * optional string ZipCode = 1; - * *
        * индекс
        * 
+ * + * optional string ZipCode = 1; + * @return The bytes for zipCode. */ public com.google.protobuf.ByteString getZipCodeBytes() { @@ -2305,70 +2581,73 @@ public java.lang.String getZipCode() { } } /** - * optional string ZipCode = 1; - * *
        * индекс
        * 
+ * + * optional string ZipCode = 1; + * @param value The zipCode to set. + * @return This builder for chaining. */ public Builder setZipCode( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } zipCode_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * optional string ZipCode = 1; - * *
        * индекс
        * 
+ * + * optional string ZipCode = 1; + * @return This builder for chaining. */ public Builder clearZipCode() { - bitField0_ = (bitField0_ & ~0x00000001); zipCode_ = getDefaultInstance().getZipCode(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * optional string ZipCode = 1; - * *
        * индекс
        * 
+ * + * optional string ZipCode = 1; + * @param value The bytes for zipCode to set. + * @return This builder for chaining. */ public Builder setZipCodeBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } zipCode_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object region_ = ""; /** - * required string Region = 2; - * *
        * регион (код)
        * 
+ * + * required string Region = 2; + * @return Whether the region field is set. */ public boolean hasRegion() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * required string Region = 2; - * *
        * регион (код)
        * 
+ * + * required string Region = 2; + * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; @@ -2385,11 +2664,12 @@ public java.lang.String getRegion() { } } /** - * required string Region = 2; - * *
        * регион (код)
        * 
+ * + * required string Region = 2; + * @return The bytes for region. */ public com.google.protobuf.ByteString getRegionBytes() { @@ -2405,70 +2685,73 @@ public java.lang.String getRegion() { } } /** - * required string Region = 2; - * *
        * регион (код)
        * 
+ * + * required string Region = 2; + * @param value The region to set. + * @return This builder for chaining. */ public Builder setRegion( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } region_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * required string Region = 2; - * *
        * регион (код)
        * 
+ * + * required string Region = 2; + * @return This builder for chaining. */ public Builder clearRegion() { - bitField0_ = (bitField0_ & ~0x00000002); region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * required string Region = 2; - * *
        * регион (код)
        * 
+ * + * required string Region = 2; + * @param value The bytes for region to set. + * @return This builder for chaining. */ public Builder setRegionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } region_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object territory_ = ""; /** - * optional string Territory = 3; - * *
        * район
        * 
+ * + * optional string Territory = 3; + * @return Whether the territory field is set. */ public boolean hasTerritory() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional string Territory = 3; - * *
        * район
        * 
+ * + * optional string Territory = 3; + * @return The territory. */ public java.lang.String getTerritory() { java.lang.Object ref = territory_; @@ -2485,11 +2768,12 @@ public java.lang.String getTerritory() { } } /** - * optional string Territory = 3; - * *
        * район
        * 
+ * + * optional string Territory = 3; + * @return The bytes for territory. */ public com.google.protobuf.ByteString getTerritoryBytes() { @@ -2505,70 +2789,73 @@ public java.lang.String getTerritory() { } } /** - * optional string Territory = 3; - * *
        * район
        * 
+ * + * optional string Territory = 3; + * @param value The territory to set. + * @return This builder for chaining. */ public Builder setTerritory( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } territory_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * optional string Territory = 3; - * *
        * район
        * 
+ * + * optional string Territory = 3; + * @return This builder for chaining. */ public Builder clearTerritory() { - bitField0_ = (bitField0_ & ~0x00000004); territory_ = getDefaultInstance().getTerritory(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * optional string Territory = 3; - * *
        * район
        * 
+ * + * optional string Territory = 3; + * @param value The bytes for territory to set. + * @return This builder for chaining. */ public Builder setTerritoryBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } territory_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object city_ = ""; /** - * optional string City = 4; - * *
        * город
        * 
+ * + * optional string City = 4; + * @return Whether the city field is set. */ public boolean hasCity() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional string City = 4; - * *
        * город
        * 
+ * + * optional string City = 4; + * @return The city. */ public java.lang.String getCity() { java.lang.Object ref = city_; @@ -2585,11 +2872,12 @@ public java.lang.String getCity() { } } /** - * optional string City = 4; - * *
        * город
        * 
+ * + * optional string City = 4; + * @return The bytes for city. */ public com.google.protobuf.ByteString getCityBytes() { @@ -2605,70 +2893,73 @@ public java.lang.String getCity() { } } /** - * optional string City = 4; - * *
        * город
        * 
+ * + * optional string City = 4; + * @param value The city to set. + * @return This builder for chaining. */ public Builder setCity( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } city_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * optional string City = 4; - * *
        * город
        * 
+ * + * optional string City = 4; + * @return This builder for chaining. */ public Builder clearCity() { - bitField0_ = (bitField0_ & ~0x00000008); city_ = getDefaultInstance().getCity(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** - * optional string City = 4; - * *
        * город
        * 
+ * + * optional string City = 4; + * @param value The bytes for city to set. + * @return This builder for chaining. */ public Builder setCityBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } city_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object locality_ = ""; /** - * optional string Locality = 5; - * *
        * населенный пункт
        * 
+ * + * optional string Locality = 5; + * @return Whether the locality field is set. */ public boolean hasLocality() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** - * optional string Locality = 5; - * *
        * населенный пункт
        * 
+ * + * optional string Locality = 5; + * @return The locality. */ public java.lang.String getLocality() { java.lang.Object ref = locality_; @@ -2685,11 +2976,12 @@ public java.lang.String getLocality() { } } /** - * optional string Locality = 5; - * *
        * населенный пункт
        * 
+ * + * optional string Locality = 5; + * @return The bytes for locality. */ public com.google.protobuf.ByteString getLocalityBytes() { @@ -2705,70 +2997,73 @@ public java.lang.String getLocality() { } } /** - * optional string Locality = 5; - * *
        * населенный пункт
        * 
+ * + * optional string Locality = 5; + * @param value The locality to set. + * @return This builder for chaining. */ public Builder setLocality( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } locality_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** - * optional string Locality = 5; - * *
        * населенный пункт
        * 
+ * + * optional string Locality = 5; + * @return This builder for chaining. */ public Builder clearLocality() { - bitField0_ = (bitField0_ & ~0x00000010); locality_ = getDefaultInstance().getLocality(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** - * optional string Locality = 5; - * *
        * населенный пункт
        * 
+ * + * optional string Locality = 5; + * @param value The bytes for locality to set. + * @return This builder for chaining. */ public Builder setLocalityBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } locality_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object street_ = ""; /** - * optional string Street = 6; - * *
        * улица
        * 
+ * + * optional string Street = 6; + * @return Whether the street field is set. */ public boolean hasStreet() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional string Street = 6; - * *
        * улица
        * 
+ * + * optional string Street = 6; + * @return The street. */ public java.lang.String getStreet() { java.lang.Object ref = street_; @@ -2785,11 +3080,12 @@ public java.lang.String getStreet() { } } /** - * optional string Street = 6; - * *
        * улица
        * 
+ * + * optional string Street = 6; + * @return The bytes for street. */ public com.google.protobuf.ByteString getStreetBytes() { @@ -2805,70 +3101,73 @@ public java.lang.String getStreet() { } } /** - * optional string Street = 6; - * *
        * улица
        * 
+ * + * optional string Street = 6; + * @param value The street to set. + * @return This builder for chaining. */ public Builder setStreet( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } street_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** - * optional string Street = 6; - * *
        * улица
        * 
+ * + * optional string Street = 6; + * @return This builder for chaining. */ public Builder clearStreet() { - bitField0_ = (bitField0_ & ~0x00000020); street_ = getDefaultInstance().getStreet(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** - * optional string Street = 6; - * *
        * улица
        * 
+ * + * optional string Street = 6; + * @param value The bytes for street to set. + * @return This builder for chaining. */ public Builder setStreetBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } street_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object building_ = ""; /** - * optional string Building = 7; - * *
        * дом
        * 
+ * + * optional string Building = 7; + * @return Whether the building field is set. */ public boolean hasBuilding() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** - * optional string Building = 7; - * *
        * дом
        * 
+ * + * optional string Building = 7; + * @return The building. */ public java.lang.String getBuilding() { java.lang.Object ref = building_; @@ -2885,11 +3184,12 @@ public java.lang.String getBuilding() { } } /** - * optional string Building = 7; - * *
        * дом
        * 
+ * + * optional string Building = 7; + * @return The bytes for building. */ public com.google.protobuf.ByteString getBuildingBytes() { @@ -2905,70 +3205,73 @@ public java.lang.String getBuilding() { } } /** - * optional string Building = 7; - * *
        * дом
        * 
+ * + * optional string Building = 7; + * @param value The building to set. + * @return This builder for chaining. */ public Builder setBuilding( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } building_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * optional string Building = 7; - * *
        * дом
        * 
+ * + * optional string Building = 7; + * @return This builder for chaining. */ public Builder clearBuilding() { - bitField0_ = (bitField0_ & ~0x00000040); building_ = getDefaultInstance().getBuilding(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** - * optional string Building = 7; - * *
        * дом
        * 
+ * + * optional string Building = 7; + * @param value The bytes for building to set. + * @return This builder for chaining. */ public Builder setBuildingBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } building_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object block_ = ""; /** - * optional string Block = 8; - * *
        * корпус
        * 
+ * + * optional string Block = 8; + * @return Whether the block field is set. */ public boolean hasBlock() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional string Block = 8; - * *
        * корпус
        * 
+ * + * optional string Block = 8; + * @return The block. */ public java.lang.String getBlock() { java.lang.Object ref = block_; @@ -2985,11 +3288,12 @@ public java.lang.String getBlock() { } } /** - * optional string Block = 8; - * *
        * корпус
        * 
+ * + * optional string Block = 8; + * @return The bytes for block. */ public com.google.protobuf.ByteString getBlockBytes() { @@ -3005,70 +3309,73 @@ public java.lang.String getBlock() { } } /** - * optional string Block = 8; - * *
        * корпус
        * 
+ * + * optional string Block = 8; + * @param value The block to set. + * @return This builder for chaining. */ public Builder setBlock( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } block_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** - * optional string Block = 8; - * *
        * корпус
        * 
+ * + * optional string Block = 8; + * @return This builder for chaining. */ public Builder clearBlock() { - bitField0_ = (bitField0_ & ~0x00000080); block_ = getDefaultInstance().getBlock(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** - * optional string Block = 8; - * *
        * корпус
        * 
+ * + * optional string Block = 8; + * @param value The bytes for block to set. + * @return This builder for chaining. */ public Builder setBlockBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } block_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } private java.lang.Object apartment_ = ""; /** - * optional string Apartment = 9; - * *
        * квартира
        * 
+ * + * optional string Apartment = 9; + * @return Whether the apartment field is set. */ public boolean hasApartment() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** - * optional string Apartment = 9; - * *
        * квартира
        * 
+ * + * optional string Apartment = 9; + * @return The apartment. */ public java.lang.String getApartment() { java.lang.Object ref = apartment_; @@ -3085,11 +3392,12 @@ public java.lang.String getApartment() { } } /** - * optional string Apartment = 9; - * *
        * квартира
        * 
+ * + * optional string Apartment = 9; + * @return The bytes for apartment. */ public com.google.protobuf.ByteString getApartmentBytes() { @@ -3105,70 +3413,73 @@ public java.lang.String getApartment() { } } /** - * optional string Apartment = 9; - * *
        * квартира
        * 
+ * + * optional string Apartment = 9; + * @param value The apartment to set. + * @return This builder for chaining. */ public Builder setApartment( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } apartment_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** - * optional string Apartment = 9; - * *
        * квартира
        * 
+ * + * optional string Apartment = 9; + * @return This builder for chaining. */ public Builder clearApartment() { - bitField0_ = (bitField0_ & ~0x00000100); apartment_ = getDefaultInstance().getApartment(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** - * optional string Apartment = 9; - * *
        * квартира
        * 
+ * + * optional string Apartment = 9; + * @param value The bytes for apartment to set. + * @return This builder for chaining. */ public Builder setApartmentBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } apartment_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } private java.lang.Object otherInformation_ = ""; /** - * optional string OtherInformation = 10; - * *
        * иные сведения
        * 
+ * + * optional string OtherInformation = 10; + * @return Whether the otherInformation field is set. */ public boolean hasOtherInformation() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** - * optional string OtherInformation = 10; - * *
        * иные сведения
        * 
+ * + * optional string OtherInformation = 10; + * @return The otherInformation. */ public java.lang.String getOtherInformation() { java.lang.Object ref = otherInformation_; @@ -3185,11 +3496,12 @@ public java.lang.String getOtherInformation() { } } /** - * optional string OtherInformation = 10; - * *
        * иные сведения
        * 
+ * + * optional string OtherInformation = 10; + * @return The bytes for otherInformation. */ public com.google.protobuf.ByteString getOtherInformationBytes() { @@ -3205,49 +3517,50 @@ public java.lang.String getOtherInformation() { } } /** - * optional string OtherInformation = 10; - * *
        * иные сведения
        * 
+ * + * optional string OtherInformation = 10; + * @param value The otherInformation to set. + * @return This builder for chaining. */ public Builder setOtherInformation( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } otherInformation_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** - * optional string OtherInformation = 10; - * *
        * иные сведения
        * 
+ * + * optional string OtherInformation = 10; + * @return This builder for chaining. */ public Builder clearOtherInformation() { - bitField0_ = (bitField0_ & ~0x00000200); otherInformation_ = getDefaultInstance().getOtherInformation(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** - * optional string OtherInformation = 10; - * *
        * иные сведения
        * 
+ * + * optional string OtherInformation = 10; + * @param value The bytes for otherInformation to set. + * @return This builder for chaining. */ public Builder setOtherInformationBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } otherInformation_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3255,12 +3568,52 @@ public Builder setOtherInformationBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.RussianAddress) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.RussianAddress) + private static final Diadoc.Api.Proto.AddressProtos.RussianAddress DEFAULT_INSTANCE; static { - defaultInstance = new RussianAddress(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.AddressProtos.RussianAddress(); + } + + public static Diadoc.Api.Proto.AddressProtos.RussianAddress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RussianAddress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.AddressProtos.RussianAddress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.RussianAddress) } public interface ForeignAddressOrBuilder extends @@ -3268,53 +3621,59 @@ public interface ForeignAddressOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * required string Country = 1; - * *
      * страна (код)
      * 
+ * + * required string Country = 1; + * @return Whether the country field is set. */ boolean hasCountry(); /** - * required string Country = 1; - * *
      * страна (код)
      * 
+ * + * required string Country = 1; + * @return The country. */ java.lang.String getCountry(); /** - * required string Country = 1; - * *
      * страна (код)
      * 
+ * + * required string Country = 1; + * @return The bytes for country. */ com.google.protobuf.ByteString getCountryBytes(); /** - * required string Address = 2; - * *
      * текст адреса
      * 
+ * + * required string Address = 2; + * @return Whether the address field is set. */ boolean hasAddress(); /** - * required string Address = 2; - * *
      * текст адреса
      * 
+ * + * required string Address = 2; + * @return The address. */ java.lang.String getAddress(); /** - * required string Address = 2; - * *
      * текст адреса
      * 
+ * + * required string Address = 2; + * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); @@ -3326,80 +3685,31 @@ public static final class ForeignAddress extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.ForeignAddress) ForeignAddressOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ForeignAddress.class.getName()); + } // Use ForeignAddress.newBuilder() to construct. private ForeignAddress(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ForeignAddress(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ForeignAddress defaultInstance; - public static ForeignAddress getDefaultInstance() { - return defaultInstance; } - - public ForeignAddress getDefaultInstanceForType() { - return defaultInstance; + private ForeignAddress() { + country_ = ""; + address_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ForeignAddress( - 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; - country_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - address_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_ForeignAddress_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_ForeignAddress_fieldAccessorTable @@ -3407,41 +3717,31 @@ private ForeignAddress( Diadoc.Api.Proto.AddressProtos.ForeignAddress.class, Diadoc.Api.Proto.AddressProtos.ForeignAddress.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ForeignAddress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ForeignAddress(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int COUNTRY_FIELD_NUMBER = 1; - private java.lang.Object country_; + @SuppressWarnings("serial") + private volatile java.lang.Object country_ = ""; /** - * required string Country = 1; - * *
      * страна (код)
      * 
+ * + * required string Country = 1; + * @return Whether the country field is set. */ + @java.lang.Override public boolean hasCountry() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * required string Country = 1; - * *
      * страна (код)
      * 
+ * + * required string Country = 1; + * @return The country. */ + @java.lang.Override public java.lang.String getCountry() { java.lang.Object ref = country_; if (ref instanceof java.lang.String) { @@ -3457,12 +3757,14 @@ public java.lang.String getCountry() { } } /** - * required string Country = 1; - * *
      * страна (код)
      * 
+ * + * required string Country = 1; + * @return The bytes for country. */ + @java.lang.Override public com.google.protobuf.ByteString getCountryBytes() { java.lang.Object ref = country_; @@ -3478,24 +3780,29 @@ public java.lang.String getCountry() { } public static final int ADDRESS_FIELD_NUMBER = 2; - private java.lang.Object address_; + @SuppressWarnings("serial") + private volatile java.lang.Object address_ = ""; /** - * required string Address = 2; - * *
      * текст адреса
      * 
+ * + * required string Address = 2; + * @return Whether the address field is set. */ + @java.lang.Override public boolean hasAddress() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * required string Address = 2; - * *
      * текст адреса
      * 
+ * + * required string Address = 2; + * @return The address. */ + @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { @@ -3511,12 +3818,14 @@ public java.lang.String getAddress() { } } /** - * required string Address = 2; - * *
      * текст адреса
      * 
+ * + * required string Address = 2; + * @return The bytes for address. */ + @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; @@ -3531,11 +3840,8 @@ public java.lang.String getAddress() { } } - private void initFields() { - country_ = ""; - address_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3553,44 +3859,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getCountryBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, country_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getAddressBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, address_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getCountryBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, country_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getAddressBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, address_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.AddressProtos.ForeignAddress)) { + return super.equals(obj); + } + Diadoc.Api.Proto.AddressProtos.ForeignAddress other = (Diadoc.Api.Proto.AddressProtos.ForeignAddress) obj; + + if (hasCountry() != other.hasCountry()) return false; + if (hasCountry()) { + if (!getCountry() + .equals(other.getCountry())) return false; + } + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (!getAddress() + .equals(other.getAddress())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCountry()) { + hash = (37 * hash) + COUNTRY_FIELD_NUMBER; + hash = (53 * hash) + getCountry().hashCode(); + } + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3614,42 +3966,57 @@ public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom( } public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.AddressProtos.ForeignAddress prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3669,6 +4036,7 @@ public static final class Builder extends return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_ForeignAddress_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_ForeignAddress_fieldAccessorTable @@ -3678,44 +4046,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.AddressProtos.ForeignAddress.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; country_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); address_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_ForeignAddress_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.ForeignAddress getDefaultInstanceForType() { return Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.ForeignAddress build() { Diadoc.Api.Proto.AddressProtos.ForeignAddress result = buildPartial(); if (!result.isInitialized()) { @@ -3724,23 +4083,29 @@ public Diadoc.Api.Proto.AddressProtos.ForeignAddress build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.ForeignAddress buildPartial() { Diadoc.Api.Proto.AddressProtos.ForeignAddress result = new Diadoc.Api.Proto.AddressProtos.ForeignAddress(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.AddressProtos.ForeignAddress result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.country_ = country_; to_bitField0_ |= 0x00000001; } - result.country_ = country_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.address_ = address_; to_bitField0_ |= 0x00000002; } - result.address_ = address_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.AddressProtos.ForeignAddress) { return mergeFrom((Diadoc.Api.Proto.AddressProtos.ForeignAddress)other); @@ -3753,67 +4118,93 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.AddressProtos.ForeignAddress other) { if (other == Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance()) return this; if (other.hasCountry()) { - bitField0_ |= 0x00000001; country_ = other.country_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasAddress()) { - bitField0_ |= 0x00000002; address_ = other.address_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasCountry()) { - return false; } if (!hasAddress()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.AddressProtos.ForeignAddress parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + country_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + address_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.AddressProtos.ForeignAddress) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; private java.lang.Object country_ = ""; /** - * required string Country = 1; - * *
        * страна (код)
        * 
+ * + * required string Country = 1; + * @return Whether the country field is set. */ public boolean hasCountry() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * required string Country = 1; - * *
        * страна (код)
        * 
+ * + * required string Country = 1; + * @return The country. */ public java.lang.String getCountry() { java.lang.Object ref = country_; @@ -3830,11 +4221,12 @@ public java.lang.String getCountry() { } } /** - * required string Country = 1; - * *
        * страна (код)
        * 
+ * + * required string Country = 1; + * @return The bytes for country. */ public com.google.protobuf.ByteString getCountryBytes() { @@ -3850,70 +4242,73 @@ public java.lang.String getCountry() { } } /** - * required string Country = 1; - * *
        * страна (код)
        * 
+ * + * required string Country = 1; + * @param value The country to set. + * @return This builder for chaining. */ public Builder setCountry( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } country_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * required string Country = 1; - * *
        * страна (код)
        * 
+ * + * required string Country = 1; + * @return This builder for chaining. */ public Builder clearCountry() { - bitField0_ = (bitField0_ & ~0x00000001); country_ = getDefaultInstance().getCountry(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * required string Country = 1; - * *
        * страна (код)
        * 
+ * + * required string Country = 1; + * @param value The bytes for country to set. + * @return This builder for chaining. */ public Builder setCountryBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } country_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object address_ = ""; /** - * required string Address = 2; - * *
        * текст адреса
        * 
+ * + * required string Address = 2; + * @return Whether the address field is set. */ public boolean hasAddress() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * required string Address = 2; - * *
        * текст адреса
        * 
+ * + * required string Address = 2; + * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; @@ -3930,11 +4325,12 @@ public java.lang.String getAddress() { } } /** - * required string Address = 2; - * *
        * текст адреса
        * 
+ * + * required string Address = 2; + * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { @@ -3950,49 +4346,50 @@ public java.lang.String getAddress() { } } /** - * required string Address = 2; - * *
        * текст адреса
        * 
+ * + * required string Address = 2; + * @param value The address to set. + * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } address_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * required string Address = 2; - * *
        * текст адреса
        * 
+ * + * required string Address = 2; + * @return This builder for chaining. */ public Builder clearAddress() { - bitField0_ = (bitField0_ & ~0x00000002); address_ = getDefaultInstance().getAddress(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * required string Address = 2; - * *
        * текст адреса
        * 
+ * + * required string Address = 2; + * @param value The bytes for address to set. + * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } address_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4000,27 +4397,67 @@ public Builder setAddressBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.ForeignAddress) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.ForeignAddress) + private static final Diadoc.Api.Proto.AddressProtos.ForeignAddress DEFAULT_INSTANCE; static { - defaultInstance = new ForeignAddress(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.AddressProtos.ForeignAddress(); + } + + public static Diadoc.Api.Proto.AddressProtos.ForeignAddress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForeignAddress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.AddressProtos.ForeignAddress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.ForeignAddress) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Address_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Address_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_RussianAddress_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_RussianAddress_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_ForeignAddress_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_ForeignAddress_fieldAccessorTable; @@ -4028,7 +4465,7 @@ public Builder setAddressBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -4041,22 +4478,14 @@ public Builder setAddressBytes( "rritory\030\003 \001(\t\022\014\n\004City\030\004 \001(\t\022\020\n\010Locality\030" + "\005 \001(\t\022\016\n\006Street\030\006 \001(\t\022\020\n\010Building\030\007 \001(\t\022" + "\r\n\005Block\030\010 \001(\t\022\021\n\tApartment\030\t \001(\t\022\030\n\020Oth" + - "erInformation\030\n \001(\t\"2\n\016ForeignAddress\022\017\n", + "erInformation\030\n \001(\t\"2\n\016ForeignAddress\022\017\n" + "\007Country\030\001 \002(\t\022\017\n\007Address\030\002 \002(\tB\017B\rAddre" + "ssProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Address_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Address_fieldAccessorTable = new @@ -4075,6 +4504,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_ForeignAddress_descriptor, new java.lang.String[] { "Country", "Address", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/AsyncMethodResultProtos.java b/src/main/java/Diadoc/Api/Proto/AsyncMethodResultProtos.java index 5e5be611..61272712 100644 --- a/src/main/java/Diadoc/Api/Proto/AsyncMethodResultProtos.java +++ b/src/main/java/Diadoc/Api/Proto/AsyncMethodResultProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: AsyncMethodResult.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class AsyncMethodResultProtos { private AsyncMethodResultProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AsyncMethodResultProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface AsyncMethodResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.AsyncMethodResult) @@ -14,14 +31,17 @@ public interface AsyncMethodResultOrBuilder extends /** * optional string TaskId = 1; + * @return Whether the taskId field is set. */ boolean hasTaskId(); /** * optional string TaskId = 1; + * @return The taskId. */ java.lang.String getTaskId(); /** * optional string TaskId = 1; + * @return The bytes for taskId. */ com.google.protobuf.ByteString getTaskIdBytes(); @@ -33,74 +53,30 @@ public static final class AsyncMethodResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.AsyncMethodResult) AsyncMethodResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AsyncMethodResult.class.getName()); + } // Use AsyncMethodResult.newBuilder() to construct. private AsyncMethodResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private AsyncMethodResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AsyncMethodResult defaultInstance; - public static AsyncMethodResult getDefaultInstance() { - return defaultInstance; - } - - public AsyncMethodResult getDefaultInstanceForType() { - return defaultInstance; + private AsyncMethodResult() { + taskId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AsyncMethodResult( - 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; - taskId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.AsyncMethodResultProtos.internal_static_Diadoc_Api_Proto_AsyncMethodResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AsyncMethodResultProtos.internal_static_Diadoc_Api_Proto_AsyncMethodResult_fieldAccessorTable @@ -108,33 +84,23 @@ private AsyncMethodResult( Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult.class, Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AsyncMethodResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncMethodResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TASKID_FIELD_NUMBER = 1; - private java.lang.Object taskId_; + @SuppressWarnings("serial") + private volatile java.lang.Object taskId_ = ""; /** * optional string TaskId = 1; + * @return Whether the taskId field is set. */ + @java.lang.Override public boolean hasTaskId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string TaskId = 1; + * @return The taskId. */ + @java.lang.Override public java.lang.String getTaskId() { java.lang.Object ref = taskId_; if (ref instanceof java.lang.String) { @@ -151,7 +117,9 @@ public java.lang.String getTaskId() { } /** * optional string TaskId = 1; + * @return The bytes for taskId. */ + @java.lang.Override public com.google.protobuf.ByteString getTaskIdBytes() { java.lang.Object ref = taskId_; @@ -166,10 +134,8 @@ public java.lang.String getTaskId() { } } - private void initFields() { - taskId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -179,37 +145,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTaskIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, taskId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTaskIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, taskId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult)) { + return super.equals(obj); + } + Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult other = (Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult) obj; + + if (hasTaskId() != other.hasTaskId()) return false; + if (hasTaskId()) { + if (!getTaskId() + .equals(other.getTaskId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTaskId()) { + hash = (37 * hash) + TASKID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -233,42 +237,57 @@ public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFr } public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -288,6 +307,7 @@ public static final class Builder extends return Diadoc.Api.Proto.AsyncMethodResultProtos.internal_static_Diadoc_Api_Proto_AsyncMethodResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.AsyncMethodResultProtos.internal_static_Diadoc_Api_Proto_AsyncMethodResult_fieldAccessorTable @@ -297,42 +317,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; taskId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.AsyncMethodResultProtos.internal_static_Diadoc_Api_Proto_AsyncMethodResult_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult getDefaultInstanceForType() { return Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult build() { Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult result = buildPartial(); if (!result.isInitialized()) { @@ -341,19 +353,25 @@ public Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult buildPartial() { Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult result = new Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.taskId_ = taskId_; to_bitField0_ |= 0x00000001; } - result.taskId_ = taskId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult) { return mergeFrom((Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult)other); @@ -366,33 +384,54 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult other) { if (other == Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult.getDefaultInstance()) return this; if (other.hasTaskId()) { - bitField0_ |= 0x00000001; taskId_ = other.taskId_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + taskId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -400,12 +439,14 @@ public Builder mergeFrom( private java.lang.Object taskId_ = ""; /** * optional string TaskId = 1; + * @return Whether the taskId field is set. */ public boolean hasTaskId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string TaskId = 1; + * @return The taskId. */ public java.lang.String getTaskId() { java.lang.Object ref = taskId_; @@ -423,6 +464,7 @@ public java.lang.String getTaskId() { } /** * optional string TaskId = 1; + * @return The bytes for taskId. */ public com.google.protobuf.ByteString getTaskIdBytes() { @@ -439,36 +481,37 @@ public java.lang.String getTaskId() { } /** * optional string TaskId = 1; + * @param value The taskId to set. + * @return This builder for chaining. */ public Builder setTaskId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } taskId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string TaskId = 1; + * @return This builder for chaining. */ public Builder clearTaskId() { - bitField0_ = (bitField0_ & ~0x00000001); taskId_ = getDefaultInstance().getTaskId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string TaskId = 1; + * @param value The bytes for taskId to set. + * @return This builder for chaining. */ public Builder setTaskIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } taskId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -476,17 +519,57 @@ public Builder setTaskIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.AsyncMethodResult) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AsyncMethodResult) + private static final Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult DEFAULT_INSTANCE; static { - defaultInstance = new AsyncMethodResult(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult(); + } + + public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncMethodResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AsyncMethodResult) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_AsyncMethodResult_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_AsyncMethodResult_fieldAccessorTable; @@ -494,7 +577,7 @@ public Builder setTaskIdBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -502,24 +585,17 @@ public Builder setTaskIdBytes( "oto\"#\n\021AsyncMethodResult\022\016\n\006TaskId\030\001 \001(\t" + "B\031B\027AsyncMethodResultProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_AsyncMethodResult_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_AsyncMethodResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_AsyncMethodResult_descriptor, new java.lang.String[] { "TaskId", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/CertificateInfoProtos.java b/src/main/java/Diadoc/Api/Proto/CertificateInfoProtos.java index ba6eb93e..7150eaf9 100644 --- a/src/main/java/Diadoc/Api/Proto/CertificateInfoProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CertificateInfoProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CertificateInfo.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class CertificateInfoProtos { private CertificateInfoProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateInfoProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CertificateInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CertificateInfo) @@ -14,60 +31,73 @@ public interface CertificateInfoOrBuilder extends /** * optional string Thumbprint = 1; + * @return Whether the thumbprint field is set. */ boolean hasThumbprint(); /** * optional string Thumbprint = 1; + * @return The thumbprint. */ java.lang.String getThumbprint(); /** * optional string Thumbprint = 1; + * @return The bytes for thumbprint. */ com.google.protobuf.ByteString getThumbprintBytes(); /** * optional sfixed64 ValidFrom = 2; + * @return Whether the validFrom field is set. */ boolean hasValidFrom(); /** * optional sfixed64 ValidFrom = 2; + * @return The validFrom. */ long getValidFrom(); /** * optional sfixed64 ValidTo = 3; + * @return Whether the validTo field is set. */ boolean hasValidTo(); /** * optional sfixed64 ValidTo = 3; + * @return The validTo. */ long getValidTo(); /** * optional string OrganizationName = 4; + * @return Whether the organizationName field is set. */ boolean hasOrganizationName(); /** * optional string OrganizationName = 4; + * @return The organizationName. */ java.lang.String getOrganizationName(); /** * optional string OrganizationName = 4; + * @return The bytes for organizationName. */ com.google.protobuf.ByteString getOrganizationNameBytes(); /** * optional string Inn = 5; + * @return Whether the inn field is set. */ boolean hasInn(); /** * optional string Inn = 5; + * @return The inn. */ java.lang.String getInn(); /** * optional string Inn = 5; + * @return The bytes for inn. */ com.google.protobuf.ByteString getInnBytes(); @@ -79,96 +109,32 @@ public static final class CertificateInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CertificateInfo) CertificateInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateInfo.class.getName()); + } // Use CertificateInfo.newBuilder() to construct. private CertificateInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CertificateInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CertificateInfo defaultInstance; - public static CertificateInfo getDefaultInstance() { - return defaultInstance; } - - public CertificateInfo getDefaultInstanceForType() { - return defaultInstance; + private CertificateInfo() { + thumbprint_ = ""; + organizationName_ = ""; + inn_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CertificateInfo( - 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; - thumbprint_ = bs; - break; - } - case 17: { - bitField0_ |= 0x00000002; - validFrom_ = input.readSFixed64(); - break; - } - case 25: { - bitField0_ |= 0x00000004; - validTo_ = input.readSFixed64(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - organizationName_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - inn_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CertificateInfoProtos.internal_static_Diadoc_Api_Proto_CertificateInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CertificateInfoProtos.internal_static_Diadoc_Api_Proto_CertificateInfo_fieldAccessorTable @@ -176,33 +142,23 @@ private CertificateInfo( Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo.class, Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CertificateInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int THUMBPRINT_FIELD_NUMBER = 1; - private java.lang.Object thumbprint_; + @SuppressWarnings("serial") + private volatile java.lang.Object thumbprint_ = ""; /** * optional string Thumbprint = 1; + * @return Whether the thumbprint field is set. */ + @java.lang.Override public boolean hasThumbprint() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Thumbprint = 1; + * @return The thumbprint. */ + @java.lang.Override public java.lang.String getThumbprint() { java.lang.Object ref = thumbprint_; if (ref instanceof java.lang.String) { @@ -219,7 +175,9 @@ public java.lang.String getThumbprint() { } /** * optional string Thumbprint = 1; + * @return The bytes for thumbprint. */ + @java.lang.Override public com.google.protobuf.ByteString getThumbprintBytes() { java.lang.Object ref = thumbprint_; @@ -235,46 +193,59 @@ public java.lang.String getThumbprint() { } public static final int VALIDFROM_FIELD_NUMBER = 2; - private long validFrom_; + private long validFrom_ = 0L; /** * optional sfixed64 ValidFrom = 2; + * @return Whether the validFrom field is set. */ + @java.lang.Override public boolean hasValidFrom() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional sfixed64 ValidFrom = 2; + * @return The validFrom. */ + @java.lang.Override public long getValidFrom() { return validFrom_; } public static final int VALIDTO_FIELD_NUMBER = 3; - private long validTo_; + private long validTo_ = 0L; /** * optional sfixed64 ValidTo = 3; + * @return Whether the validTo field is set. */ + @java.lang.Override public boolean hasValidTo() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional sfixed64 ValidTo = 3; + * @return The validTo. */ + @java.lang.Override public long getValidTo() { return validTo_; } public static final int ORGANIZATIONNAME_FIELD_NUMBER = 4; - private java.lang.Object organizationName_; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationName_ = ""; /** * optional string OrganizationName = 4; + * @return Whether the organizationName field is set. */ + @java.lang.Override public boolean hasOrganizationName() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string OrganizationName = 4; + * @return The organizationName. */ + @java.lang.Override public java.lang.String getOrganizationName() { java.lang.Object ref = organizationName_; if (ref instanceof java.lang.String) { @@ -291,7 +262,9 @@ public java.lang.String getOrganizationName() { } /** * optional string OrganizationName = 4; + * @return The bytes for organizationName. */ + @java.lang.Override public com.google.protobuf.ByteString getOrganizationNameBytes() { java.lang.Object ref = organizationName_; @@ -307,16 +280,21 @@ public java.lang.String getOrganizationName() { } public static final int INN_FIELD_NUMBER = 5; - private java.lang.Object inn_; + @SuppressWarnings("serial") + private volatile java.lang.Object inn_ = ""; /** * optional string Inn = 5; + * @return Whether the inn field is set. */ + @java.lang.Override public boolean hasInn() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string Inn = 5; + * @return The inn. */ + @java.lang.Override public java.lang.String getInn() { java.lang.Object ref = inn_; if (ref instanceof java.lang.String) { @@ -333,7 +311,9 @@ public java.lang.String getInn() { } /** * optional string Inn = 5; + * @return The bytes for inn. */ + @java.lang.Override public com.google.protobuf.ByteString getInnBytes() { java.lang.Object ref = inn_; @@ -348,14 +328,8 @@ public java.lang.String getInn() { } } - private void initFields() { - thumbprint_ = ""; - validFrom_ = 0L; - validTo_ = 0L; - organizationName_ = ""; - inn_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -365,65 +339,139 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getThumbprintBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, thumbprint_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeSFixed64(2, validFrom_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeSFixed64(3, validTo_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getOrganizationNameBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, organizationName_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getInnBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, inn_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getThumbprintBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, thumbprint_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(2, validFrom_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(3, validTo_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getOrganizationNameBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, organizationName_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getInnBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, inn_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo other = (Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo) obj; + + if (hasThumbprint() != other.hasThumbprint()) return false; + if (hasThumbprint()) { + if (!getThumbprint() + .equals(other.getThumbprint())) return false; + } + if (hasValidFrom() != other.hasValidFrom()) return false; + if (hasValidFrom()) { + if (getValidFrom() + != other.getValidFrom()) return false; + } + if (hasValidTo() != other.hasValidTo()) return false; + if (hasValidTo()) { + if (getValidTo() + != other.getValidTo()) return false; + } + if (hasOrganizationName() != other.hasOrganizationName()) return false; + if (hasOrganizationName()) { + if (!getOrganizationName() + .equals(other.getOrganizationName())) return false; + } + if (hasInn() != other.hasInn()) return false; + if (hasInn()) { + if (!getInn() + .equals(other.getInn())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasThumbprint()) { + hash = (37 * hash) + THUMBPRINT_FIELD_NUMBER; + hash = (53 * hash) + getThumbprint().hashCode(); + } + if (hasValidFrom()) { + hash = (37 * hash) + VALIDFROM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValidFrom()); + } + if (hasValidTo()) { + hash = (37 * hash) + VALIDTO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValidTo()); + } + if (hasOrganizationName()) { + hash = (37 * hash) + ORGANIZATIONNAME_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationName().hashCode(); + } + if (hasInn()) { + hash = (37 * hash) + INN_FIELD_NUMBER; + hash = (53 * hash) + getInn().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -447,42 +495,57 @@ public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom( } public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -502,6 +565,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CertificateInfoProtos.internal_static_Diadoc_Api_Proto_CertificateInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CertificateInfoProtos.internal_static_Diadoc_Api_Proto_CertificateInfo_fieldAccessorTable @@ -511,50 +575,38 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; thumbprint_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); validFrom_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); validTo_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); organizationName_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); inn_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CertificateInfoProtos.internal_static_Diadoc_Api_Proto_CertificateInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo build() { Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo result = buildPartial(); if (!result.isInitialized()) { @@ -563,35 +615,41 @@ public Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo buildPartial() { Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo result = new Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.thumbprint_ = thumbprint_; to_bitField0_ |= 0x00000001; } - result.thumbprint_ = thumbprint_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validFrom_ = validFrom_; to_bitField0_ |= 0x00000002; } - result.validFrom_ = validFrom_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validTo_ = validTo_; to_bitField0_ |= 0x00000004; } - result.validTo_ = validTo_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.organizationName_ = organizationName_; to_bitField0_ |= 0x00000008; } - result.organizationName_ = organizationName_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.inn_ = inn_; to_bitField0_ |= 0x00000010; } - result.inn_ = inn_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo) { return mergeFrom((Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo)other); @@ -604,8 +662,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo other) { if (other == Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo.getDefaultInstance()) return this; if (other.hasThumbprint()) { - bitField0_ |= 0x00000001; thumbprint_ = other.thumbprint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasValidFrom()) { @@ -615,38 +673,79 @@ public Builder mergeFrom(Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo setValidTo(other.getValidTo()); } if (other.hasOrganizationName()) { - bitField0_ |= 0x00000008; organizationName_ = other.organizationName_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasInn()) { - bitField0_ |= 0x00000010; inn_ = other.inn_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + thumbprint_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + validFrom_ = input.readSFixed64(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + validTo_ = input.readSFixed64(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: { + organizationName_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + inn_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -654,12 +753,14 @@ public Builder mergeFrom( private java.lang.Object thumbprint_ = ""; /** * optional string Thumbprint = 1; + * @return Whether the thumbprint field is set. */ public boolean hasThumbprint() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Thumbprint = 1; + * @return The thumbprint. */ public java.lang.String getThumbprint() { java.lang.Object ref = thumbprint_; @@ -677,6 +778,7 @@ public java.lang.String getThumbprint() { } /** * optional string Thumbprint = 1; + * @return The bytes for thumbprint. */ public com.google.protobuf.ByteString getThumbprintBytes() { @@ -693,36 +795,37 @@ public java.lang.String getThumbprint() { } /** * optional string Thumbprint = 1; + * @param value The thumbprint to set. + * @return This builder for chaining. */ public Builder setThumbprint( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } thumbprint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string Thumbprint = 1; + * @return This builder for chaining. */ public Builder clearThumbprint() { - bitField0_ = (bitField0_ & ~0x00000001); thumbprint_ = getDefaultInstance().getThumbprint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string Thumbprint = 1; + * @param value The bytes for thumbprint to set. + * @return This builder for chaining. */ public Builder setThumbprintBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } thumbprint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -730,27 +833,35 @@ public Builder setThumbprintBytes( private long validFrom_ ; /** * optional sfixed64 ValidFrom = 2; + * @return Whether the validFrom field is set. */ + @java.lang.Override public boolean hasValidFrom() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional sfixed64 ValidFrom = 2; + * @return The validFrom. */ + @java.lang.Override public long getValidFrom() { return validFrom_; } /** * optional sfixed64 ValidFrom = 2; + * @param value The validFrom to set. + * @return This builder for chaining. */ public Builder setValidFrom(long value) { - bitField0_ |= 0x00000002; + validFrom_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional sfixed64 ValidFrom = 2; + * @return This builder for chaining. */ public Builder clearValidFrom() { bitField0_ = (bitField0_ & ~0x00000002); @@ -762,27 +873,35 @@ public Builder clearValidFrom() { private long validTo_ ; /** * optional sfixed64 ValidTo = 3; + * @return Whether the validTo field is set. */ + @java.lang.Override public boolean hasValidTo() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional sfixed64 ValidTo = 3; + * @return The validTo. */ + @java.lang.Override public long getValidTo() { return validTo_; } /** * optional sfixed64 ValidTo = 3; + * @param value The validTo to set. + * @return This builder for chaining. */ public Builder setValidTo(long value) { - bitField0_ |= 0x00000004; + validTo_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional sfixed64 ValidTo = 3; + * @return This builder for chaining. */ public Builder clearValidTo() { bitField0_ = (bitField0_ & ~0x00000004); @@ -794,12 +913,14 @@ public Builder clearValidTo() { private java.lang.Object organizationName_ = ""; /** * optional string OrganizationName = 4; + * @return Whether the organizationName field is set. */ public boolean hasOrganizationName() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string OrganizationName = 4; + * @return The organizationName. */ public java.lang.String getOrganizationName() { java.lang.Object ref = organizationName_; @@ -817,6 +938,7 @@ public java.lang.String getOrganizationName() { } /** * optional string OrganizationName = 4; + * @return The bytes for organizationName. */ public com.google.protobuf.ByteString getOrganizationNameBytes() { @@ -833,36 +955,37 @@ public java.lang.String getOrganizationName() { } /** * optional string OrganizationName = 4; + * @param value The organizationName to set. + * @return This builder for chaining. */ public Builder setOrganizationName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } organizationName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string OrganizationName = 4; + * @return This builder for chaining. */ public Builder clearOrganizationName() { - bitField0_ = (bitField0_ & ~0x00000008); organizationName_ = getDefaultInstance().getOrganizationName(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string OrganizationName = 4; + * @param value The bytes for organizationName to set. + * @return This builder for chaining. */ public Builder setOrganizationNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } organizationName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -870,12 +993,14 @@ public Builder setOrganizationNameBytes( private java.lang.Object inn_ = ""; /** * optional string Inn = 5; + * @return Whether the inn field is set. */ public boolean hasInn() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string Inn = 5; + * @return The inn. */ public java.lang.String getInn() { java.lang.Object ref = inn_; @@ -893,6 +1018,7 @@ public java.lang.String getInn() { } /** * optional string Inn = 5; + * @return The bytes for inn. */ public com.google.protobuf.ByteString getInnBytes() { @@ -909,36 +1035,37 @@ public java.lang.String getInn() { } /** * optional string Inn = 5; + * @param value The inn to set. + * @return This builder for chaining. */ public Builder setInn( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } inn_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string Inn = 5; + * @return This builder for chaining. */ public Builder clearInn() { - bitField0_ = (bitField0_ & ~0x00000010); inn_ = getDefaultInstance().getInn(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string Inn = 5; + * @param value The bytes for inn to set. + * @return This builder for chaining. */ public Builder setInnBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } inn_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -946,17 +1073,57 @@ public Builder setInnBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CertificateInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CertificateInfo) + private static final Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo DEFAULT_INSTANCE; static { - defaultInstance = new CertificateInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo(); + } + + public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CertificateInfo) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CertificateInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CertificateInfo_fieldAccessorTable; @@ -964,7 +1131,7 @@ public Builder setInnBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -974,24 +1141,17 @@ public Builder setInnBytes( "OrganizationName\030\004 \001(\t\022\013\n\003Inn\030\005 \001(\tB\027B\025C" + "ertificateInfoProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_CertificateInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CertificateInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_CertificateInfo_descriptor, new java.lang.String[] { "Thumbprint", "ValidFrom", "ValidTo", "OrganizationName", "Inn", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/CertificateInfoV2Protos.java b/src/main/java/Diadoc/Api/Proto/CertificateInfoV2Protos.java index ca2e46da..44632366 100644 --- a/src/main/java/Diadoc/Api/Proto/CertificateInfoV2Protos.java +++ b/src/main/java/Diadoc/Api/Proto/CertificateInfoV2Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CertificateInfoV2.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class CertificateInfoV2Protos { private CertificateInfoV2Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateInfoV2Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.CertificateType} @@ -16,21 +33,30 @@ public enum CertificateType /** * UnknownCertificateType = 0; */ - UnknownCertificateType(0, 0), + UnknownCertificateType(0), /** * TokenCertificateType = 1; */ - TokenCertificateType(1, 1), + TokenCertificateType(1), /** * DssCertificateType = 2; */ - DssCertificateType(2, 2), + DssCertificateType(2), /** * KonturCertificateType = 3; */ - KonturCertificateType(3, 3), + KonturCertificateType(3), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateType.class.getName()); + } /** * UnknownCertificateType = 0; */ @@ -49,9 +75,25 @@ public enum CertificateType public static final int KonturCertificateType_VALUE = 3; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static CertificateType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CertificateType forNumber(int value) { switch (value) { case 0: return UnknownCertificateType; case 1: return TokenCertificateType; @@ -65,17 +107,17 @@ public static CertificateType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + CertificateType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CertificateType findValueByNumber(int number) { - return CertificateType.valueOf(number); + return CertificateType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -97,11 +139,9 @@ public static CertificateType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private CertificateType(int index, int value) { - this.index = index; + private CertificateType(int value) { this.value = value; } @@ -116,21 +156,30 @@ public enum CertificateSubjectType /** * UnknownCertificateSubjectType = 0; */ - UnknownCertificateSubjectType(0, 0), + UnknownCertificateSubjectType(0), /** * LegalEntity = 1; */ - LegalEntity(1, 1), + LegalEntity(1), /** * IndividualEntity = 2; */ - IndividualEntity(2, 2), + IndividualEntity(2), /** * PhysicalPerson = 3; */ - PhysicalPerson(3, 3), + PhysicalPerson(3), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateSubjectType.class.getName()); + } /** * UnknownCertificateSubjectType = 0; */ @@ -149,9 +198,25 @@ public enum CertificateSubjectType public static final int PhysicalPerson_VALUE = 3; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static CertificateSubjectType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CertificateSubjectType forNumber(int value) { switch (value) { case 0: return UnknownCertificateSubjectType; case 1: return LegalEntity; @@ -165,17 +230,17 @@ public static CertificateSubjectType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + CertificateSubjectType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CertificateSubjectType findValueByNumber(int number) { - return CertificateSubjectType.valueOf(number); + return CertificateSubjectType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -197,11 +262,9 @@ public static CertificateSubjectType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private CertificateSubjectType(int index, int value) { - this.index = index; + private CertificateSubjectType(int value) { this.value = value; } @@ -216,25 +279,34 @@ public enum DssType /** * UnknownDssType = 0; */ - UnknownDssType(0, 0), + UnknownDssType(0), /** * MyDss = 1; */ - MyDss(1, 1), + MyDss(1), /** * KSignServer = 2; */ - KSignServer(2, 2), + KSignServer(2), /** * KSignRutoken = 3; */ - KSignRutoken(3, 3), + KSignRutoken(3), /** * KSignMobile = 4; */ - KSignMobile(4, 4), + KSignMobile(4), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssType.class.getName()); + } /** * UnknownDssType = 0; */ @@ -257,9 +329,25 @@ public enum DssType public static final int KSignMobile_VALUE = 4; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static DssType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DssType forNumber(int value) { switch (value) { case 0: return UnknownDssType; case 1: return MyDss; @@ -274,17 +362,17 @@ public static DssType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + DssType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DssType findValueByNumber(int number) { - return DssType.valueOf(number); + return DssType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -306,11 +394,9 @@ public static DssType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private DssType(int index, int value) { - this.index = index; + private DssType(int value) { this.value = value; } @@ -325,21 +411,30 @@ public enum CertificateUsage /** * UnknownUsage = 0; */ - UnknownUsage(0, 0), + UnknownUsage(0), /** * KonturCertificateUsage = 1; */ - KonturCertificateUsage(1, 1), + KonturCertificateUsage(1), /** * TokenUsage = 2; */ - TokenUsage(2, 2), + TokenUsage(2), /** * DssUsage = 3; */ - DssUsage(3, 3), + DssUsage(3), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateUsage.class.getName()); + } /** * UnknownUsage = 0; */ @@ -358,9 +453,25 @@ public enum CertificateUsage public static final int DssUsage_VALUE = 3; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static CertificateUsage valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CertificateUsage forNumber(int value) { switch (value) { case 0: return UnknownUsage; case 1: return KonturCertificateUsage; @@ -374,17 +485,17 @@ public static CertificateUsage valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + CertificateUsage> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CertificateUsage findValueByNumber(int number) { - return CertificateUsage.valueOf(number); + return CertificateUsage.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -406,11 +517,9 @@ public static CertificateUsage valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private CertificateUsage(int index, int value) { - this.index = index; + private CertificateUsage(int value) { this.value = value; } @@ -423,184 +532,225 @@ public interface CertificateInfoV2OrBuilder extends /** * required string Thumbprint = 1; + * @return Whether the thumbprint field is set. */ boolean hasThumbprint(); /** * required string Thumbprint = 1; + * @return The thumbprint. */ java.lang.String getThumbprint(); /** * required string Thumbprint = 1; + * @return The bytes for thumbprint. */ com.google.protobuf.ByteString getThumbprintBytes(); /** * required .Diadoc.Api.Proto.CertificateType Type = 2; + * @return Whether the type field is set. */ boolean hasType(); /** * required .Diadoc.Api.Proto.CertificateType Type = 2; + * @return The type. */ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType getType(); /** * optional sfixed64 ValidFrom = 3; + * @return Whether the validFrom field is set. */ boolean hasValidFrom(); /** * optional sfixed64 ValidFrom = 3; + * @return The validFrom. */ long getValidFrom(); /** * optional sfixed64 ValidTo = 4; + * @return Whether the validTo field is set. */ boolean hasValidTo(); /** * optional sfixed64 ValidTo = 4; + * @return The validTo. */ long getValidTo(); /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return Whether the privateKeyValidFrom field is set. */ boolean hasPrivateKeyValidFrom(); /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return The privateKeyValidFrom. */ long getPrivateKeyValidFrom(); /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return Whether the privateKeyValidTo field is set. */ boolean hasPrivateKeyValidTo(); /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return The privateKeyValidTo. */ long getPrivateKeyValidTo(); /** * optional string OrganizationName = 7; + * @return Whether the organizationName field is set. */ boolean hasOrganizationName(); /** * optional string OrganizationName = 7; + * @return The organizationName. */ java.lang.String getOrganizationName(); /** * optional string OrganizationName = 7; + * @return The bytes for organizationName. */ com.google.protobuf.ByteString getOrganizationNameBytes(); /** * optional string Inn = 8; + * @return Whether the inn field is set. */ boolean hasInn(); /** * optional string Inn = 8; + * @return The inn. */ java.lang.String getInn(); /** * optional string Inn = 8; + * @return The bytes for inn. */ com.google.protobuf.ByteString getInnBytes(); /** * optional string UserFirstName = 9; + * @return Whether the userFirstName field is set. */ boolean hasUserFirstName(); /** * optional string UserFirstName = 9; + * @return The userFirstName. */ java.lang.String getUserFirstName(); /** * optional string UserFirstName = 9; + * @return The bytes for userFirstName. */ com.google.protobuf.ByteString getUserFirstNameBytes(); /** * optional string UserMiddleName = 10; + * @return Whether the userMiddleName field is set. */ boolean hasUserMiddleName(); /** * optional string UserMiddleName = 10; + * @return The userMiddleName. */ java.lang.String getUserMiddleName(); /** * optional string UserMiddleName = 10; + * @return The bytes for userMiddleName. */ com.google.protobuf.ByteString getUserMiddleNameBytes(); /** * optional string UserLastName = 11; + * @return Whether the userLastName field is set. */ boolean hasUserLastName(); /** * optional string UserLastName = 11; + * @return The userLastName. */ java.lang.String getUserLastName(); /** * optional string UserLastName = 11; + * @return The bytes for userLastName. */ com.google.protobuf.ByteString getUserLastNameBytes(); /** * optional string UserShortName = 12; + * @return Whether the userShortName field is set. */ boolean hasUserShortName(); /** * optional string UserShortName = 12; + * @return The userShortName. */ java.lang.String getUserShortName(); /** * optional string UserShortName = 12; + * @return The bytes for userShortName. */ com.google.protobuf.ByteString getUserShortNameBytes(); /** * optional bool IsDefault = 13; + * @return Whether the isDefault field is set. */ boolean hasIsDefault(); /** * optional bool IsDefault = 13; + * @return The isDefault. */ boolean getIsDefault(); /** * optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14; + * @return Whether the subjectType field is set. */ boolean hasSubjectType(); /** * optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14; + * @return The subjectType. */ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getSubjectType(); /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @return A list containing the usages. */ java.util.List getUsagesList(); /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @return The count of usages. */ int getUsagesCount(); /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @param index The index of the element to return. + * @return The usages at the given index. */ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage getUsages(int index); /** * optional .Diadoc.Api.Proto.DssType DssType = 16; + * @return Whether the dssType field is set. */ boolean hasDssType(); /** * optional .Diadoc.Api.Proto.DssType DssType = 16; + * @return The dssType. */ Diadoc.Api.Proto.CertificateInfoV2Protos.DssType getDssType(); } @@ -611,204 +761,40 @@ public static final class CertificateInfoV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CertificateInfoV2) CertificateInfoV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateInfoV2.class.getName()); + } // Use CertificateInfoV2.newBuilder() to construct. private CertificateInfoV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CertificateInfoV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CertificateInfoV2 defaultInstance; - public static CertificateInfoV2 getDefaultInstance() { - return defaultInstance; } - - public CertificateInfoV2 getDefaultInstanceForType() { - return defaultInstance; + private CertificateInfoV2() { + thumbprint_ = ""; + type_ = 0; + organizationName_ = ""; + inn_ = ""; + userFirstName_ = ""; + userMiddleName_ = ""; + userLastName_ = ""; + userShortName_ = ""; + subjectType_ = 0; + usages_ = emptyIntList(); + dssType_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CertificateInfoV2( - 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; - thumbprint_ = bs; - break; - } - case 16: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType value = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - type_ = value; - } - break; - } - case 25: { - bitField0_ |= 0x00000004; - validFrom_ = input.readSFixed64(); - break; - } - case 33: { - bitField0_ |= 0x00000008; - validTo_ = input.readSFixed64(); - break; - } - case 41: { - bitField0_ |= 0x00000010; - privateKeyValidFrom_ = input.readSFixed64(); - break; - } - case 49: { - bitField0_ |= 0x00000020; - privateKeyValidTo_ = input.readSFixed64(); - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - organizationName_ = bs; - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - inn_ = bs; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - userFirstName_ = bs; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - userMiddleName_ = bs; - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - userLastName_ = bs; - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000800; - userShortName_ = bs; - break; - } - case 104: { - bitField0_ |= 0x00001000; - isDefault_ = input.readBool(); - break; - } - case 112: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType value = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(14, rawValue); - } else { - bitField0_ |= 0x00002000; - subjectType_ = value; - } - break; - } - case 120: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage value = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(15, rawValue); - } else { - if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { - usages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00004000; - } - usages_.add(value); - } - break; - } - case 122: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage value = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(15, rawValue); - } else { - if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { - usages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00004000; - } - usages_.add(value); - } - } - input.popLimit(oldLimit); - break; - } - case 128: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.CertificateInfoV2Protos.DssType value = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(16, rawValue); - } else { - bitField0_ |= 0x00004000; - dssType_ = value; - } - 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_ & 0x00004000) == 0x00004000)) { - usages_ = java.util.Collections.unmodifiableList(usages_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_CertificateInfoV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_CertificateInfoV2_fieldAccessorTable @@ -816,33 +802,23 @@ private CertificateInfoV2( Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.class, Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CertificateInfoV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateInfoV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int THUMBPRINT_FIELD_NUMBER = 1; - private java.lang.Object thumbprint_; + @SuppressWarnings("serial") + private volatile java.lang.Object thumbprint_ = ""; /** * required string Thumbprint = 1; + * @return Whether the thumbprint field is set. */ + @java.lang.Override public boolean hasThumbprint() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Thumbprint = 1; + * @return The thumbprint. */ + @java.lang.Override public java.lang.String getThumbprint() { java.lang.Object ref = thumbprint_; if (ref instanceof java.lang.String) { @@ -859,7 +835,9 @@ public java.lang.String getThumbprint() { } /** * required string Thumbprint = 1; + * @return The bytes for thumbprint. */ + @java.lang.Override public com.google.protobuf.ByteString getThumbprintBytes() { java.lang.Object ref = thumbprint_; @@ -875,91 +853,115 @@ public java.lang.String getThumbprint() { } public static final int TYPE_FIELD_NUMBER = 2; - private Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType type_; + private int type_ = 0; /** * required .Diadoc.Api.Proto.CertificateType Type = 2; + * @return Whether the type field is set. */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.CertificateType Type = 2; + * @return The type. */ - public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType getType() { - return type_; + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType getType() { + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.forNumber(type_); + return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType : result; } public static final int VALIDFROM_FIELD_NUMBER = 3; - private long validFrom_; + private long validFrom_ = 0L; /** * optional sfixed64 ValidFrom = 3; + * @return Whether the validFrom field is set. */ + @java.lang.Override public boolean hasValidFrom() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional sfixed64 ValidFrom = 3; + * @return The validFrom. */ + @java.lang.Override public long getValidFrom() { return validFrom_; } public static final int VALIDTO_FIELD_NUMBER = 4; - private long validTo_; + private long validTo_ = 0L; /** * optional sfixed64 ValidTo = 4; + * @return Whether the validTo field is set. */ + @java.lang.Override public boolean hasValidTo() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional sfixed64 ValidTo = 4; + * @return The validTo. */ + @java.lang.Override public long getValidTo() { return validTo_; } public static final int PRIVATEKEYVALIDFROM_FIELD_NUMBER = 5; - private long privateKeyValidFrom_; + private long privateKeyValidFrom_ = 0L; /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return Whether the privateKeyValidFrom field is set. */ + @java.lang.Override public boolean hasPrivateKeyValidFrom() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return The privateKeyValidFrom. */ + @java.lang.Override public long getPrivateKeyValidFrom() { return privateKeyValidFrom_; } public static final int PRIVATEKEYVALIDTO_FIELD_NUMBER = 6; - private long privateKeyValidTo_; + private long privateKeyValidTo_ = 0L; /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return Whether the privateKeyValidTo field is set. */ + @java.lang.Override public boolean hasPrivateKeyValidTo() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return The privateKeyValidTo. */ + @java.lang.Override public long getPrivateKeyValidTo() { return privateKeyValidTo_; } public static final int ORGANIZATIONNAME_FIELD_NUMBER = 7; - private java.lang.Object organizationName_; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationName_ = ""; /** * optional string OrganizationName = 7; + * @return Whether the organizationName field is set. */ + @java.lang.Override public boolean hasOrganizationName() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string OrganizationName = 7; + * @return The organizationName. */ + @java.lang.Override public java.lang.String getOrganizationName() { java.lang.Object ref = organizationName_; if (ref instanceof java.lang.String) { @@ -976,7 +978,9 @@ public java.lang.String getOrganizationName() { } /** * optional string OrganizationName = 7; + * @return The bytes for organizationName. */ + @java.lang.Override public com.google.protobuf.ByteString getOrganizationNameBytes() { java.lang.Object ref = organizationName_; @@ -992,16 +996,21 @@ public java.lang.String getOrganizationName() { } public static final int INN_FIELD_NUMBER = 8; - private java.lang.Object inn_; + @SuppressWarnings("serial") + private volatile java.lang.Object inn_ = ""; /** * optional string Inn = 8; + * @return Whether the inn field is set. */ + @java.lang.Override public boolean hasInn() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional string Inn = 8; + * @return The inn. */ + @java.lang.Override public java.lang.String getInn() { java.lang.Object ref = inn_; if (ref instanceof java.lang.String) { @@ -1018,7 +1027,9 @@ public java.lang.String getInn() { } /** * optional string Inn = 8; + * @return The bytes for inn. */ + @java.lang.Override public com.google.protobuf.ByteString getInnBytes() { java.lang.Object ref = inn_; @@ -1034,16 +1045,21 @@ public java.lang.String getInn() { } public static final int USERFIRSTNAME_FIELD_NUMBER = 9; - private java.lang.Object userFirstName_; + @SuppressWarnings("serial") + private volatile java.lang.Object userFirstName_ = ""; /** * optional string UserFirstName = 9; + * @return Whether the userFirstName field is set. */ + @java.lang.Override public boolean hasUserFirstName() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional string UserFirstName = 9; + * @return The userFirstName. */ + @java.lang.Override public java.lang.String getUserFirstName() { java.lang.Object ref = userFirstName_; if (ref instanceof java.lang.String) { @@ -1060,7 +1076,9 @@ public java.lang.String getUserFirstName() { } /** * optional string UserFirstName = 9; + * @return The bytes for userFirstName. */ + @java.lang.Override public com.google.protobuf.ByteString getUserFirstNameBytes() { java.lang.Object ref = userFirstName_; @@ -1076,16 +1094,21 @@ public java.lang.String getUserFirstName() { } public static final int USERMIDDLENAME_FIELD_NUMBER = 10; - private java.lang.Object userMiddleName_; + @SuppressWarnings("serial") + private volatile java.lang.Object userMiddleName_ = ""; /** * optional string UserMiddleName = 10; + * @return Whether the userMiddleName field is set. */ + @java.lang.Override public boolean hasUserMiddleName() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional string UserMiddleName = 10; + * @return The userMiddleName. */ + @java.lang.Override public java.lang.String getUserMiddleName() { java.lang.Object ref = userMiddleName_; if (ref instanceof java.lang.String) { @@ -1102,7 +1125,9 @@ public java.lang.String getUserMiddleName() { } /** * optional string UserMiddleName = 10; + * @return The bytes for userMiddleName. */ + @java.lang.Override public com.google.protobuf.ByteString getUserMiddleNameBytes() { java.lang.Object ref = userMiddleName_; @@ -1118,16 +1143,21 @@ public java.lang.String getUserMiddleName() { } public static final int USERLASTNAME_FIELD_NUMBER = 11; - private java.lang.Object userLastName_; + @SuppressWarnings("serial") + private volatile java.lang.Object userLastName_ = ""; /** * optional string UserLastName = 11; + * @return Whether the userLastName field is set. */ + @java.lang.Override public boolean hasUserLastName() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional string UserLastName = 11; + * @return The userLastName. */ + @java.lang.Override public java.lang.String getUserLastName() { java.lang.Object ref = userLastName_; if (ref instanceof java.lang.String) { @@ -1144,7 +1174,9 @@ public java.lang.String getUserLastName() { } /** * optional string UserLastName = 11; + * @return The bytes for userLastName. */ + @java.lang.Override public com.google.protobuf.ByteString getUserLastNameBytes() { java.lang.Object ref = userLastName_; @@ -1160,16 +1192,21 @@ public java.lang.String getUserLastName() { } public static final int USERSHORTNAME_FIELD_NUMBER = 12; - private java.lang.Object userShortName_; + @SuppressWarnings("serial") + private volatile java.lang.Object userShortName_ = ""; /** * optional string UserShortName = 12; + * @return Whether the userShortName field is set. */ + @java.lang.Override public boolean hasUserShortName() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional string UserShortName = 12; + * @return The userShortName. */ + @java.lang.Override public java.lang.String getUserShortName() { java.lang.Object ref = userShortName_; if (ref instanceof java.lang.String) { @@ -1186,7 +1223,9 @@ public java.lang.String getUserShortName() { } /** * optional string UserShortName = 12; + * @return The bytes for userShortName. */ + @java.lang.Override public com.google.protobuf.ByteString getUserShortNameBytes() { java.lang.Object ref = userShortName_; @@ -1202,90 +1241,101 @@ public java.lang.String getUserShortName() { } public static final int ISDEFAULT_FIELD_NUMBER = 13; - private boolean isDefault_; + private boolean isDefault_ = false; /** * optional bool IsDefault = 13; + * @return Whether the isDefault field is set. */ + @java.lang.Override public boolean hasIsDefault() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional bool IsDefault = 13; + * @return The isDefault. */ + @java.lang.Override public boolean getIsDefault() { return isDefault_; } public static final int SUBJECTTYPE_FIELD_NUMBER = 14; - private Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType subjectType_; + private int subjectType_ = 0; /** * optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14; + * @return Whether the subjectType field is set. */ - public boolean hasSubjectType() { - return ((bitField0_ & 0x00002000) == 0x00002000); + @java.lang.Override public boolean hasSubjectType() { + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14; + * @return The subjectType. */ - public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() { - return subjectType_; + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() { + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.forNumber(subjectType_); + return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result; } public static final int USAGES_FIELD_NUMBER = 15; - private java.util.List usages_; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList usages_; + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage> usages_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage>() { + public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage convert(int from) { + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage.forNumber(from); + return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage.UnknownUsage : result; + } + }; /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @return A list containing the usages. */ + @java.lang.Override public java.util.List getUsagesList() { - return usages_; + return new com.google.protobuf.Internal.IntListAdapter< + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage>(usages_, usages_converter_); } /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @return The count of usages. */ + @java.lang.Override public int getUsagesCount() { return usages_.size(); } /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @param index The index of the element to return. + * @return The usages at the given index. */ + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage getUsages(int index) { - return usages_.get(index); + return usages_converter_.convert(usages_.getInt(index)); } public static final int DSSTYPE_FIELD_NUMBER = 16; - private Diadoc.Api.Proto.CertificateInfoV2Protos.DssType dssType_; + private int dssType_ = 0; /** * optional .Diadoc.Api.Proto.DssType DssType = 16; + * @return Whether the dssType field is set. */ - public boolean hasDssType() { - return ((bitField0_ & 0x00004000) == 0x00004000); + @java.lang.Override public boolean hasDssType() { + return ((bitField0_ & 0x00004000) != 0); } /** * optional .Diadoc.Api.Proto.DssType DssType = 16; + * @return The dssType. */ - public Diadoc.Api.Proto.CertificateInfoV2Protos.DssType getDssType() { - return dssType_; + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.DssType getDssType() { + Diadoc.Api.Proto.CertificateInfoV2Protos.DssType result = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.forNumber(dssType_); + return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType : result; } - private void initFields() { - thumbprint_ = ""; - type_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType; - validFrom_ = 0L; - validTo_ = 0L; - privateKeyValidFrom_ = 0L; - privateKeyValidTo_ = 0L; - organizationName_ = ""; - inn_ = ""; - userFirstName_ = ""; - userMiddleName_ = ""; - userLastName_ = ""; - userShortName_ = ""; - isDefault_ = false; - subjectType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType; - usages_ = java.util.Collections.emptyList(); - dssType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1303,147 +1353,312 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getThumbprintBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, thumbprint_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, type_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, type_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeSFixed64(3, validFrom_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeSFixed64(4, validTo_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeSFixed64(5, privateKeyValidFrom_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeSFixed64(6, privateKeyValidTo_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getOrganizationNameBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, organizationName_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getInnBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, inn_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getUserFirstNameBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, userFirstName_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(10, getUserMiddleNameBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, userMiddleName_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, getUserLastNameBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, userLastName_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(12, getUserShortNameBytes()); + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, userShortName_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(13, isDefault_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeEnum(14, subjectType_.getNumber()); + if (((bitField0_ & 0x00002000) != 0)) { + output.writeEnum(14, subjectType_); } for (int i = 0; i < usages_.size(); i++) { - output.writeEnum(15, usages_.get(i).getNumber()); + output.writeEnum(15, usages_.getInt(i)); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeEnum(16, dssType_.getNumber()); + if (((bitField0_ & 0x00004000) != 0)) { + output.writeEnum(16, dssType_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getThumbprintBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, thumbprint_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_.getNumber()); + .computeEnumSize(2, type_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(3, validFrom_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(4, validTo_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(5, privateKeyValidFrom_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(6, privateKeyValidTo_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getOrganizationNameBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, organizationName_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getInnBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, inn_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getUserFirstNameBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, userFirstName_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getUserMiddleNameBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, userMiddleName_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getUserLastNameBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, userLastName_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getUserShortNameBytes()); + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, userShortName_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, isDefault_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, subjectType_.getNumber()); + .computeEnumSize(14, subjectType_); } { int dataSize = 0; for (int i = 0; i < usages_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(usages_.get(i).getNumber()); + .computeEnumSizeNoTag(usages_.getInt(i)); } size += dataSize; size += 1 * usages_.size(); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(16, dssType_.getNumber()); + .computeEnumSize(16, dssType_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 other = (Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2) obj; + + if (hasThumbprint() != other.hasThumbprint()) return false; + if (hasThumbprint()) { + if (!getThumbprint() + .equals(other.getThumbprint())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (type_ != other.type_) return false; + } + if (hasValidFrom() != other.hasValidFrom()) return false; + if (hasValidFrom()) { + if (getValidFrom() + != other.getValidFrom()) return false; + } + if (hasValidTo() != other.hasValidTo()) return false; + if (hasValidTo()) { + if (getValidTo() + != other.getValidTo()) return false; + } + if (hasPrivateKeyValidFrom() != other.hasPrivateKeyValidFrom()) return false; + if (hasPrivateKeyValidFrom()) { + if (getPrivateKeyValidFrom() + != other.getPrivateKeyValidFrom()) return false; + } + if (hasPrivateKeyValidTo() != other.hasPrivateKeyValidTo()) return false; + if (hasPrivateKeyValidTo()) { + if (getPrivateKeyValidTo() + != other.getPrivateKeyValidTo()) return false; + } + if (hasOrganizationName() != other.hasOrganizationName()) return false; + if (hasOrganizationName()) { + if (!getOrganizationName() + .equals(other.getOrganizationName())) return false; + } + if (hasInn() != other.hasInn()) return false; + if (hasInn()) { + if (!getInn() + .equals(other.getInn())) return false; + } + if (hasUserFirstName() != other.hasUserFirstName()) return false; + if (hasUserFirstName()) { + if (!getUserFirstName() + .equals(other.getUserFirstName())) return false; + } + if (hasUserMiddleName() != other.hasUserMiddleName()) return false; + if (hasUserMiddleName()) { + if (!getUserMiddleName() + .equals(other.getUserMiddleName())) return false; + } + if (hasUserLastName() != other.hasUserLastName()) return false; + if (hasUserLastName()) { + if (!getUserLastName() + .equals(other.getUserLastName())) return false; + } + if (hasUserShortName() != other.hasUserShortName()) return false; + if (hasUserShortName()) { + if (!getUserShortName() + .equals(other.getUserShortName())) return false; + } + if (hasIsDefault() != other.hasIsDefault()) return false; + if (hasIsDefault()) { + if (getIsDefault() + != other.getIsDefault()) return false; + } + if (hasSubjectType() != other.hasSubjectType()) return false; + if (hasSubjectType()) { + if (subjectType_ != other.subjectType_) return false; + } + if (!usages_.equals(other.usages_)) return false; + if (hasDssType() != other.hasDssType()) return false; + if (hasDssType()) { + if (dssType_ != other.dssType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasThumbprint()) { + hash = (37 * hash) + THUMBPRINT_FIELD_NUMBER; + hash = (53 * hash) + getThumbprint().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + } + if (hasValidFrom()) { + hash = (37 * hash) + VALIDFROM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValidFrom()); + } + if (hasValidTo()) { + hash = (37 * hash) + VALIDTO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValidTo()); + } + if (hasPrivateKeyValidFrom()) { + hash = (37 * hash) + PRIVATEKEYVALIDFROM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPrivateKeyValidFrom()); + } + if (hasPrivateKeyValidTo()) { + hash = (37 * hash) + PRIVATEKEYVALIDTO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPrivateKeyValidTo()); + } + if (hasOrganizationName()) { + hash = (37 * hash) + ORGANIZATIONNAME_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationName().hashCode(); + } + if (hasInn()) { + hash = (37 * hash) + INN_FIELD_NUMBER; + hash = (53 * hash) + getInn().hashCode(); + } + if (hasUserFirstName()) { + hash = (37 * hash) + USERFIRSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getUserFirstName().hashCode(); + } + if (hasUserMiddleName()) { + hash = (37 * hash) + USERMIDDLENAME_FIELD_NUMBER; + hash = (53 * hash) + getUserMiddleName().hashCode(); + } + if (hasUserLastName()) { + hash = (37 * hash) + USERLASTNAME_FIELD_NUMBER; + hash = (53 * hash) + getUserLastName().hashCode(); + } + if (hasUserShortName()) { + hash = (37 * hash) + USERSHORTNAME_FIELD_NUMBER; + hash = (53 * hash) + getUserShortName().hashCode(); + } + if (hasIsDefault()) { + hash = (37 * hash) + ISDEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDefault()); + } + if (hasSubjectType()) { + hash = (37 * hash) + SUBJECTTYPE_FIELD_NUMBER; + hash = (53 * hash) + subjectType_; + } + if (getUsagesCount() > 0) { + hash = (37 * hash) + USAGES_FIELD_NUMBER; + hash = (53 * hash) + usages_.hashCode(); + } + if (hasDssType()) { + hash = (37 * hash) + DSSTYPE_FIELD_NUMBER; + hash = (53 * hash) + dssType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1467,42 +1682,57 @@ public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFr } public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1522,6 +1752,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_CertificateInfoV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_CertificateInfoV2_fieldAccessorTable @@ -1531,72 +1762,50 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; thumbprint_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - type_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType; - bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; validFrom_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); validTo_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); privateKeyValidFrom_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); privateKeyValidTo_ = 0L; - bitField0_ = (bitField0_ & ~0x00000020); organizationName_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); inn_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); userFirstName_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); userMiddleName_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); userLastName_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); userShortName_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); isDefault_ = false; - bitField0_ = (bitField0_ & ~0x00001000); - subjectType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType; - bitField0_ = (bitField0_ & ~0x00002000); - usages_ = java.util.Collections.emptyList(); + subjectType_ = 0; + usages_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00004000); - dssType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType; - bitField0_ = (bitField0_ & ~0x00008000); + dssType_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_CertificateInfoV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 build() { Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 result = buildPartial(); if (!result.isInitialized()) { @@ -1605,80 +1814,90 @@ public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 buildPartial() { Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 result = new Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 result) { + if (((bitField0_ & 0x00004000) != 0)) { + usages_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.usages_ = usages_; + } + + private void buildPartial0(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.thumbprint_ = thumbprint_; to_bitField0_ |= 0x00000001; } - result.thumbprint_ = thumbprint_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; to_bitField0_ |= 0x00000002; } - result.type_ = type_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validFrom_ = validFrom_; to_bitField0_ |= 0x00000004; } - result.validFrom_ = validFrom_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validTo_ = validTo_; to_bitField0_ |= 0x00000008; } - result.validTo_ = validTo_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.privateKeyValidFrom_ = privateKeyValidFrom_; to_bitField0_ |= 0x00000010; } - result.privateKeyValidFrom_ = privateKeyValidFrom_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.privateKeyValidTo_ = privateKeyValidTo_; to_bitField0_ |= 0x00000020; } - result.privateKeyValidTo_ = privateKeyValidTo_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.organizationName_ = organizationName_; to_bitField0_ |= 0x00000040; } - result.organizationName_ = organizationName_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.inn_ = inn_; to_bitField0_ |= 0x00000080; } - result.inn_ = inn_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.userFirstName_ = userFirstName_; to_bitField0_ |= 0x00000100; } - result.userFirstName_ = userFirstName_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.userMiddleName_ = userMiddleName_; to_bitField0_ |= 0x00000200; } - result.userMiddleName_ = userMiddleName_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.userLastName_ = userLastName_; to_bitField0_ |= 0x00000400; } - result.userLastName_ = userLastName_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.userShortName_ = userShortName_; to_bitField0_ |= 0x00000800; } - result.userShortName_ = userShortName_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + if (((from_bitField0_ & 0x00001000) != 0)) { + result.isDefault_ = isDefault_; to_bitField0_ |= 0x00001000; } - result.isDefault_ = isDefault_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.subjectType_ = subjectType_; to_bitField0_ |= 0x00002000; } - result.subjectType_ = subjectType_; - if (((bitField0_ & 0x00004000) == 0x00004000)) { - usages_ = java.util.Collections.unmodifiableList(usages_); - bitField0_ = (bitField0_ & ~0x00004000); - } - result.usages_ = usages_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00008000) != 0)) { + result.dssType_ = dssType_; to_bitField0_ |= 0x00004000; } - result.dssType_ = dssType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2) { return mergeFrom((Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2)other); @@ -1691,8 +1910,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 other) { if (other == Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.getDefaultInstance()) return this; if (other.hasThumbprint()) { - bitField0_ |= 0x00000001; thumbprint_ = other.thumbprint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasType()) { @@ -1711,33 +1930,33 @@ public Builder mergeFrom(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInf setPrivateKeyValidTo(other.getPrivateKeyValidTo()); } if (other.hasOrganizationName()) { - bitField0_ |= 0x00000040; organizationName_ = other.organizationName_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasInn()) { - bitField0_ |= 0x00000080; inn_ = other.inn_; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasUserFirstName()) { - bitField0_ |= 0x00000100; userFirstName_ = other.userFirstName_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasUserMiddleName()) { - bitField0_ |= 0x00000200; userMiddleName_ = other.userMiddleName_; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasUserLastName()) { - bitField0_ |= 0x00000400; userLastName_ = other.userLastName_; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasUserShortName()) { - bitField0_ |= 0x00000800; userShortName_ = other.userShortName_; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasIsDefault()) { @@ -1760,36 +1979,175 @@ public Builder mergeFrom(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInf setDssType(other.getDssType()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasThumbprint()) { - return false; } if (!hasType()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + thumbprint_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType tmpValue = + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + type_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + case 25: { + validFrom_ = input.readSFixed64(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 33: { + validTo_ = input.readSFixed64(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 41: { + privateKeyValidFrom_ = input.readSFixed64(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 49: { + privateKeyValidTo_ = input.readSFixed64(); + bitField0_ |= 0x00000020; + break; + } // case 49 + case 58: { + organizationName_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + inn_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + userFirstName_ = input.readBytes(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + userMiddleName_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + userLastName_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + userShortName_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: { + isDefault_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType tmpValue = + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(14, tmpRaw); + } else { + subjectType_ = tmpRaw; + bitField0_ |= 0x00002000; + } + break; + } // case 112 + case 120: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage tmpValue = + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(15, tmpRaw); + } else { + ensureUsagesIsMutable(); + usages_.addInt(tmpRaw); + } + break; + } // case 120 + case 122: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage tmpValue = + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(15, tmpRaw); + } else { + ensureUsagesIsMutable(); + usages_.addInt(tmpRaw); + } + } + input.popLimit(oldLimit); + break; + } // case 122 + case 128: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.CertificateInfoV2Protos.DssType tmpValue = + Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(16, tmpRaw); + } else { + dssType_ = tmpRaw; + bitField0_ |= 0x00008000; + } + break; + } // case 128 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1797,12 +2155,14 @@ public Builder mergeFrom( private java.lang.Object thumbprint_ = ""; /** * required string Thumbprint = 1; + * @return Whether the thumbprint field is set. */ public boolean hasThumbprint() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Thumbprint = 1; + * @return The thumbprint. */ public java.lang.String getThumbprint() { java.lang.Object ref = thumbprint_; @@ -1820,6 +2180,7 @@ public java.lang.String getThumbprint() { } /** * required string Thumbprint = 1; + * @return The bytes for thumbprint. */ public com.google.protobuf.ByteString getThumbprintBytes() { @@ -1836,71 +2197,79 @@ public java.lang.String getThumbprint() { } /** * required string Thumbprint = 1; + * @param value The thumbprint to set. + * @return This builder for chaining. */ public Builder setThumbprint( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } thumbprint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Thumbprint = 1; + * @return This builder for chaining. */ public Builder clearThumbprint() { - bitField0_ = (bitField0_ & ~0x00000001); thumbprint_ = getDefaultInstance().getThumbprint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Thumbprint = 1; + * @param value The bytes for thumbprint to set. + * @return This builder for chaining. */ public Builder setThumbprintBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } thumbprint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType type_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType; + private int type_ = 0; /** * required .Diadoc.Api.Proto.CertificateType Type = 2; + * @return Whether the type field is set. */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.CertificateType Type = 2; + * @return The type. */ + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType getType() { - return type_; + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.forNumber(type_); + return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType : result; } /** * required .Diadoc.Api.Proto.CertificateType Type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - type_ = value; + type_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.CertificateType Type = 2; + * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); - type_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType; + type_ = 0; onChanged(); return this; } @@ -1908,27 +2277,35 @@ public Builder clearType() { private long validFrom_ ; /** * optional sfixed64 ValidFrom = 3; + * @return Whether the validFrom field is set. */ + @java.lang.Override public boolean hasValidFrom() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional sfixed64 ValidFrom = 3; + * @return The validFrom. */ + @java.lang.Override public long getValidFrom() { return validFrom_; } /** * optional sfixed64 ValidFrom = 3; + * @param value The validFrom to set. + * @return This builder for chaining. */ public Builder setValidFrom(long value) { - bitField0_ |= 0x00000004; + validFrom_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional sfixed64 ValidFrom = 3; + * @return This builder for chaining. */ public Builder clearValidFrom() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1940,27 +2317,35 @@ public Builder clearValidFrom() { private long validTo_ ; /** * optional sfixed64 ValidTo = 4; + * @return Whether the validTo field is set. */ + @java.lang.Override public boolean hasValidTo() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional sfixed64 ValidTo = 4; + * @return The validTo. */ + @java.lang.Override public long getValidTo() { return validTo_; } /** * optional sfixed64 ValidTo = 4; + * @param value The validTo to set. + * @return This builder for chaining. */ public Builder setValidTo(long value) { - bitField0_ |= 0x00000008; + validTo_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional sfixed64 ValidTo = 4; + * @return This builder for chaining. */ public Builder clearValidTo() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1972,27 +2357,35 @@ public Builder clearValidTo() { private long privateKeyValidFrom_ ; /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return Whether the privateKeyValidFrom field is set. */ + @java.lang.Override public boolean hasPrivateKeyValidFrom() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return The privateKeyValidFrom. */ + @java.lang.Override public long getPrivateKeyValidFrom() { return privateKeyValidFrom_; } /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @param value The privateKeyValidFrom to set. + * @return This builder for chaining. */ public Builder setPrivateKeyValidFrom(long value) { - bitField0_ |= 0x00000010; + privateKeyValidFrom_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return This builder for chaining. */ public Builder clearPrivateKeyValidFrom() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2004,27 +2397,35 @@ public Builder clearPrivateKeyValidFrom() { private long privateKeyValidTo_ ; /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return Whether the privateKeyValidTo field is set. */ + @java.lang.Override public boolean hasPrivateKeyValidTo() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return The privateKeyValidTo. */ + @java.lang.Override public long getPrivateKeyValidTo() { return privateKeyValidTo_; } /** * optional sfixed64 PrivateKeyValidTo = 6; + * @param value The privateKeyValidTo to set. + * @return This builder for chaining. */ public Builder setPrivateKeyValidTo(long value) { - bitField0_ |= 0x00000020; + privateKeyValidTo_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return This builder for chaining. */ public Builder clearPrivateKeyValidTo() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2036,12 +2437,14 @@ public Builder clearPrivateKeyValidTo() { private java.lang.Object organizationName_ = ""; /** * optional string OrganizationName = 7; + * @return Whether the organizationName field is set. */ public boolean hasOrganizationName() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string OrganizationName = 7; + * @return The organizationName. */ public java.lang.String getOrganizationName() { java.lang.Object ref = organizationName_; @@ -2059,6 +2462,7 @@ public java.lang.String getOrganizationName() { } /** * optional string OrganizationName = 7; + * @return The bytes for organizationName. */ public com.google.protobuf.ByteString getOrganizationNameBytes() { @@ -2075,36 +2479,37 @@ public java.lang.String getOrganizationName() { } /** * optional string OrganizationName = 7; + * @param value The organizationName to set. + * @return This builder for chaining. */ public Builder setOrganizationName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } organizationName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional string OrganizationName = 7; + * @return This builder for chaining. */ public Builder clearOrganizationName() { - bitField0_ = (bitField0_ & ~0x00000040); organizationName_ = getDefaultInstance().getOrganizationName(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * optional string OrganizationName = 7; + * @param value The bytes for organizationName to set. + * @return This builder for chaining. */ public Builder setOrganizationNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } organizationName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2112,12 +2517,14 @@ public Builder setOrganizationNameBytes( private java.lang.Object inn_ = ""; /** * optional string Inn = 8; + * @return Whether the inn field is set. */ public boolean hasInn() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional string Inn = 8; + * @return The inn. */ public java.lang.String getInn() { java.lang.Object ref = inn_; @@ -2135,6 +2542,7 @@ public java.lang.String getInn() { } /** * optional string Inn = 8; + * @return The bytes for inn. */ public com.google.protobuf.ByteString getInnBytes() { @@ -2151,36 +2559,37 @@ public java.lang.String getInn() { } /** * optional string Inn = 8; + * @param value The inn to set. + * @return This builder for chaining. */ public Builder setInn( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } inn_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional string Inn = 8; + * @return This builder for chaining. */ public Builder clearInn() { - bitField0_ = (bitField0_ & ~0x00000080); inn_ = getDefaultInstance().getInn(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * optional string Inn = 8; + * @param value The bytes for inn to set. + * @return This builder for chaining. */ public Builder setInnBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } inn_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2188,12 +2597,14 @@ public Builder setInnBytes( private java.lang.Object userFirstName_ = ""; /** * optional string UserFirstName = 9; + * @return Whether the userFirstName field is set. */ public boolean hasUserFirstName() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional string UserFirstName = 9; + * @return The userFirstName. */ public java.lang.String getUserFirstName() { java.lang.Object ref = userFirstName_; @@ -2211,6 +2622,7 @@ public java.lang.String getUserFirstName() { } /** * optional string UserFirstName = 9; + * @return The bytes for userFirstName. */ public com.google.protobuf.ByteString getUserFirstNameBytes() { @@ -2227,36 +2639,37 @@ public java.lang.String getUserFirstName() { } /** * optional string UserFirstName = 9; + * @param value The userFirstName to set. + * @return This builder for chaining. */ public Builder setUserFirstName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } userFirstName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional string UserFirstName = 9; + * @return This builder for chaining. */ public Builder clearUserFirstName() { - bitField0_ = (bitField0_ & ~0x00000100); userFirstName_ = getDefaultInstance().getUserFirstName(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * optional string UserFirstName = 9; + * @param value The bytes for userFirstName to set. + * @return This builder for chaining. */ public Builder setUserFirstNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } userFirstName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2264,12 +2677,14 @@ public Builder setUserFirstNameBytes( private java.lang.Object userMiddleName_ = ""; /** * optional string UserMiddleName = 10; + * @return Whether the userMiddleName field is set. */ public boolean hasUserMiddleName() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional string UserMiddleName = 10; + * @return The userMiddleName. */ public java.lang.String getUserMiddleName() { java.lang.Object ref = userMiddleName_; @@ -2287,6 +2702,7 @@ public java.lang.String getUserMiddleName() { } /** * optional string UserMiddleName = 10; + * @return The bytes for userMiddleName. */ public com.google.protobuf.ByteString getUserMiddleNameBytes() { @@ -2303,36 +2719,37 @@ public java.lang.String getUserMiddleName() { } /** * optional string UserMiddleName = 10; + * @param value The userMiddleName to set. + * @return This builder for chaining. */ public Builder setUserMiddleName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } userMiddleName_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional string UserMiddleName = 10; + * @return This builder for chaining. */ public Builder clearUserMiddleName() { - bitField0_ = (bitField0_ & ~0x00000200); userMiddleName_ = getDefaultInstance().getUserMiddleName(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * optional string UserMiddleName = 10; + * @param value The bytes for userMiddleName to set. + * @return This builder for chaining. */ public Builder setUserMiddleNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } userMiddleName_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2340,12 +2757,14 @@ public Builder setUserMiddleNameBytes( private java.lang.Object userLastName_ = ""; /** * optional string UserLastName = 11; + * @return Whether the userLastName field is set. */ public boolean hasUserLastName() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional string UserLastName = 11; + * @return The userLastName. */ public java.lang.String getUserLastName() { java.lang.Object ref = userLastName_; @@ -2363,6 +2782,7 @@ public java.lang.String getUserLastName() { } /** * optional string UserLastName = 11; + * @return The bytes for userLastName. */ public com.google.protobuf.ByteString getUserLastNameBytes() { @@ -2379,36 +2799,37 @@ public java.lang.String getUserLastName() { } /** * optional string UserLastName = 11; + * @param value The userLastName to set. + * @return This builder for chaining. */ public Builder setUserLastName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } userLastName_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * optional string UserLastName = 11; + * @return This builder for chaining. */ public Builder clearUserLastName() { - bitField0_ = (bitField0_ & ~0x00000400); userLastName_ = getDefaultInstance().getUserLastName(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * optional string UserLastName = 11; + * @param value The bytes for userLastName to set. + * @return This builder for chaining. */ public Builder setUserLastNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } userLastName_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2416,12 +2837,14 @@ public Builder setUserLastNameBytes( private java.lang.Object userShortName_ = ""; /** * optional string UserShortName = 12; + * @return Whether the userShortName field is set. */ public boolean hasUserShortName() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional string UserShortName = 12; + * @return The userShortName. */ public java.lang.String getUserShortName() { java.lang.Object ref = userShortName_; @@ -2439,6 +2862,7 @@ public java.lang.String getUserShortName() { } /** * optional string UserShortName = 12; + * @return The bytes for userShortName. */ public com.google.protobuf.ByteString getUserShortNameBytes() { @@ -2455,36 +2879,37 @@ public java.lang.String getUserShortName() { } /** * optional string UserShortName = 12; + * @param value The userShortName to set. + * @return This builder for chaining. */ public Builder setUserShortName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } userShortName_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * optional string UserShortName = 12; + * @return This builder for chaining. */ public Builder clearUserShortName() { - bitField0_ = (bitField0_ & ~0x00000800); userShortName_ = getDefaultInstance().getUserShortName(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * optional string UserShortName = 12; + * @param value The bytes for userShortName to set. + * @return This builder for chaining. */ public Builder setUserShortNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } userShortName_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2492,27 +2917,35 @@ public Builder setUserShortNameBytes( private boolean isDefault_ ; /** * optional bool IsDefault = 13; + * @return Whether the isDefault field is set. */ + @java.lang.Override public boolean hasIsDefault() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional bool IsDefault = 13; + * @return The isDefault. */ + @java.lang.Override public boolean getIsDefault() { return isDefault_; } /** * optional bool IsDefault = 13; + * @param value The isDefault to set. + * @return This builder for chaining. */ public Builder setIsDefault(boolean value) { - bitField0_ |= 0x00001000; + isDefault_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } /** * optional bool IsDefault = 13; + * @return This builder for chaining. */ public Builder clearIsDefault() { bitField0_ = (bitField0_ & ~0x00001000); @@ -2521,69 +2954,84 @@ public Builder clearIsDefault() { return this; } - private Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType subjectType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType; + private int subjectType_ = 0; /** * optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14; + * @return Whether the subjectType field is set. */ - public boolean hasSubjectType() { - return ((bitField0_ & 0x00002000) == 0x00002000); + @java.lang.Override public boolean hasSubjectType() { + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14; + * @return The subjectType. */ + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() { - return subjectType_; + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.forNumber(subjectType_); + return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result; } /** * optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14; + * @param value The subjectType to set. + * @return This builder for chaining. */ public Builder setSubjectType(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; - subjectType_ = value; + subjectType_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14; + * @return This builder for chaining. */ public Builder clearSubjectType() { bitField0_ = (bitField0_ & ~0x00002000); - subjectType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType; + subjectType_ = 0; onChanged(); return this; } - private java.util.List usages_ = - java.util.Collections.emptyList(); + private com.google.protobuf.Internal.IntList usages_ = + emptyIntList(); private void ensureUsagesIsMutable() { - if (!((bitField0_ & 0x00004000) == 0x00004000)) { - usages_ = new java.util.ArrayList(usages_); + if (!((bitField0_ & 0x00004000) != 0)) { + usages_ = makeMutableCopy(usages_); bitField0_ |= 0x00004000; } } /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @return A list containing the usages. */ public java.util.List getUsagesList() { - return java.util.Collections.unmodifiableList(usages_); + return new com.google.protobuf.Internal.IntListAdapter< + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage>(usages_, usages_converter_); } /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @return The count of usages. */ public int getUsagesCount() { return usages_.size(); } /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @param index The index of the element to return. + * @return The usages at the given index. */ public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage getUsages(int index) { - return usages_.get(index); + return usages_converter_.convert(usages_.getInt(index)); } /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @param index The index to set the value at. + * @param value The usages to set. + * @return This builder for chaining. */ public Builder setUsages( int index, Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage value) { @@ -2591,74 +3039,87 @@ public Builder setUsages( throw new NullPointerException(); } ensureUsagesIsMutable(); - usages_.set(index, value); + usages_.setInt(index, value.getNumber()); onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @param value The usages to add. + * @return This builder for chaining. */ public Builder addUsages(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage value) { if (value == null) { throw new NullPointerException(); } ensureUsagesIsMutable(); - usages_.add(value); + usages_.addInt(value.getNumber()); onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @param values The usages to add. + * @return This builder for chaining. */ public Builder addAllUsages( java.lang.Iterable values) { ensureUsagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, usages_); + for (Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage value : values) { + usages_.addInt(value.getNumber()); + } onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15; + * @return This builder for chaining. */ public Builder clearUsages() { - usages_ = java.util.Collections.emptyList(); + usages_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } - private Diadoc.Api.Proto.CertificateInfoV2Protos.DssType dssType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType; + private int dssType_ = 0; /** * optional .Diadoc.Api.Proto.DssType DssType = 16; + * @return Whether the dssType field is set. */ - public boolean hasDssType() { - return ((bitField0_ & 0x00008000) == 0x00008000); + @java.lang.Override public boolean hasDssType() { + return ((bitField0_ & 0x00008000) != 0); } /** * optional .Diadoc.Api.Proto.DssType DssType = 16; + * @return The dssType. */ + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.DssType getDssType() { - return dssType_; + Diadoc.Api.Proto.CertificateInfoV2Protos.DssType result = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.forNumber(dssType_); + return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType : result; } /** * optional .Diadoc.Api.Proto.DssType DssType = 16; + * @param value The dssType to set. + * @return This builder for chaining. */ public Builder setDssType(Diadoc.Api.Proto.CertificateInfoV2Protos.DssType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; - dssType_ = value; + dssType_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.DssType DssType = 16; + * @return This builder for chaining. */ public Builder clearDssType() { bitField0_ = (bitField0_ & ~0x00008000); - dssType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType; + dssType_ = 0; onChanged(); return this; } @@ -2666,17 +3127,57 @@ public Builder clearDssType() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CertificateInfoV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CertificateInfoV2) + private static final Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 DEFAULT_INSTANCE; static { - defaultInstance = new CertificateInfoV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2(); + } + + public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateInfoV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CertificateInfoV2) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CertificateInfoV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CertificateInfoV2_fieldAccessorTable; @@ -2684,7 +3185,7 @@ public Builder clearDssType() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -2697,7 +3198,7 @@ public Builder clearDssType() { "onName\030\007 \001(\t\022\013\n\003Inn\030\010 \001(\t\022\025\n\rUserFirstNa" + "me\030\t \001(\t\022\026\n\016UserMiddleName\030\n \001(\t\022\024\n\014User" + "LastName\030\013 \001(\t\022\025\n\rUserShortName\030\014 \001(\t\022\021\n" + - "\tIsDefault\030\r \001(\010\022=\n\013SubjectType\030\016 \001(\0162(.", + "\tIsDefault\030\r \001(\010\022=\n\013SubjectType\030\016 \001(\0162(." + "Diadoc.Api.Proto.CertificateSubjectType\022" + "2\n\006Usages\030\017 \003(\0162\".Diadoc.Api.Proto.Certi" + "ficateUsage\022*\n\007DssType\030\020 \001(\0162\031.Diadoc.Ap" + @@ -2707,31 +3208,24 @@ public Builder clearDssType() { "urCertificateType\020\003*v\n\026CertificateSubjec" + "tType\022!\n\035UnknownCertificateSubjectType\020\000" + "\022\017\n\013LegalEntity\020\001\022\024\n\020IndividualEntity\020\002\022" + - "\022\n\016PhysicalPerson\020\003*\\\n\007DssType\022\022\n\016Unknow", + "\022\n\016PhysicalPerson\020\003*\\\n\007DssType\022\022\n\016Unknow" + "nDssType\020\000\022\t\n\005MyDss\020\001\022\017\n\013KSignServer\020\002\022\020" + "\n\014KSignRutoken\020\003\022\017\n\013KSignMobile\020\004*^\n\020Cer" + "tificateUsage\022\020\n\014UnknownUsage\020\000\022\032\n\026Kontu" + "rCertificateUsage\020\001\022\016\n\nTokenUsage\020\002\022\014\n\010D" + "ssUsage\020\003B\031B\027CertificateInfoV2Protos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_CertificateInfoV2_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CertificateInfoV2_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_CertificateInfoV2_descriptor, new java.lang.String[] { "Thumbprint", "Type", "ValidFrom", "ValidTo", "PrivateKeyValidFrom", "PrivateKeyValidTo", "OrganizationName", "Inn", "UserFirstName", "UserMiddleName", "UserLastName", "UserShortName", "IsDefault", "SubjectType", "Usages", "DssType", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/CertificateListProtos.java b/src/main/java/Diadoc/Api/Proto/CertificateListProtos.java index 0494c63c..772e5243 100644 --- a/src/main/java/Diadoc/Api/Proto/CertificateListProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CertificateListProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CertificateList.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class CertificateListProtos { private CertificateListProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateListProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CertificateListOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CertificateList) @@ -43,79 +60,30 @@ public static final class CertificateList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CertificateList) CertificateListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateList.class.getName()); + } // Use CertificateList.newBuilder() to construct. private CertificateList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CertificateList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CertificateList defaultInstance; - public static CertificateList getDefaultInstance() { - return defaultInstance; } - - public CertificateList getDefaultInstanceForType() { - return defaultInstance; + private CertificateList() { + certificates_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CertificateList( - 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)) { - certificates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - certificates_.add(input.readMessage(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.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)) { - certificates_ = java.util.Collections.unmodifiableList(certificates_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CertificateListProtos.internal_static_Diadoc_Api_Proto_CertificateList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CertificateListProtos.internal_static_Diadoc_Api_Proto_CertificateList_fieldAccessorTable @@ -123,32 +91,20 @@ private CertificateList( Diadoc.Api.Proto.CertificateListProtos.CertificateList.class, Diadoc.Api.Proto.CertificateListProtos.CertificateList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CertificateList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int CERTIFICATES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List certificates_; /** * repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; */ + @java.lang.Override public java.util.List getCertificatesList() { return certificates_; } /** * repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; */ + @java.lang.Override public java.util.List getCertificatesOrBuilderList() { return certificates_; @@ -156,27 +112,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; */ + @java.lang.Override public int getCertificatesCount() { return certificates_.size(); } /** * repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; */ + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 getCertificates(int index) { return certificates_.get(index); } /** * repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1; */ + @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2OrBuilder getCertificatesOrBuilder( int index) { return certificates_.get(index); } - private void initFields() { - certificates_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,18 +149,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < certificates_.size(); i++) { output.writeMessage(1, certificates_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -212,17 +169,53 @@ public int getSerializedSize() { .computeMessageSize(1, certificates_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CertificateListProtos.CertificateList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CertificateListProtos.CertificateList other = (Diadoc.Api.Proto.CertificateListProtos.CertificateList) obj; + + if (!getCertificatesList() + .equals(other.getCertificatesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCertificatesCount() > 0) { + hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getCertificatesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom( } public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CertificateListProtos.CertificateList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -301,6 +309,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CertificateListProtos.internal_static_Diadoc_Api_Proto_CertificateList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CertificateListProtos.internal_static_Diadoc_Api_Proto_CertificateList_fieldAccessorTable @@ -310,47 +319,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CertificateListProtos.CertificateList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getCertificatesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + certificates_ = null; certificatesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CertificateListProtos.internal_static_Diadoc_Api_Proto_CertificateList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CertificateListProtos.CertificateList getDefaultInstanceForType() { return Diadoc.Api.Proto.CertificateListProtos.CertificateList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CertificateListProtos.CertificateList build() { Diadoc.Api.Proto.CertificateListProtos.CertificateList result = buildPartial(); if (!result.isInitialized()) { @@ -359,11 +361,18 @@ public Diadoc.Api.Proto.CertificateListProtos.CertificateList build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CertificateListProtos.CertificateList buildPartial() { Diadoc.Api.Proto.CertificateListProtos.CertificateList result = new Diadoc.Api.Proto.CertificateListProtos.CertificateList(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.CertificateListProtos.CertificateList result) { if (certificatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,10 +380,13 @@ public Diadoc.Api.Proto.CertificateListProtos.CertificateList buildPartial() { } else { result.certificates_ = certificatesBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.CertificateListProtos.CertificateList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CertificateListProtos.CertificateList) { return mergeFrom((Diadoc.Api.Proto.CertificateListProtos.CertificateList)other); @@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.CertificateListProtos.CertificateList } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getCertificatesCount(); i++) { if (!getCertificates(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CertificateListProtos.CertificateList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 m = + input.readMessage( + Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.parser(), + extensionRegistry); + if (certificatesBuilder_ == null) { + ensureCertificatesIsMutable(); + certificates_.add(m); + } else { + certificatesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CertificateListProtos.CertificateList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -448,7 +488,7 @@ public Builder mergeFrom( private java.util.List certificates_ = java.util.Collections.emptyList(); private void ensureCertificatesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { certificates_ = new java.util.ArrayList(certificates_); bitField0_ |= 0x00000001; } @@ -677,7 +717,7 @@ public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.Builder addCer certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2, Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.Builder, Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2OrBuilder>( certificates_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); certificates_ = null; @@ -688,17 +728,57 @@ public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.Builder addCer // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CertificateList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CertificateList) + private static final Diadoc.Api.Proto.CertificateListProtos.CertificateList DEFAULT_INSTANCE; static { - defaultInstance = new CertificateList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CertificateListProtos.CertificateList(); + } + + public static Diadoc.Api.Proto.CertificateListProtos.CertificateList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CertificateListProtos.CertificateList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CertificateList) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CertificateList_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CertificateList_fieldAccessorTable; @@ -706,7 +786,7 @@ public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.Builder addCer getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -716,25 +796,18 @@ public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.Builder addCer ".Proto.CertificateInfoV2B\027B\025CertificateL" + "istProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.CertificateInfoV2Protos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_CertificateList_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CertificateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_CertificateList_descriptor, new java.lang.String[] { "Certificates", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.CertificateInfoV2Protos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Certificates/CertificateInfoV2Protos.java b/src/main/java/Diadoc/Api/Proto/Certificates/CertificateInfoV2Protos.java index 80c9203d..00c4b7c4 100644 --- a/src/main/java/Diadoc/Api/Proto/Certificates/CertificateInfoV2Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Certificates/CertificateInfoV2Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Certificates/CertificateInfoV2.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Certificates; public final class CertificateInfoV2Protos { private CertificateInfoV2Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateInfoV2Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Certificates.CertificateType} @@ -16,21 +33,30 @@ public enum CertificateType /** * Unknown = 0; */ - Unknown(0, 0), + Unknown(0), /** * Token = 1; */ - Token(1, 1), + Token(1), /** * Dss = 2; */ - Dss(2, 2), + Dss(2), /** * KonturCertificate = 3; */ - KonturCertificate(3, 3), + KonturCertificate(3), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateType.class.getName()); + } /** * Unknown = 0; */ @@ -49,9 +75,25 @@ public enum CertificateType public static final int KonturCertificate_VALUE = 3; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static CertificateType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CertificateType forNumber(int value) { switch (value) { case 0: return Unknown; case 1: return Token; @@ -65,17 +107,17 @@ public static CertificateType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + CertificateType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CertificateType findValueByNumber(int number) { - return CertificateType.valueOf(number); + return CertificateType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -97,11 +139,9 @@ public static CertificateType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private CertificateType(int index, int value) { - this.index = index; + private CertificateType(int value) { this.value = value; } @@ -116,21 +156,30 @@ public enum CertificateSubjectType /** * UnknownCertificateSubjectType = 0; */ - UnknownCertificateSubjectType(0, 0), + UnknownCertificateSubjectType(0), /** * LegalEntity = 1; */ - LegalEntity(1, 1), + LegalEntity(1), /** * IndividualEntity = 2; */ - IndividualEntity(2, 2), + IndividualEntity(2), /** * PhysicalPerson = 3; */ - PhysicalPerson(3, 3), + PhysicalPerson(3), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateSubjectType.class.getName()); + } /** * UnknownCertificateSubjectType = 0; */ @@ -149,9 +198,25 @@ public enum CertificateSubjectType public static final int PhysicalPerson_VALUE = 3; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static CertificateSubjectType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CertificateSubjectType forNumber(int value) { switch (value) { case 0: return UnknownCertificateSubjectType; case 1: return LegalEntity; @@ -165,17 +230,17 @@ public static CertificateSubjectType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + CertificateSubjectType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CertificateSubjectType findValueByNumber(int number) { - return CertificateSubjectType.valueOf(number); + return CertificateSubjectType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -197,11 +262,9 @@ public static CertificateSubjectType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private CertificateSubjectType(int index, int value) { - this.index = index; + private CertificateSubjectType(int value) { this.value = value; } @@ -216,25 +279,34 @@ public enum DssCertificateType /** * UnknownDssType = 0; */ - UnknownDssType(0, 0), + UnknownDssType(0), /** * MyDss = 1; */ - MyDss(1, 1), + MyDss(1), /** * KSignServer = 2; */ - KSignServer(2, 2), + KSignServer(2), /** * KSignRutoken = 3; */ - KSignRutoken(3, 3), + KSignRutoken(3), /** * KSignMobile = 4; */ - KSignMobile(4, 4), + KSignMobile(4), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssCertificateType.class.getName()); + } /** * UnknownDssType = 0; */ @@ -257,9 +329,25 @@ public enum DssCertificateType public static final int KSignMobile_VALUE = 4; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static DssCertificateType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DssCertificateType forNumber(int value) { switch (value) { case 0: return UnknownDssType; case 1: return MyDss; @@ -274,17 +362,17 @@ public static DssCertificateType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + DssCertificateType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DssCertificateType findValueByNumber(int number) { - return DssCertificateType.valueOf(number); + return DssCertificateType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -306,11 +394,9 @@ public static DssCertificateType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private DssCertificateType(int index, int value) { - this.index = index; + private DssCertificateType(int value) { this.value = value; } @@ -325,21 +411,30 @@ public enum CertificateUsage /** * UnknownUsage = 0; */ - UnknownUsage(0, 0), + UnknownUsage(0), /** * KonturCertificateUsage = 1; */ - KonturCertificateUsage(1, 1), + KonturCertificateUsage(1), /** * TokenUsage = 2; */ - TokenUsage(2, 2), + TokenUsage(2), /** * DssUsage = 3; */ - DssUsage(3, 3), + DssUsage(3), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateUsage.class.getName()); + } /** * UnknownUsage = 0; */ @@ -358,9 +453,25 @@ public enum CertificateUsage public static final int DssUsage_VALUE = 3; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static CertificateUsage valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CertificateUsage forNumber(int value) { switch (value) { case 0: return UnknownUsage; case 1: return KonturCertificateUsage; @@ -374,17 +485,17 @@ public static CertificateUsage valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + CertificateUsage> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CertificateUsage findValueByNumber(int number) { - return CertificateUsage.valueOf(number); + return CertificateUsage.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -406,11 +517,9 @@ public static CertificateUsage valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private CertificateUsage(int index, int value) { - this.index = index; + private CertificateUsage(int value) { this.value = value; } @@ -423,184 +532,225 @@ public interface CertificateInfoV2OrBuilder extends /** * required string Thumbprint = 1; + * @return Whether the thumbprint field is set. */ boolean hasThumbprint(); /** * required string Thumbprint = 1; + * @return The thumbprint. */ java.lang.String getThumbprint(); /** * required string Thumbprint = 1; + * @return The bytes for thumbprint. */ com.google.protobuf.ByteString getThumbprintBytes(); /** * required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2; + * @return Whether the type field is set. */ boolean hasType(); /** * required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2; + * @return The type. */ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType getType(); /** * optional sfixed64 ValidFrom = 3; + * @return Whether the validFrom field is set. */ boolean hasValidFrom(); /** * optional sfixed64 ValidFrom = 3; + * @return The validFrom. */ long getValidFrom(); /** * optional sfixed64 ValidTo = 4; + * @return Whether the validTo field is set. */ boolean hasValidTo(); /** * optional sfixed64 ValidTo = 4; + * @return The validTo. */ long getValidTo(); /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return Whether the privateKeyValidFrom field is set. */ boolean hasPrivateKeyValidFrom(); /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return The privateKeyValidFrom. */ long getPrivateKeyValidFrom(); /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return Whether the privateKeyValidTo field is set. */ boolean hasPrivateKeyValidTo(); /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return The privateKeyValidTo. */ long getPrivateKeyValidTo(); /** * optional string OrganizationName = 7; + * @return Whether the organizationName field is set. */ boolean hasOrganizationName(); /** * optional string OrganizationName = 7; + * @return The organizationName. */ java.lang.String getOrganizationName(); /** * optional string OrganizationName = 7; + * @return The bytes for organizationName. */ com.google.protobuf.ByteString getOrganizationNameBytes(); /** * optional string Inn = 8; + * @return Whether the inn field is set. */ boolean hasInn(); /** * optional string Inn = 8; + * @return The inn. */ java.lang.String getInn(); /** * optional string Inn = 8; + * @return The bytes for inn. */ com.google.protobuf.ByteString getInnBytes(); /** * optional string UserFirstName = 9; + * @return Whether the userFirstName field is set. */ boolean hasUserFirstName(); /** * optional string UserFirstName = 9; + * @return The userFirstName. */ java.lang.String getUserFirstName(); /** * optional string UserFirstName = 9; + * @return The bytes for userFirstName. */ com.google.protobuf.ByteString getUserFirstNameBytes(); /** * optional string UserMiddleName = 10; + * @return Whether the userMiddleName field is set. */ boolean hasUserMiddleName(); /** * optional string UserMiddleName = 10; + * @return The userMiddleName. */ java.lang.String getUserMiddleName(); /** * optional string UserMiddleName = 10; + * @return The bytes for userMiddleName. */ com.google.protobuf.ByteString getUserMiddleNameBytes(); /** * optional string UserLastName = 11; + * @return Whether the userLastName field is set. */ boolean hasUserLastName(); /** * optional string UserLastName = 11; + * @return The userLastName. */ java.lang.String getUserLastName(); /** * optional string UserLastName = 11; + * @return The bytes for userLastName. */ com.google.protobuf.ByteString getUserLastNameBytes(); /** * optional string UserShortName = 12; + * @return Whether the userShortName field is set. */ boolean hasUserShortName(); /** * optional string UserShortName = 12; + * @return The userShortName. */ java.lang.String getUserShortName(); /** * optional string UserShortName = 12; + * @return The bytes for userShortName. */ com.google.protobuf.ByteString getUserShortNameBytes(); /** * optional bool IsDefault = 13; + * @return Whether the isDefault field is set. */ boolean hasIsDefault(); /** * optional bool IsDefault = 13; + * @return The isDefault. */ boolean getIsDefault(); /** * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14; + * @return Whether the subjectType field is set. */ boolean hasSubjectType(); /** * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14; + * @return The subjectType. */ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getSubjectType(); /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @return A list containing the usages. */ java.util.List getUsagesList(); /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @return The count of usages. */ int getUsagesCount(); /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @param index The index of the element to return. + * @return The usages at the given index. */ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage getUsages(int index); /** * optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16; + * @return Whether the dssType field is set. */ boolean hasDssType(); /** * optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16; + * @return The dssType. */ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType getDssType(); } @@ -611,204 +761,40 @@ public static final class CertificateInfoV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Certificates.CertificateInfoV2) CertificateInfoV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateInfoV2.class.getName()); + } // Use CertificateInfoV2.newBuilder() to construct. private CertificateInfoV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CertificateInfoV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CertificateInfoV2 defaultInstance; - public static CertificateInfoV2 getDefaultInstance() { - return defaultInstance; } - - public CertificateInfoV2 getDefaultInstanceForType() { - return defaultInstance; + private CertificateInfoV2() { + thumbprint_ = ""; + type_ = 0; + organizationName_ = ""; + inn_ = ""; + userFirstName_ = ""; + userMiddleName_ = ""; + userLastName_ = ""; + userShortName_ = ""; + subjectType_ = 0; + usages_ = emptyIntList(); + dssType_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CertificateInfoV2( - 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; - thumbprint_ = bs; - break; - } - case 16: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType value = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - type_ = value; - } - break; - } - case 25: { - bitField0_ |= 0x00000004; - validFrom_ = input.readSFixed64(); - break; - } - case 33: { - bitField0_ |= 0x00000008; - validTo_ = input.readSFixed64(); - break; - } - case 41: { - bitField0_ |= 0x00000010; - privateKeyValidFrom_ = input.readSFixed64(); - break; - } - case 49: { - bitField0_ |= 0x00000020; - privateKeyValidTo_ = input.readSFixed64(); - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - organizationName_ = bs; - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - inn_ = bs; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - userFirstName_ = bs; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - userMiddleName_ = bs; - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - userLastName_ = bs; - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000800; - userShortName_ = bs; - break; - } - case 104: { - bitField0_ |= 0x00001000; - isDefault_ = input.readBool(); - break; - } - case 112: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType value = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(14, rawValue); - } else { - bitField0_ |= 0x00002000; - subjectType_ = value; - } - break; - } - case 120: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage value = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(15, rawValue); - } else { - if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { - usages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00004000; - } - usages_.add(value); - } - break; - } - case 122: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage value = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(15, rawValue); - } else { - if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { - usages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00004000; - } - usages_.add(value); - } - } - input.popLimit(oldLimit); - break; - } - case 128: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType value = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(16, rawValue); - } else { - bitField0_ |= 0x00004000; - dssType_ = value; - } - 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_ & 0x00004000) == 0x00004000)) { - usages_ = java.util.Collections.unmodifiableList(usages_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_fieldAccessorTable @@ -816,33 +802,23 @@ private CertificateInfoV2( Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.class, Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CertificateInfoV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateInfoV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int THUMBPRINT_FIELD_NUMBER = 1; - private java.lang.Object thumbprint_; + @SuppressWarnings("serial") + private volatile java.lang.Object thumbprint_ = ""; /** * required string Thumbprint = 1; + * @return Whether the thumbprint field is set. */ + @java.lang.Override public boolean hasThumbprint() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Thumbprint = 1; + * @return The thumbprint. */ + @java.lang.Override public java.lang.String getThumbprint() { java.lang.Object ref = thumbprint_; if (ref instanceof java.lang.String) { @@ -859,7 +835,9 @@ public java.lang.String getThumbprint() { } /** * required string Thumbprint = 1; + * @return The bytes for thumbprint. */ + @java.lang.Override public com.google.protobuf.ByteString getThumbprintBytes() { java.lang.Object ref = thumbprint_; @@ -875,91 +853,115 @@ public java.lang.String getThumbprint() { } public static final int TYPE_FIELD_NUMBER = 2; - private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType type_; + private int type_ = 0; /** * required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2; + * @return Whether the type field is set. */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2; + * @return The type. */ - public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType getType() { - return type_; + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType getType() { + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.forNumber(type_); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown : result; } public static final int VALIDFROM_FIELD_NUMBER = 3; - private long validFrom_; + private long validFrom_ = 0L; /** * optional sfixed64 ValidFrom = 3; + * @return Whether the validFrom field is set. */ + @java.lang.Override public boolean hasValidFrom() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional sfixed64 ValidFrom = 3; + * @return The validFrom. */ + @java.lang.Override public long getValidFrom() { return validFrom_; } public static final int VALIDTO_FIELD_NUMBER = 4; - private long validTo_; + private long validTo_ = 0L; /** * optional sfixed64 ValidTo = 4; + * @return Whether the validTo field is set. */ + @java.lang.Override public boolean hasValidTo() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional sfixed64 ValidTo = 4; + * @return The validTo. */ + @java.lang.Override public long getValidTo() { return validTo_; } public static final int PRIVATEKEYVALIDFROM_FIELD_NUMBER = 5; - private long privateKeyValidFrom_; + private long privateKeyValidFrom_ = 0L; /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return Whether the privateKeyValidFrom field is set. */ + @java.lang.Override public boolean hasPrivateKeyValidFrom() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return The privateKeyValidFrom. */ + @java.lang.Override public long getPrivateKeyValidFrom() { return privateKeyValidFrom_; } public static final int PRIVATEKEYVALIDTO_FIELD_NUMBER = 6; - private long privateKeyValidTo_; + private long privateKeyValidTo_ = 0L; /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return Whether the privateKeyValidTo field is set. */ + @java.lang.Override public boolean hasPrivateKeyValidTo() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return The privateKeyValidTo. */ + @java.lang.Override public long getPrivateKeyValidTo() { return privateKeyValidTo_; } public static final int ORGANIZATIONNAME_FIELD_NUMBER = 7; - private java.lang.Object organizationName_; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationName_ = ""; /** * optional string OrganizationName = 7; + * @return Whether the organizationName field is set. */ + @java.lang.Override public boolean hasOrganizationName() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string OrganizationName = 7; + * @return The organizationName. */ + @java.lang.Override public java.lang.String getOrganizationName() { java.lang.Object ref = organizationName_; if (ref instanceof java.lang.String) { @@ -976,7 +978,9 @@ public java.lang.String getOrganizationName() { } /** * optional string OrganizationName = 7; + * @return The bytes for organizationName. */ + @java.lang.Override public com.google.protobuf.ByteString getOrganizationNameBytes() { java.lang.Object ref = organizationName_; @@ -992,16 +996,21 @@ public java.lang.String getOrganizationName() { } public static final int INN_FIELD_NUMBER = 8; - private java.lang.Object inn_; + @SuppressWarnings("serial") + private volatile java.lang.Object inn_ = ""; /** * optional string Inn = 8; + * @return Whether the inn field is set. */ + @java.lang.Override public boolean hasInn() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional string Inn = 8; + * @return The inn. */ + @java.lang.Override public java.lang.String getInn() { java.lang.Object ref = inn_; if (ref instanceof java.lang.String) { @@ -1018,7 +1027,9 @@ public java.lang.String getInn() { } /** * optional string Inn = 8; + * @return The bytes for inn. */ + @java.lang.Override public com.google.protobuf.ByteString getInnBytes() { java.lang.Object ref = inn_; @@ -1034,16 +1045,21 @@ public java.lang.String getInn() { } public static final int USERFIRSTNAME_FIELD_NUMBER = 9; - private java.lang.Object userFirstName_; + @SuppressWarnings("serial") + private volatile java.lang.Object userFirstName_ = ""; /** * optional string UserFirstName = 9; + * @return Whether the userFirstName field is set. */ + @java.lang.Override public boolean hasUserFirstName() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional string UserFirstName = 9; + * @return The userFirstName. */ + @java.lang.Override public java.lang.String getUserFirstName() { java.lang.Object ref = userFirstName_; if (ref instanceof java.lang.String) { @@ -1060,7 +1076,9 @@ public java.lang.String getUserFirstName() { } /** * optional string UserFirstName = 9; + * @return The bytes for userFirstName. */ + @java.lang.Override public com.google.protobuf.ByteString getUserFirstNameBytes() { java.lang.Object ref = userFirstName_; @@ -1076,16 +1094,21 @@ public java.lang.String getUserFirstName() { } public static final int USERMIDDLENAME_FIELD_NUMBER = 10; - private java.lang.Object userMiddleName_; + @SuppressWarnings("serial") + private volatile java.lang.Object userMiddleName_ = ""; /** * optional string UserMiddleName = 10; + * @return Whether the userMiddleName field is set. */ + @java.lang.Override public boolean hasUserMiddleName() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional string UserMiddleName = 10; + * @return The userMiddleName. */ + @java.lang.Override public java.lang.String getUserMiddleName() { java.lang.Object ref = userMiddleName_; if (ref instanceof java.lang.String) { @@ -1102,7 +1125,9 @@ public java.lang.String getUserMiddleName() { } /** * optional string UserMiddleName = 10; + * @return The bytes for userMiddleName. */ + @java.lang.Override public com.google.protobuf.ByteString getUserMiddleNameBytes() { java.lang.Object ref = userMiddleName_; @@ -1118,16 +1143,21 @@ public java.lang.String getUserMiddleName() { } public static final int USERLASTNAME_FIELD_NUMBER = 11; - private java.lang.Object userLastName_; + @SuppressWarnings("serial") + private volatile java.lang.Object userLastName_ = ""; /** * optional string UserLastName = 11; + * @return Whether the userLastName field is set. */ + @java.lang.Override public boolean hasUserLastName() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional string UserLastName = 11; + * @return The userLastName. */ + @java.lang.Override public java.lang.String getUserLastName() { java.lang.Object ref = userLastName_; if (ref instanceof java.lang.String) { @@ -1144,7 +1174,9 @@ public java.lang.String getUserLastName() { } /** * optional string UserLastName = 11; + * @return The bytes for userLastName. */ + @java.lang.Override public com.google.protobuf.ByteString getUserLastNameBytes() { java.lang.Object ref = userLastName_; @@ -1160,16 +1192,21 @@ public java.lang.String getUserLastName() { } public static final int USERSHORTNAME_FIELD_NUMBER = 12; - private java.lang.Object userShortName_; + @SuppressWarnings("serial") + private volatile java.lang.Object userShortName_ = ""; /** * optional string UserShortName = 12; + * @return Whether the userShortName field is set. */ + @java.lang.Override public boolean hasUserShortName() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional string UserShortName = 12; + * @return The userShortName. */ + @java.lang.Override public java.lang.String getUserShortName() { java.lang.Object ref = userShortName_; if (ref instanceof java.lang.String) { @@ -1186,7 +1223,9 @@ public java.lang.String getUserShortName() { } /** * optional string UserShortName = 12; + * @return The bytes for userShortName. */ + @java.lang.Override public com.google.protobuf.ByteString getUserShortNameBytes() { java.lang.Object ref = userShortName_; @@ -1202,90 +1241,101 @@ public java.lang.String getUserShortName() { } public static final int ISDEFAULT_FIELD_NUMBER = 13; - private boolean isDefault_; + private boolean isDefault_ = false; /** * optional bool IsDefault = 13; + * @return Whether the isDefault field is set. */ + @java.lang.Override public boolean hasIsDefault() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional bool IsDefault = 13; + * @return The isDefault. */ + @java.lang.Override public boolean getIsDefault() { return isDefault_; } public static final int SUBJECTTYPE_FIELD_NUMBER = 14; - private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType subjectType_; + private int subjectType_ = 0; /** * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14; + * @return Whether the subjectType field is set. */ - public boolean hasSubjectType() { - return ((bitField0_ & 0x00002000) == 0x00002000); + @java.lang.Override public boolean hasSubjectType() { + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14; + * @return The subjectType. */ - public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() { - return subjectType_; + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() { + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.forNumber(subjectType_); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result; } public static final int USAGES_FIELD_NUMBER = 15; - private java.util.List usages_; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList usages_; + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage> usages_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage>() { + public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage convert(int from) { + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage.forNumber(from); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage.UnknownUsage : result; + } + }; /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @return A list containing the usages. */ + @java.lang.Override public java.util.List getUsagesList() { - return usages_; + return new com.google.protobuf.Internal.IntListAdapter< + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage>(usages_, usages_converter_); } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @return The count of usages. */ + @java.lang.Override public int getUsagesCount() { return usages_.size(); } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @param index The index of the element to return. + * @return The usages at the given index. */ + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage getUsages(int index) { - return usages_.get(index); + return usages_converter_.convert(usages_.getInt(index)); } public static final int DSSTYPE_FIELD_NUMBER = 16; - private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType dssType_; + private int dssType_ = 0; /** * optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16; + * @return Whether the dssType field is set. */ - public boolean hasDssType() { - return ((bitField0_ & 0x00004000) == 0x00004000); + @java.lang.Override public boolean hasDssType() { + return ((bitField0_ & 0x00004000) != 0); } /** * optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16; + * @return The dssType. */ - public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType getDssType() { - return dssType_; + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType getDssType() { + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.forNumber(dssType_); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType : result; } - private void initFields() { - thumbprint_ = ""; - type_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown; - validFrom_ = 0L; - validTo_ = 0L; - privateKeyValidFrom_ = 0L; - privateKeyValidTo_ = 0L; - organizationName_ = ""; - inn_ = ""; - userFirstName_ = ""; - userMiddleName_ = ""; - userLastName_ = ""; - userShortName_ = ""; - isDefault_ = false; - subjectType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType; - usages_ = java.util.Collections.emptyList(); - dssType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1303,147 +1353,312 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getThumbprintBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, thumbprint_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, type_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, type_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeSFixed64(3, validFrom_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeSFixed64(4, validTo_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeSFixed64(5, privateKeyValidFrom_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeSFixed64(6, privateKeyValidTo_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getOrganizationNameBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, organizationName_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getInnBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, inn_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getUserFirstNameBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, userFirstName_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(10, getUserMiddleNameBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, userMiddleName_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, getUserLastNameBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, userLastName_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(12, getUserShortNameBytes()); + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, userShortName_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(13, isDefault_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeEnum(14, subjectType_.getNumber()); + if (((bitField0_ & 0x00002000) != 0)) { + output.writeEnum(14, subjectType_); } for (int i = 0; i < usages_.size(); i++) { - output.writeEnum(15, usages_.get(i).getNumber()); + output.writeEnum(15, usages_.getInt(i)); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeEnum(16, dssType_.getNumber()); + if (((bitField0_ & 0x00004000) != 0)) { + output.writeEnum(16, dssType_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getThumbprintBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, thumbprint_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_.getNumber()); + .computeEnumSize(2, type_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(3, validFrom_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(4, validTo_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(5, privateKeyValidFrom_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(6, privateKeyValidTo_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getOrganizationNameBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, organizationName_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getInnBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, inn_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getUserFirstNameBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, userFirstName_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getUserMiddleNameBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, userMiddleName_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getUserLastNameBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, userLastName_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getUserShortNameBytes()); + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, userShortName_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, isDefault_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, subjectType_.getNumber()); + .computeEnumSize(14, subjectType_); } { int dataSize = 0; for (int i = 0; i < usages_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(usages_.get(i).getNumber()); + .computeEnumSizeNoTag(usages_.getInt(i)); } size += dataSize; size += 1 * usages_.size(); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(16, dssType_.getNumber()); + .computeEnumSize(16, dssType_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 other = (Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2) obj; + + if (hasThumbprint() != other.hasThumbprint()) return false; + if (hasThumbprint()) { + if (!getThumbprint() + .equals(other.getThumbprint())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (type_ != other.type_) return false; + } + if (hasValidFrom() != other.hasValidFrom()) return false; + if (hasValidFrom()) { + if (getValidFrom() + != other.getValidFrom()) return false; + } + if (hasValidTo() != other.hasValidTo()) return false; + if (hasValidTo()) { + if (getValidTo() + != other.getValidTo()) return false; + } + if (hasPrivateKeyValidFrom() != other.hasPrivateKeyValidFrom()) return false; + if (hasPrivateKeyValidFrom()) { + if (getPrivateKeyValidFrom() + != other.getPrivateKeyValidFrom()) return false; + } + if (hasPrivateKeyValidTo() != other.hasPrivateKeyValidTo()) return false; + if (hasPrivateKeyValidTo()) { + if (getPrivateKeyValidTo() + != other.getPrivateKeyValidTo()) return false; + } + if (hasOrganizationName() != other.hasOrganizationName()) return false; + if (hasOrganizationName()) { + if (!getOrganizationName() + .equals(other.getOrganizationName())) return false; + } + if (hasInn() != other.hasInn()) return false; + if (hasInn()) { + if (!getInn() + .equals(other.getInn())) return false; + } + if (hasUserFirstName() != other.hasUserFirstName()) return false; + if (hasUserFirstName()) { + if (!getUserFirstName() + .equals(other.getUserFirstName())) return false; + } + if (hasUserMiddleName() != other.hasUserMiddleName()) return false; + if (hasUserMiddleName()) { + if (!getUserMiddleName() + .equals(other.getUserMiddleName())) return false; + } + if (hasUserLastName() != other.hasUserLastName()) return false; + if (hasUserLastName()) { + if (!getUserLastName() + .equals(other.getUserLastName())) return false; + } + if (hasUserShortName() != other.hasUserShortName()) return false; + if (hasUserShortName()) { + if (!getUserShortName() + .equals(other.getUserShortName())) return false; + } + if (hasIsDefault() != other.hasIsDefault()) return false; + if (hasIsDefault()) { + if (getIsDefault() + != other.getIsDefault()) return false; + } + if (hasSubjectType() != other.hasSubjectType()) return false; + if (hasSubjectType()) { + if (subjectType_ != other.subjectType_) return false; + } + if (!usages_.equals(other.usages_)) return false; + if (hasDssType() != other.hasDssType()) return false; + if (hasDssType()) { + if (dssType_ != other.dssType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasThumbprint()) { + hash = (37 * hash) + THUMBPRINT_FIELD_NUMBER; + hash = (53 * hash) + getThumbprint().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + } + if (hasValidFrom()) { + hash = (37 * hash) + VALIDFROM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValidFrom()); + } + if (hasValidTo()) { + hash = (37 * hash) + VALIDTO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValidTo()); + } + if (hasPrivateKeyValidFrom()) { + hash = (37 * hash) + PRIVATEKEYVALIDFROM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPrivateKeyValidFrom()); + } + if (hasPrivateKeyValidTo()) { + hash = (37 * hash) + PRIVATEKEYVALIDTO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPrivateKeyValidTo()); + } + if (hasOrganizationName()) { + hash = (37 * hash) + ORGANIZATIONNAME_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationName().hashCode(); + } + if (hasInn()) { + hash = (37 * hash) + INN_FIELD_NUMBER; + hash = (53 * hash) + getInn().hashCode(); + } + if (hasUserFirstName()) { + hash = (37 * hash) + USERFIRSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getUserFirstName().hashCode(); + } + if (hasUserMiddleName()) { + hash = (37 * hash) + USERMIDDLENAME_FIELD_NUMBER; + hash = (53 * hash) + getUserMiddleName().hashCode(); + } + if (hasUserLastName()) { + hash = (37 * hash) + USERLASTNAME_FIELD_NUMBER; + hash = (53 * hash) + getUserLastName().hashCode(); + } + if (hasUserShortName()) { + hash = (37 * hash) + USERSHORTNAME_FIELD_NUMBER; + hash = (53 * hash) + getUserShortName().hashCode(); + } + if (hasIsDefault()) { + hash = (37 * hash) + ISDEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDefault()); + } + if (hasSubjectType()) { + hash = (37 * hash) + SUBJECTTYPE_FIELD_NUMBER; + hash = (53 * hash) + subjectType_; + } + if (getUsagesCount() > 0) { + hash = (37 * hash) + USAGES_FIELD_NUMBER; + hash = (53 * hash) + usages_.hashCode(); + } + if (hasDssType()) { + hash = (37 * hash) + DSSTYPE_FIELD_NUMBER; + hash = (53 * hash) + dssType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1467,42 +1682,57 @@ public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateI } public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1522,6 +1752,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_fieldAccessorTable @@ -1531,72 +1762,50 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; thumbprint_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - type_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown; - bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; validFrom_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); validTo_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); privateKeyValidFrom_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); privateKeyValidTo_ = 0L; - bitField0_ = (bitField0_ & ~0x00000020); organizationName_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); inn_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); userFirstName_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); userMiddleName_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); userLastName_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); userShortName_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); isDefault_ = false; - bitField0_ = (bitField0_ & ~0x00001000); - subjectType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType; - bitField0_ = (bitField0_ & ~0x00002000); - usages_ = java.util.Collections.emptyList(); + subjectType_ = 0; + usages_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00004000); - dssType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType; - bitField0_ = (bitField0_ & ~0x00008000); + dssType_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 build() { Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 result = buildPartial(); if (!result.isInitialized()) { @@ -1605,80 +1814,90 @@ public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 b return result; } + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 buildPartial() { Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 result = new Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 result) { + if (((bitField0_ & 0x00004000) != 0)) { + usages_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.usages_ = usages_; + } + + private void buildPartial0(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.thumbprint_ = thumbprint_; to_bitField0_ |= 0x00000001; } - result.thumbprint_ = thumbprint_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; to_bitField0_ |= 0x00000002; } - result.type_ = type_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validFrom_ = validFrom_; to_bitField0_ |= 0x00000004; } - result.validFrom_ = validFrom_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validTo_ = validTo_; to_bitField0_ |= 0x00000008; } - result.validTo_ = validTo_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.privateKeyValidFrom_ = privateKeyValidFrom_; to_bitField0_ |= 0x00000010; } - result.privateKeyValidFrom_ = privateKeyValidFrom_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.privateKeyValidTo_ = privateKeyValidTo_; to_bitField0_ |= 0x00000020; } - result.privateKeyValidTo_ = privateKeyValidTo_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.organizationName_ = organizationName_; to_bitField0_ |= 0x00000040; } - result.organizationName_ = organizationName_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.inn_ = inn_; to_bitField0_ |= 0x00000080; } - result.inn_ = inn_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.userFirstName_ = userFirstName_; to_bitField0_ |= 0x00000100; } - result.userFirstName_ = userFirstName_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.userMiddleName_ = userMiddleName_; to_bitField0_ |= 0x00000200; } - result.userMiddleName_ = userMiddleName_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.userLastName_ = userLastName_; to_bitField0_ |= 0x00000400; } - result.userLastName_ = userLastName_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.userShortName_ = userShortName_; to_bitField0_ |= 0x00000800; } - result.userShortName_ = userShortName_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + if (((from_bitField0_ & 0x00001000) != 0)) { + result.isDefault_ = isDefault_; to_bitField0_ |= 0x00001000; } - result.isDefault_ = isDefault_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.subjectType_ = subjectType_; to_bitField0_ |= 0x00002000; } - result.subjectType_ = subjectType_; - if (((bitField0_ & 0x00004000) == 0x00004000)) { - usages_ = java.util.Collections.unmodifiableList(usages_); - bitField0_ = (bitField0_ & ~0x00004000); - } - result.usages_ = usages_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00008000) != 0)) { + result.dssType_ = dssType_; to_bitField0_ |= 0x00004000; } - result.dssType_ = dssType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2) { return mergeFrom((Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2)other); @@ -1691,8 +1910,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 other) { if (other == Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.getDefaultInstance()) return this; if (other.hasThumbprint()) { - bitField0_ |= 0x00000001; thumbprint_ = other.thumbprint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasType()) { @@ -1711,33 +1930,33 @@ public Builder mergeFrom(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.C setPrivateKeyValidTo(other.getPrivateKeyValidTo()); } if (other.hasOrganizationName()) { - bitField0_ |= 0x00000040; organizationName_ = other.organizationName_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasInn()) { - bitField0_ |= 0x00000080; inn_ = other.inn_; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasUserFirstName()) { - bitField0_ |= 0x00000100; userFirstName_ = other.userFirstName_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasUserMiddleName()) { - bitField0_ |= 0x00000200; userMiddleName_ = other.userMiddleName_; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasUserLastName()) { - bitField0_ |= 0x00000400; userLastName_ = other.userLastName_; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasUserShortName()) { - bitField0_ |= 0x00000800; userShortName_ = other.userShortName_; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasIsDefault()) { @@ -1760,36 +1979,175 @@ public Builder mergeFrom(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.C setDssType(other.getDssType()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasThumbprint()) { - return false; } if (!hasType()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + thumbprint_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType tmpValue = + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + type_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + case 25: { + validFrom_ = input.readSFixed64(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 33: { + validTo_ = input.readSFixed64(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 41: { + privateKeyValidFrom_ = input.readSFixed64(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 49: { + privateKeyValidTo_ = input.readSFixed64(); + bitField0_ |= 0x00000020; + break; + } // case 49 + case 58: { + organizationName_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + inn_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + userFirstName_ = input.readBytes(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + userMiddleName_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + userLastName_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + userShortName_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: { + isDefault_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType tmpValue = + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(14, tmpRaw); + } else { + subjectType_ = tmpRaw; + bitField0_ |= 0x00002000; + } + break; + } // case 112 + case 120: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage tmpValue = + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(15, tmpRaw); + } else { + ensureUsagesIsMutable(); + usages_.addInt(tmpRaw); + } + break; + } // case 120 + case 122: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage tmpValue = + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(15, tmpRaw); + } else { + ensureUsagesIsMutable(); + usages_.addInt(tmpRaw); + } + } + input.popLimit(oldLimit); + break; + } // case 122 + case 128: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType tmpValue = + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(16, tmpRaw); + } else { + dssType_ = tmpRaw; + bitField0_ |= 0x00008000; + } + break; + } // case 128 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1797,12 +2155,14 @@ public Builder mergeFrom( private java.lang.Object thumbprint_ = ""; /** * required string Thumbprint = 1; + * @return Whether the thumbprint field is set. */ public boolean hasThumbprint() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Thumbprint = 1; + * @return The thumbprint. */ public java.lang.String getThumbprint() { java.lang.Object ref = thumbprint_; @@ -1820,6 +2180,7 @@ public java.lang.String getThumbprint() { } /** * required string Thumbprint = 1; + * @return The bytes for thumbprint. */ public com.google.protobuf.ByteString getThumbprintBytes() { @@ -1836,71 +2197,79 @@ public java.lang.String getThumbprint() { } /** * required string Thumbprint = 1; + * @param value The thumbprint to set. + * @return This builder for chaining. */ public Builder setThumbprint( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } thumbprint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Thumbprint = 1; + * @return This builder for chaining. */ public Builder clearThumbprint() { - bitField0_ = (bitField0_ & ~0x00000001); thumbprint_ = getDefaultInstance().getThumbprint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Thumbprint = 1; + * @param value The bytes for thumbprint to set. + * @return This builder for chaining. */ public Builder setThumbprintBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } thumbprint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType type_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown; + private int type_ = 0; /** * required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2; + * @return Whether the type field is set. */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2; + * @return The type. */ + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType getType() { - return type_; + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.forNumber(type_); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown : result; } /** * required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - type_ = value; + type_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2; + * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); - type_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown; + type_ = 0; onChanged(); return this; } @@ -1908,27 +2277,35 @@ public Builder clearType() { private long validFrom_ ; /** * optional sfixed64 ValidFrom = 3; + * @return Whether the validFrom field is set. */ + @java.lang.Override public boolean hasValidFrom() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional sfixed64 ValidFrom = 3; + * @return The validFrom. */ + @java.lang.Override public long getValidFrom() { return validFrom_; } /** * optional sfixed64 ValidFrom = 3; + * @param value The validFrom to set. + * @return This builder for chaining. */ public Builder setValidFrom(long value) { - bitField0_ |= 0x00000004; + validFrom_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional sfixed64 ValidFrom = 3; + * @return This builder for chaining. */ public Builder clearValidFrom() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1940,27 +2317,35 @@ public Builder clearValidFrom() { private long validTo_ ; /** * optional sfixed64 ValidTo = 4; + * @return Whether the validTo field is set. */ + @java.lang.Override public boolean hasValidTo() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional sfixed64 ValidTo = 4; + * @return The validTo. */ + @java.lang.Override public long getValidTo() { return validTo_; } /** * optional sfixed64 ValidTo = 4; + * @param value The validTo to set. + * @return This builder for chaining. */ public Builder setValidTo(long value) { - bitField0_ |= 0x00000008; + validTo_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional sfixed64 ValidTo = 4; + * @return This builder for chaining. */ public Builder clearValidTo() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1972,27 +2357,35 @@ public Builder clearValidTo() { private long privateKeyValidFrom_ ; /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return Whether the privateKeyValidFrom field is set. */ + @java.lang.Override public boolean hasPrivateKeyValidFrom() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return The privateKeyValidFrom. */ + @java.lang.Override public long getPrivateKeyValidFrom() { return privateKeyValidFrom_; } /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @param value The privateKeyValidFrom to set. + * @return This builder for chaining. */ public Builder setPrivateKeyValidFrom(long value) { - bitField0_ |= 0x00000010; + privateKeyValidFrom_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional sfixed64 PrivateKeyValidFrom = 5; + * @return This builder for chaining. */ public Builder clearPrivateKeyValidFrom() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2004,27 +2397,35 @@ public Builder clearPrivateKeyValidFrom() { private long privateKeyValidTo_ ; /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return Whether the privateKeyValidTo field is set. */ + @java.lang.Override public boolean hasPrivateKeyValidTo() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return The privateKeyValidTo. */ + @java.lang.Override public long getPrivateKeyValidTo() { return privateKeyValidTo_; } /** * optional sfixed64 PrivateKeyValidTo = 6; + * @param value The privateKeyValidTo to set. + * @return This builder for chaining. */ public Builder setPrivateKeyValidTo(long value) { - bitField0_ |= 0x00000020; + privateKeyValidTo_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional sfixed64 PrivateKeyValidTo = 6; + * @return This builder for chaining. */ public Builder clearPrivateKeyValidTo() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2036,12 +2437,14 @@ public Builder clearPrivateKeyValidTo() { private java.lang.Object organizationName_ = ""; /** * optional string OrganizationName = 7; + * @return Whether the organizationName field is set. */ public boolean hasOrganizationName() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string OrganizationName = 7; + * @return The organizationName. */ public java.lang.String getOrganizationName() { java.lang.Object ref = organizationName_; @@ -2059,6 +2462,7 @@ public java.lang.String getOrganizationName() { } /** * optional string OrganizationName = 7; + * @return The bytes for organizationName. */ public com.google.protobuf.ByteString getOrganizationNameBytes() { @@ -2075,36 +2479,37 @@ public java.lang.String getOrganizationName() { } /** * optional string OrganizationName = 7; + * @param value The organizationName to set. + * @return This builder for chaining. */ public Builder setOrganizationName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } organizationName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional string OrganizationName = 7; + * @return This builder for chaining. */ public Builder clearOrganizationName() { - bitField0_ = (bitField0_ & ~0x00000040); organizationName_ = getDefaultInstance().getOrganizationName(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * optional string OrganizationName = 7; + * @param value The bytes for organizationName to set. + * @return This builder for chaining. */ public Builder setOrganizationNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } organizationName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2112,12 +2517,14 @@ public Builder setOrganizationNameBytes( private java.lang.Object inn_ = ""; /** * optional string Inn = 8; + * @return Whether the inn field is set. */ public boolean hasInn() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional string Inn = 8; + * @return The inn. */ public java.lang.String getInn() { java.lang.Object ref = inn_; @@ -2135,6 +2542,7 @@ public java.lang.String getInn() { } /** * optional string Inn = 8; + * @return The bytes for inn. */ public com.google.protobuf.ByteString getInnBytes() { @@ -2151,36 +2559,37 @@ public java.lang.String getInn() { } /** * optional string Inn = 8; + * @param value The inn to set. + * @return This builder for chaining. */ public Builder setInn( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } inn_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional string Inn = 8; + * @return This builder for chaining. */ public Builder clearInn() { - bitField0_ = (bitField0_ & ~0x00000080); inn_ = getDefaultInstance().getInn(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * optional string Inn = 8; + * @param value The bytes for inn to set. + * @return This builder for chaining. */ public Builder setInnBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } inn_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2188,12 +2597,14 @@ public Builder setInnBytes( private java.lang.Object userFirstName_ = ""; /** * optional string UserFirstName = 9; + * @return Whether the userFirstName field is set. */ public boolean hasUserFirstName() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional string UserFirstName = 9; + * @return The userFirstName. */ public java.lang.String getUserFirstName() { java.lang.Object ref = userFirstName_; @@ -2211,6 +2622,7 @@ public java.lang.String getUserFirstName() { } /** * optional string UserFirstName = 9; + * @return The bytes for userFirstName. */ public com.google.protobuf.ByteString getUserFirstNameBytes() { @@ -2227,36 +2639,37 @@ public java.lang.String getUserFirstName() { } /** * optional string UserFirstName = 9; + * @param value The userFirstName to set. + * @return This builder for chaining. */ public Builder setUserFirstName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } userFirstName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional string UserFirstName = 9; + * @return This builder for chaining. */ public Builder clearUserFirstName() { - bitField0_ = (bitField0_ & ~0x00000100); userFirstName_ = getDefaultInstance().getUserFirstName(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * optional string UserFirstName = 9; + * @param value The bytes for userFirstName to set. + * @return This builder for chaining. */ public Builder setUserFirstNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } userFirstName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2264,12 +2677,14 @@ public Builder setUserFirstNameBytes( private java.lang.Object userMiddleName_ = ""; /** * optional string UserMiddleName = 10; + * @return Whether the userMiddleName field is set. */ public boolean hasUserMiddleName() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional string UserMiddleName = 10; + * @return The userMiddleName. */ public java.lang.String getUserMiddleName() { java.lang.Object ref = userMiddleName_; @@ -2287,6 +2702,7 @@ public java.lang.String getUserMiddleName() { } /** * optional string UserMiddleName = 10; + * @return The bytes for userMiddleName. */ public com.google.protobuf.ByteString getUserMiddleNameBytes() { @@ -2303,36 +2719,37 @@ public java.lang.String getUserMiddleName() { } /** * optional string UserMiddleName = 10; + * @param value The userMiddleName to set. + * @return This builder for chaining. */ public Builder setUserMiddleName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } userMiddleName_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional string UserMiddleName = 10; + * @return This builder for chaining. */ public Builder clearUserMiddleName() { - bitField0_ = (bitField0_ & ~0x00000200); userMiddleName_ = getDefaultInstance().getUserMiddleName(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * optional string UserMiddleName = 10; + * @param value The bytes for userMiddleName to set. + * @return This builder for chaining. */ public Builder setUserMiddleNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } userMiddleName_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2340,12 +2757,14 @@ public Builder setUserMiddleNameBytes( private java.lang.Object userLastName_ = ""; /** * optional string UserLastName = 11; + * @return Whether the userLastName field is set. */ public boolean hasUserLastName() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional string UserLastName = 11; + * @return The userLastName. */ public java.lang.String getUserLastName() { java.lang.Object ref = userLastName_; @@ -2363,6 +2782,7 @@ public java.lang.String getUserLastName() { } /** * optional string UserLastName = 11; + * @return The bytes for userLastName. */ public com.google.protobuf.ByteString getUserLastNameBytes() { @@ -2379,36 +2799,37 @@ public java.lang.String getUserLastName() { } /** * optional string UserLastName = 11; + * @param value The userLastName to set. + * @return This builder for chaining. */ public Builder setUserLastName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } userLastName_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * optional string UserLastName = 11; + * @return This builder for chaining. */ public Builder clearUserLastName() { - bitField0_ = (bitField0_ & ~0x00000400); userLastName_ = getDefaultInstance().getUserLastName(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * optional string UserLastName = 11; + * @param value The bytes for userLastName to set. + * @return This builder for chaining. */ public Builder setUserLastNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } userLastName_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2416,12 +2837,14 @@ public Builder setUserLastNameBytes( private java.lang.Object userShortName_ = ""; /** * optional string UserShortName = 12; + * @return Whether the userShortName field is set. */ public boolean hasUserShortName() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional string UserShortName = 12; + * @return The userShortName. */ public java.lang.String getUserShortName() { java.lang.Object ref = userShortName_; @@ -2439,6 +2862,7 @@ public java.lang.String getUserShortName() { } /** * optional string UserShortName = 12; + * @return The bytes for userShortName. */ public com.google.protobuf.ByteString getUserShortNameBytes() { @@ -2455,36 +2879,37 @@ public java.lang.String getUserShortName() { } /** * optional string UserShortName = 12; + * @param value The userShortName to set. + * @return This builder for chaining. */ public Builder setUserShortName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } userShortName_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * optional string UserShortName = 12; + * @return This builder for chaining. */ public Builder clearUserShortName() { - bitField0_ = (bitField0_ & ~0x00000800); userShortName_ = getDefaultInstance().getUserShortName(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * optional string UserShortName = 12; + * @param value The bytes for userShortName to set. + * @return This builder for chaining. */ public Builder setUserShortNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } userShortName_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2492,27 +2917,35 @@ public Builder setUserShortNameBytes( private boolean isDefault_ ; /** * optional bool IsDefault = 13; + * @return Whether the isDefault field is set. */ + @java.lang.Override public boolean hasIsDefault() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional bool IsDefault = 13; + * @return The isDefault. */ + @java.lang.Override public boolean getIsDefault() { return isDefault_; } /** * optional bool IsDefault = 13; + * @param value The isDefault to set. + * @return This builder for chaining. */ public Builder setIsDefault(boolean value) { - bitField0_ |= 0x00001000; + isDefault_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } /** * optional bool IsDefault = 13; + * @return This builder for chaining. */ public Builder clearIsDefault() { bitField0_ = (bitField0_ & ~0x00001000); @@ -2521,69 +2954,84 @@ public Builder clearIsDefault() { return this; } - private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType subjectType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType; + private int subjectType_ = 0; /** * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14; + * @return Whether the subjectType field is set. */ - public boolean hasSubjectType() { - return ((bitField0_ & 0x00002000) == 0x00002000); + @java.lang.Override public boolean hasSubjectType() { + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14; + * @return The subjectType. */ + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() { - return subjectType_; + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.forNumber(subjectType_); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result; } /** * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14; + * @param value The subjectType to set. + * @return This builder for chaining. */ public Builder setSubjectType(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; - subjectType_ = value; + subjectType_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14; + * @return This builder for chaining. */ public Builder clearSubjectType() { bitField0_ = (bitField0_ & ~0x00002000); - subjectType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType; + subjectType_ = 0; onChanged(); return this; } - private java.util.List usages_ = - java.util.Collections.emptyList(); + private com.google.protobuf.Internal.IntList usages_ = + emptyIntList(); private void ensureUsagesIsMutable() { - if (!((bitField0_ & 0x00004000) == 0x00004000)) { - usages_ = new java.util.ArrayList(usages_); + if (!((bitField0_ & 0x00004000) != 0)) { + usages_ = makeMutableCopy(usages_); bitField0_ |= 0x00004000; } } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @return A list containing the usages. */ public java.util.List getUsagesList() { - return java.util.Collections.unmodifiableList(usages_); + return new com.google.protobuf.Internal.IntListAdapter< + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage>(usages_, usages_converter_); } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @return The count of usages. */ public int getUsagesCount() { return usages_.size(); } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @param index The index of the element to return. + * @return The usages at the given index. */ public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage getUsages(int index) { - return usages_.get(index); + return usages_converter_.convert(usages_.getInt(index)); } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @param index The index to set the value at. + * @param value The usages to set. + * @return This builder for chaining. */ public Builder setUsages( int index, Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage value) { @@ -2591,74 +3039,87 @@ public Builder setUsages( throw new NullPointerException(); } ensureUsagesIsMutable(); - usages_.set(index, value); + usages_.setInt(index, value.getNumber()); onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @param value The usages to add. + * @return This builder for chaining. */ public Builder addUsages(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage value) { if (value == null) { throw new NullPointerException(); } ensureUsagesIsMutable(); - usages_.add(value); + usages_.addInt(value.getNumber()); onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @param values The usages to add. + * @return This builder for chaining. */ public Builder addAllUsages( java.lang.Iterable values) { ensureUsagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, usages_); + for (Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage value : values) { + usages_.addInt(value.getNumber()); + } onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15; + * @return This builder for chaining. */ public Builder clearUsages() { - usages_ = java.util.Collections.emptyList(); + usages_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } - private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType dssType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType; + private int dssType_ = 0; /** * optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16; + * @return Whether the dssType field is set. */ - public boolean hasDssType() { - return ((bitField0_ & 0x00008000) == 0x00008000); + @java.lang.Override public boolean hasDssType() { + return ((bitField0_ & 0x00008000) != 0); } /** * optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16; + * @return The dssType. */ + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType getDssType() { - return dssType_; + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.forNumber(dssType_); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType : result; } /** * optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16; + * @param value The dssType to set. + * @return This builder for chaining. */ public Builder setDssType(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; - dssType_ = value; + dssType_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16; + * @return This builder for chaining. */ public Builder clearDssType() { bitField0_ = (bitField0_ & ~0x00008000); - dssType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType; + dssType_ = 0; onChanged(); return this; } @@ -2666,17 +3127,57 @@ public Builder clearDssType() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Certificates.CertificateInfoV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Certificates.CertificateInfoV2) + private static final Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 DEFAULT_INSTANCE; static { - defaultInstance = new CertificateInfoV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2(); + } + + public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateInfoV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Certificates.CertificateInfoV2) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_fieldAccessorTable; @@ -2684,7 +3185,7 @@ public Builder clearDssType() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -2697,7 +3198,7 @@ public Builder clearDssType() { "\n\021PrivateKeyValidTo\030\006 \001(\020\022\030\n\020Organizatio" + "nName\030\007 \001(\t\022\013\n\003Inn\030\010 \001(\t\022\025\n\rUserFirstNam" + "e\030\t \001(\t\022\026\n\016UserMiddleName\030\n \001(\t\022\024\n\014UserL" + - "astName\030\013 \001(\t\022\025\n\rUserShortName\030\014 \001(\t\022\021\n\t", + "astName\030\013 \001(\t\022\025\n\rUserShortName\030\014 \001(\t\022\021\n\t" + "IsDefault\030\r \001(\010\022J\n\013SubjectType\030\016 \001(\01625.D" + "iadoc.Api.Proto.Certificates.Certificate" + "SubjectType\022?\n\006Usages\030\017 \003(\0162/.Diadoc.Api" + @@ -2707,7 +3208,7 @@ public Builder clearDssType() { "ype\022\013\n\007Unknown\020\000\022\t\n\005Token\020\001\022\007\n\003Dss\020\002\022\025\n\021" + "KonturCertificate\020\003*v\n\026CertificateSubjec" + "tType\022!\n\035UnknownCertificateSubjectType\020\000" + - "\022\017\n\013LegalEntity\020\001\022\024\n\020IndividualEntity\020\002\022", + "\022\017\n\013LegalEntity\020\001\022\024\n\020IndividualEntity\020\002\022" + "\022\n\016PhysicalPerson\020\003*g\n\022DssCertificateTyp" + "e\022\022\n\016UnknownDssType\020\000\022\t\n\005MyDss\020\001\022\017\n\013KSig" + "nServer\020\002\022\020\n\014KSignRutoken\020\003\022\017\n\013KSignMobi" + @@ -2716,24 +3217,17 @@ public Builder clearDssType() { "sage\020\002\022\014\n\010DssUsage\020\003B\031B\027CertificateInfoV" + "2Protos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_descriptor, new java.lang.String[] { "Thumbprint", "Type", "ValidFrom", "ValidTo", "PrivateKeyValidFrom", "PrivateKeyValidTo", "OrganizationName", "Inn", "UserFirstName", "UserMiddleName", "UserLastName", "UserShortName", "IsDefault", "SubjectType", "Usages", "DssType", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Certificates/CertificateListProtos.java b/src/main/java/Diadoc/Api/Proto/Certificates/CertificateListProtos.java index 8c117255..1679e0fa 100644 --- a/src/main/java/Diadoc/Api/Proto/Certificates/CertificateListProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Certificates/CertificateListProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Certificates/CertificateList.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Certificates; public final class CertificateListProtos { private CertificateListProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateListProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CertificateListOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Certificates.CertificateList) @@ -43,79 +60,30 @@ public static final class CertificateList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Certificates.CertificateList) CertificateListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateList.class.getName()); + } // Use CertificateList.newBuilder() to construct. private CertificateList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CertificateList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CertificateList defaultInstance; - public static CertificateList getDefaultInstance() { - return defaultInstance; } - - public CertificateList getDefaultInstanceForType() { - return defaultInstance; + private CertificateList() { + certificates_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CertificateList( - 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)) { - certificates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - certificates_.add(input.readMessage(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.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)) { - certificates_ = java.util.Collections.unmodifiableList(certificates_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Certificates.CertificateListProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Certificates.CertificateListProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateList_fieldAccessorTable @@ -123,32 +91,20 @@ private CertificateList( Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList.class, Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CertificateList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int CERTIFICATES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List certificates_; /** * repeated .Diadoc.Api.Proto.Certificates.CertificateInfoV2 Certificates = 1; */ + @java.lang.Override public java.util.List getCertificatesList() { return certificates_; } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateInfoV2 Certificates = 1; */ + @java.lang.Override public java.util.List getCertificatesOrBuilderList() { return certificates_; @@ -156,27 +112,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Certificates.CertificateInfoV2 Certificates = 1; */ + @java.lang.Override public int getCertificatesCount() { return certificates_.size(); } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateInfoV2 Certificates = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 getCertificates(int index) { return certificates_.get(index); } /** * repeated .Diadoc.Api.Proto.Certificates.CertificateInfoV2 Certificates = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2OrBuilder getCertificatesOrBuilder( int index) { return certificates_.get(index); } - private void initFields() { - certificates_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,18 +149,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < certificates_.size(); i++) { output.writeMessage(1, certificates_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -212,17 +169,53 @@ public int getSerializedSize() { .computeMessageSize(1, certificates_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList other = (Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList) obj; + + if (!getCertificatesList() + .equals(other.getCertificatesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCertificatesCount() > 0) { + hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getCertificatesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateLis } public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -301,6 +309,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Certificates.CertificateListProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Certificates.CertificateListProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateList_fieldAccessorTable @@ -310,47 +319,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getCertificatesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + certificates_ = null; certificatesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Certificates.CertificateListProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList getDefaultInstanceForType() { return Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList build() { Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList result = buildPartial(); if (!result.isInitialized()) { @@ -359,11 +361,18 @@ public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList build return result; } + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList buildPartial() { Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList result = new Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList result) { if (certificatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,10 +380,13 @@ public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList build } else { result.certificates_ = certificatesBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList) { return mergeFrom((Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList)other); @@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Certificates.CertificateListProtos.Cer } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getCertificatesCount(); i++) { if (!getCertificates(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 m = + input.readMessage( + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.parser(), + extensionRegistry); + if (certificatesBuilder_ == null) { + ensureCertificatesIsMutable(); + certificates_.add(m); + } else { + certificatesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -448,7 +488,7 @@ public Builder mergeFrom( private java.util.List certificates_ = java.util.Collections.emptyList(); private void ensureCertificatesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { certificates_ = new java.util.ArrayList(certificates_); bitField0_ |= 0x00000001; } @@ -677,7 +717,7 @@ public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.B certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2, Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.Builder, Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2OrBuilder>( certificates_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); certificates_ = null; @@ -688,17 +728,57 @@ public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.B // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Certificates.CertificateList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Certificates.CertificateList) + private static final Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList DEFAULT_INSTANCE; static { - defaultInstance = new CertificateList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList(); + } + + public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Certificates.CertificateList) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Certificates_CertificateList_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Certificates_CertificateList_fieldAccessorTable; @@ -706,7 +786,7 @@ public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.B getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -717,25 +797,18 @@ public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.B "Proto.Certificates.CertificateInfoV2B\027B\025" + "CertificateListProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Certificates_CertificateList_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Certificates_CertificateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Certificates_CertificateList_descriptor, new java.lang.String[] { "Certificates", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/CloudSignProtos.java b/src/main/java/Diadoc/Api/Proto/CloudSignProtos.java index bdabbd52..01c8f583 100644 --- a/src/main/java/Diadoc/Api/Proto/CloudSignProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CloudSignProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CloudSign.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class CloudSignProtos { private CloudSignProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CloudSignProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CloudSignRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CloudSignRequest) @@ -43,79 +60,30 @@ public static final class CloudSignRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CloudSignRequest) CloudSignRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CloudSignRequest.class.getName()); + } // Use CloudSignRequest.newBuilder() to construct. private CloudSignRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CloudSignRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CloudSignRequest defaultInstance; - public static CloudSignRequest getDefaultInstance() { - return defaultInstance; } - - public CloudSignRequest getDefaultInstanceForType() { - return defaultInstance; + private CloudSignRequest() { + files_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CloudSignRequest( - 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)) { - files_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - files_.add(input.readMessage(Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.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)) { - files_ = java.util.Collections.unmodifiableList(files_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignRequest_fieldAccessorTable @@ -123,32 +91,20 @@ private CloudSignRequest( Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest.class, Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CloudSignRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSignRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int FILES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List files_; /** * repeated .Diadoc.Api.Proto.CloudSignFile Files = 1; */ + @java.lang.Override public java.util.List getFilesList() { return files_; } /** * repeated .Diadoc.Api.Proto.CloudSignFile Files = 1; */ + @java.lang.Override public java.util.List getFilesOrBuilderList() { return files_; @@ -156,27 +112,28 @@ public java.util.List getFilesLi /** * repeated .Diadoc.Api.Proto.CloudSignFile Files = 1; */ + @java.lang.Override public int getFilesCount() { return files_.size(); } /** * repeated .Diadoc.Api.Proto.CloudSignFile Files = 1; */ + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile getFiles(int index) { return files_.get(index); } /** * repeated .Diadoc.Api.Proto.CloudSignFile Files = 1; */ + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignFileOrBuilder getFilesOrBuilder( int index) { return files_.get(index); } - private void initFields() { - files_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,18 +149,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < files_.size(); i++) { output.writeMessage(1, files_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -212,17 +169,53 @@ public int getSerializedSize() { .computeMessageSize(1, files_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest other = (Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest) obj; + + if (!getFilesList() + .equals(other.getFilesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom( } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -301,6 +309,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignRequest_fieldAccessorTable @@ -310,47 +319,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getFilesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + files_ = null; filesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignRequest_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest getDefaultInstanceForType() { return Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest build() { Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest result = buildPartial(); if (!result.isInitialized()) { @@ -359,11 +361,18 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest buildPartial() { Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest result = new Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest result) { if (filesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { files_ = java.util.Collections.unmodifiableList(files_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,10 +380,13 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest buildPartial() { } else { result.files_ = filesBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest) { return mergeFrom((Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest)other); @@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest other } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getFilesCount(); i++) { if (!getFiles(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.CloudSignProtos.CloudSignFile m = + input.readMessage( + Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.parser(), + extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -448,7 +488,7 @@ public Builder mergeFrom( private java.util.List files_ = java.util.Collections.emptyList(); private void ensureFilesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { files_ = new java.util.ArrayList(files_); bitField0_ |= 0x00000001; } @@ -677,7 +717,7 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.Builder addFilesBuilder( filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.CloudSignProtos.CloudSignFile, Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.Builder, Diadoc.Api.Proto.CloudSignProtos.CloudSignFileOrBuilder>( files_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); files_ = null; @@ -688,12 +728,52 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.Builder addFilesBuilder( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CloudSignRequest) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignRequest) + private static final Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest DEFAULT_INSTANCE; static { - defaultInstance = new CloudSignRequest(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest(); + } + + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSignRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignRequest) } public interface CloudSignFileOrBuilder extends @@ -702,10 +782,12 @@ public interface CloudSignFileOrBuilder extends /** * optional .Diadoc.Api.Proto.Content_v2 Content = 1; + * @return Whether the content field is set. */ boolean hasContent(); /** * optional .Diadoc.Api.Proto.Content_v2 Content = 1; + * @return The content. */ Diadoc.Api.Proto.Content_v2Protos.Content_v2 getContent(); /** @@ -715,14 +797,17 @@ public interface CloudSignFileOrBuilder extends /** * optional string FileName = 2; + * @return Whether the fileName field is set. */ boolean hasFileName(); /** * optional string FileName = 2; + * @return The fileName. */ java.lang.String getFileName(); /** * optional string FileName = 2; + * @return The bytes for fileName. */ com.google.protobuf.ByteString getFileNameBytes(); @@ -734,87 +819,30 @@ public static final class CloudSignFile extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CloudSignFile) CloudSignFileOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CloudSignFile.class.getName()); + } // Use CloudSignFile.newBuilder() to construct. private CloudSignFile(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private CloudSignFile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CloudSignFile defaultInstance; - public static CloudSignFile getDefaultInstance() { - return defaultInstance; - } - - public CloudSignFile getDefaultInstanceForType() { - return defaultInstance; + private CloudSignFile() { + fileName_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CloudSignFile( - 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: { - Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = content_.toBuilder(); - } - content_ = input.readMessage(Diadoc.Api.Proto.Content_v2Protos.Content_v2.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(content_); - content_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - fileName_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignFile_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignFile_fieldAccessorTable @@ -822,54 +850,49 @@ private CloudSignFile( Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.class, Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CloudSignFile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSignFile(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CONTENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Content_v2Protos.Content_v2 content_; /** * optional .Diadoc.Api.Proto.Content_v2 Content = 1; + * @return Whether the content field is set. */ + @java.lang.Override public boolean hasContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Content_v2 Content = 1; + * @return The content. */ + @java.lang.Override public Diadoc.Api.Proto.Content_v2Protos.Content_v2 getContent() { - return content_; + return content_ == null ? Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance() : content_; } /** * optional .Diadoc.Api.Proto.Content_v2 Content = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder getContentOrBuilder() { - return content_; + return content_ == null ? Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance() : content_; } public static final int FILENAME_FIELD_NUMBER = 2; - private java.lang.Object fileName_; + @SuppressWarnings("serial") + private volatile java.lang.Object fileName_ = ""; /** * optional string FileName = 2; + * @return Whether the fileName field is set. */ + @java.lang.Override public boolean hasFileName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string FileName = 2; + * @return The fileName. */ + @java.lang.Override public java.lang.String getFileName() { java.lang.Object ref = fileName_; if (ref instanceof java.lang.String) { @@ -886,7 +909,9 @@ public java.lang.String getFileName() { } /** * optional string FileName = 2; + * @return The bytes for fileName. */ + @java.lang.Override public com.google.protobuf.ByteString getFileNameBytes() { java.lang.Object ref = fileName_; @@ -901,11 +926,8 @@ public java.lang.String getFileName() { } } - private void initFields() { - content_ = Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance(); - fileName_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -921,44 +943,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, content_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getContent()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getFileNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, fileName_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, content_); + .computeMessageSize(1, getContent()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getFileNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, fileName_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignFile)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CloudSignProtos.CloudSignFile other = (Diadoc.Api.Proto.CloudSignProtos.CloudSignFile) obj; + + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent() + .equals(other.getContent())) return false; + } + if (hasFileName() != other.hasFileName()) return false; + if (hasFileName()) { + if (!getFileName() + .equals(other.getFileName())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasFileName()) { + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -982,42 +1051,57 @@ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom( } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CloudSignProtos.CloudSignFile prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1037,6 +1121,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignFile_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignFile_fieldAccessorTable @@ -1055,40 +1140,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getContentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (contentBuilder_ == null) { - content_ = Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance(); - } else { - contentBuilder_.clear(); + bitField0_ = 0; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); fileName_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignFile_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile getDefaultInstanceForType() { return Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile build() { Diadoc.Api.Proto.CloudSignProtos.CloudSignFile result = buildPartial(); if (!result.isInitialized()) { @@ -1097,27 +1178,31 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile buildPartial() { Diadoc.Api.Proto.CloudSignProtos.CloudSignFile result = new Diadoc.Api.Proto.CloudSignProtos.CloudSignFile(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CloudSignProtos.CloudSignFile result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = contentBuilder_ == null + ? content_ + : contentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (contentBuilder_ == null) { - result.content_ = content_; - } else { - result.content_ = contentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fileName_ = fileName_; to_bitField0_ |= 0x00000002; } - result.fileName_ = fileName_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignFile) { return mergeFrom((Diadoc.Api.Proto.CloudSignProtos.CloudSignFile)other); @@ -1133,58 +1218,87 @@ public Builder mergeFrom(Diadoc.Api.Proto.CloudSignProtos.CloudSignFile other) { mergeContent(other.getContent()); } if (other.hasFileName()) { - bitField0_ |= 0x00000002; fileName_ = other.fileName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasContent()) { if (!getContent().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getContentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + fileName_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CloudSignProtos.CloudSignFile) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Content_v2Protos.Content_v2 content_ = Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance(); + private Diadoc.Api.Proto.Content_v2Protos.Content_v2 content_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Content_v2Protos.Content_v2, Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder, Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder> contentBuilder_; /** * optional .Diadoc.Api.Proto.Content_v2 Content = 1; + * @return Whether the content field is set. */ public boolean hasContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Content_v2 Content = 1; + * @return The content. */ public Diadoc.Api.Proto.Content_v2Protos.Content_v2 getContent() { if (contentBuilder_ == null) { - return content_; + return content_ == null ? Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance() : content_; } else { return contentBuilder_.getMessage(); } @@ -1198,11 +1312,11 @@ public Builder setContent(Diadoc.Api.Proto.Content_v2Protos.Content_v2 value) { throw new NullPointerException(); } content_ = value; - onChanged(); } else { contentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1212,11 +1326,11 @@ public Builder setContent( Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder builderForValue) { if (contentBuilder_ == null) { content_ = builderForValue.build(); - onChanged(); } else { contentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1224,31 +1338,33 @@ public Builder setContent( */ public Builder mergeContent(Diadoc.Api.Proto.Content_v2Protos.Content_v2 value) { if (contentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - content_ != Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance()) { - content_ = - Diadoc.Api.Proto.Content_v2Protos.Content_v2.newBuilder(content_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + content_ != null && + content_ != Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); } else { content_ = value; } - onChanged(); } else { contentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (content_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Content_v2 Content = 1; */ public Builder clearContent() { - if (contentBuilder_ == null) { - content_ = Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance(); - onChanged(); - } else { - contentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); return this; } /** @@ -1266,7 +1382,8 @@ public Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder getContentOrBuilder if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilder(); } else { - return content_; + return content_ == null ? + Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance() : content_; } } /** @@ -1289,12 +1406,14 @@ public Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder getContentOrBuilder private java.lang.Object fileName_ = ""; /** * optional string FileName = 2; + * @return Whether the fileName field is set. */ public boolean hasFileName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string FileName = 2; + * @return The fileName. */ public java.lang.String getFileName() { java.lang.Object ref = fileName_; @@ -1312,6 +1431,7 @@ public java.lang.String getFileName() { } /** * optional string FileName = 2; + * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { @@ -1328,36 +1448,37 @@ public java.lang.String getFileName() { } /** * optional string FileName = 2; + * @param value The fileName to set. + * @return This builder for chaining. */ public Builder setFileName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } fileName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string FileName = 2; + * @return This builder for chaining. */ public Builder clearFileName() { - bitField0_ = (bitField0_ & ~0x00000002); fileName_ = getDefaultInstance().getFileName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string FileName = 2; + * @param value The bytes for fileName to set. + * @return This builder for chaining. */ public Builder setFileNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } fileName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1365,28 +1486,71 @@ public Builder setFileNameBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CloudSignFile) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignFile) + private static final Diadoc.Api.Proto.CloudSignProtos.CloudSignFile DEFAULT_INSTANCE; static { - defaultInstance = new CloudSignFile(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CloudSignProtos.CloudSignFile(); } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignFile) - } - - public interface CloudSignResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CloudSignResult) - com.google.protobuf.MessageOrBuilder { + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * optional string Token = 1; - */ + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSignFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CloudSignResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CloudSignResult) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string Token = 1; + * @return Whether the token field is set. + */ boolean hasToken(); /** * optional string Token = 1; + * @return The token. */ java.lang.String getToken(); /** * optional string Token = 1; + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -1398,74 +1562,30 @@ public static final class CloudSignResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CloudSignResult) CloudSignResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CloudSignResult.class.getName()); + } // Use CloudSignResult.newBuilder() to construct. private CloudSignResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private CloudSignResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CloudSignResult defaultInstance; - public static CloudSignResult getDefaultInstance() { - return defaultInstance; - } - - public CloudSignResult getDefaultInstanceForType() { - return defaultInstance; + private CloudSignResult() { + token_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CloudSignResult( - 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; - token_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignResult_fieldAccessorTable @@ -1473,33 +1593,23 @@ private CloudSignResult( Diadoc.Api.Proto.CloudSignProtos.CloudSignResult.class, Diadoc.Api.Proto.CloudSignProtos.CloudSignResult.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CloudSignResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSignResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TOKEN_FIELD_NUMBER = 1; - private java.lang.Object token_; + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; /** * optional string Token = 1; + * @return Whether the token field is set. */ + @java.lang.Override public boolean hasToken() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Token = 1; + * @return The token. */ + @java.lang.Override public java.lang.String getToken() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { @@ -1516,7 +1626,9 @@ public java.lang.String getToken() { } /** * optional string Token = 1; + * @return The bytes for token. */ + @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; @@ -1531,10 +1643,8 @@ public java.lang.String getToken() { } } - private void initFields() { - token_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1544,37 +1654,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTokenBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, token_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTokenBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, token_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignResult)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CloudSignProtos.CloudSignResult other = (Diadoc.Api.Proto.CloudSignProtos.CloudSignResult) obj; + + if (hasToken() != other.hasToken()) return false; + if (hasToken()) { + if (!getToken() + .equals(other.getToken())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToken()) { + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1598,42 +1746,57 @@ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom( } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CloudSignProtos.CloudSignResult prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1653,6 +1816,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignResult_fieldAccessorTable @@ -1662,42 +1826,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CloudSignProtos.CloudSignResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; token_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignResult_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignResult getDefaultInstanceForType() { return Diadoc.Api.Proto.CloudSignProtos.CloudSignResult.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignResult build() { Diadoc.Api.Proto.CloudSignProtos.CloudSignResult result = buildPartial(); if (!result.isInitialized()) { @@ -1706,19 +1862,25 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignResult build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignResult buildPartial() { Diadoc.Api.Proto.CloudSignProtos.CloudSignResult result = new Diadoc.Api.Proto.CloudSignProtos.CloudSignResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CloudSignProtos.CloudSignResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = token_; to_bitField0_ |= 0x00000001; } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignResult) { return mergeFrom((Diadoc.Api.Proto.CloudSignProtos.CloudSignResult)other); @@ -1731,33 +1893,54 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.CloudSignProtos.CloudSignResult other) { if (other == Diadoc.Api.Proto.CloudSignProtos.CloudSignResult.getDefaultInstance()) return this; if (other.hasToken()) { - bitField0_ |= 0x00000001; token_ = other.token_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + token_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CloudSignProtos.CloudSignResult) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1765,12 +1948,14 @@ public Builder mergeFrom( private java.lang.Object token_ = ""; /** * optional string Token = 1; + * @return Whether the token field is set. */ public boolean hasToken() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Token = 1; + * @return The token. */ public java.lang.String getToken() { java.lang.Object ref = token_; @@ -1788,6 +1973,7 @@ public java.lang.String getToken() { } /** * optional string Token = 1; + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { @@ -1804,36 +1990,37 @@ public java.lang.String getToken() { } /** * optional string Token = 1; + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } token_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string Token = 1; + * @return This builder for chaining. */ public Builder clearToken() { - bitField0_ = (bitField0_ & ~0x00000001); token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string Token = 1; + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } token_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1841,12 +2028,52 @@ public Builder setTokenBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CloudSignResult) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignResult) + private static final Diadoc.Api.Proto.CloudSignProtos.CloudSignResult DEFAULT_INSTANCE; static { - defaultInstance = new CloudSignResult(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CloudSignProtos.CloudSignResult(); + } + + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSignResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CloudSignProtos.CloudSignResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignResult) } public interface CloudSignConfirmResultOrBuilder extends @@ -1884,79 +2111,30 @@ public static final class CloudSignConfirmResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CloudSignConfirmResult) CloudSignConfirmResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CloudSignConfirmResult.class.getName()); + } // Use CloudSignConfirmResult.newBuilder() to construct. private CloudSignConfirmResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CloudSignConfirmResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CloudSignConfirmResult defaultInstance; - public static CloudSignConfirmResult getDefaultInstance() { - return defaultInstance; } - - public CloudSignConfirmResult getDefaultInstanceForType() { - return defaultInstance; + private CloudSignConfirmResult() { + signatures_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CloudSignConfirmResult( - 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)) { - signatures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - signatures_.add(input.readMessage(Diadoc.Api.Proto.Content_v2Protos.Content_v2.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)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignConfirmResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignConfirmResult_fieldAccessorTable @@ -1964,32 +2142,20 @@ private CloudSignConfirmResult( Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult.class, Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CloudSignConfirmResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSignConfirmResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int SIGNATURES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List signatures_; /** * repeated .Diadoc.Api.Proto.Content_v2 Signatures = 1; */ + @java.lang.Override public java.util.List getSignaturesList() { return signatures_; } /** * repeated .Diadoc.Api.Proto.Content_v2 Signatures = 1; */ + @java.lang.Override public java.util.List getSignaturesOrBuilderList() { return signatures_; @@ -1997,27 +2163,28 @@ public java.util.List getSignature /** * repeated .Diadoc.Api.Proto.Content_v2 Signatures = 1; */ + @java.lang.Override public int getSignaturesCount() { return signatures_.size(); } /** * repeated .Diadoc.Api.Proto.Content_v2 Signatures = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Content_v2Protos.Content_v2 getSignatures(int index) { return signatures_.get(index); } /** * repeated .Diadoc.Api.Proto.Content_v2 Signatures = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder getSignaturesOrBuilder( int index) { return signatures_.get(index); } - private void initFields() { - signatures_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2033,18 +2200,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < signatures_.size(); i++) { output.writeMessage(1, signatures_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2053,17 +2220,53 @@ public int getSerializedSize() { .computeMessageSize(1, signatures_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult other = (Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult) obj; + + if (!getSignaturesList() + .equals(other.getSignaturesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSignaturesCount() > 0) { + hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; + hash = (53 * hash) + getSignaturesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2087,42 +2290,57 @@ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom( } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2142,6 +2360,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignConfirmResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignConfirmResult_fieldAccessorTable @@ -2151,47 +2370,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getSignaturesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + signatures_ = null; signaturesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignConfirmResult_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult getDefaultInstanceForType() { return Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult build() { Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult result = buildPartial(); if (!result.isInitialized()) { @@ -2200,11 +2412,18 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult buildPartial() { Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult result = new Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult result) { if (signaturesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -2212,10 +2431,13 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult buildPartial() { } else { result.signatures_ = signaturesBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult) { return mergeFrom((Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult)other); @@ -2254,34 +2476,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getSignaturesCount(); i++) { if (!getSignatures(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Content_v2Protos.Content_v2 m = + input.readMessage( + Diadoc.Api.Proto.Content_v2Protos.Content_v2.parser(), + extensionRegistry); + if (signaturesBuilder_ == null) { + ensureSignaturesIsMutable(); + signatures_.add(m); + } else { + signaturesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2289,7 +2539,7 @@ public Builder mergeFrom( private java.util.List signatures_ = java.util.Collections.emptyList(); private void ensureSignaturesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { signatures_ = new java.util.ArrayList(signatures_); bitField0_ |= 0x00000001; } @@ -2518,7 +2768,7 @@ public Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder addSignaturesBuilder signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Content_v2Protos.Content_v2, Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder, Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder>( signatures_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); signatures_ = null; @@ -2529,12 +2779,52 @@ public Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder addSignaturesBuilder // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CloudSignConfirmResult) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignConfirmResult) + private static final Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult DEFAULT_INSTANCE; static { - defaultInstance = new CloudSignConfirmResult(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult(); + } + + public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSignConfirmResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignConfirmResult) } public interface AutosignReceiptsResultOrBuilder extends @@ -2543,23 +2833,28 @@ public interface AutosignReceiptsResultOrBuilder extends /** * required int64 SignedReceiptsCount = 1; + * @return Whether the signedReceiptsCount field is set. */ boolean hasSignedReceiptsCount(); /** * required int64 SignedReceiptsCount = 1; + * @return The signedReceiptsCount. */ long getSignedReceiptsCount(); /** * required string NextBatchKey = 2; + * @return Whether the nextBatchKey field is set. */ boolean hasNextBatchKey(); /** * required string NextBatchKey = 2; + * @return The nextBatchKey. */ java.lang.String getNextBatchKey(); /** * required string NextBatchKey = 2; + * @return The bytes for nextBatchKey. */ com.google.protobuf.ByteString getNextBatchKeyBytes(); @@ -2571,79 +2866,30 @@ public static final class AutosignReceiptsResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.AutosignReceiptsResult) AutosignReceiptsResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AutosignReceiptsResult.class.getName()); + } // Use AutosignReceiptsResult.newBuilder() to construct. private AutosignReceiptsResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private AutosignReceiptsResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AutosignReceiptsResult defaultInstance; - public static AutosignReceiptsResult getDefaultInstance() { - return defaultInstance; - } - - public AutosignReceiptsResult getDefaultInstanceForType() { - return defaultInstance; + private AutosignReceiptsResult() { + nextBatchKey_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AutosignReceiptsResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - signedReceiptsCount_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - nextBatchKey_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_fieldAccessorTable @@ -2651,48 +2897,42 @@ private AutosignReceiptsResult( Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult.class, Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AutosignReceiptsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutosignReceiptsResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int SIGNEDRECEIPTSCOUNT_FIELD_NUMBER = 1; - private long signedReceiptsCount_; + private long signedReceiptsCount_ = 0L; /** * required int64 SignedReceiptsCount = 1; + * @return Whether the signedReceiptsCount field is set. */ + @java.lang.Override public boolean hasSignedReceiptsCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int64 SignedReceiptsCount = 1; + * @return The signedReceiptsCount. */ + @java.lang.Override public long getSignedReceiptsCount() { return signedReceiptsCount_; } public static final int NEXTBATCHKEY_FIELD_NUMBER = 2; - private java.lang.Object nextBatchKey_; + @SuppressWarnings("serial") + private volatile java.lang.Object nextBatchKey_ = ""; /** * required string NextBatchKey = 2; + * @return Whether the nextBatchKey field is set. */ + @java.lang.Override public boolean hasNextBatchKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string NextBatchKey = 2; + * @return The nextBatchKey. */ + @java.lang.Override public java.lang.String getNextBatchKey() { java.lang.Object ref = nextBatchKey_; if (ref instanceof java.lang.String) { @@ -2709,7 +2949,9 @@ public java.lang.String getNextBatchKey() { } /** * required string NextBatchKey = 2; + * @return The bytes for nextBatchKey. */ + @java.lang.Override public com.google.protobuf.ByteString getNextBatchKeyBytes() { java.lang.Object ref = nextBatchKey_; @@ -2724,11 +2966,8 @@ public java.lang.String getNextBatchKey() { } } - private void initFields() { - signedReceiptsCount_ = 0L; - nextBatchKey_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2746,44 +2985,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, signedReceiptsCount_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNextBatchKeyBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextBatchKey_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, signedReceiptsCount_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNextBatchKeyBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextBatchKey_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult other = (Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult) obj; + + if (hasSignedReceiptsCount() != other.hasSignedReceiptsCount()) return false; + if (hasSignedReceiptsCount()) { + if (getSignedReceiptsCount() + != other.getSignedReceiptsCount()) return false; + } + if (hasNextBatchKey() != other.hasNextBatchKey()) return false; + if (hasNextBatchKey()) { + if (!getNextBatchKey() + .equals(other.getNextBatchKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSignedReceiptsCount()) { + hash = (37 * hash) + SIGNEDRECEIPTSCOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSignedReceiptsCount()); + } + if (hasNextBatchKey()) { + hash = (37 * hash) + NEXTBATCHKEY_FIELD_NUMBER; + hash = (53 * hash) + getNextBatchKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2807,42 +3094,57 @@ public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom( } public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2862,6 +3164,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_fieldAccessorTable @@ -2871,44 +3174,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; signedReceiptsCount_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); nextBatchKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult getDefaultInstanceForType() { return Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult build() { Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult result = buildPartial(); if (!result.isInitialized()) { @@ -2917,23 +3211,29 @@ public Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult buildPartial() { Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult result = new Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.signedReceiptsCount_ = signedReceiptsCount_; to_bitField0_ |= 0x00000001; } - result.signedReceiptsCount_ = signedReceiptsCount_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextBatchKey_ = nextBatchKey_; to_bitField0_ |= 0x00000002; } - result.nextBatchKey_ = nextBatchKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult) { return mergeFrom((Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult)other); @@ -2949,41 +3249,65 @@ public Builder mergeFrom(Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult setSignedReceiptsCount(other.getSignedReceiptsCount()); } if (other.hasNextBatchKey()) { - bitField0_ |= 0x00000002; nextBatchKey_ = other.nextBatchKey_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasSignedReceiptsCount()) { - return false; } if (!hasNextBatchKey()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + signedReceiptsCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + nextBatchKey_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2991,27 +3315,35 @@ public Builder mergeFrom( private long signedReceiptsCount_ ; /** * required int64 SignedReceiptsCount = 1; + * @return Whether the signedReceiptsCount field is set. */ + @java.lang.Override public boolean hasSignedReceiptsCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int64 SignedReceiptsCount = 1; + * @return The signedReceiptsCount. */ + @java.lang.Override public long getSignedReceiptsCount() { return signedReceiptsCount_; } /** * required int64 SignedReceiptsCount = 1; + * @param value The signedReceiptsCount to set. + * @return This builder for chaining. */ public Builder setSignedReceiptsCount(long value) { - bitField0_ |= 0x00000001; + signedReceiptsCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int64 SignedReceiptsCount = 1; + * @return This builder for chaining. */ public Builder clearSignedReceiptsCount() { bitField0_ = (bitField0_ & ~0x00000001); @@ -3023,12 +3355,14 @@ public Builder clearSignedReceiptsCount() { private java.lang.Object nextBatchKey_ = ""; /** * required string NextBatchKey = 2; + * @return Whether the nextBatchKey field is set. */ public boolean hasNextBatchKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string NextBatchKey = 2; + * @return The nextBatchKey. */ public java.lang.String getNextBatchKey() { java.lang.Object ref = nextBatchKey_; @@ -3046,6 +3380,7 @@ public java.lang.String getNextBatchKey() { } /** * required string NextBatchKey = 2; + * @return The bytes for nextBatchKey. */ public com.google.protobuf.ByteString getNextBatchKeyBytes() { @@ -3062,36 +3397,37 @@ public java.lang.String getNextBatchKey() { } /** * required string NextBatchKey = 2; + * @param value The nextBatchKey to set. + * @return This builder for chaining. */ public Builder setNextBatchKey( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } nextBatchKey_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string NextBatchKey = 2; + * @return This builder for chaining. */ public Builder clearNextBatchKey() { - bitField0_ = (bitField0_ & ~0x00000002); nextBatchKey_ = getDefaultInstance().getNextBatchKey(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string NextBatchKey = 2; + * @param value The bytes for nextBatchKey to set. + * @return This builder for chaining. */ public Builder setNextBatchKeyBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } nextBatchKey_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3099,37 +3435,77 @@ public Builder setNextBatchKeyBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.AutosignReceiptsResult) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AutosignReceiptsResult) + private static final Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult DEFAULT_INSTANCE; static { - defaultInstance = new AutosignReceiptsResult(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult(); + } + + public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutosignReceiptsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AutosignReceiptsResult) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CloudSignRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CloudSignRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CloudSignFile_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CloudSignFile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CloudSignResult_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CloudSignResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CloudSignConfirmResult_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CloudSignConfirmResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_fieldAccessorTable; @@ -3137,7 +3513,7 @@ public Builder setNextBatchKeyBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -3150,22 +3526,14 @@ public Builder setNextBatchKeyBytes( "\026CloudSignConfirmResult\0220\n\nSignatures\030\001 " + "\003(\0132\034.Diadoc.Api.Proto.Content_v2\"K\n\026Aut" + "osignReceiptsResult\022\033\n\023SignedReceiptsCou" + - "nt\030\001 \002(\003\022\024\n\014NextBatchKey\030\002 \002(\tB\021B\017CloudS", + "nt\030\001 \002(\003\022\024\n\014NextBatchKey\030\002 \002(\tB\021B\017CloudS" + "ignProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Content_v2Protos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_CloudSignRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CloudSignRequest_fieldAccessorTable = new @@ -3196,6 +3564,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_descriptor, new java.lang.String[] { "SignedReceiptsCount", "NextBatchKey", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Content_v2Protos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/ContentProtos.java b/src/main/java/Diadoc/Api/Proto/ContentProtos.java index 8fb633dc..36636d81 100644 --- a/src/main/java/Diadoc/Api/Proto/ContentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/ContentProtos.java @@ -1,48 +1,69 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Content.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class ContentProtos { private ContentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ContentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface ContentOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Content) com.google.protobuf.MessageOrBuilder { /** - * required sfixed32 Size = 1; - * *
      * -1 if content size is unknown
      * 
+ * + * required sfixed32 Size = 1; + * @return Whether the size field is set. */ boolean hasSize(); /** - * required sfixed32 Size = 1; - * *
      * -1 if content size is unknown
      * 
+ * + * required sfixed32 Size = 1; + * @return The size. */ int getSize(); /** - * optional bytes Data = 2; - * *
      * null <=> entity content exists but is not included in proto buffer
      * 
+ * + * optional bytes Data = 2; + * @return Whether the data field is set. */ boolean hasData(); /** - * optional bytes Data = 2; - * *
      * null <=> entity content exists but is not included in proto buffer
      * 
+ * + * optional bytes Data = 2; + * @return The data. */ com.google.protobuf.ByteString getData(); } @@ -53,78 +74,30 @@ public static final class Content extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Content) ContentOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Content.class.getName()); + } // Use Content.newBuilder() to construct. private Content(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private Content(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Content defaultInstance; - public static Content getDefaultInstance() { - return defaultInstance; - } - - public Content getDefaultInstanceForType() { - return defaultInstance; + private Content() { + data_ = com.google.protobuf.ByteString.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Content( - 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 13: { - bitField0_ |= 0x00000001; - size_ = input.readSFixed32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - data_ = input.readBytes(); - 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.ContentProtos.internal_static_Diadoc_Api_Proto_Content_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.ContentProtos.internal_static_Diadoc_Api_Proto_Content_fieldAccessorTable @@ -132,73 +105,63 @@ private Content( Diadoc.Api.Proto.ContentProtos.Content.class, Diadoc.Api.Proto.ContentProtos.Content.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Content parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Content(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int SIZE_FIELD_NUMBER = 1; - private int size_; + private int size_ = 0; /** - * required sfixed32 Size = 1; - * *
      * -1 if content size is unknown
      * 
+ * + * required sfixed32 Size = 1; + * @return Whether the size field is set. */ + @java.lang.Override public boolean hasSize() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * required sfixed32 Size = 1; - * *
      * -1 if content size is unknown
      * 
+ * + * required sfixed32 Size = 1; + * @return The size. */ + @java.lang.Override public int getSize() { return size_; } public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes Data = 2; - * *
      * null <=> entity content exists but is not included in proto buffer
      * 
+ * + * optional bytes Data = 2; + * @return Whether the data field is set. */ + @java.lang.Override public boolean hasData() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional bytes Data = 2; - * *
      * null <=> entity content exists but is not included in proto buffer
      * 
+ * + * optional bytes Data = 2; + * @return The data. */ + @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } - private void initFields() { - size_ = 0; - data_ = com.google.protobuf.ByteString.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -212,44 +175,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeSFixed32(1, size_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, data_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size(1, size_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.ContentProtos.Content)) { + return super.equals(obj); + } + Diadoc.Api.Proto.ContentProtos.Content other = (Diadoc.Api.Proto.ContentProtos.Content) obj; + + if (hasSize() != other.hasSize()) return false; + if (hasSize()) { + if (getSize() + != other.getSize()) return false; + } + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSize()) { + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + } + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.ContentProtos.Content parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.ContentProtos.Content parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.ContentProtos.Content parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -273,42 +284,57 @@ public static Diadoc.Api.Proto.ContentProtos.Content parseFrom( } public static Diadoc.Api.Proto.ContentProtos.Content parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.ContentProtos.Content parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.ContentProtos.Content parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.ContentProtos.Content parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.ContentProtos.Content parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.ContentProtos.Content parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.ContentProtos.Content prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -328,6 +354,7 @@ public static final class Builder extends return Diadoc.Api.Proto.ContentProtos.internal_static_Diadoc_Api_Proto_Content_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.ContentProtos.internal_static_Diadoc_Api_Proto_Content_fieldAccessorTable @@ -337,44 +364,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.ContentProtos.Content.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; size_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); data_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.ContentProtos.internal_static_Diadoc_Api_Proto_Content_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.ContentProtos.Content getDefaultInstanceForType() { return Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.ContentProtos.Content build() { Diadoc.Api.Proto.ContentProtos.Content result = buildPartial(); if (!result.isInitialized()) { @@ -383,23 +401,29 @@ public Diadoc.Api.Proto.ContentProtos.Content build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.ContentProtos.Content buildPartial() { Diadoc.Api.Proto.ContentProtos.Content result = new Diadoc.Api.Proto.ContentProtos.Content(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.ContentProtos.Content result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.size_ = size_; to_bitField0_ |= 0x00000001; } - result.size_ = size_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = data_; to_bitField0_ |= 0x00000002; } - result.data_ = data_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.ContentProtos.Content) { return mergeFrom((Diadoc.Api.Proto.ContentProtos.Content)other); @@ -418,76 +442,109 @@ public Builder mergeFrom(Diadoc.Api.Proto.ContentProtos.Content other) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasSize()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.ContentProtos.Content parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: { + size_ = input.readSFixed32(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: { + data_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.ContentProtos.Content) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; private int size_ ; /** - * required sfixed32 Size = 1; - * *
        * -1 if content size is unknown
        * 
+ * + * required sfixed32 Size = 1; + * @return Whether the size field is set. */ + @java.lang.Override public boolean hasSize() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * required sfixed32 Size = 1; - * *
        * -1 if content size is unknown
        * 
+ * + * required sfixed32 Size = 1; + * @return The size. */ + @java.lang.Override public int getSize() { return size_; } /** - * required sfixed32 Size = 1; - * *
        * -1 if content size is unknown
        * 
+ * + * required sfixed32 Size = 1; + * @param value The size to set. + * @return This builder for chaining. */ public Builder setSize(int value) { - bitField0_ |= 0x00000001; + size_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * required sfixed32 Size = 1; - * *
        * -1 if content size is unknown
        * 
+ * + * required sfixed32 Size = 1; + * @return This builder for chaining. */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000001); @@ -498,47 +555,52 @@ public Builder clearSize() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes Data = 2; - * *
        * null <=> entity content exists but is not included in proto buffer
        * 
+ * + * optional bytes Data = 2; + * @return Whether the data field is set. */ + @java.lang.Override public boolean hasData() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional bytes Data = 2; - * *
        * null <=> entity content exists but is not included in proto buffer
        * 
+ * + * optional bytes Data = 2; + * @return The data. */ + @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** - * optional bytes Data = 2; - * *
        * null <=> entity content exists but is not included in proto buffer
        * 
+ * + * optional bytes Data = 2; + * @param value The data to set. + * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } data_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * optional bytes Data = 2; - * *
        * null <=> entity content exists but is not included in proto buffer
        * 
+ * + * optional bytes Data = 2; + * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); @@ -550,17 +612,57 @@ public Builder clearData() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Content) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Content) + private static final Diadoc.Api.Proto.ContentProtos.Content DEFAULT_INSTANCE; static { - defaultInstance = new Content(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.ContentProtos.Content(); + } + + public static Diadoc.Api.Proto.ContentProtos.Content getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Content parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.ContentProtos.Content getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Content) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Content_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Content_fieldAccessorTable; @@ -568,7 +670,7 @@ public Builder clearData() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -576,24 +678,17 @@ public Builder clearData() { "tent\022\014\n\004Size\030\001 \002(\017\022\014\n\004Data\030\002 \001(\014B\017B\rCont" + "entProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Content_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Content_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Content_descriptor, new java.lang.String[] { "Size", "Data", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Content_v2Protos.java b/src/main/java/Diadoc/Api/Proto/Content_v2Protos.java index 66f61919..28434cd7 100644 --- a/src/main/java/Diadoc/Api/Proto/Content_v2Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Content_v2Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Content_v2.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class Content_v2Protos { private Content_v2Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Content_v2Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface Content_v2OrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Content_v2) @@ -14,47 +31,57 @@ public interface Content_v2OrBuilder extends /** * optional bytes Content = 1; + * @return Whether the content field is set. */ boolean hasContent(); /** * optional bytes Content = 1; + * @return The content. */ com.google.protobuf.ByteString getContent(); /** * optional string NameOnShelf = 2; + * @return Whether the nameOnShelf field is set. */ boolean hasNameOnShelf(); /** * optional string NameOnShelf = 2; + * @return The nameOnShelf. */ java.lang.String getNameOnShelf(); /** * optional string NameOnShelf = 2; + * @return The bytes for nameOnShelf. */ com.google.protobuf.ByteString getNameOnShelfBytes(); /** * optional string PatchedContentId = 3; + * @return Whether the patchedContentId field is set. */ boolean hasPatchedContentId(); /** * optional string PatchedContentId = 3; + * @return The patchedContentId. */ java.lang.String getPatchedContentId(); /** * optional string PatchedContentId = 3; + * @return The bytes for patchedContentId. */ com.google.protobuf.ByteString getPatchedContentIdBytes(); /** * optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4; + * @return Whether the documentId field is set. */ boolean hasDocumentId(); /** * optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4; + * @return The documentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx getDocumentId(); /** @@ -69,98 +96,32 @@ public static final class Content_v2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Content_v2) Content_v2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Content_v2.class.getName()); + } // Use Content_v2.newBuilder() to construct. private Content_v2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Content_v2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Content_v2 defaultInstance; - public static Content_v2 getDefaultInstance() { - return defaultInstance; } - - public Content_v2 getDefaultInstanceForType() { - return defaultInstance; + private Content_v2() { + content_ = com.google.protobuf.ByteString.EMPTY; + nameOnShelf_ = ""; + patchedContentId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Content_v2( - 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: { - bitField0_ |= 0x00000001; - content_ = input.readBytes(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - nameOnShelf_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - patchedContentId_ = bs; - break; - } - case 34: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = documentId_.toBuilder(); - } - documentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentId_); - documentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - 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.Content_v2Protos.internal_static_Diadoc_Api_Proto_Content_v2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Content_v2Protos.internal_static_Diadoc_Api_Proto_Content_v2_fieldAccessorTable @@ -168,48 +129,42 @@ private Content_v2( Diadoc.Api.Proto.Content_v2Protos.Content_v2.class, Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Content_v2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Content_v2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CONTENT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString content_; + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes Content = 1; + * @return Whether the content field is set. */ + @java.lang.Override public boolean hasContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bytes Content = 1; + * @return The content. */ + @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } public static final int NAMEONSHELF_FIELD_NUMBER = 2; - private java.lang.Object nameOnShelf_; + @SuppressWarnings("serial") + private volatile java.lang.Object nameOnShelf_ = ""; /** * optional string NameOnShelf = 2; + * @return Whether the nameOnShelf field is set. */ + @java.lang.Override public boolean hasNameOnShelf() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string NameOnShelf = 2; + * @return The nameOnShelf. */ + @java.lang.Override public java.lang.String getNameOnShelf() { java.lang.Object ref = nameOnShelf_; if (ref instanceof java.lang.String) { @@ -226,7 +181,9 @@ public java.lang.String getNameOnShelf() { } /** * optional string NameOnShelf = 2; + * @return The bytes for nameOnShelf. */ + @java.lang.Override public com.google.protobuf.ByteString getNameOnShelfBytes() { java.lang.Object ref = nameOnShelf_; @@ -242,16 +199,21 @@ public java.lang.String getNameOnShelf() { } public static final int PATCHEDCONTENTID_FIELD_NUMBER = 3; - private java.lang.Object patchedContentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object patchedContentId_ = ""; /** * optional string PatchedContentId = 3; + * @return Whether the patchedContentId field is set. */ + @java.lang.Override public boolean hasPatchedContentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string PatchedContentId = 3; + * @return The patchedContentId. */ + @java.lang.Override public java.lang.String getPatchedContentId() { java.lang.Object ref = patchedContentId_; if (ref instanceof java.lang.String) { @@ -268,7 +230,9 @@ public java.lang.String getPatchedContentId() { } /** * optional string PatchedContentId = 3; + * @return The bytes for patchedContentId. */ + @java.lang.Override public com.google.protobuf.ByteString getPatchedContentIdBytes() { java.lang.Object ref = patchedContentId_; @@ -287,30 +251,30 @@ public java.lang.String getPatchedContentId() { private Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx documentId_; /** * optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4; + * @return Whether the documentId field is set. */ + @java.lang.Override public boolean hasDocumentId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4; + * @return The documentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx getDocumentId() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance() : documentId_; } /** * optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdExOrBuilder getDocumentIdOrBuilder() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance() : documentId_; } - private void initFields() { - content_ = com.google.protobuf.ByteString.EMPTY; - nameOnShelf_ = ""; - patchedContentId_ = ""; - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -326,58 +290,122 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(1, content_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameOnShelfBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nameOnShelf_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getPatchedContentIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, patchedContentId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, documentId_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getDocumentId()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, content_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameOnShelfBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nameOnShelf_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getPatchedContentIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, patchedContentId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, documentId_); + .computeMessageSize(4, getDocumentId()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Content_v2Protos.Content_v2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Content_v2Protos.Content_v2 other = (Diadoc.Api.Proto.Content_v2Protos.Content_v2) obj; + + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent() + .equals(other.getContent())) return false; + } + if (hasNameOnShelf() != other.hasNameOnShelf()) return false; + if (hasNameOnShelf()) { + if (!getNameOnShelf() + .equals(other.getNameOnShelf())) return false; + } + if (hasPatchedContentId() != other.hasPatchedContentId()) return false; + if (hasPatchedContentId()) { + if (!getPatchedContentId() + .equals(other.getPatchedContentId())) return false; + } + if (hasDocumentId() != other.hasDocumentId()) return false; + if (hasDocumentId()) { + if (!getDocumentId() + .equals(other.getDocumentId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasNameOnShelf()) { + hash = (37 * hash) + NAMEONSHELF_FIELD_NUMBER; + hash = (53 * hash) + getNameOnShelf().hashCode(); + } + if (hasPatchedContentId()) { + hash = (37 * hash) + PATCHEDCONTENTID_FIELD_NUMBER; + hash = (53 * hash) + getPatchedContentId().hashCode(); + } + if (hasDocumentId()) { + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDocumentId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -401,42 +429,57 @@ public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom( } public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Content_v2Protos.Content_v2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -456,6 +499,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Content_v2Protos.internal_static_Diadoc_Api_Proto_Content_v2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Content_v2Protos.internal_static_Diadoc_Api_Proto_Content_v2_fieldAccessorTable @@ -474,44 +518,38 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDocumentIdFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); nameOnShelf_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); patchedContentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance(); - } else { - documentIdBuilder_.clear(); + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Content_v2Protos.internal_static_Diadoc_Api_Proto_Content_v2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Content_v2Protos.Content_v2 getDefaultInstanceForType() { return Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Content_v2Protos.Content_v2 build() { Diadoc.Api.Proto.Content_v2Protos.Content_v2 result = buildPartial(); if (!result.isInitialized()) { @@ -520,35 +558,39 @@ public Diadoc.Api.Proto.Content_v2Protos.Content_v2 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Content_v2Protos.Content_v2 buildPartial() { Diadoc.Api.Proto.Content_v2Protos.Content_v2 result = new Diadoc.Api.Proto.Content_v2Protos.Content_v2(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Content_v2Protos.Content_v2 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; to_bitField0_ |= 0x00000001; } - result.content_ = content_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nameOnShelf_ = nameOnShelf_; to_bitField0_ |= 0x00000002; } - result.nameOnShelf_ = nameOnShelf_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.patchedContentId_ = patchedContentId_; to_bitField0_ |= 0x00000004; } - result.patchedContentId_ = patchedContentId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.documentId_ = documentIdBuilder_ == null + ? documentId_ + : documentIdBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (documentIdBuilder_ == null) { - result.documentId_ = documentId_; - } else { - result.documentId_ = documentIdBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Content_v2Protos.Content_v2) { return mergeFrom((Diadoc.Api.Proto.Content_v2Protos.Content_v2)other); @@ -564,47 +606,84 @@ public Builder mergeFrom(Diadoc.Api.Proto.Content_v2Protos.Content_v2 other) { setContent(other.getContent()); } if (other.hasNameOnShelf()) { - bitField0_ |= 0x00000002; nameOnShelf_ = other.nameOnShelf_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasPatchedContentId()) { - bitField0_ |= 0x00000004; patchedContentId_ = other.patchedContentId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasDocumentId()) { mergeDocumentId(other.getDocumentId()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasDocumentId()) { if (!getDocumentId().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Content_v2Protos.Content_v2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + content_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + nameOnShelf_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + patchedContentId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Content_v2Protos.Content_v2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -612,30 +691,35 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes Content = 1; + * @return Whether the content field is set. */ + @java.lang.Override public boolean hasContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bytes Content = 1; + * @return The content. */ + @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } /** * optional bytes Content = 1; + * @param value The content to set. + * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bytes Content = 1; + * @return This builder for chaining. */ public Builder clearContent() { bitField0_ = (bitField0_ & ~0x00000001); @@ -647,12 +731,14 @@ public Builder clearContent() { private java.lang.Object nameOnShelf_ = ""; /** * optional string NameOnShelf = 2; + * @return Whether the nameOnShelf field is set. */ public boolean hasNameOnShelf() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string NameOnShelf = 2; + * @return The nameOnShelf. */ public java.lang.String getNameOnShelf() { java.lang.Object ref = nameOnShelf_; @@ -670,6 +756,7 @@ public java.lang.String getNameOnShelf() { } /** * optional string NameOnShelf = 2; + * @return The bytes for nameOnShelf. */ public com.google.protobuf.ByteString getNameOnShelfBytes() { @@ -686,36 +773,37 @@ public java.lang.String getNameOnShelf() { } /** * optional string NameOnShelf = 2; + * @param value The nameOnShelf to set. + * @return This builder for chaining. */ public Builder setNameOnShelf( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } nameOnShelf_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string NameOnShelf = 2; + * @return This builder for chaining. */ public Builder clearNameOnShelf() { - bitField0_ = (bitField0_ & ~0x00000002); nameOnShelf_ = getDefaultInstance().getNameOnShelf(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string NameOnShelf = 2; + * @param value The bytes for nameOnShelf to set. + * @return This builder for chaining. */ public Builder setNameOnShelfBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } nameOnShelf_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -723,12 +811,14 @@ public Builder setNameOnShelfBytes( private java.lang.Object patchedContentId_ = ""; /** * optional string PatchedContentId = 3; + * @return Whether the patchedContentId field is set. */ public boolean hasPatchedContentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string PatchedContentId = 3; + * @return The patchedContentId. */ public java.lang.String getPatchedContentId() { java.lang.Object ref = patchedContentId_; @@ -746,6 +836,7 @@ public java.lang.String getPatchedContentId() { } /** * optional string PatchedContentId = 3; + * @return The bytes for patchedContentId. */ public com.google.protobuf.ByteString getPatchedContentIdBytes() { @@ -762,55 +853,58 @@ public java.lang.String getPatchedContentId() { } /** * optional string PatchedContentId = 3; + * @param value The patchedContentId to set. + * @return This builder for chaining. */ public Builder setPatchedContentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } patchedContentId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string PatchedContentId = 3; + * @return This builder for chaining. */ public Builder clearPatchedContentId() { - bitField0_ = (bitField0_ & ~0x00000004); patchedContentId_ = getDefaultInstance().getPatchedContentId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string PatchedContentId = 3; + * @param value The bytes for patchedContentId to set. + * @return This builder for chaining. */ public Builder setPatchedContentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } patchedContentId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx documentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdExOrBuilder> documentIdBuilder_; /** * optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4; + * @return Whether the documentId field is set. */ public boolean hasDocumentId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4; + * @return The documentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx getDocumentId() { if (documentIdBuilder_ == null) { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance() : documentId_; } else { return documentIdBuilder_.getMessage(); } @@ -824,11 +918,11 @@ public Builder setDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx valu throw new NullPointerException(); } documentId_ = value; - onChanged(); } else { documentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -838,11 +932,11 @@ public Builder setDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.Builder builderForValue) { if (documentIdBuilder_ == null) { documentId_ = builderForValue.build(); - onChanged(); } else { documentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -850,31 +944,33 @@ public Builder setDocumentId( */ public Builder mergeDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx value) { if (documentIdBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance()) { - documentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.newBuilder(documentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + documentId_ != null && + documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance()) { + getDocumentIdBuilder().mergeFrom(value); } else { documentId_ = value; } - onChanged(); } else { documentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (documentId_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4; */ public Builder clearDocumentId() { - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance(); - onChanged(); - } else { - documentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -892,7 +988,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdExOrBuilder getDocumentIdOrBu if (documentIdBuilder_ != null) { return documentIdBuilder_.getMessageOrBuilder(); } else { - return documentId_; + return documentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance() : documentId_; } } /** @@ -915,17 +1012,57 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdExOrBuilder getDocumentIdOrBu // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Content_v2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Content_v2) + private static final Diadoc.Api.Proto.Content_v2Protos.Content_v2 DEFAULT_INSTANCE; static { - defaultInstance = new Content_v2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Content_v2Protos.Content_v2(); + } + + public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Content_v2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Content_v2Protos.Content_v2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Content_v2) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Content_v2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Content_v2_fieldAccessorTable; @@ -933,7 +1070,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdExOrBuilder getDocumentIdOrBu getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -944,25 +1081,18 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdExOrBuilder getDocumentIdOrBu "oc.Api.Proto.DocumentIdExB\022B\020Content_v2P" + "rotos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Content_v2_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Content_v2_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Content_v2_descriptor, new java.lang.String[] { "Content", "NameOnShelf", "PatchedContentId", "DocumentId", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Content_v3Protos.java b/src/main/java/Diadoc/Api/Proto/Content_v3Protos.java index 79a3fb5c..1d03f70b 100644 --- a/src/main/java/Diadoc/Api/Proto/Content_v3Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Content_v3Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Content_v3.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class Content_v3Protos { private Content_v3Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Content_v3Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface Content_v3OrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Content_v3) @@ -14,33 +31,40 @@ public interface Content_v3OrBuilder extends /** * optional bytes Content = 1; + * @return Whether the content field is set. */ boolean hasContent(); /** * optional bytes Content = 1; + * @return The content. */ com.google.protobuf.ByteString getContent(); /** * optional string NameOnShelf = 2; + * @return Whether the nameOnShelf field is set. */ boolean hasNameOnShelf(); /** * optional string NameOnShelf = 2; + * @return The nameOnShelf. */ java.lang.String getNameOnShelf(); /** * optional string NameOnShelf = 2; + * @return The bytes for nameOnShelf. */ com.google.protobuf.ByteString getNameOnShelfBytes(); /** * optional .Diadoc.Api.Proto.DocumentId EntityId = 3; + * @return Whether the entityId field is set. */ boolean hasEntityId(); /** * optional .Diadoc.Api.Proto.DocumentId EntityId = 3; + * @return The entityId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getEntityId(); /** @@ -50,14 +74,17 @@ public interface Content_v3OrBuilder extends /** * optional string PatchedContentId = 4; + * @return Whether the patchedContentId field is set. */ boolean hasPatchedContentId(); /** * optional string PatchedContentId = 4; + * @return The patchedContentId. */ java.lang.String getPatchedContentId(); /** * optional string PatchedContentId = 4; + * @return The bytes for patchedContentId. */ com.google.protobuf.ByteString getPatchedContentIdBytes(); @@ -69,98 +96,32 @@ public static final class Content_v3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Content_v3) Content_v3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Content_v3.class.getName()); + } // Use Content_v3.newBuilder() to construct. private Content_v3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Content_v3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Content_v3 defaultInstance; - public static Content_v3 getDefaultInstance() { - return defaultInstance; } - - public Content_v3 getDefaultInstanceForType() { - return defaultInstance; + private Content_v3() { + content_ = com.google.protobuf.ByteString.EMPTY; + nameOnShelf_ = ""; + patchedContentId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Content_v3( - 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: { - bitField0_ |= 0x00000001; - content_ = input.readBytes(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - nameOnShelf_ = bs; - break; - } - case 26: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = entityId_.toBuilder(); - } - entityId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityId_); - entityId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - patchedContentId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Content_v3Protos.internal_static_Diadoc_Api_Proto_Content_v3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Content_v3Protos.internal_static_Diadoc_Api_Proto_Content_v3_fieldAccessorTable @@ -168,48 +129,42 @@ private Content_v3( Diadoc.Api.Proto.Content_v3Protos.Content_v3.class, Diadoc.Api.Proto.Content_v3Protos.Content_v3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Content_v3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Content_v3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CONTENT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString content_; + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes Content = 1; + * @return Whether the content field is set. */ + @java.lang.Override public boolean hasContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bytes Content = 1; + * @return The content. */ + @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } public static final int NAMEONSHELF_FIELD_NUMBER = 2; - private java.lang.Object nameOnShelf_; + @SuppressWarnings("serial") + private volatile java.lang.Object nameOnShelf_ = ""; /** * optional string NameOnShelf = 2; + * @return Whether the nameOnShelf field is set. */ + @java.lang.Override public boolean hasNameOnShelf() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string NameOnShelf = 2; + * @return The nameOnShelf. */ + @java.lang.Override public java.lang.String getNameOnShelf() { java.lang.Object ref = nameOnShelf_; if (ref instanceof java.lang.String) { @@ -226,7 +181,9 @@ public java.lang.String getNameOnShelf() { } /** * optional string NameOnShelf = 2; + * @return The bytes for nameOnShelf. */ + @java.lang.Override public com.google.protobuf.ByteString getNameOnShelfBytes() { java.lang.Object ref = nameOnShelf_; @@ -245,34 +202,44 @@ public java.lang.String getNameOnShelf() { private Diadoc.Api.Proto.DocumentIdProtos.DocumentId entityId_; /** * optional .Diadoc.Api.Proto.DocumentId EntityId = 3; + * @return Whether the entityId field is set. */ + @java.lang.Override public boolean hasEntityId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId EntityId = 3; + * @return The entityId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getEntityId() { - return entityId_; + return entityId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : entityId_; } /** * optional .Diadoc.Api.Proto.DocumentId EntityId = 3; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getEntityIdOrBuilder() { - return entityId_; + return entityId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : entityId_; } public static final int PATCHEDCONTENTID_FIELD_NUMBER = 4; - private java.lang.Object patchedContentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object patchedContentId_ = ""; /** * optional string PatchedContentId = 4; + * @return Whether the patchedContentId field is set. */ + @java.lang.Override public boolean hasPatchedContentId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string PatchedContentId = 4; + * @return The patchedContentId. */ + @java.lang.Override public java.lang.String getPatchedContentId() { java.lang.Object ref = patchedContentId_; if (ref instanceof java.lang.String) { @@ -289,7 +256,9 @@ public java.lang.String getPatchedContentId() { } /** * optional string PatchedContentId = 4; + * @return The bytes for patchedContentId. */ + @java.lang.Override public com.google.protobuf.ByteString getPatchedContentIdBytes() { java.lang.Object ref = patchedContentId_; @@ -304,13 +273,8 @@ public java.lang.String getPatchedContentId() { } } - private void initFields() { - content_ = com.google.protobuf.ByteString.EMPTY; - nameOnShelf_ = ""; - entityId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - patchedContentId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -326,58 +290,122 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(1, content_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameOnShelfBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nameOnShelf_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, entityId_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getEntityId()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getPatchedContentIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, patchedContentId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, content_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameOnShelfBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nameOnShelf_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, entityId_); + .computeMessageSize(3, getEntityId()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getPatchedContentIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, patchedContentId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Content_v3Protos.Content_v3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Content_v3Protos.Content_v3 other = (Diadoc.Api.Proto.Content_v3Protos.Content_v3) obj; + + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent() + .equals(other.getContent())) return false; + } + if (hasNameOnShelf() != other.hasNameOnShelf()) return false; + if (hasNameOnShelf()) { + if (!getNameOnShelf() + .equals(other.getNameOnShelf())) return false; + } + if (hasEntityId() != other.hasEntityId()) return false; + if (hasEntityId()) { + if (!getEntityId() + .equals(other.getEntityId())) return false; + } + if (hasPatchedContentId() != other.hasPatchedContentId()) return false; + if (hasPatchedContentId()) { + if (!getPatchedContentId() + .equals(other.getPatchedContentId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasNameOnShelf()) { + hash = (37 * hash) + NAMEONSHELF_FIELD_NUMBER; + hash = (53 * hash) + getNameOnShelf().hashCode(); + } + if (hasEntityId()) { + hash = (37 * hash) + ENTITYID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + } + if (hasPatchedContentId()) { + hash = (37 * hash) + PATCHEDCONTENTID_FIELD_NUMBER; + hash = (53 * hash) + getPatchedContentId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -401,42 +429,57 @@ public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom( } public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Content_v3Protos.Content_v3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -456,6 +499,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Content_v3Protos.internal_static_Diadoc_Api_Proto_Content_v3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Content_v3Protos.internal_static_Diadoc_Api_Proto_Content_v3_fieldAccessorTable @@ -474,44 +518,38 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getEntityIdFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); nameOnShelf_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (entityIdBuilder_ == null) { - entityId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - entityIdBuilder_.clear(); + entityId_ = null; + if (entityIdBuilder_ != null) { + entityIdBuilder_.dispose(); + entityIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); patchedContentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Content_v3Protos.internal_static_Diadoc_Api_Proto_Content_v3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Content_v3Protos.Content_v3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Content_v3Protos.Content_v3 build() { Diadoc.Api.Proto.Content_v3Protos.Content_v3 result = buildPartial(); if (!result.isInitialized()) { @@ -520,35 +558,39 @@ public Diadoc.Api.Proto.Content_v3Protos.Content_v3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Content_v3Protos.Content_v3 buildPartial() { Diadoc.Api.Proto.Content_v3Protos.Content_v3 result = new Diadoc.Api.Proto.Content_v3Protos.Content_v3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Content_v3Protos.Content_v3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; to_bitField0_ |= 0x00000001; } - result.content_ = content_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nameOnShelf_ = nameOnShelf_; to_bitField0_ |= 0x00000002; } - result.nameOnShelf_ = nameOnShelf_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityId_ = entityIdBuilder_ == null + ? entityId_ + : entityIdBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (entityIdBuilder_ == null) { - result.entityId_ = entityId_; - } else { - result.entityId_ = entityIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.patchedContentId_ = patchedContentId_; to_bitField0_ |= 0x00000008; } - result.patchedContentId_ = patchedContentId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Content_v3Protos.Content_v3) { return mergeFrom((Diadoc.Api.Proto.Content_v3Protos.Content_v3)other); @@ -564,47 +606,84 @@ public Builder mergeFrom(Diadoc.Api.Proto.Content_v3Protos.Content_v3 other) { setContent(other.getContent()); } if (other.hasNameOnShelf()) { - bitField0_ |= 0x00000002; nameOnShelf_ = other.nameOnShelf_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasEntityId()) { mergeEntityId(other.getEntityId()); } if (other.hasPatchedContentId()) { - bitField0_ |= 0x00000008; patchedContentId_ = other.patchedContentId_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasEntityId()) { if (!getEntityId().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Content_v3Protos.Content_v3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + content_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + nameOnShelf_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getEntityIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + patchedContentId_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Content_v3Protos.Content_v3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -612,30 +691,35 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes Content = 1; + * @return Whether the content field is set. */ + @java.lang.Override public boolean hasContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bytes Content = 1; + * @return The content. */ + @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } /** * optional bytes Content = 1; + * @param value The content to set. + * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bytes Content = 1; + * @return This builder for chaining. */ public Builder clearContent() { bitField0_ = (bitField0_ & ~0x00000001); @@ -647,12 +731,14 @@ public Builder clearContent() { private java.lang.Object nameOnShelf_ = ""; /** * optional string NameOnShelf = 2; + * @return Whether the nameOnShelf field is set. */ public boolean hasNameOnShelf() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string NameOnShelf = 2; + * @return The nameOnShelf. */ public java.lang.String getNameOnShelf() { java.lang.Object ref = nameOnShelf_; @@ -670,6 +756,7 @@ public java.lang.String getNameOnShelf() { } /** * optional string NameOnShelf = 2; + * @return The bytes for nameOnShelf. */ public com.google.protobuf.ByteString getNameOnShelfBytes() { @@ -686,55 +773,58 @@ public java.lang.String getNameOnShelf() { } /** * optional string NameOnShelf = 2; + * @param value The nameOnShelf to set. + * @return This builder for chaining. */ public Builder setNameOnShelf( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } nameOnShelf_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string NameOnShelf = 2; + * @return This builder for chaining. */ public Builder clearNameOnShelf() { - bitField0_ = (bitField0_ & ~0x00000002); nameOnShelf_ = getDefaultInstance().getNameOnShelf(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string NameOnShelf = 2; + * @param value The bytes for nameOnShelf to set. + * @return This builder for chaining. */ public Builder setNameOnShelfBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } nameOnShelf_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId entityId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId entityId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> entityIdBuilder_; /** * optional .Diadoc.Api.Proto.DocumentId EntityId = 3; + * @return Whether the entityId field is set. */ public boolean hasEntityId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId EntityId = 3; + * @return The entityId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getEntityId() { if (entityIdBuilder_ == null) { - return entityId_; + return entityId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : entityId_; } else { return entityIdBuilder_.getMessage(); } @@ -748,11 +838,11 @@ public Builder setEntityId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { throw new NullPointerException(); } entityId_ = value; - onChanged(); } else { entityIdBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -762,11 +852,11 @@ public Builder setEntityId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (entityIdBuilder_ == null) { entityId_ = builderForValue.build(); - onChanged(); } else { entityIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -774,31 +864,33 @@ public Builder setEntityId( */ public Builder mergeEntityId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (entityIdBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - entityId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - entityId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(entityId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + entityId_ != null && + entityId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getEntityIdBuilder().mergeFrom(value); } else { entityId_ = value; } - onChanged(); } else { entityIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (entityId_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.DocumentId EntityId = 3; */ public Builder clearEntityId() { - if (entityIdBuilder_ == null) { - entityId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - entityIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + entityId_ = null; + if (entityIdBuilder_ != null) { + entityIdBuilder_.dispose(); + entityIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -816,7 +908,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getEntityIdOrBuilde if (entityIdBuilder_ != null) { return entityIdBuilder_.getMessageOrBuilder(); } else { - return entityId_; + return entityId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : entityId_; } } /** @@ -839,12 +932,14 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getEntityIdOrBuilde private java.lang.Object patchedContentId_ = ""; /** * optional string PatchedContentId = 4; + * @return Whether the patchedContentId field is set. */ public boolean hasPatchedContentId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string PatchedContentId = 4; + * @return The patchedContentId. */ public java.lang.String getPatchedContentId() { java.lang.Object ref = patchedContentId_; @@ -862,6 +957,7 @@ public java.lang.String getPatchedContentId() { } /** * optional string PatchedContentId = 4; + * @return The bytes for patchedContentId. */ public com.google.protobuf.ByteString getPatchedContentIdBytes() { @@ -878,36 +974,37 @@ public java.lang.String getPatchedContentId() { } /** * optional string PatchedContentId = 4; + * @param value The patchedContentId to set. + * @return This builder for chaining. */ public Builder setPatchedContentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } patchedContentId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string PatchedContentId = 4; + * @return This builder for chaining. */ public Builder clearPatchedContentId() { - bitField0_ = (bitField0_ & ~0x00000008); patchedContentId_ = getDefaultInstance().getPatchedContentId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string PatchedContentId = 4; + * @param value The bytes for patchedContentId to set. + * @return This builder for chaining. */ public Builder setPatchedContentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } patchedContentId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -915,17 +1012,57 @@ public Builder setPatchedContentIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Content_v3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Content_v3) + private static final Diadoc.Api.Proto.Content_v3Protos.Content_v3 DEFAULT_INSTANCE; static { - defaultInstance = new Content_v3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Content_v3Protos.Content_v3(); + } + + public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Content_v3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Content_v3Protos.Content_v3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Content_v3) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Content_v3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Content_v3_fieldAccessorTable; @@ -933,7 +1070,7 @@ public Builder setPatchedContentIdBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -943,25 +1080,18 @@ public Builder setPatchedContentIdBytes( " \001(\0132\034.Diadoc.Api.Proto.DocumentId\022\030\n\020Pa" + "tchedContentId\030\004 \001(\tB\022B\020Content_v3Protos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Content_v3_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Content_v3_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Content_v3_descriptor, new java.lang.String[] { "Content", "NameOnShelf", "EntityId", "PatchedContentId", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentFromGroupResponseProtos.java b/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentFromGroupResponseProtos.java index bf1941c8..4357b1af 100644 --- a/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentFromGroupResponseProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentFromGroupResponseProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CounteragentGroups/CounteragentFromGroupResponse.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.CounteragentGroups; public final class CounteragentFromGroupResponseProtos { private CounteragentFromGroupResponseProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentFromGroupResponseProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CounteragentFromGroupResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponse) @@ -14,42 +31,53 @@ public interface CounteragentFromGroupResponseOrBuilder extends /** * repeated string CounteragentBoxId = 1; + * @return A list containing the counteragentBoxId. */ - com.google.protobuf.ProtocolStringList + java.util.List getCounteragentBoxIdList(); /** * repeated string CounteragentBoxId = 1; + * @return The count of counteragentBoxId. */ int getCounteragentBoxIdCount(); /** * repeated string CounteragentBoxId = 1; + * @param index The index of the element to return. + * @return The counteragentBoxId at the given index. */ java.lang.String getCounteragentBoxId(int index); /** * repeated string CounteragentBoxId = 1; + * @param index The index of the value to return. + * @return The bytes of the counteragentBoxId at the given index. */ com.google.protobuf.ByteString getCounteragentBoxIdBytes(int index); /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ boolean hasTotalCount(); /** * required int32 TotalCount = 2; + * @return The totalCount. */ int getTotalCount(); /** * optional string AfterIndexKey = 3; + * @return Whether the afterIndexKey field is set. */ boolean hasAfterIndexKey(); /** * optional string AfterIndexKey = 3; + * @return The afterIndexKey. */ java.lang.String getAfterIndexKey(); /** * optional string AfterIndexKey = 3; + * @return The bytes for afterIndexKey. */ com.google.protobuf.ByteString getAfterIndexKeyBytes(); @@ -61,91 +89,32 @@ public static final class CounteragentFromGroupResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponse) CounteragentFromGroupResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentFromGroupResponse.class.getName()); + } // Use CounteragentFromGroupResponse.newBuilder() to construct. private CounteragentFromGroupResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CounteragentFromGroupResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CounteragentFromGroupResponse defaultInstance; - public static CounteragentFromGroupResponse getDefaultInstance() { - return defaultInstance; } - - public CounteragentFromGroupResponse getDefaultInstanceForType() { - return defaultInstance; + private CounteragentFromGroupResponse() { + counteragentBoxId_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + afterIndexKey_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CounteragentFromGroupResponse( - 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(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - counteragentBoxId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - counteragentBoxId_.add(bs); - break; - } - case 16: { - bitField0_ |= 0x00000001; - totalCount_ = input.readInt32(); - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - afterIndexKey_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - counteragentBoxId_ = counteragentBoxId_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_fieldAccessorTable @@ -153,26 +122,14 @@ private CounteragentFromGroupResponse( Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CounteragentFromGroupResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CounteragentFromGroupResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int COUNTERAGENTBOXID_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList counteragentBoxId_; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList counteragentBoxId_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string CounteragentBoxId = 1; + * @return A list containing the counteragentBoxId. */ public com.google.protobuf.ProtocolStringList getCounteragentBoxIdList() { @@ -180,18 +137,23 @@ public com.google.protobuf.Parser getParserForTyp } /** * repeated string CounteragentBoxId = 1; + * @return The count of counteragentBoxId. */ public int getCounteragentBoxIdCount() { return counteragentBoxId_.size(); } /** * repeated string CounteragentBoxId = 1; + * @param index The index of the element to return. + * @return The counteragentBoxId at the given index. */ public java.lang.String getCounteragentBoxId(int index) { return counteragentBoxId_.get(index); } /** * repeated string CounteragentBoxId = 1; + * @param index The index of the value to return. + * @return The bytes of the counteragentBoxId at the given index. */ public com.google.protobuf.ByteString getCounteragentBoxIdBytes(int index) { @@ -199,31 +161,40 @@ public java.lang.String getCounteragentBoxId(int index) { } public static final int TOTALCOUNT_FIELD_NUMBER = 2; - private int totalCount_; + private int totalCount_ = 0; /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } public static final int AFTERINDEXKEY_FIELD_NUMBER = 3; - private java.lang.Object afterIndexKey_; + @SuppressWarnings("serial") + private volatile java.lang.Object afterIndexKey_ = ""; /** * optional string AfterIndexKey = 3; + * @return Whether the afterIndexKey field is set. */ + @java.lang.Override public boolean hasAfterIndexKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string AfterIndexKey = 3; + * @return The afterIndexKey. */ + @java.lang.Override public java.lang.String getAfterIndexKey() { java.lang.Object ref = afterIndexKey_; if (ref instanceof java.lang.String) { @@ -240,7 +211,9 @@ public java.lang.String getAfterIndexKey() { } /** * optional string AfterIndexKey = 3; + * @return The bytes for afterIndexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getAfterIndexKeyBytes() { java.lang.Object ref = afterIndexKey_; @@ -255,12 +228,8 @@ public java.lang.String getAfterIndexKey() { } } - private void initFields() { - counteragentBoxId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - totalCount_ = 0; - afterIndexKey_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -274,56 +243,108 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < counteragentBoxId_.size(); i++) { - output.writeBytes(1, counteragentBoxId_.getByteString(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, counteragentBoxId_.getRaw(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(2, totalCount_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(3, getAfterIndexKeyBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, afterIndexKey_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < counteragentBoxId_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(counteragentBoxId_.getByteString(i)); + dataSize += computeStringSizeNoTag(counteragentBoxId_.getRaw(i)); } size += dataSize; size += 1 * getCounteragentBoxIdList().size(); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, totalCount_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getAfterIndexKeyBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, afterIndexKey_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse) obj; + + if (!getCounteragentBoxIdList() + .equals(other.getCounteragentBoxIdList())) return false; + if (hasTotalCount() != other.hasTotalCount()) return false; + if (hasTotalCount()) { + if (getTotalCount() + != other.getTotalCount()) return false; + } + if (hasAfterIndexKey() != other.hasAfterIndexKey()) return false; + if (hasAfterIndexKey()) { + if (!getAfterIndexKey() + .equals(other.getAfterIndexKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCounteragentBoxIdCount() > 0) { + hash = (37 * hash) + COUNTERAGENTBOXID_FIELD_NUMBER; + hash = (53 * hash) + getCounteragentBoxIdList().hashCode(); + } + if (hasTotalCount()) { + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + } + if (hasAfterIndexKey()) { + hash = (37 * hash) + AFTERINDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getAfterIndexKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -347,42 +368,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseP } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -402,6 +438,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_fieldAccessorTable @@ -411,46 +448,37 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - counteragentBoxId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + counteragentBoxId_ = + com.google.protobuf.LazyStringArrayList.emptyList(); totalCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); afterIndexKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse build() { Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse result = buildPartial(); if (!result.isInitialized()) { @@ -459,28 +487,33 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.C return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse buildPartial() { Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - counteragentBoxId_ = counteragentBoxId_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + if (((from_bitField0_ & 0x00000001) != 0)) { + counteragentBoxId_.makeImmutable(); + result.counteragentBoxId_ = counteragentBoxId_; } - result.counteragentBoxId_ = counteragentBoxId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalCount_ = totalCount_; to_bitField0_ |= 0x00000001; } - result.totalCount_ = totalCount_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.afterIndexKey_ = afterIndexKey_; to_bitField0_ |= 0x00000002; } - result.afterIndexKey_ = afterIndexKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse) { return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse)other); @@ -495,7 +528,7 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGro if (!other.counteragentBoxId_.isEmpty()) { if (counteragentBoxId_.isEmpty()) { counteragentBoxId_ = other.counteragentBoxId_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureCounteragentBoxIdIsMutable(); counteragentBoxId_.addAll(other.counteragentBoxId_); @@ -506,69 +539,108 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGro setTotalCount(other.getTotalCount()); } if (other.hasAfterIndexKey()) { - bitField0_ |= 0x00000004; afterIndexKey_ = other.afterIndexKey_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotalCount()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureCounteragentBoxIdIsMutable(); + counteragentBoxId_.add(bs); + break; + } // case 10 + case 16: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + afterIndexKey_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private com.google.protobuf.LazyStringList counteragentBoxId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList counteragentBoxId_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCounteragentBoxIdIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!counteragentBoxId_.isModifiable()) { counteragentBoxId_ = new com.google.protobuf.LazyStringArrayList(counteragentBoxId_); - bitField0_ |= 0x00000001; - } + } + bitField0_ |= 0x00000001; } /** * repeated string CounteragentBoxId = 1; + * @return A list containing the counteragentBoxId. */ public com.google.protobuf.ProtocolStringList getCounteragentBoxIdList() { - return counteragentBoxId_.getUnmodifiableView(); + counteragentBoxId_.makeImmutable(); + return counteragentBoxId_; } /** * repeated string CounteragentBoxId = 1; + * @return The count of counteragentBoxId. */ public int getCounteragentBoxIdCount() { return counteragentBoxId_.size(); } /** * repeated string CounteragentBoxId = 1; + * @param index The index of the element to return. + * @return The counteragentBoxId at the given index. */ public java.lang.String getCounteragentBoxId(int index) { return counteragentBoxId_.get(index); } /** * repeated string CounteragentBoxId = 1; + * @param index The index of the value to return. + * @return The bytes of the counteragentBoxId at the given index. */ public com.google.protobuf.ByteString getCounteragentBoxIdBytes(int index) { @@ -576,60 +648,69 @@ public java.lang.String getCounteragentBoxId(int index) { } /** * repeated string CounteragentBoxId = 1; + * @param index The index to set the value at. + * @param value The counteragentBoxId to set. + * @return This builder for chaining. */ public Builder setCounteragentBoxId( int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCounteragentBoxIdIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureCounteragentBoxIdIsMutable(); counteragentBoxId_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string CounteragentBoxId = 1; + * @param value The counteragentBoxId to add. + * @return This builder for chaining. */ public Builder addCounteragentBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCounteragentBoxIdIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureCounteragentBoxIdIsMutable(); counteragentBoxId_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string CounteragentBoxId = 1; + * @param values The counteragentBoxId to add. + * @return This builder for chaining. */ public Builder addAllCounteragentBoxId( java.lang.Iterable values) { ensureCounteragentBoxIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, counteragentBoxId_); + bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string CounteragentBoxId = 1; + * @return This builder for chaining. */ public Builder clearCounteragentBoxId() { - counteragentBoxId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + counteragentBoxId_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** * repeated string CounteragentBoxId = 1; + * @param value The bytes of the counteragentBoxId to add. + * @return This builder for chaining. */ public Builder addCounteragentBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCounteragentBoxIdIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureCounteragentBoxIdIsMutable(); counteragentBoxId_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -637,27 +718,35 @@ public Builder addCounteragentBoxIdBytes( private int totalCount_ ; /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } /** * required int32 TotalCount = 2; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - bitField0_ |= 0x00000002; + totalCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int32 TotalCount = 2; + * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000002); @@ -669,12 +758,14 @@ public Builder clearTotalCount() { private java.lang.Object afterIndexKey_ = ""; /** * optional string AfterIndexKey = 3; + * @return Whether the afterIndexKey field is set. */ public boolean hasAfterIndexKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AfterIndexKey = 3; + * @return The afterIndexKey. */ public java.lang.String getAfterIndexKey() { java.lang.Object ref = afterIndexKey_; @@ -692,6 +783,7 @@ public java.lang.String getAfterIndexKey() { } /** * optional string AfterIndexKey = 3; + * @return The bytes for afterIndexKey. */ public com.google.protobuf.ByteString getAfterIndexKeyBytes() { @@ -708,36 +800,37 @@ public java.lang.String getAfterIndexKey() { } /** * optional string AfterIndexKey = 3; + * @param value The afterIndexKey to set. + * @return This builder for chaining. */ public Builder setAfterIndexKey( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } afterIndexKey_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string AfterIndexKey = 3; + * @return This builder for chaining. */ public Builder clearAfterIndexKey() { - bitField0_ = (bitField0_ & ~0x00000004); afterIndexKey_ = getDefaultInstance().getAfterIndexKey(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string AfterIndexKey = 3; + * @param value The bytes for afterIndexKey to set. + * @return This builder for chaining. */ public Builder setAfterIndexKeyBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } afterIndexKey_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -745,17 +838,57 @@ public Builder setAfterIndexKeyBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponse) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponse) + private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse DEFAULT_INSTANCE; static { - defaultInstance = new CounteragentFromGroupResponse(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse(); + } + + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CounteragentFromGroupResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponse) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_fieldAccessorTable; @@ -763,7 +896,7 @@ public Builder setAfterIndexKeyBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -774,24 +907,17 @@ public Builder setAfterIndexKeyBytes( "alCount\030\002 \002(\005\022\025\n\rAfterIndexKey\030\003 \001(\tB%B#" + "CounteragentFromGroupResponseProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_descriptor, new java.lang.String[] { "CounteragentBoxId", "TotalCount", "AfterIndexKey", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupProtos.java b/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupProtos.java index 78062621..c4ad5ec8 100644 --- a/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CounteragentGroups/CounteragentGroup.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.CounteragentGroups; public final class CounteragentGroupProtos { private CounteragentGroupProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentGroupProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CounteragentGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup) @@ -14,38 +31,46 @@ public interface CounteragentGroupOrBuilder extends /** * required string CounteragentGroupId = 1; + * @return Whether the counteragentGroupId field is set. */ boolean hasCounteragentGroupId(); /** * required string CounteragentGroupId = 1; + * @return The counteragentGroupId. */ java.lang.String getCounteragentGroupId(); /** * required string CounteragentGroupId = 1; + * @return The bytes for counteragentGroupId. */ com.google.protobuf.ByteString getCounteragentGroupIdBytes(); /** * required string Name = 2; + * @return Whether the name field is set. */ boolean hasName(); /** * required string Name = 2; + * @return The name. */ java.lang.String getName(); /** * required string Name = 2; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3; + * @return Whether the departments field is set. */ boolean hasDepartments(); /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3; + * @return The departments. */ Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments(); /** @@ -60,93 +85,31 @@ public static final class CounteragentGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup) CounteragentGroupOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentGroup.class.getName()); + } // Use CounteragentGroup.newBuilder() to construct. private CounteragentGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private CounteragentGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CounteragentGroup defaultInstance; - public static CounteragentGroup getDefaultInstance() { - return defaultInstance; - } - - public CounteragentGroup getDefaultInstanceForType() { - return defaultInstance; + private CounteragentGroup() { + counteragentGroupId_ = ""; + name_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CounteragentGroup( - 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; - counteragentGroupId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = departments_.toBuilder(); - } - departments_ = input.readMessage(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(departments_); - departments_ = 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.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_fieldAccessorTable @@ -154,33 +117,23 @@ private CounteragentGroup( Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CounteragentGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CounteragentGroup(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int COUNTERAGENTGROUPID_FIELD_NUMBER = 1; - private java.lang.Object counteragentGroupId_; + @SuppressWarnings("serial") + private volatile java.lang.Object counteragentGroupId_ = ""; /** * required string CounteragentGroupId = 1; + * @return Whether the counteragentGroupId field is set. */ + @java.lang.Override public boolean hasCounteragentGroupId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string CounteragentGroupId = 1; + * @return The counteragentGroupId. */ + @java.lang.Override public java.lang.String getCounteragentGroupId() { java.lang.Object ref = counteragentGroupId_; if (ref instanceof java.lang.String) { @@ -197,7 +150,9 @@ public java.lang.String getCounteragentGroupId() { } /** * required string CounteragentGroupId = 1; + * @return The bytes for counteragentGroupId. */ + @java.lang.Override public com.google.protobuf.ByteString getCounteragentGroupIdBytes() { java.lang.Object ref = counteragentGroupId_; @@ -213,16 +168,21 @@ public java.lang.String getCounteragentGroupId() { } public static final int NAME_FIELD_NUMBER = 2; - private java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * required string Name = 2; + * @return Whether the name field is set. */ + @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Name = 2; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -239,7 +199,9 @@ public java.lang.String getName() { } /** * required string Name = 2; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -258,29 +220,30 @@ public java.lang.String getName() { private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_; /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3; + * @return Whether the departments field is set. */ + @java.lang.Override public boolean hasDepartments() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3; + * @return The departments. */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() { - return departments_; + return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3; */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder getDepartmentsOrBuilder() { - return departments_; + return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } - private void initFields() { - counteragentGroupId_ = ""; - name_ = ""; - departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -298,51 +261,106 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getCounteragentGroupIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, counteragentGroupId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, departments_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDepartments()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getCounteragentGroupIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, counteragentGroupId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, departments_); + .computeMessageSize(3, getDepartments()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup) obj; + + if (hasCounteragentGroupId() != other.hasCounteragentGroupId()) return false; + if (hasCounteragentGroupId()) { + if (!getCounteragentGroupId() + .equals(other.getCounteragentGroupId())) return false; + } + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasDepartments() != other.hasDepartments()) return false; + if (hasDepartments()) { + if (!getDepartments() + .equals(other.getDepartments())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCounteragentGroupId()) { + hash = (37 * hash) + COUNTERAGENTGROUPID_FIELD_NUMBER; + hash = (53 * hash) + getCounteragentGroupId().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasDepartments()) { + hash = (37 * hash) + DEPARTMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDepartments().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -366,42 +384,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.Counte } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -421,6 +454,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_fieldAccessorTable @@ -439,42 +473,37 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDepartmentsFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; counteragentGroupId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (departmentsBuilder_ == null) { - departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); - } else { - departmentsBuilder_.clear(); + departments_ = null; + if (departmentsBuilder_ != null) { + departmentsBuilder_.dispose(); + departmentsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup build() { Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup result = buildPartial(); if (!result.isInitialized()) { @@ -483,31 +512,35 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentG return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup buildPartial() { Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.counteragentGroupId_ = counteragentGroupId_; to_bitField0_ |= 0x00000001; } - result.counteragentGroupId_ = counteragentGroupId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; to_bitField0_ |= 0x00000002; } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.departments_ = departmentsBuilder_ == null + ? departments_ + : departmentsBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (departmentsBuilder_ == null) { - result.departments_ = departments_; - } else { - result.departments_ = departmentsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup) { return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup)other); @@ -520,49 +553,80 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup other) { if (other == Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.getDefaultInstance()) return this; if (other.hasCounteragentGroupId()) { - bitField0_ |= 0x00000001; counteragentGroupId_ = other.counteragentGroupId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasName()) { - bitField0_ |= 0x00000002; name_ = other.name_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasDepartments()) { mergeDepartments(other.getDepartments()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasCounteragentGroupId()) { - return false; } if (!hasName()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + counteragentGroupId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDepartmentsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -570,12 +634,14 @@ public Builder mergeFrom( private java.lang.Object counteragentGroupId_ = ""; /** * required string CounteragentGroupId = 1; + * @return Whether the counteragentGroupId field is set. */ public boolean hasCounteragentGroupId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string CounteragentGroupId = 1; + * @return The counteragentGroupId. */ public java.lang.String getCounteragentGroupId() { java.lang.Object ref = counteragentGroupId_; @@ -593,6 +659,7 @@ public java.lang.String getCounteragentGroupId() { } /** * required string CounteragentGroupId = 1; + * @return The bytes for counteragentGroupId. */ public com.google.protobuf.ByteString getCounteragentGroupIdBytes() { @@ -609,36 +676,37 @@ public java.lang.String getCounteragentGroupId() { } /** * required string CounteragentGroupId = 1; + * @param value The counteragentGroupId to set. + * @return This builder for chaining. */ public Builder setCounteragentGroupId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } counteragentGroupId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string CounteragentGroupId = 1; + * @return This builder for chaining. */ public Builder clearCounteragentGroupId() { - bitField0_ = (bitField0_ & ~0x00000001); counteragentGroupId_ = getDefaultInstance().getCounteragentGroupId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string CounteragentGroupId = 1; + * @param value The bytes for counteragentGroupId to set. + * @return This builder for chaining. */ public Builder setCounteragentGroupIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } counteragentGroupId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -646,12 +714,14 @@ public Builder setCounteragentGroupIdBytes( private java.lang.Object name_ = ""; /** * required string Name = 2; + * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Name = 2; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -669,6 +739,7 @@ public java.lang.String getName() { } /** * required string Name = 2; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -685,55 +756,58 @@ public java.lang.String getName() { } /** * required string Name = 2; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string Name = 2; + * @return This builder for chaining. */ public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string Name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); + private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder> departmentsBuilder_; /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3; + * @return Whether the departments field is set. */ public boolean hasDepartments() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3; + * @return The departments. */ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() { if (departmentsBuilder_ == null) { - return departments_; + return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } else { return departmentsBuilder_.getMessage(); } @@ -747,11 +821,11 @@ public Builder setDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInG throw new NullPointerException(); } departments_ = value; - onChanged(); } else { departmentsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -761,11 +835,11 @@ public Builder setDepartments( Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder builderForValue) { if (departmentsBuilder_ == null) { departments_ = builderForValue.build(); - onChanged(); } else { departmentsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -773,31 +847,33 @@ public Builder setDepartments( */ public Builder mergeDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup value) { if (departmentsBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) { - departments_ = - Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.newBuilder(departments_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + departments_ != null && + departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) { + getDepartmentsBuilder().mergeFrom(value); } else { departments_ = value; } - onChanged(); } else { departmentsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (departments_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3; */ public Builder clearDepartments() { - if (departmentsBuilder_ == null) { - departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); - onChanged(); - } else { - departmentsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + departments_ = null; + if (departmentsBuilder_ != null) { + departmentsBuilder_.dispose(); + departmentsBuilder_ = null; + } + onChanged(); return this; } /** @@ -815,7 +891,8 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI if (departmentsBuilder_ != null) { return departmentsBuilder_.getMessageOrBuilder(); } else { - return departments_; + return departments_ == null ? + Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } } /** @@ -838,12 +915,52 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup) + private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup DEFAULT_INSTANCE; static { - defaultInstance = new CounteragentGroup(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup(); + } + + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CounteragentGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup) } public interface CounteragentGroupsListOrBuilder extends @@ -876,10 +993,12 @@ Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupOrB /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ boolean hasTotalCount(); /** * required int32 TotalCount = 2; + * @return The totalCount. */ int getTotalCount(); } @@ -890,84 +1009,30 @@ public static final class CounteragentGroupsList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupsList) CounteragentGroupsListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentGroupsList.class.getName()); + } // Use CounteragentGroupsList.newBuilder() to construct. private CounteragentGroupsList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CounteragentGroupsList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CounteragentGroupsList defaultInstance; - public static CounteragentGroupsList getDefaultInstance() { - return defaultInstance; } - - public CounteragentGroupsList getDefaultInstanceForType() { - return defaultInstance; + private CounteragentGroupsList() { + groups_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CounteragentGroupsList( - 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)) { - groups_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groups_.add(input.readMessage(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.PARSER, extensionRegistry)); - break; - } - case 16: { - bitField0_ |= 0x00000001; - totalCount_ = input.readInt32(); - 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)) { - groups_ = java.util.Collections.unmodifiableList(groups_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_fieldAccessorTable @@ -975,33 +1040,21 @@ private CounteragentGroupsList( Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CounteragentGroupsList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CounteragentGroupsList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GROUPS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List groups_; /** * repeated .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup Groups = 1; */ + @java.lang.Override public java.util.List getGroupsList() { return groups_; } /** * repeated .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup Groups = 1; */ + @java.lang.Override public java.util.List getGroupsOrBuilderList() { return groups_; @@ -1009,43 +1062,47 @@ public java.util.Listrepeated .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup Groups = 1; */ + @java.lang.Override public int getGroupsCount() { return groups_.size(); } /** * repeated .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup Groups = 1; */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup getGroups(int index) { return groups_.get(index); } /** * repeated .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup Groups = 1; */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupOrBuilder getGroupsOrBuilder( int index) { return groups_.get(index); } public static final int TOTALCOUNT_FIELD_NUMBER = 2; - private int totalCount_; + private int totalCount_ = 0; /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } - private void initFields() { - groups_ = java.util.Collections.emptyList(); - totalCount_ = 0; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1065,21 +1122,21 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < groups_.size(); i++) { output.writeMessage(1, groups_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(2, totalCount_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1087,22 +1144,67 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, groups_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, totalCount_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList) obj; + + if (!getGroupsList() + .equals(other.getGroupsList())) return false; + if (hasTotalCount() != other.hasTotalCount()) return false; + if (hasTotalCount()) { + if (getTotalCount() + != other.getTotalCount()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGroupsCount() > 0) { + hash = (37 * hash) + GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getGroupsList().hashCode(); + } + if (hasTotalCount()) { + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1126,42 +1228,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.Counte } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1181,6 +1298,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_fieldAccessorTable @@ -1190,49 +1308,41 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getGroupsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (groupsBuilder_ == null) { groups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + groups_ = null; groupsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); totalCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList build() { Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList result = buildPartial(); if (!result.isInitialized()) { @@ -1241,12 +1351,18 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentG return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList buildPartial() { Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList result) { if (groupsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { groups_ = java.util.Collections.unmodifiableList(groups_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1254,15 +1370,19 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentG } else { result.groups_ = groupsBuilder_.build(); } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + } + + private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalCount_ = totalCount_; to_bitField0_ |= 0x00000001; } - result.totalCount_ = totalCount_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList) { return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList)other); @@ -1304,38 +1424,70 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupPr setTotalCount(other.getTotalCount()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotalCount()) { - return false; } for (int i = 0; i < getGroupsCount(); i++) { if (!getGroups(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup m = + input.readMessage( + Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.parser(), + extensionRegistry); + if (groupsBuilder_ == null) { + ensureGroupsIsMutable(); + groups_.add(m); + } else { + groupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1343,7 +1495,7 @@ public Builder mergeFrom( private java.util.List groups_ = java.util.Collections.emptyList(); private void ensureGroupsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { groups_ = new java.util.ArrayList(groups_); bitField0_ |= 0x00000001; } @@ -1572,7 +1724,7 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentG groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.Builder, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupOrBuilder>( groups_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); groups_ = null; @@ -1583,27 +1735,35 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentG private int totalCount_ ; /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } /** * required int32 TotalCount = 2; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - bitField0_ |= 0x00000002; + totalCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int32 TotalCount = 2; + * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1615,22 +1775,62 @@ public Builder clearTotalCount() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupsList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupsList) + private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList DEFAULT_INSTANCE; static { - defaultInstance = new CounteragentGroupsList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList(); + } + + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CounteragentGroupsList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupsList) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_fieldAccessorTable; @@ -1638,7 +1838,7 @@ public Builder clearTotalCount() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1651,22 +1851,14 @@ public Builder clearTotalCount() { "gentGroups.DepartmentsInGroup\"t\n\026Counter" + "agentGroupsList\022F\n\006Groups\030\001 \003(\01326.Diadoc" + ".Api.Proto.CounteragentGroups.Counterage" + - "ntGroup\022\022\n\nTotalCount\030\002 \002(\005B\031B\027Counterag", + "ntGroup\022\022\n\nTotalCount\030\002 \002(\005B\031B\027Counterag" + "entGroupProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_fieldAccessorTable = new @@ -1679,6 +1871,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_descriptor, new java.lang.String[] { "Groups", "TotalCount", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupToCreateProtos.java b/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupToCreateProtos.java index 8a369e49..8e7c9ff1 100644 --- a/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupToCreateProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupToCreateProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CounteragentGroups/CounteragentGroupToCreate.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.CounteragentGroups; public final class CounteragentGroupToCreateProtos { private CounteragentGroupToCreateProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentGroupToCreateProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CounteragentGroupToCreateOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreate) @@ -14,24 +31,29 @@ public interface CounteragentGroupToCreateOrBuilder extends /** * required string Name = 1; + * @return Whether the name field is set. */ boolean hasName(); /** * required string Name = 1; + * @return The name. */ java.lang.String getName(); /** * required string Name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return Whether the departments field is set. */ boolean hasDepartments(); /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return The departments. */ Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments(); /** @@ -46,87 +68,30 @@ public static final class CounteragentGroupToCreate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreate) CounteragentGroupToCreateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentGroupToCreate.class.getName()); + } // Use CounteragentGroupToCreate.newBuilder() to construct. private CounteragentGroupToCreate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CounteragentGroupToCreate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CounteragentGroupToCreate defaultInstance; - public static CounteragentGroupToCreate getDefaultInstance() { - return defaultInstance; } - - public CounteragentGroupToCreate getDefaultInstanceForType() { - return defaultInstance; + private CounteragentGroupToCreate() { + name_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CounteragentGroupToCreate( - 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; - name_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = departments_.toBuilder(); - } - departments_ = input.readMessage(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(departments_); - departments_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_fieldAccessorTable @@ -134,33 +99,23 @@ private CounteragentGroupToCreate( Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CounteragentGroupToCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CounteragentGroupToCreate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * required string Name = 1; + * @return Whether the name field is set. */ + @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -177,7 +132,9 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -196,28 +153,30 @@ public java.lang.String getName() { private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_; /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return Whether the departments field is set. */ + @java.lang.Override public boolean hasDepartments() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return The departments. */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() { - return departments_; + return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder getDepartmentsOrBuilder() { - return departments_; + return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } - private void initFields() { - name_ = ""; - departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -231,44 +190,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, departments_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDepartments()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, departments_); + .computeMessageSize(2, getDepartments()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasDepartments() != other.hasDepartments()) return false; + if (hasDepartments()) { + if (!getDepartments() + .equals(other.getDepartments())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasDepartments()) { + hash = (37 * hash) + DEPARTMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDepartments().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -292,42 +298,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProto } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -347,6 +368,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_fieldAccessorTable @@ -365,40 +387,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDepartmentsFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (departmentsBuilder_ == null) { - departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); - } else { - departmentsBuilder_.clear(); + departments_ = null; + if (departmentsBuilder_ != null) { + departmentsBuilder_.dispose(); + departmentsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate build() { Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate result = buildPartial(); if (!result.isInitialized()) { @@ -407,27 +425,31 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.Count return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate buildPartial() { Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; to_bitField0_ |= 0x00000001; } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.departments_ = departmentsBuilder_ == null + ? departments_ + : departmentsBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (departmentsBuilder_ == null) { - result.departments_ = departments_; - } else { - result.departments_ = departmentsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate) { return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate)other); @@ -440,40 +462,67 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate other) { if (other == Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDepartments()) { mergeDepartments(other.getDepartments()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasName()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDepartmentsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -481,12 +530,14 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** * required string Name = 1; + * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -504,6 +555,7 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -520,55 +572,58 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Name = 1; + * @return This builder for chaining. */ public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); + private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder> departmentsBuilder_; /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return Whether the departments field is set. */ public boolean hasDepartments() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return The departments. */ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() { if (departmentsBuilder_ == null) { - return departments_; + return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } else { return departmentsBuilder_.getMessage(); } @@ -582,11 +637,11 @@ public Builder setDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInG throw new NullPointerException(); } departments_ = value; - onChanged(); } else { departmentsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -596,11 +651,11 @@ public Builder setDepartments( Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder builderForValue) { if (departmentsBuilder_ == null) { departments_ = builderForValue.build(); - onChanged(); } else { departmentsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -608,31 +663,33 @@ public Builder setDepartments( */ public Builder mergeDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup value) { if (departmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) { - departments_ = - Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.newBuilder(departments_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + departments_ != null && + departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) { + getDepartmentsBuilder().mergeFrom(value); } else { departments_ = value; } - onChanged(); } else { departmentsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (departments_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; */ public Builder clearDepartments() { - if (departmentsBuilder_ == null) { - departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); - onChanged(); - } else { - departmentsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + departments_ = null; + if (departmentsBuilder_ != null) { + departmentsBuilder_.dispose(); + departmentsBuilder_ = null; + } + onChanged(); return this; } /** @@ -650,7 +707,8 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI if (departmentsBuilder_ != null) { return departmentsBuilder_.getMessageOrBuilder(); } else { - return departments_; + return departments_ == null ? + Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } } /** @@ -673,17 +731,57 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreate) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreate) + private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate DEFAULT_INSTANCE; static { - defaultInstance = new CounteragentGroupToCreate(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate(); + } + + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CounteragentGroupToCreate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreate) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_fieldAccessorTable; @@ -691,7 +789,7 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -704,25 +802,18 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI "artmentsInGroupB!B\037CounteragentGroupToCr" + "eateProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_descriptor, new java.lang.String[] { "Name", "Departments", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupToUpdateProtos.java b/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupToUpdateProtos.java index a2c7b31b..77445841 100644 --- a/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupToUpdateProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CounteragentGroups/CounteragentGroupToUpdateProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CounteragentGroups/CounteragentGroupToUpdate.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.CounteragentGroups; public final class CounteragentGroupToUpdateProtos { private CounteragentGroupToUpdateProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentGroupToUpdateProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CounteragentGroupToUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdate) @@ -14,24 +31,29 @@ public interface CounteragentGroupToUpdateOrBuilder extends /** * optional string Name = 1; + * @return Whether the name field is set. */ boolean hasName(); /** * optional string Name = 1; + * @return The name. */ java.lang.String getName(); /** * optional string Name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2; + * @return Whether the groupDepartments field is set. */ boolean hasGroupDepartments(); /** * optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2; + * @return The groupDepartments. */ Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getGroupDepartments(); /** @@ -46,87 +68,30 @@ public static final class CounteragentGroupToUpdate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdate) CounteragentGroupToUpdateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentGroupToUpdate.class.getName()); + } // Use CounteragentGroupToUpdate.newBuilder() to construct. private CounteragentGroupToUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CounteragentGroupToUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CounteragentGroupToUpdate defaultInstance; - public static CounteragentGroupToUpdate getDefaultInstance() { - return defaultInstance; } - - public CounteragentGroupToUpdate getDefaultInstanceForType() { - return defaultInstance; + private CounteragentGroupToUpdate() { + name_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CounteragentGroupToUpdate( - 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; - name_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = groupDepartments_.toBuilder(); - } - groupDepartments_ = input.readMessage(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(groupDepartments_); - groupDepartments_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_fieldAccessorTable @@ -134,33 +99,23 @@ private CounteragentGroupToUpdate( Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CounteragentGroupToUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CounteragentGroupToUpdate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * optional string Name = 1; + * @return Whether the name field is set. */ + @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -177,7 +132,9 @@ public java.lang.String getName() { } /** * optional string Name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -196,28 +153,30 @@ public java.lang.String getName() { private Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch groupDepartments_; /** * optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2; + * @return Whether the groupDepartments field is set. */ + @java.lang.Override public boolean hasGroupDepartments() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2; + * @return The groupDepartments. */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getGroupDepartments() { - return groupDepartments_; + return groupDepartments_ == null ? Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance() : groupDepartments_; } /** * optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2; */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatchOrBuilder getGroupDepartmentsOrBuilder() { - return groupDepartments_; + return groupDepartments_ == null ? Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance() : groupDepartments_; } - private void initFields() { - name_ = ""; - groupDepartments_ = Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -233,44 +192,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, groupDepartments_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getGroupDepartments()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, groupDepartments_); + .computeMessageSize(2, getGroupDepartments()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasGroupDepartments() != other.hasGroupDepartments()) return false; + if (hasGroupDepartments()) { + if (!getGroupDepartments() + .equals(other.getGroupDepartments())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasGroupDepartments()) { + hash = (37 * hash) + GROUPDEPARTMENTS_FIELD_NUMBER; + hash = (53 * hash) + getGroupDepartments().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -294,42 +300,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProto } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -349,6 +370,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_fieldAccessorTable @@ -367,40 +389,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getGroupDepartmentsFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (groupDepartmentsBuilder_ == null) { - groupDepartments_ = Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance(); - } else { - groupDepartmentsBuilder_.clear(); + groupDepartments_ = null; + if (groupDepartmentsBuilder_ != null) { + groupDepartmentsBuilder_.dispose(); + groupDepartmentsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate build() { Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate result = buildPartial(); if (!result.isInitialized()) { @@ -409,27 +427,31 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.Count return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate buildPartial() { Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; to_bitField0_ |= 0x00000001; } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.groupDepartments_ = groupDepartmentsBuilder_ == null + ? groupDepartments_ + : groupDepartmentsBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (groupDepartmentsBuilder_ == null) { - result.groupDepartments_ = groupDepartments_; - } else { - result.groupDepartments_ = groupDepartmentsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate) { return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate)other); @@ -442,42 +464,69 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate other) { if (other == Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasGroupDepartments()) { mergeGroupDepartments(other.getGroupDepartments()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasGroupDepartments()) { if (!getGroupDepartments().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGroupDepartmentsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -485,12 +534,14 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** * optional string Name = 1; + * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -508,6 +559,7 @@ public java.lang.String getName() { } /** * optional string Name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -524,55 +576,58 @@ public java.lang.String getName() { } /** * optional string Name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string Name = 1; + * @return This builder for chaining. */ public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string Name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch groupDepartments_ = Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance(); + private Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch groupDepartments_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.Builder, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatchOrBuilder> groupDepartmentsBuilder_; /** * optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2; + * @return Whether the groupDepartments field is set. */ public boolean hasGroupDepartments() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2; + * @return The groupDepartments. */ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getGroupDepartments() { if (groupDepartmentsBuilder_ == null) { - return groupDepartments_; + return groupDepartments_ == null ? Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance() : groupDepartments_; } else { return groupDepartmentsBuilder_.getMessage(); } @@ -586,11 +641,11 @@ public Builder setGroupDepartments(Diadoc.Api.Proto.CounteragentGroups.Counterag throw new NullPointerException(); } groupDepartments_ = value; - onChanged(); } else { groupDepartmentsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -600,11 +655,11 @@ public Builder setGroupDepartments( Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.Builder builderForValue) { if (groupDepartmentsBuilder_ == null) { groupDepartments_ = builderForValue.build(); - onChanged(); } else { groupDepartmentsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -612,31 +667,33 @@ public Builder setGroupDepartments( */ public Builder mergeGroupDepartments(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch value) { if (groupDepartmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - groupDepartments_ != Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance()) { - groupDepartments_ = - Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.newBuilder(groupDepartments_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + groupDepartments_ != null && + groupDepartments_ != Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance()) { + getGroupDepartmentsBuilder().mergeFrom(value); } else { groupDepartments_ = value; } - onChanged(); } else { groupDepartmentsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (groupDepartments_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2; */ public Builder clearGroupDepartments() { - if (groupDepartmentsBuilder_ == null) { - groupDepartments_ = Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance(); - onChanged(); - } else { - groupDepartmentsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + groupDepartments_ = null; + if (groupDepartmentsBuilder_ != null) { + groupDepartmentsBuilder_.dispose(); + groupDepartmentsBuilder_ = null; + } + onChanged(); return this; } /** @@ -654,7 +711,8 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.Count if (groupDepartmentsBuilder_ != null) { return groupDepartmentsBuilder_.getMessageOrBuilder(); } else { - return groupDepartments_; + return groupDepartments_ == null ? + Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance() : groupDepartments_; } } /** @@ -677,12 +735,52 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.Count // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdate) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdate) + private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate DEFAULT_INSTANCE; static { - defaultInstance = new CounteragentGroupToUpdate(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate(); + } + + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CounteragentGroupToUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdate) } public interface CounteragentGroupDepartmentPatchOrBuilder extends @@ -691,19 +789,23 @@ public interface CounteragentGroupDepartmentPatchOrBuilder extends /** * required bool AnyDepartment = 1; + * @return Whether the anyDepartment field is set. */ boolean hasAnyDepartment(); /** * required bool AnyDepartment = 1; + * @return The anyDepartment. */ boolean getAnyDepartment(); /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return Whether the departments field is set. */ boolean hasDepartments(); /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return The departments. */ Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments(); /** @@ -718,86 +820,29 @@ public static final class CounteragentGroupDepartmentPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch) CounteragentGroupDepartmentPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentGroupDepartmentPatch.class.getName()); + } // Use CounteragentGroupDepartmentPatch.newBuilder() to construct. private CounteragentGroupDepartmentPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private CounteragentGroupDepartmentPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CounteragentGroupDepartmentPatch defaultInstance; - public static CounteragentGroupDepartmentPatch getDefaultInstance() { - return defaultInstance; - } - - public CounteragentGroupDepartmentPatch getDefaultInstanceForType() { - return defaultInstance; + private CounteragentGroupDepartmentPatch() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CounteragentGroupDepartmentPatch( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - anyDepartment_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = departments_.toBuilder(); - } - departments_ = input.readMessage(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(departments_); - departments_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_fieldAccessorTable @@ -805,33 +850,22 @@ private CounteragentGroupDepartmentPatch( Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CounteragentGroupDepartmentPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CounteragentGroupDepartmentPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ANYDEPARTMENT_FIELD_NUMBER = 1; - private boolean anyDepartment_; + private boolean anyDepartment_ = false; /** * required bool AnyDepartment = 1; + * @return Whether the anyDepartment field is set. */ + @java.lang.Override public boolean hasAnyDepartment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool AnyDepartment = 1; + * @return The anyDepartment. */ + @java.lang.Override public boolean getAnyDepartment() { return anyDepartment_; } @@ -840,28 +874,30 @@ public boolean getAnyDepartment() { private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_; /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return Whether the departments field is set. */ + @java.lang.Override public boolean hasDepartments() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return The departments. */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() { - return departments_; + return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder getDepartmentsOrBuilder() { - return departments_; + return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } - private void initFields() { - anyDepartment_ = false; - departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -875,44 +911,93 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, anyDepartment_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, departments_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDepartments()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, anyDepartment_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, departments_); + .computeMessageSize(2, getDepartments()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch) obj; + + if (hasAnyDepartment() != other.hasAnyDepartment()) return false; + if (hasAnyDepartment()) { + if (getAnyDepartment() + != other.getAnyDepartment()) return false; + } + if (hasDepartments() != other.hasDepartments()) return false; + if (hasDepartments()) { + if (!getDepartments() + .equals(other.getDepartments())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAnyDepartment()) { + hash = (37 * hash) + ANYDEPARTMENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAnyDepartment()); + } + if (hasDepartments()) { + hash = (37 * hash) + DEPARTMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDepartments().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -936,42 +1021,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProto } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -991,6 +1091,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_fieldAccessorTable @@ -1009,40 +1110,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDepartmentsFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; anyDepartment_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (departmentsBuilder_ == null) { - departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); - } else { - departmentsBuilder_.clear(); + departments_ = null; + if (departmentsBuilder_ != null) { + departmentsBuilder_.dispose(); + departmentsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch build() { Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch result = buildPartial(); if (!result.isInitialized()) { @@ -1051,27 +1148,31 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.Count return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch buildPartial() { Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.anyDepartment_ = anyDepartment_; to_bitField0_ |= 0x00000001; } - result.anyDepartment_ = anyDepartment_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.departments_ = departmentsBuilder_ == null + ? departments_ + : departmentsBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (departmentsBuilder_ == null) { - result.departments_ = departments_; - } else { - result.departments_ = departmentsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch) { return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch)other); @@ -1090,32 +1191,59 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupTo mergeDepartments(other.getDepartments()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasAnyDepartment()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + anyDepartment_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getDepartmentsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1123,27 +1251,35 @@ public Builder mergeFrom( private boolean anyDepartment_ ; /** * required bool AnyDepartment = 1; + * @return Whether the anyDepartment field is set. */ + @java.lang.Override public boolean hasAnyDepartment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool AnyDepartment = 1; + * @return The anyDepartment. */ + @java.lang.Override public boolean getAnyDepartment() { return anyDepartment_; } /** * required bool AnyDepartment = 1; + * @param value The anyDepartment to set. + * @return This builder for chaining. */ public Builder setAnyDepartment(boolean value) { - bitField0_ |= 0x00000001; + anyDepartment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool AnyDepartment = 1; + * @return This builder for chaining. */ public Builder clearAnyDepartment() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1152,21 +1288,23 @@ public Builder clearAnyDepartment() { return this; } - private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); + private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder> departmentsBuilder_; /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return Whether the departments field is set. */ public boolean hasDepartments() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; + * @return The departments. */ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() { if (departmentsBuilder_ == null) { - return departments_; + return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } else { return departmentsBuilder_.getMessage(); } @@ -1180,11 +1318,11 @@ public Builder setDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInG throw new NullPointerException(); } departments_ = value; - onChanged(); } else { departmentsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1194,11 +1332,11 @@ public Builder setDepartments( Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder builderForValue) { if (departmentsBuilder_ == null) { departments_ = builderForValue.build(); - onChanged(); } else { departmentsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1206,31 +1344,33 @@ public Builder setDepartments( */ public Builder mergeDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup value) { if (departmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) { - departments_ = - Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.newBuilder(departments_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + departments_ != null && + departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) { + getDepartmentsBuilder().mergeFrom(value); } else { departments_ = value; } - onChanged(); } else { departmentsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (departments_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2; */ public Builder clearDepartments() { - if (departmentsBuilder_ == null) { - departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); - onChanged(); - } else { - departmentsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + departments_ = null; + if (departmentsBuilder_ != null) { + departmentsBuilder_.dispose(); + departmentsBuilder_ = null; + } + onChanged(); return this; } /** @@ -1248,7 +1388,8 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI if (departmentsBuilder_ != null) { return departmentsBuilder_.getMessageOrBuilder(); } else { - return departments_; + return departments_ == null ? + Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_; } } /** @@ -1271,22 +1412,62 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch) + private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch DEFAULT_INSTANCE; static { - defaultInstance = new CounteragentGroupDepartmentPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch(); + } + + public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CounteragentGroupDepartmentPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_fieldAccessorTable; @@ -1294,7 +1475,7 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1307,23 +1488,15 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI "ps.CounteragentGroupDepartmentPatch\"\207\001\n " + "CounteragentGroupDepartmentPatch\022\025\n\rAnyD" + "epartment\030\001 \002(\010\022L\n\013Departments\030\002 \001(\01327.D" + - "iadoc.Api.Proto.CounteragentGroups.Depar", + "iadoc.Api.Proto.CounteragentGroups.Depar" + "tmentsInGroupB!B\037CounteragentGroupToUpda" + "teProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_fieldAccessorTable = new @@ -1336,6 +1509,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_descriptor, new java.lang.String[] { "AnyDepartment", "Departments", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/CounteragentGroups/DepartmentsInGroupProtos.java b/src/main/java/Diadoc/Api/Proto/CounteragentGroups/DepartmentsInGroupProtos.java index 0962030b..95759efc 100644 --- a/src/main/java/Diadoc/Api/Proto/CounteragentGroups/DepartmentsInGroupProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CounteragentGroups/DepartmentsInGroupProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CounteragentGroups/DepartmentsInGroup.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.CounteragentGroups; public final class DepartmentsInGroupProtos { private DepartmentsInGroupProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentsInGroupProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DepartmentsInGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup) @@ -14,19 +31,25 @@ public interface DepartmentsInGroupOrBuilder extends /** * repeated string DepartmentIds = 1; + * @return A list containing the departmentIds. */ - com.google.protobuf.ProtocolStringList + java.util.List getDepartmentIdsList(); /** * repeated string DepartmentIds = 1; + * @return The count of departmentIds. */ int getDepartmentIdsCount(); /** * repeated string DepartmentIds = 1; + * @param index The index of the element to return. + * @return The departmentIds at the given index. */ java.lang.String getDepartmentIds(int index); /** * repeated string DepartmentIds = 1; + * @param index The index of the value to return. + * @return The bytes of the departmentIds at the given index. */ com.google.protobuf.ByteString getDepartmentIdsBytes(int index); @@ -38,80 +61,31 @@ public static final class DepartmentsInGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup) DepartmentsInGroupOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentsInGroup.class.getName()); + } // Use DepartmentsInGroup.newBuilder() to construct. private DepartmentsInGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DepartmentsInGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DepartmentsInGroup defaultInstance; - public static DepartmentsInGroup getDefaultInstance() { - return defaultInstance; + private DepartmentsInGroup() { + departmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } - public DepartmentsInGroup getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepartmentsInGroup( - 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(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - departmentIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - departmentIds_.add(bs); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - departmentIds_ = departmentIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_DepartmentsInGroup_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_DepartmentsInGroup_fieldAccessorTable @@ -119,25 +93,13 @@ private DepartmentsInGroup( Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.class, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DepartmentsInGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepartmentsInGroup(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int DEPARTMENTIDS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList departmentIds_; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList departmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string DepartmentIds = 1; + * @return A list containing the departmentIds. */ public com.google.protobuf.ProtocolStringList getDepartmentIdsList() { @@ -145,28 +107,31 @@ public com.google.protobuf.Parser getParserForType() { } /** * repeated string DepartmentIds = 1; + * @return The count of departmentIds. */ public int getDepartmentIdsCount() { return departmentIds_.size(); } /** * repeated string DepartmentIds = 1; + * @param index The index of the element to return. + * @return The departmentIds at the given index. */ public java.lang.String getDepartmentIds(int index) { return departmentIds_.get(index); } /** * repeated string DepartmentIds = 1; + * @param index The index of the value to return. + * @return The bytes of the departmentIds at the given index. */ public com.google.protobuf.ByteString getDepartmentIdsBytes(int index) { return departmentIds_.getByteString(index); } - private void initFields() { - departmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -176,42 +141,77 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < departmentIds_.size(); i++) { - output.writeBytes(1, departmentIds_.getByteString(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, departmentIds_.getRaw(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < departmentIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(departmentIds_.getByteString(i)); + dataSize += computeStringSizeNoTag(departmentIds_.getRaw(i)); } size += dataSize; size += 1 * getDepartmentIdsList().size(); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup other = (Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup) obj; + + if (!getDepartmentIdsList() + .equals(other.getDepartmentIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDepartmentIdsCount() > 0) { + hash = (37 * hash) + DEPARTMENTIDS_FIELD_NUMBER; + hash = (53 * hash) + getDepartmentIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -235,42 +235,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.Depar } public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -290,6 +305,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_DepartmentsInGroup_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_DepartmentsInGroup_fieldAccessorTable @@ -299,42 +315,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - departmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + departmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_DepartmentsInGroup_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup build() { Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup result = buildPartial(); if (!result.isInitialized()) { @@ -343,18 +352,23 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup buildPartial() { Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup result = new Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - departmentIds_ = departmentIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.departmentIds_ = departmentIds_; + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + departmentIds_.makeImmutable(); + result.departmentIds_ = departmentIds_; + } + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup) { return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup)other); @@ -369,7 +383,7 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupP if (!other.departmentIds_.isEmpty()) { if (departmentIds_.isEmpty()) { departmentIds_ = other.departmentIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureDepartmentIdsIsMutable(); departmentIds_.addAll(other.departmentIds_); @@ -377,60 +391,90 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupP onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureDepartmentIdsIsMutable(); + departmentIds_.add(bs); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private com.google.protobuf.LazyStringList departmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList departmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDepartmentIdsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!departmentIds_.isModifiable()) { departmentIds_ = new com.google.protobuf.LazyStringArrayList(departmentIds_); - bitField0_ |= 0x00000001; - } + } + bitField0_ |= 0x00000001; } /** * repeated string DepartmentIds = 1; + * @return A list containing the departmentIds. */ public com.google.protobuf.ProtocolStringList getDepartmentIdsList() { - return departmentIds_.getUnmodifiableView(); + departmentIds_.makeImmutable(); + return departmentIds_; } /** * repeated string DepartmentIds = 1; + * @return The count of departmentIds. */ public int getDepartmentIdsCount() { return departmentIds_.size(); } /** * repeated string DepartmentIds = 1; + * @param index The index of the element to return. + * @return The departmentIds at the given index. */ public java.lang.String getDepartmentIds(int index) { return departmentIds_.get(index); } /** * repeated string DepartmentIds = 1; + * @param index The index of the value to return. + * @return The bytes of the departmentIds at the given index. */ public com.google.protobuf.ByteString getDepartmentIdsBytes(int index) { @@ -438,60 +482,69 @@ public java.lang.String getDepartmentIds(int index) { } /** * repeated string DepartmentIds = 1; + * @param index The index to set the value at. + * @param value The departmentIds to set. + * @return This builder for chaining. */ public Builder setDepartmentIds( int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepartmentIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureDepartmentIdsIsMutable(); departmentIds_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string DepartmentIds = 1; + * @param value The departmentIds to add. + * @return This builder for chaining. */ public Builder addDepartmentIds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepartmentIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureDepartmentIdsIsMutable(); departmentIds_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string DepartmentIds = 1; + * @param values The departmentIds to add. + * @return This builder for chaining. */ public Builder addAllDepartmentIds( java.lang.Iterable values) { ensureDepartmentIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, departmentIds_); + bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string DepartmentIds = 1; + * @return This builder for chaining. */ public Builder clearDepartmentIds() { - departmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + departmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** * repeated string DepartmentIds = 1; + * @param value The bytes of the departmentIds to add. + * @return This builder for chaining. */ public Builder addDepartmentIdsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepartmentIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureDepartmentIdsIsMutable(); departmentIds_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -499,17 +552,57 @@ public Builder addDepartmentIdsBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup) + private static final Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup DEFAULT_INSTANCE; static { - defaultInstance = new DepartmentsInGroup(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup(); + } + + public static Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DepartmentsInGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CounteragentGroups_DepartmentsInGroup_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CounteragentGroups_DepartmentsInGroup_fieldAccessorTable; @@ -517,7 +610,7 @@ public Builder addDepartmentIdsBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -526,24 +619,17 @@ public Builder addDepartmentIdsBytes( "ps\"+\n\022DepartmentsInGroup\022\025\n\rDepartmentId" + "s\030\001 \003(\tB\032B\030DepartmentsInGroupProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_CounteragentGroups_DepartmentsInGroup_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CounteragentGroups_DepartmentsInGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_CounteragentGroups_DepartmentsInGroup_descriptor, new java.lang.String[] { "DepartmentIds", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/CounteragentProtos.java b/src/main/java/Diadoc/Api/Proto/CounteragentProtos.java index 013ef384..6f9d220d 100644 --- a/src/main/java/Diadoc/Api/Proto/CounteragentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CounteragentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Counteragent.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class CounteragentProtos { private CounteragentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.CounteragentStatus} @@ -16,33 +33,42 @@ public enum CounteragentStatus /** * UnknownCounteragentStatus = 0; */ - UnknownCounteragentStatus(0, 0), + UnknownCounteragentStatus(0), /** * IsMyCounteragent = 1; */ - IsMyCounteragent(1, 1), + IsMyCounteragent(1), /** * InvitesMe = 2; */ - InvitesMe(2, 2), + InvitesMe(2), /** * IsInvitedByMe = 3; */ - IsInvitedByMe(3, 3), + IsInvitedByMe(3), /** * RejectsMe = 5; */ - RejectsMe(4, 5), + RejectsMe(5), /** * IsRejectedByMe = 6; */ - IsRejectedByMe(5, 6), + IsRejectedByMe(6), /** * NotInCounteragentList = 7; */ - NotInCounteragentList(6, 7), + NotInCounteragentList(7), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentStatus.class.getName()); + } /** * UnknownCounteragentStatus = 0; */ @@ -73,9 +99,25 @@ public enum CounteragentStatus public static final int NotInCounteragentList_VALUE = 7; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static CounteragentStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CounteragentStatus forNumber(int value) { switch (value) { case 0: return UnknownCounteragentStatus; case 1: return IsMyCounteragent; @@ -92,17 +134,17 @@ public static CounteragentStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + CounteragentStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CounteragentStatus findValueByNumber(int number) { - return CounteragentStatus.valueOf(number); + return CounteragentStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -124,11 +166,9 @@ public static CounteragentStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private CounteragentStatus(int index, int value) { - this.index = index; + private CounteragentStatus(int value) { this.value = value; } @@ -141,10 +181,12 @@ public interface CounteragentListOrBuilder extends /** * required int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ boolean hasTotalCount(); /** * required int32 TotalCount = 1; + * @return The totalCount. */ int getTotalCount(); @@ -174,10 +216,12 @@ Diadoc.Api.Proto.CounteragentProtos.CounteragentOrBuilder getCounteragentsOrBuil /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ boolean hasTotalCountType(); /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType(); } @@ -188,95 +232,31 @@ public static final class CounteragentList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentList) CounteragentListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentList.class.getName()); + } // Use CounteragentList.newBuilder() to construct. private CounteragentList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private CounteragentList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CounteragentList defaultInstance; - public static CounteragentList getDefaultInstance() { - return defaultInstance; - } - - public CounteragentList getDefaultInstanceForType() { - return defaultInstance; + private CounteragentList() { + counteragents_ = java.util.Collections.emptyList(); + totalCountType_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CounteragentList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - totalCount_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - counteragents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - counteragents_.add(input.readMessage(Diadoc.Api.Proto.CounteragentProtos.Counteragent.PARSER, extensionRegistry)); - break; - } - case 24: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType value = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000002; - totalCountType_ = value; - } - 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_ & 0x00000002) == 0x00000002)) { - counteragents_ = java.util.Collections.unmodifiableList(counteragents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_CounteragentList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_CounteragentList_fieldAccessorTable @@ -284,48 +264,40 @@ private CounteragentList( Diadoc.Api.Proto.CounteragentProtos.CounteragentList.class, Diadoc.Api.Proto.CounteragentProtos.CounteragentList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CounteragentList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CounteragentList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TOTALCOUNT_FIELD_NUMBER = 1; - private int totalCount_; + private int totalCount_ = 0; /** * required int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 TotalCount = 1; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } public static final int COUNTERAGENTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List counteragents_; /** * repeated .Diadoc.Api.Proto.Counteragent Counteragents = 2; */ + @java.lang.Override public java.util.List getCounteragentsList() { return counteragents_; } /** * repeated .Diadoc.Api.Proto.Counteragent Counteragents = 2; */ + @java.lang.Override public java.util.List getCounteragentsOrBuilderList() { return counteragents_; @@ -333,44 +305,46 @@ public java.util.List getCount /** * repeated .Diadoc.Api.Proto.Counteragent Counteragents = 2; */ + @java.lang.Override public int getCounteragentsCount() { return counteragents_.size(); } /** * repeated .Diadoc.Api.Proto.Counteragent Counteragents = 2; */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.Counteragent getCounteragents(int index) { return counteragents_.get(index); } /** * repeated .Diadoc.Api.Proto.Counteragent Counteragents = 2; */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentOrBuilder getCounteragentsOrBuilder( int index) { return counteragents_.get(index); } public static final int TOTALCOUNTTYPE_FIELD_NUMBER = 3; - private Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType totalCountType_; + private int totalCountType_ = 0; /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ - public boolean hasTotalCountType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasTotalCountType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ - public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { - return totalCountType_; + @java.lang.Override public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType result = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(totalCountType_); + return result == null ? Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType : result; } - private void initFields() { - totalCount_ = 0; - counteragents_ = java.util.Collections.emptyList(); - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -394,28 +368,28 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, totalCount_); } for (int i = 0; i < counteragents_.size(); i++) { output.writeMessage(2, counteragents_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(3, totalCountType_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, totalCountType_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, totalCount_); } @@ -423,22 +397,75 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, counteragents_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, totalCountType_.getNumber()); + .computeEnumSize(3, totalCountType_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentProtos.CounteragentList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentProtos.CounteragentList other = (Diadoc.Api.Proto.CounteragentProtos.CounteragentList) obj; + + if (hasTotalCount() != other.hasTotalCount()) return false; + if (hasTotalCount()) { + if (getTotalCount() + != other.getTotalCount()) return false; + } + if (!getCounteragentsList() + .equals(other.getCounteragentsList())) return false; + if (hasTotalCountType() != other.hasTotalCountType()) return false; + if (hasTotalCountType()) { + if (totalCountType_ != other.totalCountType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalCount()) { + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + } + if (getCounteragentsCount() > 0) { + hash = (37 * hash) + COUNTERAGENTS_FIELD_NUMBER; + hash = (53 * hash) + getCounteragentsList().hashCode(); + } + if (hasTotalCountType()) { + hash = (37 * hash) + TOTALCOUNTTYPE_FIELD_NUMBER; + hash = (53 * hash) + totalCountType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -462,42 +489,57 @@ public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList parseFrom( } public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentProtos.CounteragentList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -517,6 +559,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_CounteragentList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_CounteragentList_fieldAccessorTable @@ -526,51 +569,42 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CounteragentProtos.CounteragentList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getCounteragentsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; totalCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); if (counteragentsBuilder_ == null) { counteragents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + counteragents_ = null; counteragentsBuilder_.clear(); } - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); + totalCountType_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_CounteragentList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentList getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentProtos.CounteragentList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentList build() { Diadoc.Api.Proto.CounteragentProtos.CounteragentList result = buildPartial(); if (!result.isInitialized()) { @@ -579,16 +613,18 @@ public Diadoc.Api.Proto.CounteragentProtos.CounteragentList build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentList buildPartial() { Diadoc.Api.Proto.CounteragentProtos.CounteragentList result = new Diadoc.Api.Proto.CounteragentProtos.CounteragentList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.totalCount_ = totalCount_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.CounteragentProtos.CounteragentList result) { if (counteragentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { counteragents_ = java.util.Collections.unmodifiableList(counteragents_); bitField0_ = (bitField0_ & ~0x00000002); } @@ -596,15 +632,23 @@ public Diadoc.Api.Proto.CounteragentProtos.CounteragentList buildPartial() { } else { result.counteragents_ = counteragentsBuilder_.build(); } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + } + + private void buildPartial0(Diadoc.Api.Proto.CounteragentProtos.CounteragentList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalCount_ = totalCount_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalCountType_ = totalCountType_; to_bitField0_ |= 0x00000002; } - result.totalCountType_ = totalCountType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentProtos.CounteragentList) { return mergeFrom((Diadoc.Api.Proto.CounteragentProtos.CounteragentList)other); @@ -649,42 +693,85 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentProtos.CounteragentList ot setTotalCountType(other.getTotalCountType()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotalCount()) { - return false; } if (!hasTotalCountType()) { - return false; } for (int i = 0; i < getCounteragentsCount(); i++) { if (!getCounteragents(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentProtos.CounteragentList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + Diadoc.Api.Proto.CounteragentProtos.Counteragent m = + input.readMessage( + Diadoc.Api.Proto.CounteragentProtos.Counteragent.parser(), + extensionRegistry); + if (counteragentsBuilder_ == null) { + ensureCounteragentsIsMutable(); + counteragents_.add(m); + } else { + counteragentsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType tmpValue = + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + totalCountType_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentProtos.CounteragentList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -692,27 +779,35 @@ public Builder mergeFrom( private int totalCount_ ; /** * required int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 TotalCount = 1; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } /** * required int32 TotalCount = 1; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - bitField0_ |= 0x00000001; + totalCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int32 TotalCount = 1; + * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000001); @@ -724,7 +819,7 @@ public Builder clearTotalCount() { private java.util.List counteragents_ = java.util.Collections.emptyList(); private void ensureCounteragentsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { counteragents_ = new java.util.ArrayList(counteragents_); bitField0_ |= 0x00000002; } @@ -953,7 +1048,7 @@ public Diadoc.Api.Proto.CounteragentProtos.Counteragent.Builder addCounteragents counteragentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.CounteragentProtos.Counteragent, Diadoc.Api.Proto.CounteragentProtos.Counteragent.Builder, Diadoc.Api.Proto.CounteragentProtos.CounteragentOrBuilder>( counteragents_, - ((bitField0_ & 0x00000002) == 0x00000002), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); counteragents_ = null; @@ -961,37 +1056,44 @@ public Diadoc.Api.Proto.CounteragentProtos.Counteragent.Builder addCounteragents return counteragentsBuilder_; } - private Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; + private int totalCountType_ = 0; /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ - public boolean hasTotalCountType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasTotalCountType() { + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ + @java.lang.Override public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { - return totalCountType_; + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType result = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(totalCountType_); + return result == null ? Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType : result; } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @param value The totalCountType to set. + * @return This builder for chaining. */ public Builder setTotalCountType(Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - totalCountType_ = value; + totalCountType_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return This builder for chaining. */ public Builder clearTotalCountType() { bitField0_ = (bitField0_ & ~0x00000004); - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; + totalCountType_ = 0; onChanged(); return this; } @@ -999,12 +1101,52 @@ public Builder clearTotalCountType() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentList) + private static final Diadoc.Api.Proto.CounteragentProtos.CounteragentList DEFAULT_INSTANCE; static { - defaultInstance = new CounteragentList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentProtos.CounteragentList(); + } + + public static Diadoc.Api.Proto.CounteragentProtos.CounteragentList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CounteragentList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentProtos.CounteragentList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentList) } public interface CounteragentOrBuilder extends @@ -1013,24 +1155,29 @@ public interface CounteragentOrBuilder extends /** * optional string IndexKey = 1; + * @return Whether the indexKey field is set. */ boolean hasIndexKey(); /** * optional string IndexKey = 1; + * @return The indexKey. */ java.lang.String getIndexKey(); /** * optional string IndexKey = 1; + * @return The bytes for indexKey. */ com.google.protobuf.ByteString getIndexKeyBytes(); /** * required .Diadoc.Api.Proto.Organization Organization = 2; + * @return Whether the organization field is set. */ boolean hasOrganization(); /** * required .Diadoc.Api.Proto.Organization Organization = 2; + * @return The organization. */ Diadoc.Api.Proto.OrganizationProtos.Organization getOrganization(); /** @@ -1040,56 +1187,68 @@ public interface CounteragentOrBuilder extends /** * optional .Diadoc.Api.Proto.CounteragentStatus CurrentStatus = 3 [default = UnknownCounteragentStatus]; + * @return Whether the currentStatus field is set. */ boolean hasCurrentStatus(); /** * optional .Diadoc.Api.Proto.CounteragentStatus CurrentStatus = 3 [default = UnknownCounteragentStatus]; + * @return The currentStatus. */ Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus getCurrentStatus(); /** * required sfixed64 LastEventTimestampTicks = 4; + * @return Whether the lastEventTimestampTicks field is set. */ boolean hasLastEventTimestampTicks(); /** * required sfixed64 LastEventTimestampTicks = 4; + * @return The lastEventTimestampTicks. */ long getLastEventTimestampTicks(); /** * optional string MessageFromCounteragent = 6; + * @return Whether the messageFromCounteragent field is set. */ boolean hasMessageFromCounteragent(); /** * optional string MessageFromCounteragent = 6; + * @return The messageFromCounteragent. */ java.lang.String getMessageFromCounteragent(); /** * optional string MessageFromCounteragent = 6; + * @return The bytes for messageFromCounteragent. */ com.google.protobuf.ByteString getMessageFromCounteragentBytes(); /** * optional string MessageToCounteragent = 7; + * @return Whether the messageToCounteragent field is set. */ boolean hasMessageToCounteragent(); /** * optional string MessageToCounteragent = 7; + * @return The messageToCounteragent. */ java.lang.String getMessageToCounteragent(); /** * optional string MessageToCounteragent = 7; + * @return The bytes for messageToCounteragent. */ com.google.protobuf.ByteString getMessageToCounteragentBytes(); /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 8; + * @return Whether the invitationDocumentId field is set. */ boolean hasInvitationDocumentId(); /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 8; + * @return The invitationDocumentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId(); /** @@ -1099,14 +1258,17 @@ public interface CounteragentOrBuilder extends /** * optional string CounteragentGroupId = 9; + * @return Whether the counteragentGroupId field is set. */ boolean hasCounteragentGroupId(); /** * optional string CounteragentGroupId = 9; + * @return The counteragentGroupId. */ java.lang.String getCounteragentGroupId(); /** * optional string CounteragentGroupId = 9; + * @return The bytes for counteragentGroupId. */ com.google.protobuf.ByteString getCounteragentGroupIdBytes(); @@ -1118,134 +1280,34 @@ public static final class Counteragent extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Counteragent) CounteragentOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Counteragent.class.getName()); + } // Use Counteragent.newBuilder() to construct. private Counteragent(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Counteragent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Counteragent defaultInstance; - public static Counteragent getDefaultInstance() { - return defaultInstance; } - - public Counteragent getDefaultInstanceForType() { - return defaultInstance; + private Counteragent() { + indexKey_ = ""; + currentStatus_ = 0; + messageFromCounteragent_ = ""; + messageToCounteragent_ = ""; + counteragentGroupId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Counteragent( - 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; - indexKey_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.OrganizationProtos.Organization.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = organization_.toBuilder(); - } - organization_ = input.readMessage(Diadoc.Api.Proto.OrganizationProtos.Organization.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(organization_); - organization_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 24: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus value = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - currentStatus_ = value; - } - break; - } - case 33: { - bitField0_ |= 0x00000008; - lastEventTimestampTicks_ = input.readSFixed64(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - messageFromCounteragent_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - messageToCounteragent_ = bs; - break; - } - case 66: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = invitationDocumentId_.toBuilder(); - } - invitationDocumentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invitationDocumentId_); - invitationDocumentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - counteragentGroupId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_Counteragent_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_Counteragent_fieldAccessorTable @@ -1253,33 +1315,23 @@ private Counteragent( Diadoc.Api.Proto.CounteragentProtos.Counteragent.class, Diadoc.Api.Proto.CounteragentProtos.Counteragent.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Counteragent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Counteragent(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int INDEXKEY_FIELD_NUMBER = 1; - private java.lang.Object indexKey_; + @SuppressWarnings("serial") + private volatile java.lang.Object indexKey_ = ""; /** * optional string IndexKey = 1; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string IndexKey = 1; + * @return The indexKey. */ + @java.lang.Override public java.lang.String getIndexKey() { java.lang.Object ref = indexKey_; if (ref instanceof java.lang.String) { @@ -1296,7 +1348,9 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 1; + * @return The bytes for indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKeyBytes() { java.lang.Object ref = indexKey_; @@ -1315,64 +1369,81 @@ public java.lang.String getIndexKey() { private Diadoc.Api.Proto.OrganizationProtos.Organization organization_; /** * required .Diadoc.Api.Proto.Organization Organization = 2; + * @return Whether the organization field is set. */ + @java.lang.Override public boolean hasOrganization() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Organization Organization = 2; + * @return The organization. */ + @java.lang.Override public Diadoc.Api.Proto.OrganizationProtos.Organization getOrganization() { - return organization_; + return organization_ == null ? Diadoc.Api.Proto.OrganizationProtos.Organization.getDefaultInstance() : organization_; } /** * required .Diadoc.Api.Proto.Organization Organization = 2; */ + @java.lang.Override public Diadoc.Api.Proto.OrganizationProtos.OrganizationOrBuilder getOrganizationOrBuilder() { - return organization_; + return organization_ == null ? Diadoc.Api.Proto.OrganizationProtos.Organization.getDefaultInstance() : organization_; } public static final int CURRENTSTATUS_FIELD_NUMBER = 3; - private Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus currentStatus_; + private int currentStatus_ = 0; /** * optional .Diadoc.Api.Proto.CounteragentStatus CurrentStatus = 3 [default = UnknownCounteragentStatus]; + * @return Whether the currentStatus field is set. */ - public boolean hasCurrentStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasCurrentStatus() { + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.CounteragentStatus CurrentStatus = 3 [default = UnknownCounteragentStatus]; + * @return The currentStatus. */ - public Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus getCurrentStatus() { - return currentStatus_; + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus getCurrentStatus() { + Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus result = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.forNumber(currentStatus_); + return result == null ? Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus : result; } public static final int LASTEVENTTIMESTAMPTICKS_FIELD_NUMBER = 4; - private long lastEventTimestampTicks_; + private long lastEventTimestampTicks_ = 0L; /** * required sfixed64 LastEventTimestampTicks = 4; + * @return Whether the lastEventTimestampTicks field is set. */ + @java.lang.Override public boolean hasLastEventTimestampTicks() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required sfixed64 LastEventTimestampTicks = 4; + * @return The lastEventTimestampTicks. */ + @java.lang.Override public long getLastEventTimestampTicks() { return lastEventTimestampTicks_; } public static final int MESSAGEFROMCOUNTERAGENT_FIELD_NUMBER = 6; - private java.lang.Object messageFromCounteragent_; + @SuppressWarnings("serial") + private volatile java.lang.Object messageFromCounteragent_ = ""; /** * optional string MessageFromCounteragent = 6; + * @return Whether the messageFromCounteragent field is set. */ + @java.lang.Override public boolean hasMessageFromCounteragent() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string MessageFromCounteragent = 6; + * @return The messageFromCounteragent. */ + @java.lang.Override public java.lang.String getMessageFromCounteragent() { java.lang.Object ref = messageFromCounteragent_; if (ref instanceof java.lang.String) { @@ -1389,7 +1460,9 @@ public java.lang.String getMessageFromCounteragent() { } /** * optional string MessageFromCounteragent = 6; + * @return The bytes for messageFromCounteragent. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageFromCounteragentBytes() { java.lang.Object ref = messageFromCounteragent_; @@ -1405,16 +1478,21 @@ public java.lang.String getMessageFromCounteragent() { } public static final int MESSAGETOCOUNTERAGENT_FIELD_NUMBER = 7; - private java.lang.Object messageToCounteragent_; + @SuppressWarnings("serial") + private volatile java.lang.Object messageToCounteragent_ = ""; /** * optional string MessageToCounteragent = 7; + * @return Whether the messageToCounteragent field is set. */ + @java.lang.Override public boolean hasMessageToCounteragent() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string MessageToCounteragent = 7; + * @return The messageToCounteragent. */ + @java.lang.Override public java.lang.String getMessageToCounteragent() { java.lang.Object ref = messageToCounteragent_; if (ref instanceof java.lang.String) { @@ -1431,7 +1509,9 @@ public java.lang.String getMessageToCounteragent() { } /** * optional string MessageToCounteragent = 7; + * @return The bytes for messageToCounteragent. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageToCounteragentBytes() { java.lang.Object ref = messageToCounteragent_; @@ -1450,34 +1530,44 @@ public java.lang.String getMessageToCounteragent() { private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_; /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 8; + * @return Whether the invitationDocumentId field is set. */ + @java.lang.Override public boolean hasInvitationDocumentId() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 8; + * @return The invitationDocumentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 8; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocumentIdOrBuilder() { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } public static final int COUNTERAGENTGROUPID_FIELD_NUMBER = 9; - private java.lang.Object counteragentGroupId_; + @SuppressWarnings("serial") + private volatile java.lang.Object counteragentGroupId_ = ""; /** * optional string CounteragentGroupId = 9; + * @return Whether the counteragentGroupId field is set. */ + @java.lang.Override public boolean hasCounteragentGroupId() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional string CounteragentGroupId = 9; + * @return The counteragentGroupId. */ + @java.lang.Override public java.lang.String getCounteragentGroupId() { java.lang.Object ref = counteragentGroupId_; if (ref instanceof java.lang.String) { @@ -1494,7 +1584,9 @@ public java.lang.String getCounteragentGroupId() { } /** * optional string CounteragentGroupId = 9; + * @return The bytes for counteragentGroupId. */ + @java.lang.Override public com.google.protobuf.ByteString getCounteragentGroupIdBytes() { java.lang.Object ref = counteragentGroupId_; @@ -1509,17 +1601,8 @@ public java.lang.String getCounteragentGroupId() { } } - private void initFields() { - indexKey_ = ""; - organization_ = Diadoc.Api.Proto.OrganizationProtos.Organization.getDefaultInstance(); - currentStatus_ = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus; - lastEventTimestampTicks_ = 0L; - messageFromCounteragent_ = ""; - messageToCounteragent_ = ""; - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - counteragentGroupId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1547,93 +1630,191 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIndexKeyBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, indexKey_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, organization_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getOrganization()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, currentStatus_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, currentStatus_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeSFixed64(4, lastEventTimestampTicks_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(6, getMessageFromCounteragentBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, messageFromCounteragent_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(7, getMessageToCounteragentBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, messageToCounteragent_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(8, invitationDocumentId_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(8, getInvitationDocumentId()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(9, getCounteragentGroupIdBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, counteragentGroupId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIndexKeyBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, indexKey_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, organization_); + .computeMessageSize(2, getOrganization()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, currentStatus_.getNumber()); + .computeEnumSize(3, currentStatus_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(4, lastEventTimestampTicks_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getMessageFromCounteragentBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, messageFromCounteragent_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getMessageToCounteragentBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, messageToCounteragent_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, invitationDocumentId_); + .computeMessageSize(8, getInvitationDocumentId()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getCounteragentGroupIdBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, counteragentGroupId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentProtos.Counteragent)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentProtos.Counteragent other = (Diadoc.Api.Proto.CounteragentProtos.Counteragent) obj; + + if (hasIndexKey() != other.hasIndexKey()) return false; + if (hasIndexKey()) { + if (!getIndexKey() + .equals(other.getIndexKey())) return false; + } + if (hasOrganization() != other.hasOrganization()) return false; + if (hasOrganization()) { + if (!getOrganization() + .equals(other.getOrganization())) return false; + } + if (hasCurrentStatus() != other.hasCurrentStatus()) return false; + if (hasCurrentStatus()) { + if (currentStatus_ != other.currentStatus_) return false; + } + if (hasLastEventTimestampTicks() != other.hasLastEventTimestampTicks()) return false; + if (hasLastEventTimestampTicks()) { + if (getLastEventTimestampTicks() + != other.getLastEventTimestampTicks()) return false; + } + if (hasMessageFromCounteragent() != other.hasMessageFromCounteragent()) return false; + if (hasMessageFromCounteragent()) { + if (!getMessageFromCounteragent() + .equals(other.getMessageFromCounteragent())) return false; + } + if (hasMessageToCounteragent() != other.hasMessageToCounteragent()) return false; + if (hasMessageToCounteragent()) { + if (!getMessageToCounteragent() + .equals(other.getMessageToCounteragent())) return false; + } + if (hasInvitationDocumentId() != other.hasInvitationDocumentId()) return false; + if (hasInvitationDocumentId()) { + if (!getInvitationDocumentId() + .equals(other.getInvitationDocumentId())) return false; + } + if (hasCounteragentGroupId() != other.hasCounteragentGroupId()) return false; + if (hasCounteragentGroupId()) { + if (!getCounteragentGroupId() + .equals(other.getCounteragentGroupId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIndexKey()) { + hash = (37 * hash) + INDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getIndexKey().hashCode(); + } + if (hasOrganization()) { + hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); + } + if (hasCurrentStatus()) { + hash = (37 * hash) + CURRENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + currentStatus_; + } + if (hasLastEventTimestampTicks()) { + hash = (37 * hash) + LASTEVENTTIMESTAMPTICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastEventTimestampTicks()); + } + if (hasMessageFromCounteragent()) { + hash = (37 * hash) + MESSAGEFROMCOUNTERAGENT_FIELD_NUMBER; + hash = (53 * hash) + getMessageFromCounteragent().hashCode(); + } + if (hasMessageToCounteragent()) { + hash = (37 * hash) + MESSAGETOCOUNTERAGENT_FIELD_NUMBER; + hash = (53 * hash) + getMessageToCounteragent().hashCode(); + } + if (hasInvitationDocumentId()) { + hash = (37 * hash) + INVITATIONDOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getInvitationDocumentId().hashCode(); + } + if (hasCounteragentGroupId()) { + hash = (37 * hash) + COUNTERAGENTGROUPID_FIELD_NUMBER; + hash = (53 * hash) + getCounteragentGroupId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseFrom( - com.google.protobuf.ByteString data) + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseFrom( - com.google.protobuf.ByteString data, + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); @@ -1650,42 +1831,57 @@ public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseFrom( } public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentProtos.Counteragent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentProtos.Counteragent prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1705,6 +1901,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_Counteragent_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_Counteragent_fieldAccessorTable @@ -1723,57 +1920,47 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getOrganizationFieldBuilder(); getInvitationDocumentIdFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; indexKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (organizationBuilder_ == null) { - organization_ = Diadoc.Api.Proto.OrganizationProtos.Organization.getDefaultInstance(); - } else { - organizationBuilder_.clear(); + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - currentStatus_ = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus; - bitField0_ = (bitField0_ & ~0x00000004); + currentStatus_ = 0; lastEventTimestampTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); messageFromCounteragent_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); messageToCounteragent_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - if (invitationDocumentIdBuilder_ == null) { - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - invitationDocumentIdBuilder_.clear(); + invitationDocumentId_ = null; + if (invitationDocumentIdBuilder_ != null) { + invitationDocumentIdBuilder_.dispose(); + invitationDocumentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000040); counteragentGroupId_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_Counteragent_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.Counteragent getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentProtos.Counteragent.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.Counteragent build() { Diadoc.Api.Proto.CounteragentProtos.Counteragent result = buildPartial(); if (!result.isInitialized()) { @@ -1782,55 +1969,57 @@ public Diadoc.Api.Proto.CounteragentProtos.Counteragent build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.Counteragent buildPartial() { Diadoc.Api.Proto.CounteragentProtos.Counteragent result = new Diadoc.Api.Proto.CounteragentProtos.Counteragent(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CounteragentProtos.Counteragent result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexKey_ = indexKey_; to_bitField0_ |= 0x00000001; } - result.indexKey_ = indexKey_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organization_ = organizationBuilder_ == null + ? organization_ + : organizationBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (organizationBuilder_ == null) { - result.organization_ = organization_; - } else { - result.organization_ = organizationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.currentStatus_ = currentStatus_; to_bitField0_ |= 0x00000004; } - result.currentStatus_ = currentStatus_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lastEventTimestampTicks_ = lastEventTimestampTicks_; to_bitField0_ |= 0x00000008; } - result.lastEventTimestampTicks_ = lastEventTimestampTicks_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.messageFromCounteragent_ = messageFromCounteragent_; to_bitField0_ |= 0x00000010; } - result.messageFromCounteragent_ = messageFromCounteragent_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.messageToCounteragent_ = messageToCounteragent_; to_bitField0_ |= 0x00000020; } - result.messageToCounteragent_ = messageToCounteragent_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.invitationDocumentId_ = invitationDocumentIdBuilder_ == null + ? invitationDocumentId_ + : invitationDocumentIdBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (invitationDocumentIdBuilder_ == null) { - result.invitationDocumentId_ = invitationDocumentId_; - } else { - result.invitationDocumentId_ = invitationDocumentIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.counteragentGroupId_ = counteragentGroupId_; to_bitField0_ |= 0x00000080; } - result.counteragentGroupId_ = counteragentGroupId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentProtos.Counteragent) { return mergeFrom((Diadoc.Api.Proto.CounteragentProtos.Counteragent)other); @@ -1843,8 +2032,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.CounteragentProtos.Counteragent other) { if (other == Diadoc.Api.Proto.CounteragentProtos.Counteragent.getDefaultInstance()) return this; if (other.hasIndexKey()) { - bitField0_ |= 0x00000001; indexKey_ = other.indexKey_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasOrganization()) { @@ -1857,64 +2046,127 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentProtos.Counteragent other) setLastEventTimestampTicks(other.getLastEventTimestampTicks()); } if (other.hasMessageFromCounteragent()) { - bitField0_ |= 0x00000010; messageFromCounteragent_ = other.messageFromCounteragent_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasMessageToCounteragent()) { - bitField0_ |= 0x00000020; messageToCounteragent_ = other.messageToCounteragent_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasInvitationDocumentId()) { mergeInvitationDocumentId(other.getInvitationDocumentId()); } if (other.hasCounteragentGroupId()) { - bitField0_ |= 0x00000080; counteragentGroupId_ = other.counteragentGroupId_; + bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasOrganization()) { - return false; } if (!hasLastEventTimestampTicks()) { - return false; } if (!getOrganization().isInitialized()) { - return false; } if (hasInvitationDocumentId()) { if (!getInvitationDocumentId().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentProtos.Counteragent parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + indexKey_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getOrganizationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus tmpValue = + Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + currentStatus_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + case 33: { + lastEventTimestampTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 50: { + messageFromCounteragent_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: { + messageToCounteragent_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getInvitationDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: { + counteragentGroupId_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentProtos.Counteragent) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1922,12 +2174,14 @@ public Builder mergeFrom( private java.lang.Object indexKey_ = ""; /** * optional string IndexKey = 1; + * @return Whether the indexKey field is set. */ public boolean hasIndexKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string IndexKey = 1; + * @return The indexKey. */ public java.lang.String getIndexKey() { java.lang.Object ref = indexKey_; @@ -1945,6 +2199,7 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 1; + * @return The bytes for indexKey. */ public com.google.protobuf.ByteString getIndexKeyBytes() { @@ -1961,55 +2216,58 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 1; + * @param value The indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKey( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string IndexKey = 1; + * @return This builder for chaining. */ public Builder clearIndexKey() { - bitField0_ = (bitField0_ & ~0x00000001); indexKey_ = getDefaultInstance().getIndexKey(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string IndexKey = 1; + * @param value The bytes for indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKeyBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.OrganizationProtos.Organization organization_ = Diadoc.Api.Proto.OrganizationProtos.Organization.getDefaultInstance(); + private Diadoc.Api.Proto.OrganizationProtos.Organization organization_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.OrganizationProtos.Organization, Diadoc.Api.Proto.OrganizationProtos.Organization.Builder, Diadoc.Api.Proto.OrganizationProtos.OrganizationOrBuilder> organizationBuilder_; /** * required .Diadoc.Api.Proto.Organization Organization = 2; + * @return Whether the organization field is set. */ public boolean hasOrganization() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Organization Organization = 2; + * @return The organization. */ public Diadoc.Api.Proto.OrganizationProtos.Organization getOrganization() { if (organizationBuilder_ == null) { - return organization_; + return organization_ == null ? Diadoc.Api.Proto.OrganizationProtos.Organization.getDefaultInstance() : organization_; } else { return organizationBuilder_.getMessage(); } @@ -2023,11 +2281,11 @@ public Builder setOrganization(Diadoc.Api.Proto.OrganizationProtos.Organization throw new NullPointerException(); } organization_ = value; - onChanged(); } else { organizationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2037,11 +2295,11 @@ public Builder setOrganization( Diadoc.Api.Proto.OrganizationProtos.Organization.Builder builderForValue) { if (organizationBuilder_ == null) { organization_ = builderForValue.build(); - onChanged(); } else { organizationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2049,31 +2307,33 @@ public Builder setOrganization( */ public Builder mergeOrganization(Diadoc.Api.Proto.OrganizationProtos.Organization value) { if (organizationBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - organization_ != Diadoc.Api.Proto.OrganizationProtos.Organization.getDefaultInstance()) { - organization_ = - Diadoc.Api.Proto.OrganizationProtos.Organization.newBuilder(organization_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + organization_ != null && + organization_ != Diadoc.Api.Proto.OrganizationProtos.Organization.getDefaultInstance()) { + getOrganizationBuilder().mergeFrom(value); } else { organization_ = value; } - onChanged(); } else { organizationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (organization_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Organization Organization = 2; */ public Builder clearOrganization() { - if (organizationBuilder_ == null) { - organization_ = Diadoc.Api.Proto.OrganizationProtos.Organization.getDefaultInstance(); - onChanged(); - } else { - organizationBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + onChanged(); return this; } /** @@ -2091,7 +2351,8 @@ public Diadoc.Api.Proto.OrganizationProtos.OrganizationOrBuilder getOrganization if (organizationBuilder_ != null) { return organizationBuilder_.getMessageOrBuilder(); } else { - return organization_; + return organization_ == null ? + Diadoc.Api.Proto.OrganizationProtos.Organization.getDefaultInstance() : organization_; } } /** @@ -2111,37 +2372,44 @@ public Diadoc.Api.Proto.OrganizationProtos.OrganizationOrBuilder getOrganization return organizationBuilder_; } - private Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus currentStatus_ = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus; + private int currentStatus_ = 0; /** * optional .Diadoc.Api.Proto.CounteragentStatus CurrentStatus = 3 [default = UnknownCounteragentStatus]; + * @return Whether the currentStatus field is set. */ - public boolean hasCurrentStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasCurrentStatus() { + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.CounteragentStatus CurrentStatus = 3 [default = UnknownCounteragentStatus]; + * @return The currentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus getCurrentStatus() { - return currentStatus_; + Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus result = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.forNumber(currentStatus_); + return result == null ? Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus : result; } /** * optional .Diadoc.Api.Proto.CounteragentStatus CurrentStatus = 3 [default = UnknownCounteragentStatus]; + * @param value The currentStatus to set. + * @return This builder for chaining. */ public Builder setCurrentStatus(Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - currentStatus_ = value; + currentStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.CounteragentStatus CurrentStatus = 3 [default = UnknownCounteragentStatus]; + * @return This builder for chaining. */ public Builder clearCurrentStatus() { bitField0_ = (bitField0_ & ~0x00000004); - currentStatus_ = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus; + currentStatus_ = 0; onChanged(); return this; } @@ -2149,27 +2417,35 @@ public Builder clearCurrentStatus() { private long lastEventTimestampTicks_ ; /** * required sfixed64 LastEventTimestampTicks = 4; + * @return Whether the lastEventTimestampTicks field is set. */ + @java.lang.Override public boolean hasLastEventTimestampTicks() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required sfixed64 LastEventTimestampTicks = 4; + * @return The lastEventTimestampTicks. */ + @java.lang.Override public long getLastEventTimestampTicks() { return lastEventTimestampTicks_; } /** * required sfixed64 LastEventTimestampTicks = 4; + * @param value The lastEventTimestampTicks to set. + * @return This builder for chaining. */ public Builder setLastEventTimestampTicks(long value) { - bitField0_ |= 0x00000008; + lastEventTimestampTicks_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required sfixed64 LastEventTimestampTicks = 4; + * @return This builder for chaining. */ public Builder clearLastEventTimestampTicks() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2181,12 +2457,14 @@ public Builder clearLastEventTimestampTicks() { private java.lang.Object messageFromCounteragent_ = ""; /** * optional string MessageFromCounteragent = 6; + * @return Whether the messageFromCounteragent field is set. */ public boolean hasMessageFromCounteragent() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string MessageFromCounteragent = 6; + * @return The messageFromCounteragent. */ public java.lang.String getMessageFromCounteragent() { java.lang.Object ref = messageFromCounteragent_; @@ -2204,6 +2482,7 @@ public java.lang.String getMessageFromCounteragent() { } /** * optional string MessageFromCounteragent = 6; + * @return The bytes for messageFromCounteragent. */ public com.google.protobuf.ByteString getMessageFromCounteragentBytes() { @@ -2220,36 +2499,37 @@ public java.lang.String getMessageFromCounteragent() { } /** * optional string MessageFromCounteragent = 6; + * @param value The messageFromCounteragent to set. + * @return This builder for chaining. */ public Builder setMessageFromCounteragent( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } messageFromCounteragent_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string MessageFromCounteragent = 6; + * @return This builder for chaining. */ public Builder clearMessageFromCounteragent() { - bitField0_ = (bitField0_ & ~0x00000010); messageFromCounteragent_ = getDefaultInstance().getMessageFromCounteragent(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string MessageFromCounteragent = 6; + * @param value The bytes for messageFromCounteragent to set. + * @return This builder for chaining. */ public Builder setMessageFromCounteragentBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } messageFromCounteragent_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2257,12 +2537,14 @@ public Builder setMessageFromCounteragentBytes( private java.lang.Object messageToCounteragent_ = ""; /** * optional string MessageToCounteragent = 7; + * @return Whether the messageToCounteragent field is set. */ public boolean hasMessageToCounteragent() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string MessageToCounteragent = 7; + * @return The messageToCounteragent. */ public java.lang.String getMessageToCounteragent() { java.lang.Object ref = messageToCounteragent_; @@ -2280,6 +2562,7 @@ public java.lang.String getMessageToCounteragent() { } /** * optional string MessageToCounteragent = 7; + * @return The bytes for messageToCounteragent. */ public com.google.protobuf.ByteString getMessageToCounteragentBytes() { @@ -2296,55 +2579,58 @@ public java.lang.String getMessageToCounteragent() { } /** * optional string MessageToCounteragent = 7; + * @param value The messageToCounteragent to set. + * @return This builder for chaining. */ public Builder setMessageToCounteragent( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } messageToCounteragent_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional string MessageToCounteragent = 7; + * @return This builder for chaining. */ public Builder clearMessageToCounteragent() { - bitField0_ = (bitField0_ & ~0x00000020); messageToCounteragent_ = getDefaultInstance().getMessageToCounteragent(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * optional string MessageToCounteragent = 7; + * @param value The bytes for messageToCounteragent to set. + * @return This builder for chaining. */ public Builder setMessageToCounteragentBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } messageToCounteragent_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> invitationDocumentIdBuilder_; /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 8; + * @return Whether the invitationDocumentId field is set. */ public boolean hasInvitationDocumentId() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 8; + * @return The invitationDocumentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() { if (invitationDocumentIdBuilder_ == null) { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } else { return invitationDocumentIdBuilder_.getMessage(); } @@ -2358,11 +2644,11 @@ public Builder setInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.Documen throw new NullPointerException(); } invitationDocumentId_ = value; - onChanged(); } else { invitationDocumentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2372,11 +2658,11 @@ public Builder setInvitationDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (invitationDocumentIdBuilder_ == null) { invitationDocumentId_ = builderForValue.build(); - onChanged(); } else { invitationDocumentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2384,31 +2670,33 @@ public Builder setInvitationDocumentId( */ public Builder mergeInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (invitationDocumentIdBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - invitationDocumentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(invitationDocumentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) && + invitationDocumentId_ != null && + invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getInvitationDocumentIdBuilder().mergeFrom(value); } else { invitationDocumentId_ = value; } - onChanged(); } else { invitationDocumentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + if (invitationDocumentId_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 8; */ public Builder clearInvitationDocumentId() { - if (invitationDocumentIdBuilder_ == null) { - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - invitationDocumentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000040); + invitationDocumentId_ = null; + if (invitationDocumentIdBuilder_ != null) { + invitationDocumentIdBuilder_.dispose(); + invitationDocumentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -2426,7 +2714,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume if (invitationDocumentIdBuilder_ != null) { return invitationDocumentIdBuilder_.getMessageOrBuilder(); } else { - return invitationDocumentId_; + return invitationDocumentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } } /** @@ -2449,12 +2738,14 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume private java.lang.Object counteragentGroupId_ = ""; /** * optional string CounteragentGroupId = 9; + * @return Whether the counteragentGroupId field is set. */ public boolean hasCounteragentGroupId() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional string CounteragentGroupId = 9; + * @return The counteragentGroupId. */ public java.lang.String getCounteragentGroupId() { java.lang.Object ref = counteragentGroupId_; @@ -2472,6 +2763,7 @@ public java.lang.String getCounteragentGroupId() { } /** * optional string CounteragentGroupId = 9; + * @return The bytes for counteragentGroupId. */ public com.google.protobuf.ByteString getCounteragentGroupIdBytes() { @@ -2488,36 +2780,37 @@ public java.lang.String getCounteragentGroupId() { } /** * optional string CounteragentGroupId = 9; + * @param value The counteragentGroupId to set. + * @return This builder for chaining. */ public Builder setCounteragentGroupId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } counteragentGroupId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional string CounteragentGroupId = 9; + * @return This builder for chaining. */ public Builder clearCounteragentGroupId() { - bitField0_ = (bitField0_ & ~0x00000080); counteragentGroupId_ = getDefaultInstance().getCounteragentGroupId(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * optional string CounteragentGroupId = 9; + * @param value The bytes for counteragentGroupId to set. + * @return This builder for chaining. */ public Builder setCounteragentGroupIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } counteragentGroupId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2525,12 +2818,52 @@ public Builder setCounteragentGroupIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Counteragent) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Counteragent) + private static final Diadoc.Api.Proto.CounteragentProtos.Counteragent DEFAULT_INSTANCE; static { - defaultInstance = new Counteragent(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentProtos.Counteragent(); + } + + public static Diadoc.Api.Proto.CounteragentProtos.Counteragent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Counteragent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentProtos.Counteragent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Counteragent) } public interface CounteragentCertificateListOrBuilder extends @@ -2568,79 +2901,30 @@ public static final class CounteragentCertificateList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentCertificateList) CounteragentCertificateListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentCertificateList.class.getName()); + } // Use CounteragentCertificateList.newBuilder() to construct. private CounteragentCertificateList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CounteragentCertificateList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CounteragentCertificateList defaultInstance; - public static CounteragentCertificateList getDefaultInstance() { - return defaultInstance; } - - public CounteragentCertificateList getDefaultInstanceForType() { - return defaultInstance; + private CounteragentCertificateList() { + certificates_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CounteragentCertificateList( - 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)) { - certificates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - certificates_.add(input.readMessage(Diadoc.Api.Proto.CounteragentProtos.Certificate.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)) { - certificates_ = java.util.Collections.unmodifiableList(certificates_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_CounteragentCertificateList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_CounteragentCertificateList_fieldAccessorTable @@ -2648,32 +2932,20 @@ private CounteragentCertificateList( Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList.class, Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CounteragentCertificateList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CounteragentCertificateList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int CERTIFICATES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List certificates_; /** * repeated .Diadoc.Api.Proto.Certificate Certificates = 1; */ + @java.lang.Override public java.util.List getCertificatesList() { return certificates_; } /** * repeated .Diadoc.Api.Proto.Certificate Certificates = 1; */ + @java.lang.Override public java.util.List getCertificatesOrBuilderList() { return certificates_; @@ -2681,27 +2953,28 @@ public java.util.List getCertif /** * repeated .Diadoc.Api.Proto.Certificate Certificates = 1; */ + @java.lang.Override public int getCertificatesCount() { return certificates_.size(); } /** * repeated .Diadoc.Api.Proto.Certificate Certificates = 1; */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.Certificate getCertificates(int index) { return certificates_.get(index); } /** * repeated .Diadoc.Api.Proto.Certificate Certificates = 1; */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CertificateOrBuilder getCertificatesOrBuilder( int index) { return certificates_.get(index); } - private void initFields() { - certificates_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2717,18 +2990,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < certificates_.size(); i++) { output.writeMessage(1, certificates_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2737,17 +3010,53 @@ public int getSerializedSize() { .computeMessageSize(1, certificates_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList other = (Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList) obj; + + if (!getCertificatesList() + .equals(other.getCertificatesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCertificatesCount() > 0) { + hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getCertificatesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2771,42 +3080,57 @@ public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList pa } public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2826,6 +3150,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_CounteragentCertificateList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_CounteragentCertificateList_fieldAccessorTable @@ -2835,47 +3160,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getCertificatesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + certificates_ = null; certificatesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_CounteragentCertificateList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList build() { Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList result = buildPartial(); if (!result.isInitialized()) { @@ -2884,11 +3202,18 @@ public Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList buildPartial() { Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList result = new Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList result) { if (certificatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -2896,10 +3221,13 @@ public Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList buildPart } else { result.certificates_ = certificatesBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList) { return mergeFrom((Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList)other); @@ -2938,34 +3266,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentProtos.CounteragentCertifi } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getCertificatesCount(); i++) { if (!getCertificates(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.CounteragentProtos.Certificate m = + input.readMessage( + Diadoc.Api.Proto.CounteragentProtos.Certificate.parser(), + extensionRegistry); + if (certificatesBuilder_ == null) { + ensureCertificatesIsMutable(); + certificates_.add(m); + } else { + certificatesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2973,7 +3329,7 @@ public Builder mergeFrom( private java.util.List certificates_ = java.util.Collections.emptyList(); private void ensureCertificatesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { certificates_ = new java.util.ArrayList(certificates_); bitField0_ |= 0x00000001; } @@ -3202,7 +3558,7 @@ public Diadoc.Api.Proto.CounteragentProtos.Certificate.Builder addCertificatesBu certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.CounteragentProtos.Certificate, Diadoc.Api.Proto.CounteragentProtos.Certificate.Builder, Diadoc.Api.Proto.CounteragentProtos.CertificateOrBuilder>( certificates_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); certificates_ = null; @@ -3213,12 +3569,52 @@ public Diadoc.Api.Proto.CounteragentProtos.Certificate.Builder addCertificatesBu // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentCertificateList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentCertificateList) + private static final Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList DEFAULT_INSTANCE; static { - defaultInstance = new CounteragentCertificateList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList(); + } + + public static Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CounteragentCertificateList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentProtos.CounteragentCertificateList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentCertificateList) } public interface CertificateOrBuilder extends @@ -3227,10 +3623,12 @@ public interface CertificateOrBuilder extends /** * required bytes RawCertificateData = 1; + * @return Whether the rawCertificateData field is set. */ boolean hasRawCertificateData(); /** * required bytes RawCertificateData = 1; + * @return The rawCertificateData. */ com.google.protobuf.ByteString getRawCertificateData(); } @@ -3241,73 +3639,30 @@ public static final class Certificate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Certificate) CertificateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Certificate.class.getName()); + } // Use Certificate.newBuilder() to construct. private Certificate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private Certificate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Certificate defaultInstance; - public static Certificate getDefaultInstance() { - return defaultInstance; - } - - public Certificate getDefaultInstanceForType() { - return defaultInstance; + private Certificate() { + rawCertificateData_ = com.google.protobuf.ByteString.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Certificate( - 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: { - bitField0_ |= 0x00000001; - rawCertificateData_ = input.readBytes(); - 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.CounteragentProtos.internal_static_Diadoc_Api_Proto_Certificate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_Certificate_fieldAccessorTable @@ -3315,41 +3670,28 @@ private Certificate( Diadoc.Api.Proto.CounteragentProtos.Certificate.class, Diadoc.Api.Proto.CounteragentProtos.Certificate.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Certificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Certificate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int RAWCERTIFICATEDATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString rawCertificateData_; + private com.google.protobuf.ByteString rawCertificateData_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes RawCertificateData = 1; + * @return Whether the rawCertificateData field is set. */ + @java.lang.Override public boolean hasRawCertificateData() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bytes RawCertificateData = 1; + * @return The rawCertificateData. */ + @java.lang.Override public com.google.protobuf.ByteString getRawCertificateData() { return rawCertificateData_; } - private void initFields() { - rawCertificateData_ = com.google.protobuf.ByteString.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3363,37 +3705,76 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(1, rawCertificateData_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, rawCertificateData_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CounteragentProtos.Certificate)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CounteragentProtos.Certificate other = (Diadoc.Api.Proto.CounteragentProtos.Certificate) obj; + + if (hasRawCertificateData() != other.hasRawCertificateData()) return false; + if (hasRawCertificateData()) { + if (!getRawCertificateData() + .equals(other.getRawCertificateData())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRawCertificateData()) { + hash = (37 * hash) + RAWCERTIFICATEDATA_FIELD_NUMBER; + hash = (53 * hash) + getRawCertificateData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CounteragentProtos.Certificate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CounteragentProtos.Certificate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CounteragentProtos.Certificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3417,42 +3798,57 @@ public static Diadoc.Api.Proto.CounteragentProtos.Certificate parseFrom( } public static Diadoc.Api.Proto.CounteragentProtos.Certificate parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentProtos.Certificate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CounteragentProtos.Certificate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CounteragentProtos.Certificate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CounteragentProtos.Certificate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CounteragentProtos.Certificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CounteragentProtos.Certificate prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3472,6 +3868,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_Certificate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_Certificate_fieldAccessorTable @@ -3481,42 +3878,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CounteragentProtos.Certificate.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; rawCertificateData_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CounteragentProtos.internal_static_Diadoc_Api_Proto_Certificate_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.Certificate getDefaultInstanceForType() { return Diadoc.Api.Proto.CounteragentProtos.Certificate.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.Certificate build() { Diadoc.Api.Proto.CounteragentProtos.Certificate result = buildPartial(); if (!result.isInitialized()) { @@ -3525,19 +3914,25 @@ public Diadoc.Api.Proto.CounteragentProtos.Certificate build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.Certificate buildPartial() { Diadoc.Api.Proto.CounteragentProtos.Certificate result = new Diadoc.Api.Proto.CounteragentProtos.Certificate(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CounteragentProtos.Certificate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rawCertificateData_ = rawCertificateData_; to_bitField0_ |= 0x00000001; } - result.rawCertificateData_ = rawCertificateData_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CounteragentProtos.Certificate) { return mergeFrom((Diadoc.Api.Proto.CounteragentProtos.Certificate)other); @@ -3553,32 +3948,52 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentProtos.Certificate other) setRawCertificateData(other.getRawCertificateData()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasRawCertificateData()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CounteragentProtos.Certificate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + rawCertificateData_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CounteragentProtos.Certificate) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3586,30 +4001,35 @@ public Builder mergeFrom( private com.google.protobuf.ByteString rawCertificateData_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes RawCertificateData = 1; + * @return Whether the rawCertificateData field is set. */ + @java.lang.Override public boolean hasRawCertificateData() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bytes RawCertificateData = 1; + * @return The rawCertificateData. */ + @java.lang.Override public com.google.protobuf.ByteString getRawCertificateData() { return rawCertificateData_; } /** * required bytes RawCertificateData = 1; + * @param value The rawCertificateData to set. + * @return This builder for chaining. */ public Builder setRawCertificateData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } rawCertificateData_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bytes RawCertificateData = 1; + * @return This builder for chaining. */ public Builder clearRawCertificateData() { bitField0_ = (bitField0_ & ~0x00000001); @@ -3621,32 +4041,72 @@ public Builder clearRawCertificateData() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Certificate) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Certificate) + private static final Diadoc.Api.Proto.CounteragentProtos.Certificate DEFAULT_INSTANCE; static { - defaultInstance = new Certificate(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentProtos.Certificate(); + } + + public static Diadoc.Api.Proto.CounteragentProtos.Certificate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Certificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CounteragentProtos.Certificate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Certificate) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CounteragentList_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CounteragentList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Counteragent_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Counteragent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CounteragentCertificateList_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CounteragentCertificateList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Certificate_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Certificate_fieldAccessorTable; @@ -3654,7 +4114,7 @@ public Builder clearRawCertificateData() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -3667,7 +4127,7 @@ public Builder clearRawCertificateData() { "talCountType\"\350\002\n\014Counteragent\022\020\n\010IndexKe" + "y\030\001 \001(\t\0224\n\014Organization\030\002 \002(\0132\036.Diadoc.A" + "pi.Proto.Organization\022V\n\rCurrentStatus\030\003" + - " \001(\0162$.Diadoc.Api.Proto.CounteragentStat", + " \001(\0162$.Diadoc.Api.Proto.CounteragentStat" + "us:\031UnknownCounteragentStatus\022\037\n\027LastEve" + "ntTimestampTicks\030\004 \002(\020\022\037\n\027MessageFromCou" + "nteragent\030\006 \001(\t\022\035\n\025MessageToCounteragent" + @@ -3677,27 +4137,19 @@ public Builder clearRawCertificateData() { "teList\0223\n\014Certificates\030\001 \003(\0132\035.Diadoc.Ap" + "i.Proto.Certificate\")\n\013Certificate\022\032\n\022Ra" + "wCertificateData\030\001 \002(\014*\251\001\n\022CounteragentS" + - "tatus\022\035\n\031UnknownCounteragentStatus\020\000\022\024\n\020", + "tatus\022\035\n\031UnknownCounteragentStatus\020\000\022\024\n\020" + "IsMyCounteragent\020\001\022\r\n\tInvitesMe\020\002\022\021\n\rIsI" + "nvitedByMe\020\003\022\r\n\tRejectsMe\020\005\022\022\n\016IsRejecte" + "dByMe\020\006\022\031\n\025NotInCounteragentList\020\007B\024B\022Co" + "unteragentProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.OrganizationProtos.getDescriptor(), Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(), Diadoc.Api.Proto.TotalCountTypeProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_CounteragentList_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CounteragentList_fieldAccessorTable = new @@ -3722,6 +4174,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Certificate_descriptor, new java.lang.String[] { "RawCertificateData", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.OrganizationProtos.getDescriptor(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); Diadoc.Api.Proto.TotalCountTypeProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/CustomDataItemProtos.java b/src/main/java/Diadoc/Api/Proto/CustomDataItemProtos.java index cc25a1bb..df82690f 100644 --- a/src/main/java/Diadoc/Api/Proto/CustomDataItemProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CustomDataItemProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CustomDataItem.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class CustomDataItemProtos { private CustomDataItemProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CustomDataItemProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CustomDataItemOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CustomDataItem) @@ -14,28 +31,34 @@ public interface CustomDataItemOrBuilder extends /** * required string Key = 1; + * @return Whether the key field is set. */ boolean hasKey(); /** * required string Key = 1; + * @return The key. */ java.lang.String getKey(); /** * required string Key = 1; + * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * optional string Value = 2; + * @return Whether the value field is set. */ boolean hasValue(); /** * optional string Value = 2; + * @return The value. */ java.lang.String getValue(); /** * optional string Value = 2; + * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); @@ -47,80 +70,31 @@ public static final class CustomDataItem extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CustomDataItem) CustomDataItemOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CustomDataItem.class.getName()); + } // Use CustomDataItem.newBuilder() to construct. private CustomDataItem(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CustomDataItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CustomDataItem defaultInstance; - public static CustomDataItem getDefaultInstance() { - return defaultInstance; } - - public CustomDataItem getDefaultInstanceForType() { - return defaultInstance; + private CustomDataItem() { + key_ = ""; + value_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CustomDataItem( - 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; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - value_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CustomDataItemProtos.internal_static_Diadoc_Api_Proto_CustomDataItem_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CustomDataItemProtos.internal_static_Diadoc_Api_Proto_CustomDataItem_fieldAccessorTable @@ -128,33 +102,23 @@ private CustomDataItem( Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.class, Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CustomDataItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomDataItem(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; - private java.lang.Object key_; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * required string Key = 1; + * @return Whether the key field is set. */ + @java.lang.Override public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Key = 1; + * @return The key. */ + @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { @@ -171,7 +135,9 @@ public java.lang.String getKey() { } /** * required string Key = 1; + * @return The bytes for key. */ + @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; @@ -187,16 +153,21 @@ public java.lang.String getKey() { } public static final int VALUE_FIELD_NUMBER = 2; - private java.lang.Object value_; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; /** * optional string Value = 2; + * @return Whether the value field is set. */ + @java.lang.Override public boolean hasValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Value = 2; + * @return The value. */ + @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { @@ -213,7 +184,9 @@ public java.lang.String getValue() { } /** * optional string Value = 2; + * @return The bytes for value. */ + @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; @@ -228,11 +201,8 @@ public java.lang.String getValue() { } } - private void initFields() { - key_ = ""; - value_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -246,44 +216,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getValueBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getValueBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem other = (Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem) obj; + + if (hasKey() != other.hasKey()) return false; + if (hasKey()) { + if (!getKey() + .equals(other.getKey())) return false; + } + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKey()) { + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -307,42 +323,57 @@ public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parseFrom( } public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -362,6 +393,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CustomDataItemProtos.internal_static_Diadoc_Api_Proto_CustomDataItem_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CustomDataItemProtos.internal_static_Diadoc_Api_Proto_CustomDataItem_fieldAccessorTable @@ -371,44 +403,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CustomDataItemProtos.internal_static_Diadoc_Api_Proto_CustomDataItem_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem getDefaultInstanceForType() { return Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem build() { Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem result = buildPartial(); if (!result.isInitialized()) { @@ -417,23 +440,29 @@ public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem buildPartial() { Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem result = new Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; to_bitField0_ |= 0x00000001; } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; to_bitField0_ |= 0x00000002; } - result.value_ = value_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem) { return mergeFrom((Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem)other); @@ -446,42 +475,67 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem other) { if (other == Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.getDefaultInstance()) return this; if (other.hasKey()) { - bitField0_ |= 0x00000001; key_ = other.key_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasValue()) { - bitField0_ |= 0x00000002; value_ = other.value_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasKey()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + key_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + value_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -489,12 +543,14 @@ public Builder mergeFrom( private java.lang.Object key_ = ""; /** * required string Key = 1; + * @return Whether the key field is set. */ public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -512,6 +568,7 @@ public java.lang.String getKey() { } /** * required string Key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -528,36 +585,37 @@ public java.lang.String getKey() { } /** * required string Key = 1; + * @param value The key to set. + * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } key_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Key = 1; + * @return This builder for chaining. */ public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } key_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -565,12 +623,14 @@ public Builder setKeyBytes( private java.lang.Object value_ = ""; /** * optional string Value = 2; + * @return Whether the value field is set. */ public boolean hasValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Value = 2; + * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; @@ -588,6 +648,7 @@ public java.lang.String getValue() { } /** * optional string Value = 2; + * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { @@ -604,36 +665,37 @@ public java.lang.String getValue() { } /** * optional string Value = 2; + * @param value The value to set. + * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string Value = 2; + * @return This builder for chaining. */ public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string Value = 2; + * @param value The bytes for value to set. + * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -641,17 +703,57 @@ public Builder setValueBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CustomDataItem) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CustomDataItem) + private static final Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem DEFAULT_INSTANCE; static { - defaultInstance = new CustomDataItem(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem(); + } + + public static Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomDataItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CustomDataItem) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CustomDataItem_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CustomDataItem_fieldAccessorTable; @@ -659,7 +761,7 @@ public Builder setValueBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -667,24 +769,17 @@ public Builder setValueBytes( "\",\n\016CustomDataItem\022\013\n\003Key\030\001 \002(\t\022\r\n\005Value" + "\030\002 \001(\tB\026B\024CustomDataItemProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_CustomDataItem_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CustomDataItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_CustomDataItem_descriptor, new java.lang.String[] { "Key", "Value", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/CustomPrintFormDetectionProtos.java b/src/main/java/Diadoc/Api/Proto/CustomPrintFormDetectionProtos.java index 43bdd8cf..ce4db7dd 100644 --- a/src/main/java/Diadoc/Api/Proto/CustomPrintFormDetectionProtos.java +++ b/src/main/java/Diadoc/Api/Proto/CustomPrintFormDetectionProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: CustomPrintFormDetection.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class CustomPrintFormDetectionProtos { private CustomPrintFormDetectionProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CustomPrintFormDetectionProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CustomPrintFormDetectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CustomPrintFormDetectionRequest) @@ -43,79 +60,30 @@ public static final class CustomPrintFormDetectionRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CustomPrintFormDetectionRequest) CustomPrintFormDetectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CustomPrintFormDetectionRequest.class.getName()); + } // Use CustomPrintFormDetectionRequest.newBuilder() to construct. private CustomPrintFormDetectionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CustomPrintFormDetectionRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CustomPrintFormDetectionRequest defaultInstance; - public static CustomPrintFormDetectionRequest getDefaultInstance() { - return defaultInstance; } - - public CustomPrintFormDetectionRequest getDefaultInstanceForType() { - return defaultInstance; + private CustomPrintFormDetectionRequest() { + documentIds_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CustomPrintFormDetectionRequest( - 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)) { - documentIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documentIds_.add(input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.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)) { - documentIds_ = java.util.Collections.unmodifiableList(documentIds_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionRequest_fieldAccessorTable @@ -123,32 +91,20 @@ private CustomPrintFormDetectionRequest( Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest.class, Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CustomPrintFormDetectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomPrintFormDetectionRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int DOCUMENTIDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documentIds_; /** * repeated .Diadoc.Api.Proto.DocumentId DocumentIds = 1; */ + @java.lang.Override public java.util.List getDocumentIdsList() { return documentIds_; } /** * repeated .Diadoc.Api.Proto.DocumentId DocumentIds = 1; */ + @java.lang.Override public java.util.List getDocumentIdsOrBuilderList() { return documentIds_; @@ -156,27 +112,28 @@ public java.util.List getDocumentI /** * repeated .Diadoc.Api.Proto.DocumentId DocumentIds = 1; */ + @java.lang.Override public int getDocumentIdsCount() { return documentIds_.size(); } /** * repeated .Diadoc.Api.Proto.DocumentId DocumentIds = 1; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentIds(int index) { return documentIds_.get(index); } /** * repeated .Diadoc.Api.Proto.DocumentId DocumentIds = 1; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdsOrBuilder( int index) { return documentIds_.get(index); } - private void initFields() { - documentIds_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,18 +149,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < documentIds_.size(); i++) { output.writeMessage(1, documentIds_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -212,17 +169,53 @@ public int getSerializedSize() { .computeMessageSize(1, documentIds_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest other = (Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest) obj; + + if (!getDocumentIdsList() + .equals(other.getDocumentIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentIdsCount() > 0) { + hash = (37 * hash) + DOCUMENTIDS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDet } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -301,6 +309,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionRequest_fieldAccessorTable @@ -310,47 +319,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentIdsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (documentIdsBuilder_ == null) { documentIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + documentIds_ = null; documentIdsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionRequest_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest getDefaultInstanceForType() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest build() { Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -359,11 +361,18 @@ public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionR return result; } + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest buildPartial() { Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest result = new Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest result) { if (documentIdsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { documentIds_ = java.util.Collections.unmodifiableList(documentIds_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,10 +380,13 @@ public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionR } else { result.documentIds_ = documentIdsBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest) { return mergeFrom((Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest)other); @@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomP } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getDocumentIdsCount(); i++) { if (!getDocumentIds(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.DocumentIdProtos.DocumentId m = + input.readMessage( + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.parser(), + extensionRegistry); + if (documentIdsBuilder_ == null) { + ensureDocumentIdsIsMutable(); + documentIds_.add(m); + } else { + documentIdsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -448,7 +488,7 @@ public Builder mergeFrom( private java.util.List documentIds_ = java.util.Collections.emptyList(); private void ensureDocumentIdsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { documentIds_ = new java.util.ArrayList(documentIds_); bitField0_ |= 0x00000001; } @@ -677,7 +717,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addDocumentIdsBuilde documentIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder>( documentIds_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documentIds_ = null; @@ -688,12 +728,52 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addDocumentIdsBuilde // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CustomPrintFormDetectionRequest) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CustomPrintFormDetectionRequest) + private static final Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest DEFAULT_INSTANCE; static { - defaultInstance = new CustomPrintFormDetectionRequest(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest(); + } + + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPrintFormDetectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CustomPrintFormDetectionRequest) } public interface CustomPrintFormDetectionResultOrBuilder extends @@ -731,79 +811,30 @@ public static final class CustomPrintFormDetectionResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CustomPrintFormDetectionResult) CustomPrintFormDetectionResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CustomPrintFormDetectionResult.class.getName()); + } // Use CustomPrintFormDetectionResult.newBuilder() to construct. private CustomPrintFormDetectionResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CustomPrintFormDetectionResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CustomPrintFormDetectionResult defaultInstance; - public static CustomPrintFormDetectionResult getDefaultInstance() { - return defaultInstance; } - - public CustomPrintFormDetectionResult getDefaultInstanceForType() { - return defaultInstance; + private CustomPrintFormDetectionResult() { + items_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CustomPrintFormDetectionResult( - 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)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add(input.readMessage(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult.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)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionResult_fieldAccessorTable @@ -811,32 +842,20 @@ private CustomPrintFormDetectionResult( Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult.class, Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CustomPrintFormDetectionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomPrintFormDetectionResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int ITEMS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List items_; /** * repeated .Diadoc.Api.Proto.CustomPrintFormDetectionItemResult Items = 1; */ + @java.lang.Override public java.util.List getItemsList() { return items_; } /** * repeated .Diadoc.Api.Proto.CustomPrintFormDetectionItemResult Items = 1; */ + @java.lang.Override public java.util.List getItemsOrBuilderList() { return items_; @@ -844,27 +863,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.CustomPrintFormDetectionItemResult Items = 1; */ + @java.lang.Override public int getItemsCount() { return items_.size(); } /** * repeated .Diadoc.Api.Proto.CustomPrintFormDetectionItemResult Items = 1; */ + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult getItems(int index) { return items_.get(index); } /** * repeated .Diadoc.Api.Proto.CustomPrintFormDetectionItemResult Items = 1; */ + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResultOrBuilder getItemsOrBuilder( int index) { return items_.get(index); } - private void initFields() { - items_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -880,18 +900,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < items_.size(); i++) { output.writeMessage(1, items_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -900,17 +920,53 @@ public int getSerializedSize() { .computeMessageSize(1, items_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult other = (Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult) obj; + + if (!getItemsList() + .equals(other.getItemsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -934,42 +990,57 @@ public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDet } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -989,6 +1060,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionResult_fieldAccessorTable @@ -998,47 +1070,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + items_ = null; itemsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionResult_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult getDefaultInstanceForType() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult build() { Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult result = buildPartial(); if (!result.isInitialized()) { @@ -1047,11 +1112,18 @@ public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionR return result; } + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult buildPartial() { Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult result = new Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult result) { if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1059,10 +1131,13 @@ public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionR } else { result.items_ = itemsBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult) { return mergeFrom((Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult)other); @@ -1101,34 +1176,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomP } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getItemsCount(); i++) { if (!getItems(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult m = + input.readMessage( + Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1136,7 +1239,7 @@ public Builder mergeFrom( private java.util.List items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; } @@ -1365,7 +1468,7 @@ public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionI itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult, Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult.Builder, Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResultOrBuilder>( items_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; @@ -1376,12 +1479,52 @@ public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionI // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CustomPrintFormDetectionResult) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CustomPrintFormDetectionResult) + private static final Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult DEFAULT_INSTANCE; static { - defaultInstance = new CustomPrintFormDetectionResult(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult(); + } + + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPrintFormDetectionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CustomPrintFormDetectionResult) } public interface CustomPrintFormDetectionItemResultOrBuilder extends @@ -1390,10 +1533,12 @@ public interface CustomPrintFormDetectionItemResultOrBuilder extends /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ boolean hasDocumentId(); /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId(); /** @@ -1403,10 +1548,12 @@ public interface CustomPrintFormDetectionItemResultOrBuilder extends /** * required bool HasCustomPrintForm = 2; + * @return Whether the hasCustomPrintForm field is set. */ boolean hasHasCustomPrintForm(); /** * required bool HasCustomPrintForm = 2; + * @return The hasCustomPrintForm. */ boolean getHasCustomPrintForm(); } @@ -1417,86 +1564,29 @@ public static final class CustomPrintFormDetectionItemResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CustomPrintFormDetectionItemResult) CustomPrintFormDetectionItemResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CustomPrintFormDetectionItemResult.class.getName()); + } // Use CustomPrintFormDetectionItemResult.newBuilder() to construct. private CustomPrintFormDetectionItemResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private CustomPrintFormDetectionItemResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CustomPrintFormDetectionItemResult defaultInstance; - public static CustomPrintFormDetectionItemResult getDefaultInstance() { - return defaultInstance; - } - - public CustomPrintFormDetectionItemResult getDefaultInstanceForType() { - return defaultInstance; + private CustomPrintFormDetectionItemResult() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CustomPrintFormDetectionItemResult( - 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: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = documentId_.toBuilder(); - } - documentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentId_); - documentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: { - bitField0_ |= 0x00000002; - hasCustomPrintForm_ = input.readBool(); - 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.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionItemResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionItemResult_fieldAccessorTable @@ -1504,63 +1594,54 @@ private CustomPrintFormDetectionItemResult( Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult.class, Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CustomPrintFormDetectionItemResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomPrintFormDetectionItemResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTID_FIELD_NUMBER = 1; private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ + @java.lang.Override public boolean hasDocumentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuilder() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } public static final int HASCUSTOMPRINTFORM_FIELD_NUMBER = 2; - private boolean hasCustomPrintForm_; + private boolean hasCustomPrintForm_ = false; /** * required bool HasCustomPrintForm = 2; + * @return Whether the hasCustomPrintForm field is set. */ + @java.lang.Override public boolean hasHasCustomPrintForm() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool HasCustomPrintForm = 2; + * @return The hasCustomPrintForm. */ + @java.lang.Override public boolean getHasCustomPrintForm() { return hasCustomPrintForm_; } - private void initFields() { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - hasCustomPrintForm_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1582,44 +1663,93 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, documentId_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDocumentId()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, hasCustomPrintForm_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, documentId_); + .computeMessageSize(1, getDocumentId()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, hasCustomPrintForm_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult)) { + return super.equals(obj); + } + Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult other = (Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult) obj; + + if (hasDocumentId() != other.hasDocumentId()) return false; + if (hasDocumentId()) { + if (!getDocumentId() + .equals(other.getDocumentId())) return false; + } + if (hasHasCustomPrintForm() != other.hasHasCustomPrintForm()) return false; + if (hasHasCustomPrintForm()) { + if (getHasCustomPrintForm() + != other.getHasCustomPrintForm()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentId()) { + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDocumentId().hashCode(); + } + if (hasHasCustomPrintForm()) { + hash = (37 * hash) + HASCUSTOMPRINTFORM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasCustomPrintForm()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1643,42 +1773,57 @@ public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDet } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1698,6 +1843,7 @@ public static final class Builder extends return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionItemResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionItemResult_fieldAccessorTable @@ -1716,40 +1862,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDocumentIdFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - documentIdBuilder_.clear(); + bitField0_ = 0; + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); hasCustomPrintForm_ = false; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionItemResult_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult getDefaultInstanceForType() { return Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult build() { Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult result = buildPartial(); if (!result.isInitialized()) { @@ -1758,27 +1900,31 @@ public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionI return result; } + @java.lang.Override public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult buildPartial() { Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult result = new Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentId_ = documentIdBuilder_ == null + ? documentId_ + : documentIdBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (documentIdBuilder_ == null) { - result.documentId_ = documentId_; - } else { - result.documentId_ = documentIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hasCustomPrintForm_ = hasCustomPrintForm_; to_bitField0_ |= 0x00000002; } - result.hasCustomPrintForm_ = hasCustomPrintForm_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult) { return mergeFrom((Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult)other); @@ -1797,59 +1943,86 @@ public Builder mergeFrom(Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomP setHasCustomPrintForm(other.getHasCustomPrintForm()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocumentId()) { - return false; } if (!hasHasCustomPrintForm()) { - return false; } if (!getDocumentId().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + hasCustomPrintForm_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> documentIdBuilder_; /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ public boolean hasDocumentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { if (documentIdBuilder_ == null) { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } else { return documentIdBuilder_.getMessage(); } @@ -1863,11 +2036,11 @@ public Builder setDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) throw new NullPointerException(); } documentId_ = value; - onChanged(); } else { documentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1877,11 +2050,11 @@ public Builder setDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (documentIdBuilder_ == null) { documentId_ = builderForValue.build(); - onChanged(); } else { documentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1889,31 +2062,33 @@ public Builder setDocumentId( */ public Builder mergeDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (documentIdBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - documentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(documentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + documentId_ != null && + documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getDocumentIdBuilder().mergeFrom(value); } else { documentId_ = value; } - onChanged(); } else { documentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (documentId_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; */ public Builder clearDocumentId() { - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - documentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -1931,7 +2106,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil if (documentIdBuilder_ != null) { return documentIdBuilder_.getMessageOrBuilder(); } else { - return documentId_; + return documentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } } /** @@ -1954,27 +2130,35 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil private boolean hasCustomPrintForm_ ; /** * required bool HasCustomPrintForm = 2; + * @return Whether the hasCustomPrintForm field is set. */ + @java.lang.Override public boolean hasHasCustomPrintForm() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool HasCustomPrintForm = 2; + * @return The hasCustomPrintForm. */ + @java.lang.Override public boolean getHasCustomPrintForm() { return hasCustomPrintForm_; } /** * required bool HasCustomPrintForm = 2; + * @param value The hasCustomPrintForm to set. + * @return This builder for chaining. */ public Builder setHasCustomPrintForm(boolean value) { - bitField0_ |= 0x00000002; + hasCustomPrintForm_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool HasCustomPrintForm = 2; + * @return This builder for chaining. */ public Builder clearHasCustomPrintForm() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1986,27 +2170,67 @@ public Builder clearHasCustomPrintForm() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CustomPrintFormDetectionItemResult) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CustomPrintFormDetectionItemResult) + private static final Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult DEFAULT_INSTANCE; static { - defaultInstance = new CustomPrintFormDetectionItemResult(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult(); + } + + public static Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPrintFormDetectionItemResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.CustomPrintFormDetectionProtos.CustomPrintFormDetectionItemResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CustomPrintFormDetectionItemResult) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionResult_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionItemResult_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionItemResult_fieldAccessorTable; @@ -2014,7 +2238,7 @@ public Builder clearHasCustomPrintForm() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -2027,22 +2251,14 @@ public Builder clearHasCustomPrintForm() { "tectionItemResult\"r\n\"CustomPrintFormDete" + "ctionItemResult\0220\n\nDocumentId\030\001 \002(\0132\034.Di" + "adoc.Api.Proto.DocumentId\022\032\n\022HasCustomPr" + - "intForm\030\002 \002(\010B B\036CustomPrintFormDetectio", + "intForm\030\002 \002(\010B B\036CustomPrintFormDetectio" + "nProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionRequest_fieldAccessorTable = new @@ -2061,6 +2277,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_CustomPrintFormDetectionItemResult_descriptor, new java.lang.String[] { "DocumentId", "HasCustomPrintForm", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Departments/DepartmentListProtos.java b/src/main/java/Diadoc/Api/Proto/Departments/DepartmentListProtos.java index 25de057c..8da53fd6 100644 --- a/src/main/java/Diadoc/Api/Proto/Departments/DepartmentListProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Departments/DepartmentListProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Departments/DepartmentList.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Departments; public final class DepartmentListProtos { private DepartmentListProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentListProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DepartmentListOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Departments.DepartmentList) @@ -38,10 +55,12 @@ Diadoc.Api.Proto.Departments.DepartmentProtos.DepartmentOrBuilder getDepartments /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ boolean hasTotalCount(); /** * required int32 TotalCount = 2; + * @return The totalCount. */ int getTotalCount(); } @@ -52,84 +71,30 @@ public static final class DepartmentList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Departments.DepartmentList) DepartmentListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentList.class.getName()); + } // Use DepartmentList.newBuilder() to construct. private DepartmentList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DepartmentList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DepartmentList defaultInstance; - public static DepartmentList getDefaultInstance() { - return defaultInstance; } - - public DepartmentList getDefaultInstanceForType() { - return defaultInstance; + private DepartmentList() { + departments_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepartmentList( - 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)) { - departments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - departments_.add(input.readMessage(Diadoc.Api.Proto.Departments.DepartmentProtos.Department.PARSER, extensionRegistry)); - break; - } - case 16: { - bitField0_ |= 0x00000001; - totalCount_ = input.readInt32(); - 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)) { - departments_ = java.util.Collections.unmodifiableList(departments_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Departments.DepartmentListProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentListProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentList_fieldAccessorTable @@ -137,33 +102,21 @@ private DepartmentList( Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList.class, Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DepartmentList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepartmentList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DEPARTMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List departments_; /** * repeated .Diadoc.Api.Proto.Departments.Department Departments = 1; */ + @java.lang.Override public java.util.List getDepartmentsList() { return departments_; } /** * repeated .Diadoc.Api.Proto.Departments.Department Departments = 1; */ + @java.lang.Override public java.util.List getDepartmentsOrBuilderList() { return departments_; @@ -171,43 +124,47 @@ public java.util.List /** * repeated .Diadoc.Api.Proto.Departments.Department Departments = 1; */ + @java.lang.Override public int getDepartmentsCount() { return departments_.size(); } /** * repeated .Diadoc.Api.Proto.Departments.Department Departments = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentProtos.Department getDepartments(int index) { return departments_.get(index); } /** * repeated .Diadoc.Api.Proto.Departments.Department Departments = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentProtos.DepartmentOrBuilder getDepartmentsOrBuilder( int index) { return departments_.get(index); } public static final int TOTALCOUNT_FIELD_NUMBER = 2; - private int totalCount_; + private int totalCount_ = 0; /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } - private void initFields() { - departments_ = java.util.Collections.emptyList(); - totalCount_ = 0; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -227,21 +184,21 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < departments_.size(); i++) { output.writeMessage(1, departments_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(2, totalCount_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -249,22 +206,67 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, departments_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, totalCount_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList other = (Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList) obj; + + if (!getDepartmentsList() + .equals(other.getDepartmentsList())) return false; + if (hasTotalCount() != other.hasTotalCount()) return false; + if (hasTotalCount()) { + if (getTotalCount() + != other.getTotalCount()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDepartmentsCount() > 0) { + hash = (37 * hash) + DEPARTMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDepartmentsList().hashCode(); + } + if (hasTotalCount()) { + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -288,42 +290,57 @@ public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList p } public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -343,6 +360,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Departments.DepartmentListProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentListProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentList_fieldAccessorTable @@ -352,49 +370,41 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDepartmentsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (departmentsBuilder_ == null) { departments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + departments_ = null; departmentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); totalCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Departments.DepartmentListProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList getDefaultInstanceForType() { return Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList build() { Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList result = buildPartial(); if (!result.isInitialized()) { @@ -403,12 +413,18 @@ public Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList buildPartial() { Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList result = new Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList result) { if (departmentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { departments_ = java.util.Collections.unmodifiableList(departments_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -416,15 +432,19 @@ public Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList buildPar } else { result.departments_ = departmentsBuilder_.build(); } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalCount_ = totalCount_; to_bitField0_ |= 0x00000001; } - result.totalCount_ = totalCount_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList) { return mergeFrom((Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList)other); @@ -466,38 +486,70 @@ public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentListProtos.Depar setTotalCount(other.getTotalCount()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotalCount()) { - return false; } for (int i = 0; i < getDepartmentsCount(); i++) { if (!getDepartments(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Departments.DepartmentProtos.Department m = + input.readMessage( + Diadoc.Api.Proto.Departments.DepartmentProtos.Department.parser(), + extensionRegistry); + if (departmentsBuilder_ == null) { + ensureDepartmentsIsMutable(); + departments_.add(m); + } else { + departmentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -505,7 +557,7 @@ public Builder mergeFrom( private java.util.List departments_ = java.util.Collections.emptyList(); private void ensureDepartmentsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { departments_ = new java.util.ArrayList(departments_); bitField0_ |= 0x00000001; } @@ -734,7 +786,7 @@ public Diadoc.Api.Proto.Departments.DepartmentProtos.Department.Builder addDepar departmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Departments.DepartmentProtos.Department, Diadoc.Api.Proto.Departments.DepartmentProtos.Department.Builder, Diadoc.Api.Proto.Departments.DepartmentProtos.DepartmentOrBuilder>( departments_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); departments_ = null; @@ -745,27 +797,35 @@ public Diadoc.Api.Proto.Departments.DepartmentProtos.Department.Builder addDepar private int totalCount_ ; /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } /** * required int32 TotalCount = 2; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - bitField0_ |= 0x00000002; + totalCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int32 TotalCount = 2; + * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000002); @@ -777,17 +837,57 @@ public Builder clearTotalCount() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Departments.DepartmentList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentList) + private static final Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList DEFAULT_INSTANCE; static { - defaultInstance = new DepartmentList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList(); + } + + public static Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DepartmentList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Departments.DepartmentListProtos.DepartmentList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentList) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Departments_DepartmentList_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Departments_DepartmentList_fieldAccessorTable; @@ -795,7 +895,7 @@ public Builder clearTotalCount() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -806,25 +906,18 @@ public Builder clearTotalCount() { "ents.Department\022\022\n\nTotalCount\030\002 \002(\005B\026B\024D" + "epartmentListProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Departments.DepartmentProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Departments_DepartmentList_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Departments_DepartmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Departments_DepartmentList_descriptor, new java.lang.String[] { "Departments", "TotalCount", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Departments.DepartmentProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Departments/DepartmentProtos.java b/src/main/java/Diadoc/Api/Proto/Departments/DepartmentProtos.java index 9654e0cd..5ee1c13d 100644 --- a/src/main/java/Diadoc/Api/Proto/Departments/DepartmentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Departments/DepartmentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Departments/Department.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Departments; public final class DepartmentProtos { private DepartmentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DepartmentOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Departments.Department) @@ -14,80 +31,97 @@ public interface DepartmentOrBuilder extends /** * required string Id = 1; + * @return Whether the id field is set. */ boolean hasId(); /** * required string Id = 1; + * @return The id. */ java.lang.String getId(); /** * required string Id = 1; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * optional string ParentDepartmentId = 2; + * @return Whether the parentDepartmentId field is set. */ boolean hasParentDepartmentId(); /** * optional string ParentDepartmentId = 2; + * @return The parentDepartmentId. */ java.lang.String getParentDepartmentId(); /** * optional string ParentDepartmentId = 2; + * @return The bytes for parentDepartmentId. */ com.google.protobuf.ByteString getParentDepartmentIdBytes(); /** * required string Name = 3; + * @return Whether the name field is set. */ boolean hasName(); /** * required string Name = 3; + * @return The name. */ java.lang.String getName(); /** * required string Name = 3; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * required string Abbreviation = 4; + * @return Whether the abbreviation field is set. */ boolean hasAbbreviation(); /** * required string Abbreviation = 4; + * @return The abbreviation. */ java.lang.String getAbbreviation(); /** * required string Abbreviation = 4; + * @return The bytes for abbreviation. */ com.google.protobuf.ByteString getAbbreviationBytes(); /** * optional string Kpp = 5; + * @return Whether the kpp field is set. */ boolean hasKpp(); /** * optional string Kpp = 5; + * @return The kpp. */ java.lang.String getKpp(); /** * optional string Kpp = 5; + * @return The bytes for kpp. */ com.google.protobuf.ByteString getKppBytes(); /** * optional .Diadoc.Api.Proto.Address Address = 6; + * @return Whether the address field is set. */ boolean hasAddress(); /** * optional .Diadoc.Api.Proto.Address Address = 6; + * @return The address. */ Diadoc.Api.Proto.AddressProtos.Address getAddress(); /** @@ -97,10 +131,12 @@ public interface DepartmentOrBuilder extends /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 7; + * @return Whether the routing field is set. */ boolean hasRouting(); /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 7; + * @return The routing. */ Diadoc.Api.Proto.Departments.RoutingProtos.Routing getRouting(); /** @@ -110,10 +146,12 @@ public interface DepartmentOrBuilder extends /** * required .Diadoc.Api.Proto.Timestamp CreationTimestamp = 8; + * @return Whether the creationTimestamp field is set. */ boolean hasCreationTimestamp(); /** * required .Diadoc.Api.Proto.Timestamp CreationTimestamp = 8; + * @return The creationTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getCreationTimestamp(); /** @@ -128,137 +166,34 @@ public static final class Department extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Departments.Department) DepartmentOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Department.class.getName()); + } // Use Department.newBuilder() to construct. private Department(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Department(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Department defaultInstance; - public static Department getDefaultInstance() { - return defaultInstance; } - - public Department getDefaultInstanceForType() { - return defaultInstance; + private Department() { + id_ = ""; + parentDepartmentId_ = ""; + name_ = ""; + abbreviation_ = ""; + kpp_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Department( - 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; - id_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - parentDepartmentId_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - name_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - abbreviation_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - kpp_ = bs; - break; - } - case 50: { - Diadoc.Api.Proto.AddressProtos.Address.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = address_.toBuilder(); - } - address_ = input.readMessage(Diadoc.Api.Proto.AddressProtos.Address.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(address_); - address_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 58: { - Diadoc.Api.Proto.Departments.RoutingProtos.Routing.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = routing_.toBuilder(); - } - routing_ = input.readMessage(Diadoc.Api.Proto.Departments.RoutingProtos.Routing.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(routing_); - routing_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 66: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = creationTimestamp_.toBuilder(); - } - creationTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(creationTimestamp_); - creationTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - 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.Departments.DepartmentProtos.internal_static_Diadoc_Api_Proto_Departments_Department_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentProtos.internal_static_Diadoc_Api_Proto_Departments_Department_fieldAccessorTable @@ -266,33 +201,23 @@ private Department( Diadoc.Api.Proto.Departments.DepartmentProtos.Department.class, Diadoc.Api.Proto.Departments.DepartmentProtos.Department.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Department parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Department(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * required string Id = 1; + * @return Whether the id field is set. */ + @java.lang.Override public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Id = 1; + * @return The id. */ + @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { @@ -309,7 +234,9 @@ public java.lang.String getId() { } /** * required string Id = 1; + * @return The bytes for id. */ + @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; @@ -325,16 +252,21 @@ public java.lang.String getId() { } public static final int PARENTDEPARTMENTID_FIELD_NUMBER = 2; - private java.lang.Object parentDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object parentDepartmentId_ = ""; /** * optional string ParentDepartmentId = 2; + * @return Whether the parentDepartmentId field is set. */ + @java.lang.Override public boolean hasParentDepartmentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ParentDepartmentId = 2; + * @return The parentDepartmentId. */ + @java.lang.Override public java.lang.String getParentDepartmentId() { java.lang.Object ref = parentDepartmentId_; if (ref instanceof java.lang.String) { @@ -351,7 +283,9 @@ public java.lang.String getParentDepartmentId() { } /** * optional string ParentDepartmentId = 2; + * @return The bytes for parentDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getParentDepartmentIdBytes() { java.lang.Object ref = parentDepartmentId_; @@ -367,16 +301,21 @@ public java.lang.String getParentDepartmentId() { } public static final int NAME_FIELD_NUMBER = 3; - private java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * required string Name = 3; + * @return Whether the name field is set. */ + @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Name = 3; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -393,7 +332,9 @@ public java.lang.String getName() { } /** * required string Name = 3; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -409,16 +350,21 @@ public java.lang.String getName() { } public static final int ABBREVIATION_FIELD_NUMBER = 4; - private java.lang.Object abbreviation_; + @SuppressWarnings("serial") + private volatile java.lang.Object abbreviation_ = ""; /** * required string Abbreviation = 4; + * @return Whether the abbreviation field is set. */ + @java.lang.Override public boolean hasAbbreviation() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string Abbreviation = 4; + * @return The abbreviation. */ + @java.lang.Override public java.lang.String getAbbreviation() { java.lang.Object ref = abbreviation_; if (ref instanceof java.lang.String) { @@ -435,7 +381,9 @@ public java.lang.String getAbbreviation() { } /** * required string Abbreviation = 4; + * @return The bytes for abbreviation. */ + @java.lang.Override public com.google.protobuf.ByteString getAbbreviationBytes() { java.lang.Object ref = abbreviation_; @@ -451,16 +399,21 @@ public java.lang.String getAbbreviation() { } public static final int KPP_FIELD_NUMBER = 5; - private java.lang.Object kpp_; + @SuppressWarnings("serial") + private volatile java.lang.Object kpp_ = ""; /** * optional string Kpp = 5; + * @return Whether the kpp field is set. */ + @java.lang.Override public boolean hasKpp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string Kpp = 5; + * @return The kpp. */ + @java.lang.Override public java.lang.String getKpp() { java.lang.Object ref = kpp_; if (ref instanceof java.lang.String) { @@ -477,7 +430,9 @@ public java.lang.String getKpp() { } /** * optional string Kpp = 5; + * @return The bytes for kpp. */ + @java.lang.Override public com.google.protobuf.ByteString getKppBytes() { java.lang.Object ref = kpp_; @@ -496,76 +451,82 @@ public java.lang.String getKpp() { private Diadoc.Api.Proto.AddressProtos.Address address_; /** * optional .Diadoc.Api.Proto.Address Address = 6; + * @return Whether the address field is set. */ + @java.lang.Override public boolean hasAddress() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Address Address = 6; + * @return The address. */ + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.Address getAddress() { - return address_; + return address_ == null ? Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } /** * optional .Diadoc.Api.Proto.Address Address = 6; */ + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.AddressOrBuilder getAddressOrBuilder() { - return address_; + return address_ == null ? Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } public static final int ROUTING_FIELD_NUMBER = 7; private Diadoc.Api.Proto.Departments.RoutingProtos.Routing routing_; /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 7; + * @return Whether the routing field is set. */ + @java.lang.Override public boolean hasRouting() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 7; + * @return The routing. */ + @java.lang.Override public Diadoc.Api.Proto.Departments.RoutingProtos.Routing getRouting() { - return routing_; + return routing_ == null ? Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance() : routing_; } /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 7; */ + @java.lang.Override public Diadoc.Api.Proto.Departments.RoutingProtos.RoutingOrBuilder getRoutingOrBuilder() { - return routing_; + return routing_ == null ? Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance() : routing_; } public static final int CREATIONTIMESTAMP_FIELD_NUMBER = 8; private Diadoc.Api.Proto.TimestampProtos.Timestamp creationTimestamp_; /** * required .Diadoc.Api.Proto.Timestamp CreationTimestamp = 8; + * @return Whether the creationTimestamp field is set. */ + @java.lang.Override public boolean hasCreationTimestamp() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required .Diadoc.Api.Proto.Timestamp CreationTimestamp = 8; + * @return The creationTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getCreationTimestamp() { - return creationTimestamp_; + return creationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } /** * required .Diadoc.Api.Proto.Timestamp CreationTimestamp = 8; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampOrBuilder() { - return creationTimestamp_; + return creationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } - private void initFields() { - id_ = ""; - parentDepartmentId_ = ""; - name_ = ""; - abbreviation_ = ""; - kpp_ = ""; - address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); - routing_ = Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance(); - creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -609,86 +570,183 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getParentDepartmentIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, parentDepartmentId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getNameBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, name_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getAbbreviationBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, abbreviation_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getKppBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, kpp_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, address_); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getAddress()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, routing_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getRouting()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, creationTimestamp_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getCreationTimestamp()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getParentDepartmentIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, parentDepartmentId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getNameBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getAbbreviationBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, abbreviation_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getKppBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, kpp_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, address_); + .computeMessageSize(6, getAddress()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, routing_); + .computeMessageSize(7, getRouting()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, creationTimestamp_); + .computeMessageSize(8, getCreationTimestamp()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Departments.DepartmentProtos.Department)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Departments.DepartmentProtos.Department other = (Diadoc.Api.Proto.Departments.DepartmentProtos.Department) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasParentDepartmentId() != other.hasParentDepartmentId()) return false; + if (hasParentDepartmentId()) { + if (!getParentDepartmentId() + .equals(other.getParentDepartmentId())) return false; + } + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasAbbreviation() != other.hasAbbreviation()) return false; + if (hasAbbreviation()) { + if (!getAbbreviation() + .equals(other.getAbbreviation())) return false; + } + if (hasKpp() != other.hasKpp()) return false; + if (hasKpp()) { + if (!getKpp() + .equals(other.getKpp())) return false; + } + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (!getAddress() + .equals(other.getAddress())) return false; + } + if (hasRouting() != other.hasRouting()) return false; + if (hasRouting()) { + if (!getRouting() + .equals(other.getRouting())) return false; + } + if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; + if (hasCreationTimestamp()) { + if (!getCreationTimestamp() + .equals(other.getCreationTimestamp())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasParentDepartmentId()) { + hash = (37 * hash) + PARENTDEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getParentDepartmentId().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasAbbreviation()) { + hash = (37 * hash) + ABBREVIATION_FIELD_NUMBER; + hash = (53 * hash) + getAbbreviation().hashCode(); + } + if (hasKpp()) { + hash = (37 * hash) + KPP_FIELD_NUMBER; + hash = (53 * hash) + getKpp().hashCode(); + } + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + if (hasRouting()) { + hash = (37 * hash) + ROUTING_FIELD_NUMBER; + hash = (53 * hash) + getRouting().hashCode(); + } + if (hasCreationTimestamp()) { + hash = (37 * hash) + CREATIONTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getCreationTimestamp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -712,42 +770,57 @@ public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department parseFrom } public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Departments.DepartmentProtos.Department prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -767,6 +840,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Departments.DepartmentProtos.internal_static_Diadoc_Api_Proto_Departments_Department_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentProtos.internal_static_Diadoc_Api_Proto_Departments_Department_fieldAccessorTable @@ -785,62 +859,52 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getAddressFieldBuilder(); getRoutingFieldBuilder(); getCreationTimestampFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); parentDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); abbreviation_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); kpp_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - if (addressBuilder_ == null) { - address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); - } else { - addressBuilder_.clear(); + address_ = null; + if (addressBuilder_ != null) { + addressBuilder_.dispose(); + addressBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); - if (routingBuilder_ == null) { - routing_ = Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance(); - } else { - routingBuilder_.clear(); + routing_ = null; + if (routingBuilder_ != null) { + routingBuilder_.dispose(); + routingBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000040); - if (creationTimestampBuilder_ == null) { - creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - creationTimestampBuilder_.clear(); + creationTimestamp_ = null; + if (creationTimestampBuilder_ != null) { + creationTimestampBuilder_.dispose(); + creationTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Departments.DepartmentProtos.internal_static_Diadoc_Api_Proto_Departments_Department_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentProtos.Department getDefaultInstanceForType() { return Diadoc.Api.Proto.Departments.DepartmentProtos.Department.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentProtos.Department build() { Diadoc.Api.Proto.Departments.DepartmentProtos.Department result = buildPartial(); if (!result.isInitialized()) { @@ -849,59 +913,59 @@ public Diadoc.Api.Proto.Departments.DepartmentProtos.Department build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentProtos.Department buildPartial() { Diadoc.Api.Proto.Departments.DepartmentProtos.Department result = new Diadoc.Api.Proto.Departments.DepartmentProtos.Department(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Departments.DepartmentProtos.Department result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; to_bitField0_ |= 0x00000001; } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parentDepartmentId_ = parentDepartmentId_; to_bitField0_ |= 0x00000002; } - result.parentDepartmentId_ = parentDepartmentId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; to_bitField0_ |= 0x00000004; } - result.name_ = name_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.abbreviation_ = abbreviation_; to_bitField0_ |= 0x00000008; } - result.abbreviation_ = abbreviation_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.kpp_ = kpp_; to_bitField0_ |= 0x00000010; } - result.kpp_ = kpp_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.address_ = addressBuilder_ == null + ? address_ + : addressBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (addressBuilder_ == null) { - result.address_ = address_; - } else { - result.address_ = addressBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.routing_ = routingBuilder_ == null + ? routing_ + : routingBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (routingBuilder_ == null) { - result.routing_ = routing_; - } else { - result.routing_ = routingBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.creationTimestamp_ = creationTimestampBuilder_ == null + ? creationTimestamp_ + : creationTimestampBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (creationTimestampBuilder_ == null) { - result.creationTimestamp_ = creationTimestamp_; - } else { - result.creationTimestamp_ = creationTimestampBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Departments.DepartmentProtos.Department) { return mergeFrom((Diadoc.Api.Proto.Departments.DepartmentProtos.Department)other); @@ -914,28 +978,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentProtos.Department other) { if (other == Diadoc.Api.Proto.Departments.DepartmentProtos.Department.getDefaultInstance()) return this; if (other.hasId()) { - bitField0_ |= 0x00000001; id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasParentDepartmentId()) { - bitField0_ |= 0x00000002; parentDepartmentId_ = other.parentDepartmentId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasName()) { - bitField0_ |= 0x00000004; name_ = other.name_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasAbbreviation()) { - bitField0_ |= 0x00000008; abbreviation_ = other.abbreviation_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasKpp()) { - bitField0_ |= 0x00000010; kpp_ = other.kpp_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasAddress()) { @@ -948,62 +1012,116 @@ public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentProtos.Departmen mergeCreationTimestamp(other.getCreationTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasId()) { - return false; } if (!hasName()) { - return false; } if (!hasAbbreviation()) { - return false; } if (!hasRouting()) { - return false; } if (!hasCreationTimestamp()) { - return false; } if (hasAddress()) { if (!getAddress().isInitialized()) { - return false; } } if (!getRouting().isInitialized()) { - return false; } if (!getCreationTimestamp().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Departments.DepartmentProtos.Department parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + parentDepartmentId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + name_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + abbreviation_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + kpp_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getAddressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getRoutingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getCreationTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Departments.DepartmentProtos.Department) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1011,12 +1129,14 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** * required string Id = 1; + * @return Whether the id field is set. */ public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Id = 1; + * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -1034,6 +1154,7 @@ public java.lang.String getId() { } /** * required string Id = 1; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -1050,36 +1171,37 @@ public java.lang.String getId() { } /** * required string Id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Id = 1; + * @return This builder for chaining. */ public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1087,12 +1209,14 @@ public Builder setIdBytes( private java.lang.Object parentDepartmentId_ = ""; /** * optional string ParentDepartmentId = 2; + * @return Whether the parentDepartmentId field is set. */ public boolean hasParentDepartmentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ParentDepartmentId = 2; + * @return The parentDepartmentId. */ public java.lang.String getParentDepartmentId() { java.lang.Object ref = parentDepartmentId_; @@ -1110,6 +1234,7 @@ public java.lang.String getParentDepartmentId() { } /** * optional string ParentDepartmentId = 2; + * @return The bytes for parentDepartmentId. */ public com.google.protobuf.ByteString getParentDepartmentIdBytes() { @@ -1126,36 +1251,37 @@ public java.lang.String getParentDepartmentId() { } /** * optional string ParentDepartmentId = 2; + * @param value The parentDepartmentId to set. + * @return This builder for chaining. */ public Builder setParentDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } parentDepartmentId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string ParentDepartmentId = 2; + * @return This builder for chaining. */ public Builder clearParentDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000002); parentDepartmentId_ = getDefaultInstance().getParentDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string ParentDepartmentId = 2; + * @param value The bytes for parentDepartmentId to set. + * @return This builder for chaining. */ public Builder setParentDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } parentDepartmentId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1163,12 +1289,14 @@ public Builder setParentDepartmentIdBytes( private java.lang.Object name_ = ""; /** * required string Name = 3; + * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Name = 3; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1186,6 +1314,7 @@ public java.lang.String getName() { } /** * required string Name = 3; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -1202,36 +1331,37 @@ public java.lang.String getName() { } /** * required string Name = 3; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string Name = 3; + * @return This builder for chaining. */ public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string Name = 3; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1239,12 +1369,14 @@ public Builder setNameBytes( private java.lang.Object abbreviation_ = ""; /** * required string Abbreviation = 4; + * @return Whether the abbreviation field is set. */ public boolean hasAbbreviation() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string Abbreviation = 4; + * @return The abbreviation. */ public java.lang.String getAbbreviation() { java.lang.Object ref = abbreviation_; @@ -1262,6 +1394,7 @@ public java.lang.String getAbbreviation() { } /** * required string Abbreviation = 4; + * @return The bytes for abbreviation. */ public com.google.protobuf.ByteString getAbbreviationBytes() { @@ -1278,36 +1411,37 @@ public java.lang.String getAbbreviation() { } /** * required string Abbreviation = 4; + * @param value The abbreviation to set. + * @return This builder for chaining. */ public Builder setAbbreviation( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } abbreviation_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required string Abbreviation = 4; + * @return This builder for chaining. */ public Builder clearAbbreviation() { - bitField0_ = (bitField0_ & ~0x00000008); abbreviation_ = getDefaultInstance().getAbbreviation(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * required string Abbreviation = 4; + * @param value The bytes for abbreviation to set. + * @return This builder for chaining. */ public Builder setAbbreviationBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } abbreviation_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1315,12 +1449,14 @@ public Builder setAbbreviationBytes( private java.lang.Object kpp_ = ""; /** * optional string Kpp = 5; + * @return Whether the kpp field is set. */ public boolean hasKpp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string Kpp = 5; + * @return The kpp. */ public java.lang.String getKpp() { java.lang.Object ref = kpp_; @@ -1338,6 +1474,7 @@ public java.lang.String getKpp() { } /** * optional string Kpp = 5; + * @return The bytes for kpp. */ public com.google.protobuf.ByteString getKppBytes() { @@ -1354,55 +1491,58 @@ public java.lang.String getKpp() { } /** * optional string Kpp = 5; + * @param value The kpp to set. + * @return This builder for chaining. */ public Builder setKpp( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } kpp_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string Kpp = 5; + * @return This builder for chaining. */ public Builder clearKpp() { - bitField0_ = (bitField0_ & ~0x00000010); kpp_ = getDefaultInstance().getKpp(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string Kpp = 5; + * @param value The bytes for kpp to set. + * @return This builder for chaining. */ public Builder setKppBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } kpp_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } - private Diadoc.Api.Proto.AddressProtos.Address address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); + private Diadoc.Api.Proto.AddressProtos.Address address_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.AddressProtos.Address, Diadoc.Api.Proto.AddressProtos.Address.Builder, Diadoc.Api.Proto.AddressProtos.AddressOrBuilder> addressBuilder_; /** * optional .Diadoc.Api.Proto.Address Address = 6; + * @return Whether the address field is set. */ public boolean hasAddress() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Address Address = 6; + * @return The address. */ public Diadoc.Api.Proto.AddressProtos.Address getAddress() { if (addressBuilder_ == null) { - return address_; + return address_ == null ? Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } @@ -1416,11 +1556,11 @@ public Builder setAddress(Diadoc.Api.Proto.AddressProtos.Address value) { throw new NullPointerException(); } address_ = value; - onChanged(); } else { addressBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1430,11 +1570,11 @@ public Builder setAddress( Diadoc.Api.Proto.AddressProtos.Address.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); - onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1442,31 +1582,33 @@ public Builder setAddress( */ public Builder mergeAddress(Diadoc.Api.Proto.AddressProtos.Address value) { if (addressBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - address_ != Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance()) { - address_ = - Diadoc.Api.Proto.AddressProtos.Address.newBuilder(address_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + address_ != null && + address_ != Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance()) { + getAddressBuilder().mergeFrom(value); } else { address_ = value; } - onChanged(); } else { addressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (address_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Address Address = 6; */ public Builder clearAddress() { - if (addressBuilder_ == null) { - address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); - onChanged(); - } else { - addressBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + address_ = null; + if (addressBuilder_ != null) { + addressBuilder_.dispose(); + addressBuilder_ = null; + } + onChanged(); return this; } /** @@ -1484,7 +1626,8 @@ public Diadoc.Api.Proto.AddressProtos.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { - return address_; + return address_ == null ? + Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } } /** @@ -1504,21 +1647,23 @@ public Diadoc.Api.Proto.AddressProtos.AddressOrBuilder getAddressOrBuilder() { return addressBuilder_; } - private Diadoc.Api.Proto.Departments.RoutingProtos.Routing routing_ = Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance(); + private Diadoc.Api.Proto.Departments.RoutingProtos.Routing routing_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Departments.RoutingProtos.Routing, Diadoc.Api.Proto.Departments.RoutingProtos.Routing.Builder, Diadoc.Api.Proto.Departments.RoutingProtos.RoutingOrBuilder> routingBuilder_; /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 7; + * @return Whether the routing field is set. */ public boolean hasRouting() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 7; + * @return The routing. */ public Diadoc.Api.Proto.Departments.RoutingProtos.Routing getRouting() { if (routingBuilder_ == null) { - return routing_; + return routing_ == null ? Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance() : routing_; } else { return routingBuilder_.getMessage(); } @@ -1532,11 +1677,11 @@ public Builder setRouting(Diadoc.Api.Proto.Departments.RoutingProtos.Routing val throw new NullPointerException(); } routing_ = value; - onChanged(); } else { routingBuilder_.setMessage(value); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1546,11 +1691,11 @@ public Builder setRouting( Diadoc.Api.Proto.Departments.RoutingProtos.Routing.Builder builderForValue) { if (routingBuilder_ == null) { routing_ = builderForValue.build(); - onChanged(); } else { routingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1558,31 +1703,33 @@ public Builder setRouting( */ public Builder mergeRouting(Diadoc.Api.Proto.Departments.RoutingProtos.Routing value) { if (routingBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - routing_ != Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance()) { - routing_ = - Diadoc.Api.Proto.Departments.RoutingProtos.Routing.newBuilder(routing_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) && + routing_ != null && + routing_ != Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance()) { + getRoutingBuilder().mergeFrom(value); } else { routing_ = value; } - onChanged(); } else { routingBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + if (routing_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 7; */ public Builder clearRouting() { - if (routingBuilder_ == null) { - routing_ = Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance(); - onChanged(); - } else { - routingBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000040); + routing_ = null; + if (routingBuilder_ != null) { + routingBuilder_.dispose(); + routingBuilder_ = null; + } + onChanged(); return this; } /** @@ -1600,7 +1747,8 @@ public Diadoc.Api.Proto.Departments.RoutingProtos.RoutingOrBuilder getRoutingOrB if (routingBuilder_ != null) { return routingBuilder_.getMessageOrBuilder(); } else { - return routing_; + return routing_ == null ? + Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance() : routing_; } } /** @@ -1620,21 +1768,23 @@ public Diadoc.Api.Proto.Departments.RoutingProtos.RoutingOrBuilder getRoutingOrB return routingBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp creationTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> creationTimestampBuilder_; /** * required .Diadoc.Api.Proto.Timestamp CreationTimestamp = 8; + * @return Whether the creationTimestamp field is set. */ public boolean hasCreationTimestamp() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required .Diadoc.Api.Proto.Timestamp CreationTimestamp = 8; + * @return The creationTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getCreationTimestamp() { if (creationTimestampBuilder_ == null) { - return creationTimestamp_; + return creationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } else { return creationTimestampBuilder_.getMessage(); } @@ -1648,11 +1798,11 @@ public Builder setCreationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp v throw new NullPointerException(); } creationTimestamp_ = value; - onChanged(); } else { creationTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -1662,11 +1812,11 @@ public Builder setCreationTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (creationTimestampBuilder_ == null) { creationTimestamp_ = builderForValue.build(); - onChanged(); } else { creationTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -1674,31 +1824,33 @@ public Builder setCreationTimestamp( */ public Builder mergeCreationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (creationTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - creationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - creationTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(creationTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + creationTimestamp_ != null && + creationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getCreationTimestampBuilder().mergeFrom(value); } else { creationTimestamp_ = value; } - onChanged(); } else { creationTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + if (creationTimestamp_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Timestamp CreationTimestamp = 8; */ public Builder clearCreationTimestamp() { - if (creationTimestampBuilder_ == null) { - creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - creationTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000080); + creationTimestamp_ = null; + if (creationTimestampBuilder_ != null) { + creationTimestampBuilder_.dispose(); + creationTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -1716,7 +1868,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampO if (creationTimestampBuilder_ != null) { return creationTimestampBuilder_.getMessageOrBuilder(); } else { - return creationTimestamp_; + return creationTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } } /** @@ -1739,17 +1892,57 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampO // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Departments.Department) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.Department) + private static final Diadoc.Api.Proto.Departments.DepartmentProtos.Department DEFAULT_INSTANCE; static { - defaultInstance = new Department(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Departments.DepartmentProtos.Department(); + } + + public static Diadoc.Api.Proto.Departments.DepartmentProtos.Department getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Department parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Departments.DepartmentProtos.Department getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.Department) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Departments_Department_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Departments_Department_fieldAccessorTable; @@ -1757,7 +1950,7 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampO getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1772,27 +1965,20 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampO "ing\0226\n\021CreationTimestamp\030\010 \002(\0132\033.Diadoc." + "Api.Proto.TimestampB\022B\020DepartmentProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.AddressProtos.getDescriptor(), Diadoc.Api.Proto.TimestampProtos.getDescriptor(), Diadoc.Api.Proto.Departments.RoutingProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Departments_Department_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Departments_Department_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Departments_Department_descriptor, new java.lang.String[] { "Id", "ParentDepartmentId", "Name", "Abbreviation", "Kpp", "Address", "Routing", "CreationTimestamp", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.AddressProtos.getDescriptor(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.Departments.RoutingProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Departments/DepartmentToCreateProtos.java b/src/main/java/Diadoc/Api/Proto/Departments/DepartmentToCreateProtos.java index 153cfb35..6a2c7c4e 100644 --- a/src/main/java/Diadoc/Api/Proto/Departments/DepartmentToCreateProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Departments/DepartmentToCreateProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Departments/DepartmentToCreate.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Departments; public final class DepartmentToCreateProtos { private DepartmentToCreateProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentToCreateProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DepartmentToCreateOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Departments.DepartmentToCreate) @@ -14,66 +31,80 @@ public interface DepartmentToCreateOrBuilder extends /** * optional string ParentDepartmentId = 1; + * @return Whether the parentDepartmentId field is set. */ boolean hasParentDepartmentId(); /** * optional string ParentDepartmentId = 1; + * @return The parentDepartmentId. */ java.lang.String getParentDepartmentId(); /** * optional string ParentDepartmentId = 1; + * @return The bytes for parentDepartmentId. */ com.google.protobuf.ByteString getParentDepartmentIdBytes(); /** * required string Name = 2; + * @return Whether the name field is set. */ boolean hasName(); /** * required string Name = 2; + * @return The name. */ java.lang.String getName(); /** * required string Name = 2; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * required string Abbreviation = 3; + * @return Whether the abbreviation field is set. */ boolean hasAbbreviation(); /** * required string Abbreviation = 3; + * @return The abbreviation. */ java.lang.String getAbbreviation(); /** * required string Abbreviation = 3; + * @return The bytes for abbreviation. */ com.google.protobuf.ByteString getAbbreviationBytes(); /** * optional string Kpp = 4; + * @return Whether the kpp field is set. */ boolean hasKpp(); /** * optional string Kpp = 4; + * @return The kpp. */ java.lang.String getKpp(); /** * optional string Kpp = 4; + * @return The bytes for kpp. */ com.google.protobuf.ByteString getKppBytes(); /** * optional .Diadoc.Api.Proto.Address Address = 5; + * @return Whether the address field is set. */ boolean hasAddress(); /** * optional .Diadoc.Api.Proto.Address Address = 5; + * @return The address. */ Diadoc.Api.Proto.AddressProtos.Address getAddress(); /** @@ -83,10 +114,12 @@ public interface DepartmentToCreateOrBuilder extends /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 6; + * @return Whether the routing field is set. */ boolean hasRouting(); /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 6; + * @return The routing. */ Diadoc.Api.Proto.Departments.RoutingProtos.Routing getRouting(); /** @@ -101,118 +134,33 @@ public static final class DepartmentToCreate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Departments.DepartmentToCreate) DepartmentToCreateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentToCreate.class.getName()); + } // Use DepartmentToCreate.newBuilder() to construct. private DepartmentToCreate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DepartmentToCreate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DepartmentToCreate defaultInstance; - public static DepartmentToCreate getDefaultInstance() { - return defaultInstance; - } - - public DepartmentToCreate getDefaultInstanceForType() { - return defaultInstance; + private DepartmentToCreate() { + parentDepartmentId_ = ""; + name_ = ""; + abbreviation_ = ""; + kpp_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepartmentToCreate( - 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; - parentDepartmentId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - abbreviation_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - kpp_ = bs; - break; - } - case 42: { - Diadoc.Api.Proto.AddressProtos.Address.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = address_.toBuilder(); - } - address_ = input.readMessage(Diadoc.Api.Proto.AddressProtos.Address.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(address_); - address_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - Diadoc.Api.Proto.Departments.RoutingProtos.Routing.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = routing_.toBuilder(); - } - routing_ = input.readMessage(Diadoc.Api.Proto.Departments.RoutingProtos.Routing.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(routing_); - routing_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentToCreate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentToCreate_fieldAccessorTable @@ -220,33 +168,23 @@ private DepartmentToCreate( Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate.class, Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DepartmentToCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepartmentToCreate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PARENTDEPARTMENTID_FIELD_NUMBER = 1; - private java.lang.Object parentDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object parentDepartmentId_ = ""; /** * optional string ParentDepartmentId = 1; + * @return Whether the parentDepartmentId field is set. */ + @java.lang.Override public boolean hasParentDepartmentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string ParentDepartmentId = 1; + * @return The parentDepartmentId. */ + @java.lang.Override public java.lang.String getParentDepartmentId() { java.lang.Object ref = parentDepartmentId_; if (ref instanceof java.lang.String) { @@ -263,7 +201,9 @@ public java.lang.String getParentDepartmentId() { } /** * optional string ParentDepartmentId = 1; + * @return The bytes for parentDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getParentDepartmentIdBytes() { java.lang.Object ref = parentDepartmentId_; @@ -279,16 +219,21 @@ public java.lang.String getParentDepartmentId() { } public static final int NAME_FIELD_NUMBER = 2; - private java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * required string Name = 2; + * @return Whether the name field is set. */ + @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Name = 2; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -305,7 +250,9 @@ public java.lang.String getName() { } /** * required string Name = 2; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -321,16 +268,21 @@ public java.lang.String getName() { } public static final int ABBREVIATION_FIELD_NUMBER = 3; - private java.lang.Object abbreviation_; + @SuppressWarnings("serial") + private volatile java.lang.Object abbreviation_ = ""; /** * required string Abbreviation = 3; + * @return Whether the abbreviation field is set. */ + @java.lang.Override public boolean hasAbbreviation() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Abbreviation = 3; + * @return The abbreviation. */ + @java.lang.Override public java.lang.String getAbbreviation() { java.lang.Object ref = abbreviation_; if (ref instanceof java.lang.String) { @@ -347,7 +299,9 @@ public java.lang.String getAbbreviation() { } /** * required string Abbreviation = 3; + * @return The bytes for abbreviation. */ + @java.lang.Override public com.google.protobuf.ByteString getAbbreviationBytes() { java.lang.Object ref = abbreviation_; @@ -363,16 +317,21 @@ public java.lang.String getAbbreviation() { } public static final int KPP_FIELD_NUMBER = 4; - private java.lang.Object kpp_; + @SuppressWarnings("serial") + private volatile java.lang.Object kpp_ = ""; /** * optional string Kpp = 4; + * @return Whether the kpp field is set. */ + @java.lang.Override public boolean hasKpp() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Kpp = 4; + * @return The kpp. */ + @java.lang.Override public java.lang.String getKpp() { java.lang.Object ref = kpp_; if (ref instanceof java.lang.String) { @@ -389,7 +348,9 @@ public java.lang.String getKpp() { } /** * optional string Kpp = 4; + * @return The bytes for kpp. */ + @java.lang.Override public com.google.protobuf.ByteString getKppBytes() { java.lang.Object ref = kpp_; @@ -408,53 +369,56 @@ public java.lang.String getKpp() { private Diadoc.Api.Proto.AddressProtos.Address address_; /** * optional .Diadoc.Api.Proto.Address Address = 5; + * @return Whether the address field is set. */ + @java.lang.Override public boolean hasAddress() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Address Address = 5; + * @return The address. */ + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.Address getAddress() { - return address_; + return address_ == null ? Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } /** * optional .Diadoc.Api.Proto.Address Address = 5; */ + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.AddressOrBuilder getAddressOrBuilder() { - return address_; + return address_ == null ? Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } public static final int ROUTING_FIELD_NUMBER = 6; private Diadoc.Api.Proto.Departments.RoutingProtos.Routing routing_; /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 6; + * @return Whether the routing field is set. */ + @java.lang.Override public boolean hasRouting() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 6; + * @return The routing. */ + @java.lang.Override public Diadoc.Api.Proto.Departments.RoutingProtos.Routing getRouting() { - return routing_; + return routing_ == null ? Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance() : routing_; } /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 6; */ + @java.lang.Override public Diadoc.Api.Proto.Departments.RoutingProtos.RoutingOrBuilder getRoutingOrBuilder() { - return routing_; + return routing_ == null ? Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance() : routing_; } - private void initFields() { - parentDepartmentId_ = ""; - name_ = ""; - abbreviation_ = ""; - kpp_ = ""; - address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); - routing_ = Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -486,72 +450,152 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getParentDepartmentIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parentDepartmentId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getAbbreviationBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, abbreviation_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getKppBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, kpp_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, address_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getAddress()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, routing_); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getRouting()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getParentDepartmentIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parentDepartmentId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getAbbreviationBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, abbreviation_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getKppBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, kpp_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, address_); + .computeMessageSize(5, getAddress()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, routing_); + .computeMessageSize(6, getRouting()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate other = (Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate) obj; + + if (hasParentDepartmentId() != other.hasParentDepartmentId()) return false; + if (hasParentDepartmentId()) { + if (!getParentDepartmentId() + .equals(other.getParentDepartmentId())) return false; + } + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasAbbreviation() != other.hasAbbreviation()) return false; + if (hasAbbreviation()) { + if (!getAbbreviation() + .equals(other.getAbbreviation())) return false; + } + if (hasKpp() != other.hasKpp()) return false; + if (hasKpp()) { + if (!getKpp() + .equals(other.getKpp())) return false; + } + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (!getAddress() + .equals(other.getAddress())) return false; + } + if (hasRouting() != other.hasRouting()) return false; + if (hasRouting()) { + if (!getRouting() + .equals(other.getRouting())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasParentDepartmentId()) { + hash = (37 * hash) + PARENTDEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getParentDepartmentId().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasAbbreviation()) { + hash = (37 * hash) + ABBREVIATION_FIELD_NUMBER; + hash = (53 * hash) + getAbbreviation().hashCode(); + } + if (hasKpp()) { + hash = (37 * hash) + KPP_FIELD_NUMBER; + hash = (53 * hash) + getKpp().hashCode(); + } + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + if (hasRouting()) { + hash = (37 * hash) + ROUTING_FIELD_NUMBER; + hash = (53 * hash) + getRouting().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -575,42 +619,57 @@ public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentTo } public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -630,6 +689,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentToCreate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentToCreate_fieldAccessorTable @@ -648,53 +708,45 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getAddressFieldBuilder(); getRoutingFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parentDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); abbreviation_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); kpp_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (addressBuilder_ == null) { - address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); - } else { - addressBuilder_.clear(); + address_ = null; + if (addressBuilder_ != null) { + addressBuilder_.dispose(); + addressBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); - if (routingBuilder_ == null) { - routing_ = Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance(); - } else { - routingBuilder_.clear(); + routing_ = null; + if (routingBuilder_ != null) { + routingBuilder_.dispose(); + routingBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentToCreate_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate getDefaultInstanceForType() { return Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate build() { Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate result = buildPartial(); if (!result.isInitialized()) { @@ -703,47 +755,49 @@ public Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate return result; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate buildPartial() { Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate result = new Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parentDepartmentId_ = parentDepartmentId_; to_bitField0_ |= 0x00000001; } - result.parentDepartmentId_ = parentDepartmentId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; to_bitField0_ |= 0x00000002; } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.abbreviation_ = abbreviation_; to_bitField0_ |= 0x00000004; } - result.abbreviation_ = abbreviation_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kpp_ = kpp_; to_bitField0_ |= 0x00000008; } - result.kpp_ = kpp_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.address_ = addressBuilder_ == null + ? address_ + : addressBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (addressBuilder_ == null) { - result.address_ = address_; - } else { - result.address_ = addressBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.routing_ = routingBuilder_ == null + ? routing_ + : routingBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (routingBuilder_ == null) { - result.routing_ = routing_; - } else { - result.routing_ = routingBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate) { return mergeFrom((Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate)other); @@ -756,23 +810,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate other) { if (other == Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate.getDefaultInstance()) return this; if (other.hasParentDepartmentId()) { - bitField0_ |= 0x00000001; parentDepartmentId_ = other.parentDepartmentId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasName()) { - bitField0_ |= 0x00000002; name_ = other.name_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasAbbreviation()) { - bitField0_ |= 0x00000004; abbreviation_ = other.abbreviation_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasKpp()) { - bitField0_ |= 0x00000008; kpp_ = other.kpp_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasAddress()) { @@ -782,50 +836,95 @@ public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.D mergeRouting(other.getRouting()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasName()) { - return false; } if (!hasAbbreviation()) { - return false; } if (!hasRouting()) { - return false; } if (hasAddress()) { if (!getAddress().isInitialized()) { - return false; } } if (!getRouting().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parentDepartmentId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + abbreviation_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + kpp_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getAddressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getRoutingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -833,12 +932,14 @@ public Builder mergeFrom( private java.lang.Object parentDepartmentId_ = ""; /** * optional string ParentDepartmentId = 1; + * @return Whether the parentDepartmentId field is set. */ public boolean hasParentDepartmentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string ParentDepartmentId = 1; + * @return The parentDepartmentId. */ public java.lang.String getParentDepartmentId() { java.lang.Object ref = parentDepartmentId_; @@ -856,6 +957,7 @@ public java.lang.String getParentDepartmentId() { } /** * optional string ParentDepartmentId = 1; + * @return The bytes for parentDepartmentId. */ public com.google.protobuf.ByteString getParentDepartmentIdBytes() { @@ -872,36 +974,37 @@ public java.lang.String getParentDepartmentId() { } /** * optional string ParentDepartmentId = 1; + * @param value The parentDepartmentId to set. + * @return This builder for chaining. */ public Builder setParentDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } parentDepartmentId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string ParentDepartmentId = 1; + * @return This builder for chaining. */ public Builder clearParentDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000001); parentDepartmentId_ = getDefaultInstance().getParentDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string ParentDepartmentId = 1; + * @param value The bytes for parentDepartmentId to set. + * @return This builder for chaining. */ public Builder setParentDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } parentDepartmentId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -909,12 +1012,14 @@ public Builder setParentDepartmentIdBytes( private java.lang.Object name_ = ""; /** * required string Name = 2; + * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Name = 2; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -932,6 +1037,7 @@ public java.lang.String getName() { } /** * required string Name = 2; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -948,36 +1054,37 @@ public java.lang.String getName() { } /** * required string Name = 2; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string Name = 2; + * @return This builder for chaining. */ public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string Name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -985,12 +1092,14 @@ public Builder setNameBytes( private java.lang.Object abbreviation_ = ""; /** * required string Abbreviation = 3; + * @return Whether the abbreviation field is set. */ public boolean hasAbbreviation() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Abbreviation = 3; + * @return The abbreviation. */ public java.lang.String getAbbreviation() { java.lang.Object ref = abbreviation_; @@ -1008,6 +1117,7 @@ public java.lang.String getAbbreviation() { } /** * required string Abbreviation = 3; + * @return The bytes for abbreviation. */ public com.google.protobuf.ByteString getAbbreviationBytes() { @@ -1024,36 +1134,37 @@ public java.lang.String getAbbreviation() { } /** * required string Abbreviation = 3; + * @param value The abbreviation to set. + * @return This builder for chaining. */ public Builder setAbbreviation( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } abbreviation_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string Abbreviation = 3; + * @return This builder for chaining. */ public Builder clearAbbreviation() { - bitField0_ = (bitField0_ & ~0x00000004); abbreviation_ = getDefaultInstance().getAbbreviation(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string Abbreviation = 3; + * @param value The bytes for abbreviation to set. + * @return This builder for chaining. */ public Builder setAbbreviationBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } abbreviation_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1061,12 +1172,14 @@ public Builder setAbbreviationBytes( private java.lang.Object kpp_ = ""; /** * optional string Kpp = 4; + * @return Whether the kpp field is set. */ public boolean hasKpp() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Kpp = 4; + * @return The kpp. */ public java.lang.String getKpp() { java.lang.Object ref = kpp_; @@ -1084,6 +1197,7 @@ public java.lang.String getKpp() { } /** * optional string Kpp = 4; + * @return The bytes for kpp. */ public com.google.protobuf.ByteString getKppBytes() { @@ -1100,55 +1214,58 @@ public java.lang.String getKpp() { } /** * optional string Kpp = 4; + * @param value The kpp to set. + * @return This builder for chaining. */ public Builder setKpp( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } kpp_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string Kpp = 4; + * @return This builder for chaining. */ public Builder clearKpp() { - bitField0_ = (bitField0_ & ~0x00000008); kpp_ = getDefaultInstance().getKpp(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string Kpp = 4; + * @param value The bytes for kpp to set. + * @return This builder for chaining. */ public Builder setKppBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } kpp_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private Diadoc.Api.Proto.AddressProtos.Address address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); + private Diadoc.Api.Proto.AddressProtos.Address address_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.AddressProtos.Address, Diadoc.Api.Proto.AddressProtos.Address.Builder, Diadoc.Api.Proto.AddressProtos.AddressOrBuilder> addressBuilder_; /** * optional .Diadoc.Api.Proto.Address Address = 5; + * @return Whether the address field is set. */ public boolean hasAddress() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Address Address = 5; + * @return The address. */ public Diadoc.Api.Proto.AddressProtos.Address getAddress() { if (addressBuilder_ == null) { - return address_; + return address_ == null ? Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } @@ -1162,11 +1279,11 @@ public Builder setAddress(Diadoc.Api.Proto.AddressProtos.Address value) { throw new NullPointerException(); } address_ = value; - onChanged(); } else { addressBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1176,11 +1293,11 @@ public Builder setAddress( Diadoc.Api.Proto.AddressProtos.Address.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); - onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1188,31 +1305,33 @@ public Builder setAddress( */ public Builder mergeAddress(Diadoc.Api.Proto.AddressProtos.Address value) { if (addressBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - address_ != Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance()) { - address_ = - Diadoc.Api.Proto.AddressProtos.Address.newBuilder(address_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + address_ != null && + address_ != Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance()) { + getAddressBuilder().mergeFrom(value); } else { address_ = value; } - onChanged(); } else { addressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (address_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Address Address = 5; */ public Builder clearAddress() { - if (addressBuilder_ == null) { - address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); - onChanged(); - } else { - addressBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + address_ = null; + if (addressBuilder_ != null) { + addressBuilder_.dispose(); + addressBuilder_ = null; + } + onChanged(); return this; } /** @@ -1230,7 +1349,8 @@ public Diadoc.Api.Proto.AddressProtos.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { - return address_; + return address_ == null ? + Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } } /** @@ -1250,21 +1370,23 @@ public Diadoc.Api.Proto.AddressProtos.AddressOrBuilder getAddressOrBuilder() { return addressBuilder_; } - private Diadoc.Api.Proto.Departments.RoutingProtos.Routing routing_ = Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance(); + private Diadoc.Api.Proto.Departments.RoutingProtos.Routing routing_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Departments.RoutingProtos.Routing, Diadoc.Api.Proto.Departments.RoutingProtos.Routing.Builder, Diadoc.Api.Proto.Departments.RoutingProtos.RoutingOrBuilder> routingBuilder_; /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 6; + * @return Whether the routing field is set. */ public boolean hasRouting() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 6; + * @return The routing. */ public Diadoc.Api.Proto.Departments.RoutingProtos.Routing getRouting() { if (routingBuilder_ == null) { - return routing_; + return routing_ == null ? Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance() : routing_; } else { return routingBuilder_.getMessage(); } @@ -1278,11 +1400,11 @@ public Builder setRouting(Diadoc.Api.Proto.Departments.RoutingProtos.Routing val throw new NullPointerException(); } routing_ = value; - onChanged(); } else { routingBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1292,11 +1414,11 @@ public Builder setRouting( Diadoc.Api.Proto.Departments.RoutingProtos.Routing.Builder builderForValue) { if (routingBuilder_ == null) { routing_ = builderForValue.build(); - onChanged(); } else { routingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1304,31 +1426,33 @@ public Builder setRouting( */ public Builder mergeRouting(Diadoc.Api.Proto.Departments.RoutingProtos.Routing value) { if (routingBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - routing_ != Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance()) { - routing_ = - Diadoc.Api.Proto.Departments.RoutingProtos.Routing.newBuilder(routing_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + routing_ != null && + routing_ != Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance()) { + getRoutingBuilder().mergeFrom(value); } else { routing_ = value; } - onChanged(); } else { routingBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (routing_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Departments.Routing Routing = 6; */ public Builder clearRouting() { - if (routingBuilder_ == null) { - routing_ = Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance(); - onChanged(); - } else { - routingBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + routing_ = null; + if (routingBuilder_ != null) { + routingBuilder_.dispose(); + routingBuilder_ = null; + } + onChanged(); return this; } /** @@ -1346,7 +1470,8 @@ public Diadoc.Api.Proto.Departments.RoutingProtos.RoutingOrBuilder getRoutingOrB if (routingBuilder_ != null) { return routingBuilder_.getMessageOrBuilder(); } else { - return routing_; + return routing_ == null ? + Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance() : routing_; } } /** @@ -1369,17 +1494,57 @@ public Diadoc.Api.Proto.Departments.RoutingProtos.RoutingOrBuilder getRoutingOrB // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Departments.DepartmentToCreate) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentToCreate) + private static final Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate DEFAULT_INSTANCE; static { - defaultInstance = new DepartmentToCreate(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate(); + } + + public static Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DepartmentToCreate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Departments.DepartmentToCreateProtos.DepartmentToCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentToCreate) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Departments_DepartmentToCreate_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Departments_DepartmentToCreate_fieldAccessorTable; @@ -1387,7 +1552,7 @@ public Diadoc.Api.Proto.Departments.RoutingProtos.RoutingOrBuilder getRoutingOrB getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1401,26 +1566,19 @@ public Diadoc.Api.Proto.Departments.RoutingProtos.RoutingOrBuilder getRoutingOrB ".Api.Proto.Departments.RoutingB\032B\030Depart" + "mentToCreateProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.AddressProtos.getDescriptor(), Diadoc.Api.Proto.Departments.RoutingProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Departments_DepartmentToCreate_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Departments_DepartmentToCreate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Departments_DepartmentToCreate_descriptor, new java.lang.String[] { "ParentDepartmentId", "Name", "Abbreviation", "Kpp", "Address", "Routing", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.AddressProtos.getDescriptor(); Diadoc.Api.Proto.Departments.RoutingProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Departments/DepartmentToUpdateProtos.java b/src/main/java/Diadoc/Api/Proto/Departments/DepartmentToUpdateProtos.java index 7a478b66..2a5a7d5b 100644 --- a/src/main/java/Diadoc/Api/Proto/Departments/DepartmentToUpdateProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Departments/DepartmentToUpdateProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Departments/DepartmentToUpdate.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Departments; public final class DepartmentToUpdateProtos { private DepartmentToUpdateProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentToUpdateProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DepartmentToUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Departments.DepartmentToUpdate) @@ -14,10 +31,12 @@ public interface DepartmentToUpdateOrBuilder extends /** * optional .Diadoc.Api.Proto.Departments.ParentDepartmentPatch ParentDepartment = 1; + * @return Whether the parentDepartment field is set. */ boolean hasParentDepartment(); /** * optional .Diadoc.Api.Proto.Departments.ParentDepartmentPatch ParentDepartment = 1; + * @return The parentDepartment. */ Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch getParentDepartment(); /** @@ -27,10 +46,12 @@ public interface DepartmentToUpdateOrBuilder extends /** * optional .Diadoc.Api.Proto.Departments.DepartmentNamingPatch DepartmentNaming = 2; + * @return Whether the departmentNaming field is set. */ boolean hasDepartmentNaming(); /** * optional .Diadoc.Api.Proto.Departments.DepartmentNamingPatch DepartmentNaming = 2; + * @return The departmentNaming. */ Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch getDepartmentNaming(); /** @@ -40,10 +61,12 @@ public interface DepartmentToUpdateOrBuilder extends /** * optional .Diadoc.Api.Proto.Departments.DepartmentKppPatch Kpp = 3; + * @return Whether the kpp field is set. */ boolean hasKpp(); /** * optional .Diadoc.Api.Proto.Departments.DepartmentKppPatch Kpp = 3; + * @return The kpp. */ Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch getKpp(); /** @@ -53,10 +76,12 @@ public interface DepartmentToUpdateOrBuilder extends /** * optional .Diadoc.Api.Proto.Departments.DepartmentAddressPatch Address = 4; + * @return Whether the address field is set. */ boolean hasAddress(); /** * optional .Diadoc.Api.Proto.Departments.DepartmentAddressPatch Address = 4; + * @return The address. */ Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch getAddress(); /** @@ -66,10 +91,12 @@ public interface DepartmentToUpdateOrBuilder extends /** * optional .Diadoc.Api.Proto.Departments.DepartmentRoutingPatch Routing = 5; + * @return Whether the routing field is set. */ boolean hasRouting(); /** * optional .Diadoc.Api.Proto.Departments.DepartmentRoutingPatch Routing = 5; + * @return The routing. */ Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch getRouting(); /** @@ -84,133 +111,29 @@ public static final class DepartmentToUpdate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Departments.DepartmentToUpdate) DepartmentToUpdateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentToUpdate.class.getName()); + } // Use DepartmentToUpdate.newBuilder() to construct. private DepartmentToUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DepartmentToUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DepartmentToUpdate defaultInstance; - public static DepartmentToUpdate getDefaultInstance() { - return defaultInstance; } - - public DepartmentToUpdate getDefaultInstanceForType() { - return defaultInstance; + private DepartmentToUpdate() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepartmentToUpdate( - 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: { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = parentDepartment_.toBuilder(); - } - parentDepartment_ = input.readMessage(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentDepartment_); - parentDepartment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = departmentNaming_.toBuilder(); - } - departmentNaming_ = input.readMessage(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(departmentNaming_); - departmentNaming_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = kpp_.toBuilder(); - } - kpp_ = input.readMessage(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kpp_); - kpp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = address_.toBuilder(); - } - address_ = input.readMessage(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(address_); - address_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = routing_.toBuilder(); - } - routing_ = input.readMessage(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(routing_); - routing_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - 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.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentToUpdate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentToUpdate_fieldAccessorTable @@ -218,135 +141,139 @@ private DepartmentToUpdate( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate.class, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DepartmentToUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepartmentToUpdate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PARENTDEPARTMENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parentDepartment_; /** * optional .Diadoc.Api.Proto.Departments.ParentDepartmentPatch ParentDepartment = 1; + * @return Whether the parentDepartment field is set. */ + @java.lang.Override public boolean hasParentDepartment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Departments.ParentDepartmentPatch ParentDepartment = 1; + * @return The parentDepartment. */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch getParentDepartment() { - return parentDepartment_; + return parentDepartment_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance() : parentDepartment_; } /** * optional .Diadoc.Api.Proto.Departments.ParentDepartmentPatch ParentDepartment = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatchOrBuilder getParentDepartmentOrBuilder() { - return parentDepartment_; + return parentDepartment_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance() : parentDepartment_; } public static final int DEPARTMENTNAMING_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch departmentNaming_; /** * optional .Diadoc.Api.Proto.Departments.DepartmentNamingPatch DepartmentNaming = 2; + * @return Whether the departmentNaming field is set. */ + @java.lang.Override public boolean hasDepartmentNaming() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Departments.DepartmentNamingPatch DepartmentNaming = 2; + * @return The departmentNaming. */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch getDepartmentNaming() { - return departmentNaming_; + return departmentNaming_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance() : departmentNaming_; } /** * optional .Diadoc.Api.Proto.Departments.DepartmentNamingPatch DepartmentNaming = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatchOrBuilder getDepartmentNamingOrBuilder() { - return departmentNaming_; + return departmentNaming_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance() : departmentNaming_; } public static final int KPP_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch kpp_; /** * optional .Diadoc.Api.Proto.Departments.DepartmentKppPatch Kpp = 3; + * @return Whether the kpp field is set. */ + @java.lang.Override public boolean hasKpp() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Departments.DepartmentKppPatch Kpp = 3; + * @return The kpp. */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch getKpp() { - return kpp_; + return kpp_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance() : kpp_; } /** * optional .Diadoc.Api.Proto.Departments.DepartmentKppPatch Kpp = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatchOrBuilder getKppOrBuilder() { - return kpp_; + return kpp_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance() : kpp_; } public static final int ADDRESS_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch address_; /** * optional .Diadoc.Api.Proto.Departments.DepartmentAddressPatch Address = 4; + * @return Whether the address field is set. */ + @java.lang.Override public boolean hasAddress() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Departments.DepartmentAddressPatch Address = 4; + * @return The address. */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch getAddress() { - return address_; + return address_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance() : address_; } /** * optional .Diadoc.Api.Proto.Departments.DepartmentAddressPatch Address = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatchOrBuilder getAddressOrBuilder() { - return address_; + return address_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance() : address_; } public static final int ROUTING_FIELD_NUMBER = 5; private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch routing_; /** * optional .Diadoc.Api.Proto.Departments.DepartmentRoutingPatch Routing = 5; + * @return Whether the routing field is set. */ + @java.lang.Override public boolean hasRouting() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Departments.DepartmentRoutingPatch Routing = 5; + * @return The routing. */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch getRouting() { - return routing_; + return routing_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance() : routing_; } /** * optional .Diadoc.Api.Proto.Departments.DepartmentRoutingPatch Routing = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatchOrBuilder getRoutingOrBuilder() { - return routing_; + return routing_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance() : routing_; } - private void initFields() { - parentDepartment_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance(); - departmentNaming_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance(); - kpp_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance(); - address_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance(); - routing_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -380,65 +307,140 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, parentDepartment_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getParentDepartment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, departmentNaming_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDepartmentNaming()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, kpp_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getKpp()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, address_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getAddress()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, routing_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getRouting()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, parentDepartment_); + .computeMessageSize(1, getParentDepartment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, departmentNaming_); + .computeMessageSize(2, getDepartmentNaming()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, kpp_); + .computeMessageSize(3, getKpp()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, address_); + .computeMessageSize(4, getAddress()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, routing_); + .computeMessageSize(5, getRouting()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate other = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate) obj; + + if (hasParentDepartment() != other.hasParentDepartment()) return false; + if (hasParentDepartment()) { + if (!getParentDepartment() + .equals(other.getParentDepartment())) return false; + } + if (hasDepartmentNaming() != other.hasDepartmentNaming()) return false; + if (hasDepartmentNaming()) { + if (!getDepartmentNaming() + .equals(other.getDepartmentNaming())) return false; + } + if (hasKpp() != other.hasKpp()) return false; + if (hasKpp()) { + if (!getKpp() + .equals(other.getKpp())) return false; + } + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (!getAddress() + .equals(other.getAddress())) return false; + } + if (hasRouting() != other.hasRouting()) return false; + if (hasRouting()) { + if (!getRouting() + .equals(other.getRouting())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasParentDepartment()) { + hash = (37 * hash) + PARENTDEPARTMENT_FIELD_NUMBER; + hash = (53 * hash) + getParentDepartment().hashCode(); + } + if (hasDepartmentNaming()) { + hash = (37 * hash) + DEPARTMENTNAMING_FIELD_NUMBER; + hash = (53 * hash) + getDepartmentNaming().hashCode(); + } + if (hasKpp()) { + hash = (37 * hash) + KPP_FIELD_NUMBER; + hash = (53 * hash) + getKpp().hashCode(); + } + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + if (hasRouting()) { + hash = (37 * hash) + ROUTING_FIELD_NUMBER; + hash = (53 * hash) + getRouting().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -462,42 +464,57 @@ public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentTo } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -517,6 +534,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentToUpdate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentToUpdate_fieldAccessorTable @@ -535,7 +553,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getParentDepartmentFieldBuilder(); getDepartmentNamingFieldBuilder(); getKppFieldBuilder(); @@ -543,58 +562,50 @@ private void maybeForceBuilderInitialization() { getRoutingFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (parentDepartmentBuilder_ == null) { - parentDepartment_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance(); - } else { - parentDepartmentBuilder_.clear(); + bitField0_ = 0; + parentDepartment_ = null; + if (parentDepartmentBuilder_ != null) { + parentDepartmentBuilder_.dispose(); + parentDepartmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (departmentNamingBuilder_ == null) { - departmentNaming_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance(); - } else { - departmentNamingBuilder_.clear(); + departmentNaming_ = null; + if (departmentNamingBuilder_ != null) { + departmentNamingBuilder_.dispose(); + departmentNamingBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (kppBuilder_ == null) { - kpp_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance(); - } else { - kppBuilder_.clear(); + kpp_ = null; + if (kppBuilder_ != null) { + kppBuilder_.dispose(); + kppBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (addressBuilder_ == null) { - address_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance(); - } else { - addressBuilder_.clear(); + address_ = null; + if (addressBuilder_ != null) { + addressBuilder_.dispose(); + addressBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (routingBuilder_ == null) { - routing_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance(); - } else { - routingBuilder_.clear(); + routing_ = null; + if (routingBuilder_ != null) { + routingBuilder_.dispose(); + routingBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentToUpdate_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate getDefaultInstanceForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate build() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate result = buildPartial(); if (!result.isInitialized()) { @@ -603,55 +614,51 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate return result; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate buildPartial() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate result = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parentDepartment_ = parentDepartmentBuilder_ == null + ? parentDepartment_ + : parentDepartmentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (parentDepartmentBuilder_ == null) { - result.parentDepartment_ = parentDepartment_; - } else { - result.parentDepartment_ = parentDepartmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.departmentNaming_ = departmentNamingBuilder_ == null + ? departmentNaming_ + : departmentNamingBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (departmentNamingBuilder_ == null) { - result.departmentNaming_ = departmentNaming_; - } else { - result.departmentNaming_ = departmentNamingBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kpp_ = kppBuilder_ == null + ? kpp_ + : kppBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (kppBuilder_ == null) { - result.kpp_ = kpp_; - } else { - result.kpp_ = kppBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.address_ = addressBuilder_ == null + ? address_ + : addressBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (addressBuilder_ == null) { - result.address_ = address_; - } else { - result.address_ = addressBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.routing_ = routingBuilder_ == null + ? routing_ + : routingBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (routingBuilder_ == null) { - result.routing_ = routing_; - } else { - result.routing_ = routingBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate) { return mergeFrom((Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate)other); @@ -679,71 +686,120 @@ public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.D mergeRouting(other.getRouting()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasParentDepartment()) { if (!getParentDepartment().isInitialized()) { - return false; } } if (hasDepartmentNaming()) { if (!getDepartmentNaming().isInitialized()) { - return false; } } if (hasAddress()) { if (!getAddress().isInitialized()) { - return false; } } if (hasRouting()) { if (!getRouting().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getParentDepartmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDepartmentNamingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getKppFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getAddressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getRoutingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parentDepartment_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parentDepartment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.Builder, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatchOrBuilder> parentDepartmentBuilder_; /** * optional .Diadoc.Api.Proto.Departments.ParentDepartmentPatch ParentDepartment = 1; + * @return Whether the parentDepartment field is set. */ public boolean hasParentDepartment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Departments.ParentDepartmentPatch ParentDepartment = 1; + * @return The parentDepartment. */ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch getParentDepartment() { if (parentDepartmentBuilder_ == null) { - return parentDepartment_; + return parentDepartment_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance() : parentDepartment_; } else { return parentDepartmentBuilder_.getMessage(); } @@ -757,11 +813,11 @@ public Builder setParentDepartment(Diadoc.Api.Proto.Departments.DepartmentToUpda throw new NullPointerException(); } parentDepartment_ = value; - onChanged(); } else { parentDepartmentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -771,11 +827,11 @@ public Builder setParentDepartment( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.Builder builderForValue) { if (parentDepartmentBuilder_ == null) { parentDepartment_ = builderForValue.build(); - onChanged(); } else { parentDepartmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -783,31 +839,33 @@ public Builder setParentDepartment( */ public Builder mergeParentDepartment(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch value) { if (parentDepartmentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - parentDepartment_ != Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance()) { - parentDepartment_ = - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.newBuilder(parentDepartment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + parentDepartment_ != null && + parentDepartment_ != Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance()) { + getParentDepartmentBuilder().mergeFrom(value); } else { parentDepartment_ = value; } - onChanged(); } else { parentDepartmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (parentDepartment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Departments.ParentDepartmentPatch ParentDepartment = 1; */ public Builder clearParentDepartment() { - if (parentDepartmentBuilder_ == null) { - parentDepartment_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance(); - onChanged(); - } else { - parentDepartmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + parentDepartment_ = null; + if (parentDepartmentBuilder_ != null) { + parentDepartmentBuilder_.dispose(); + parentDepartmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -825,7 +883,8 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPat if (parentDepartmentBuilder_ != null) { return parentDepartmentBuilder_.getMessageOrBuilder(); } else { - return parentDepartment_; + return parentDepartment_ == null ? + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance() : parentDepartment_; } } /** @@ -845,21 +904,23 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPat return parentDepartmentBuilder_; } - private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch departmentNaming_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch departmentNaming_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.Builder, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatchOrBuilder> departmentNamingBuilder_; /** * optional .Diadoc.Api.Proto.Departments.DepartmentNamingPatch DepartmentNaming = 2; + * @return Whether the departmentNaming field is set. */ public boolean hasDepartmentNaming() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Departments.DepartmentNamingPatch DepartmentNaming = 2; + * @return The departmentNaming. */ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch getDepartmentNaming() { if (departmentNamingBuilder_ == null) { - return departmentNaming_; + return departmentNaming_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance() : departmentNaming_; } else { return departmentNamingBuilder_.getMessage(); } @@ -873,11 +934,11 @@ public Builder setDepartmentNaming(Diadoc.Api.Proto.Departments.DepartmentToUpda throw new NullPointerException(); } departmentNaming_ = value; - onChanged(); } else { departmentNamingBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -887,11 +948,11 @@ public Builder setDepartmentNaming( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.Builder builderForValue) { if (departmentNamingBuilder_ == null) { departmentNaming_ = builderForValue.build(); - onChanged(); } else { departmentNamingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -899,31 +960,33 @@ public Builder setDepartmentNaming( */ public Builder mergeDepartmentNaming(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch value) { if (departmentNamingBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - departmentNaming_ != Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance()) { - departmentNaming_ = - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.newBuilder(departmentNaming_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + departmentNaming_ != null && + departmentNaming_ != Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance()) { + getDepartmentNamingBuilder().mergeFrom(value); } else { departmentNaming_ = value; } - onChanged(); } else { departmentNamingBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (departmentNaming_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Departments.DepartmentNamingPatch DepartmentNaming = 2; */ public Builder clearDepartmentNaming() { - if (departmentNamingBuilder_ == null) { - departmentNaming_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance(); - onChanged(); - } else { - departmentNamingBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + departmentNaming_ = null; + if (departmentNamingBuilder_ != null) { + departmentNamingBuilder_.dispose(); + departmentNamingBuilder_ = null; + } + onChanged(); return this; } /** @@ -941,7 +1004,8 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPat if (departmentNamingBuilder_ != null) { return departmentNamingBuilder_.getMessageOrBuilder(); } else { - return departmentNaming_; + return departmentNaming_ == null ? + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance() : departmentNaming_; } } /** @@ -961,21 +1025,23 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPat return departmentNamingBuilder_; } - private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch kpp_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch kpp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.Builder, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatchOrBuilder> kppBuilder_; /** * optional .Diadoc.Api.Proto.Departments.DepartmentKppPatch Kpp = 3; + * @return Whether the kpp field is set. */ public boolean hasKpp() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Departments.DepartmentKppPatch Kpp = 3; + * @return The kpp. */ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch getKpp() { if (kppBuilder_ == null) { - return kpp_; + return kpp_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance() : kpp_; } else { return kppBuilder_.getMessage(); } @@ -989,11 +1055,11 @@ public Builder setKpp(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.Depa throw new NullPointerException(); } kpp_ = value; - onChanged(); } else { kppBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1003,11 +1069,11 @@ public Builder setKpp( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.Builder builderForValue) { if (kppBuilder_ == null) { kpp_ = builderForValue.build(); - onChanged(); } else { kppBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1015,31 +1081,33 @@ public Builder setKpp( */ public Builder mergeKpp(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch value) { if (kppBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - kpp_ != Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance()) { - kpp_ = - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.newBuilder(kpp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + kpp_ != null && + kpp_ != Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance()) { + getKppBuilder().mergeFrom(value); } else { kpp_ = value; } - onChanged(); } else { kppBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (kpp_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Departments.DepartmentKppPatch Kpp = 3; */ public Builder clearKpp() { - if (kppBuilder_ == null) { - kpp_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance(); - onChanged(); - } else { - kppBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + kpp_ = null; + if (kppBuilder_ != null) { + kppBuilder_.dispose(); + kppBuilder_ = null; + } + onChanged(); return this; } /** @@ -1057,7 +1125,8 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatchO if (kppBuilder_ != null) { return kppBuilder_.getMessageOrBuilder(); } else { - return kpp_; + return kpp_ == null ? + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance() : kpp_; } } /** @@ -1077,21 +1146,23 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatchO return kppBuilder_; } - private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch address_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch address_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.Builder, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatchOrBuilder> addressBuilder_; /** * optional .Diadoc.Api.Proto.Departments.DepartmentAddressPatch Address = 4; + * @return Whether the address field is set. */ public boolean hasAddress() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Departments.DepartmentAddressPatch Address = 4; + * @return The address. */ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch getAddress() { if (addressBuilder_ == null) { - return address_; + return address_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } @@ -1105,11 +1176,11 @@ public Builder setAddress(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos. throw new NullPointerException(); } address_ = value; - onChanged(); } else { addressBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1119,11 +1190,11 @@ public Builder setAddress( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); - onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1131,31 +1202,33 @@ public Builder setAddress( */ public Builder mergeAddress(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch value) { if (addressBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - address_ != Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance()) { - address_ = - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.newBuilder(address_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + address_ != null && + address_ != Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance()) { + getAddressBuilder().mergeFrom(value); } else { address_ = value; } - onChanged(); } else { addressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (address_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Departments.DepartmentAddressPatch Address = 4; */ public Builder clearAddress() { - if (addressBuilder_ == null) { - address_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance(); - onChanged(); - } else { - addressBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + address_ = null; + if (addressBuilder_ != null) { + addressBuilder_.dispose(); + addressBuilder_ = null; + } + onChanged(); return this; } /** @@ -1173,7 +1246,8 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPa if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { - return address_; + return address_ == null ? + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance() : address_; } } /** @@ -1193,21 +1267,23 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPa return addressBuilder_; } - private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch routing_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch routing_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.Builder, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatchOrBuilder> routingBuilder_; /** * optional .Diadoc.Api.Proto.Departments.DepartmentRoutingPatch Routing = 5; + * @return Whether the routing field is set. */ public boolean hasRouting() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Departments.DepartmentRoutingPatch Routing = 5; + * @return The routing. */ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch getRouting() { if (routingBuilder_ == null) { - return routing_; + return routing_ == null ? Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance() : routing_; } else { return routingBuilder_.getMessage(); } @@ -1221,11 +1297,11 @@ public Builder setRouting(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos. throw new NullPointerException(); } routing_ = value; - onChanged(); } else { routingBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1235,11 +1311,11 @@ public Builder setRouting( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.Builder builderForValue) { if (routingBuilder_ == null) { routing_ = builderForValue.build(); - onChanged(); } else { routingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1247,31 +1323,33 @@ public Builder setRouting( */ public Builder mergeRouting(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch value) { if (routingBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - routing_ != Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance()) { - routing_ = - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.newBuilder(routing_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + routing_ != null && + routing_ != Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance()) { + getRoutingBuilder().mergeFrom(value); } else { routing_ = value; } - onChanged(); } else { routingBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (routing_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Departments.DepartmentRoutingPatch Routing = 5; */ public Builder clearRouting() { - if (routingBuilder_ == null) { - routing_ = Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance(); - onChanged(); - } else { - routingBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + routing_ = null; + if (routingBuilder_ != null) { + routingBuilder_.dispose(); + routingBuilder_ = null; + } + onChanged(); return this; } /** @@ -1289,7 +1367,8 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPa if (routingBuilder_ != null) { return routingBuilder_.getMessageOrBuilder(); } else { - return routing_; + return routing_ == null ? + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance() : routing_; } } /** @@ -1312,12 +1391,52 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPa // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Departments.DepartmentToUpdate) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentToUpdate) + private static final Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate DEFAULT_INSTANCE; static { - defaultInstance = new DepartmentToUpdate(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate(); + } + + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DepartmentToUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentToUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentToUpdate) } public interface ParentDepartmentPatchOrBuilder extends @@ -1326,14 +1445,17 @@ public interface ParentDepartmentPatchOrBuilder extends /** * required string ParentDepartmentId = 1; + * @return Whether the parentDepartmentId field is set. */ boolean hasParentDepartmentId(); /** * required string ParentDepartmentId = 1; + * @return The parentDepartmentId. */ java.lang.String getParentDepartmentId(); /** * required string ParentDepartmentId = 1; + * @return The bytes for parentDepartmentId. */ com.google.protobuf.ByteString getParentDepartmentIdBytes(); @@ -1345,74 +1467,30 @@ public static final class ParentDepartmentPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Departments.ParentDepartmentPatch) ParentDepartmentPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ParentDepartmentPatch.class.getName()); + } // Use ParentDepartmentPatch.newBuilder() to construct. private ParentDepartmentPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private ParentDepartmentPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ParentDepartmentPatch defaultInstance; - public static ParentDepartmentPatch getDefaultInstance() { - return defaultInstance; + private ParentDepartmentPatch() { + parentDepartmentId_ = ""; } - public ParentDepartmentPatch getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParentDepartmentPatch( - 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; - parentDepartmentId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_ParentDepartmentPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_ParentDepartmentPatch_fieldAccessorTable @@ -1420,33 +1498,23 @@ private ParentDepartmentPatch( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.class, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ParentDepartmentPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParentDepartmentPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PARENTDEPARTMENTID_FIELD_NUMBER = 1; - private java.lang.Object parentDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object parentDepartmentId_ = ""; /** * required string ParentDepartmentId = 1; + * @return Whether the parentDepartmentId field is set. */ + @java.lang.Override public boolean hasParentDepartmentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string ParentDepartmentId = 1; + * @return The parentDepartmentId. */ + @java.lang.Override public java.lang.String getParentDepartmentId() { java.lang.Object ref = parentDepartmentId_; if (ref instanceof java.lang.String) { @@ -1463,7 +1531,9 @@ public java.lang.String getParentDepartmentId() { } /** * required string ParentDepartmentId = 1; + * @return The bytes for parentDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getParentDepartmentIdBytes() { java.lang.Object ref = parentDepartmentId_; @@ -1478,10 +1548,8 @@ public java.lang.String getParentDepartmentId() { } } - private void initFields() { - parentDepartmentId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1495,37 +1563,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getParentDepartmentIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parentDepartmentId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getParentDepartmentIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parentDepartmentId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch other = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch) obj; + + if (hasParentDepartmentId() != other.hasParentDepartmentId()) return false; + if (hasParentDepartmentId()) { + if (!getParentDepartmentId() + .equals(other.getParentDepartmentId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasParentDepartmentId()) { + hash = (37 * hash) + PARENTDEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getParentDepartmentId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1549,42 +1655,57 @@ public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepart } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1604,6 +1725,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_ParentDepartmentPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_ParentDepartmentPatch_fieldAccessorTable @@ -1613,42 +1735,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parentDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_ParentDepartmentPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch build() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch result = buildPartial(); if (!result.isInitialized()) { @@ -1657,19 +1771,25 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPat return result; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch buildPartial() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch result = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parentDepartmentId_ = parentDepartmentId_; to_bitField0_ |= 0x00000001; } - result.parentDepartmentId_ = parentDepartmentId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch) { return mergeFrom((Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch)other); @@ -1682,37 +1802,57 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch other) { if (other == Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch.getDefaultInstance()) return this; if (other.hasParentDepartmentId()) { - bitField0_ |= 0x00000001; parentDepartmentId_ = other.parentDepartmentId_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasParentDepartmentId()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parentDepartmentId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1720,12 +1860,14 @@ public Builder mergeFrom( private java.lang.Object parentDepartmentId_ = ""; /** * required string ParentDepartmentId = 1; + * @return Whether the parentDepartmentId field is set. */ public boolean hasParentDepartmentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string ParentDepartmentId = 1; + * @return The parentDepartmentId. */ public java.lang.String getParentDepartmentId() { java.lang.Object ref = parentDepartmentId_; @@ -1743,6 +1885,7 @@ public java.lang.String getParentDepartmentId() { } /** * required string ParentDepartmentId = 1; + * @return The bytes for parentDepartmentId. */ public com.google.protobuf.ByteString getParentDepartmentIdBytes() { @@ -1759,36 +1902,37 @@ public java.lang.String getParentDepartmentId() { } /** * required string ParentDepartmentId = 1; + * @param value The parentDepartmentId to set. + * @return This builder for chaining. */ public Builder setParentDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } parentDepartmentId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string ParentDepartmentId = 1; + * @return This builder for chaining. */ public Builder clearParentDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000001); parentDepartmentId_ = getDefaultInstance().getParentDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string ParentDepartmentId = 1; + * @param value The bytes for parentDepartmentId to set. + * @return This builder for chaining. */ public Builder setParentDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } parentDepartmentId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1796,12 +1940,52 @@ public Builder setParentDepartmentIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Departments.ParentDepartmentPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.ParentDepartmentPatch) + private static final Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch DEFAULT_INSTANCE; static { - defaultInstance = new ParentDepartmentPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch(); + } + + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParentDepartmentPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.ParentDepartmentPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.ParentDepartmentPatch) } public interface DepartmentNamingPatchOrBuilder extends @@ -1810,28 +1994,34 @@ public interface DepartmentNamingPatchOrBuilder extends /** * required string Name = 1; + * @return Whether the name field is set. */ boolean hasName(); /** * required string Name = 1; + * @return The name. */ java.lang.String getName(); /** * required string Name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * required string Abbreviation = 2; + * @return Whether the abbreviation field is set. */ boolean hasAbbreviation(); /** * required string Abbreviation = 2; + * @return The abbreviation. */ java.lang.String getAbbreviation(); /** * required string Abbreviation = 2; + * @return The bytes for abbreviation. */ com.google.protobuf.ByteString getAbbreviationBytes(); @@ -1843,80 +2033,31 @@ public static final class DepartmentNamingPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Departments.DepartmentNamingPatch) DepartmentNamingPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentNamingPatch.class.getName()); + } // Use DepartmentNamingPatch.newBuilder() to construct. private DepartmentNamingPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DepartmentNamingPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DepartmentNamingPatch defaultInstance; - public static DepartmentNamingPatch getDefaultInstance() { - return defaultInstance; } - - public DepartmentNamingPatch getDefaultInstanceForType() { - return defaultInstance; + private DepartmentNamingPatch() { + name_ = ""; + abbreviation_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepartmentNamingPatch( - 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; - name_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - abbreviation_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentNamingPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentNamingPatch_fieldAccessorTable @@ -1924,33 +2065,23 @@ private DepartmentNamingPatch( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.class, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DepartmentNamingPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepartmentNamingPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * required string Name = 1; + * @return Whether the name field is set. */ + @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -1967,7 +2098,9 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1983,16 +2116,21 @@ public java.lang.String getName() { } public static final int ABBREVIATION_FIELD_NUMBER = 2; - private java.lang.Object abbreviation_; + @SuppressWarnings("serial") + private volatile java.lang.Object abbreviation_ = ""; /** * required string Abbreviation = 2; + * @return Whether the abbreviation field is set. */ + @java.lang.Override public boolean hasAbbreviation() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Abbreviation = 2; + * @return The abbreviation. */ + @java.lang.Override public java.lang.String getAbbreviation() { java.lang.Object ref = abbreviation_; if (ref instanceof java.lang.String) { @@ -2009,7 +2147,9 @@ public java.lang.String getAbbreviation() { } /** * required string Abbreviation = 2; + * @return The bytes for abbreviation. */ + @java.lang.Override public com.google.protobuf.ByteString getAbbreviationBytes() { java.lang.Object ref = abbreviation_; @@ -2024,11 +2164,8 @@ public java.lang.String getAbbreviation() { } } - private void initFields() { - name_ = ""; - abbreviation_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2046,44 +2183,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getAbbreviationBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, abbreviation_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getAbbreviationBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, abbreviation_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch other = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasAbbreviation() != other.hasAbbreviation()) return false; + if (hasAbbreviation()) { + if (!getAbbreviation() + .equals(other.getAbbreviation())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasAbbreviation()) { + hash = (37 * hash) + ABBREVIATION_FIELD_NUMBER; + hash = (53 * hash) + getAbbreviation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2107,42 +2290,57 @@ public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNa } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2162,6 +2360,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentNamingPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentNamingPatch_fieldAccessorTable @@ -2171,44 +2370,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); abbreviation_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentNamingPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch build() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch result = buildPartial(); if (!result.isInitialized()) { @@ -2217,23 +2407,29 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPat return result; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch buildPartial() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch result = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; to_bitField0_ |= 0x00000001; } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.abbreviation_ = abbreviation_; to_bitField0_ |= 0x00000002; } - result.abbreviation_ = abbreviation_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch) { return mergeFrom((Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch)other); @@ -2246,46 +2442,70 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch other) { if (other == Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasAbbreviation()) { - bitField0_ |= 0x00000002; abbreviation_ = other.abbreviation_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasName()) { - return false; } if (!hasAbbreviation()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + abbreviation_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2293,12 +2513,14 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** * required string Name = 1; + * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -2316,6 +2538,7 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -2332,36 +2555,37 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Name = 1; + * @return This builder for chaining. */ public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2369,12 +2593,14 @@ public Builder setNameBytes( private java.lang.Object abbreviation_ = ""; /** * required string Abbreviation = 2; + * @return Whether the abbreviation field is set. */ public boolean hasAbbreviation() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Abbreviation = 2; + * @return The abbreviation. */ public java.lang.String getAbbreviation() { java.lang.Object ref = abbreviation_; @@ -2392,6 +2618,7 @@ public java.lang.String getAbbreviation() { } /** * required string Abbreviation = 2; + * @return The bytes for abbreviation. */ public com.google.protobuf.ByteString getAbbreviationBytes() { @@ -2408,36 +2635,37 @@ public java.lang.String getAbbreviation() { } /** * required string Abbreviation = 2; + * @param value The abbreviation to set. + * @return This builder for chaining. */ public Builder setAbbreviation( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } abbreviation_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string Abbreviation = 2; + * @return This builder for chaining. */ public Builder clearAbbreviation() { - bitField0_ = (bitField0_ & ~0x00000002); abbreviation_ = getDefaultInstance().getAbbreviation(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string Abbreviation = 2; + * @param value The bytes for abbreviation to set. + * @return This builder for chaining. */ public Builder setAbbreviationBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } abbreviation_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2445,12 +2673,52 @@ public Builder setAbbreviationBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Departments.DepartmentNamingPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentNamingPatch) + private static final Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch DEFAULT_INSTANCE; static { - defaultInstance = new DepartmentNamingPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch(); + } + + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DepartmentNamingPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentNamingPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentNamingPatch) } public interface DepartmentKppPatchOrBuilder extends @@ -2459,14 +2727,17 @@ public interface DepartmentKppPatchOrBuilder extends /** * optional string Kpp = 1; + * @return Whether the kpp field is set. */ boolean hasKpp(); /** * optional string Kpp = 1; + * @return The kpp. */ java.lang.String getKpp(); /** * optional string Kpp = 1; + * @return The bytes for kpp. */ com.google.protobuf.ByteString getKppBytes(); @@ -2478,74 +2749,30 @@ public static final class DepartmentKppPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Departments.DepartmentKppPatch) DepartmentKppPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentKppPatch.class.getName()); + } // Use DepartmentKppPatch.newBuilder() to construct. private DepartmentKppPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DepartmentKppPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DepartmentKppPatch defaultInstance; - public static DepartmentKppPatch getDefaultInstance() { - return defaultInstance; - } - - public DepartmentKppPatch getDefaultInstanceForType() { - return defaultInstance; + private DepartmentKppPatch() { + kpp_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepartmentKppPatch( - 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; - kpp_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentKppPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentKppPatch_fieldAccessorTable @@ -2553,33 +2780,23 @@ private DepartmentKppPatch( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.class, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DepartmentKppPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepartmentKppPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int KPP_FIELD_NUMBER = 1; - private java.lang.Object kpp_; + @SuppressWarnings("serial") + private volatile java.lang.Object kpp_ = ""; /** * optional string Kpp = 1; + * @return Whether the kpp field is set. */ + @java.lang.Override public boolean hasKpp() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Kpp = 1; + * @return The kpp. */ + @java.lang.Override public java.lang.String getKpp() { java.lang.Object ref = kpp_; if (ref instanceof java.lang.String) { @@ -2596,7 +2813,9 @@ public java.lang.String getKpp() { } /** * optional string Kpp = 1; + * @return The bytes for kpp. */ + @java.lang.Override public com.google.protobuf.ByteString getKppBytes() { java.lang.Object ref = kpp_; @@ -2611,10 +2830,8 @@ public java.lang.String getKpp() { } } - private void initFields() { - kpp_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2624,37 +2841,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKppBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, kpp_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKppBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, kpp_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch other = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch) obj; + + if (hasKpp() != other.hasKpp()) return false; + if (hasKpp()) { + if (!getKpp() + .equals(other.getKpp())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKpp()) { + hash = (37 * hash) + KPP_FIELD_NUMBER; + hash = (53 * hash) + getKpp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2678,42 +2933,57 @@ public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKp } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2733,6 +3003,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentKppPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentKppPatch_fieldAccessorTable @@ -2742,42 +3013,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; kpp_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentKppPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch build() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch result = buildPartial(); if (!result.isInitialized()) { @@ -2786,19 +3049,25 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch return result; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch buildPartial() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch result = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kpp_ = kpp_; to_bitField0_ |= 0x00000001; } - result.kpp_ = kpp_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch) { return mergeFrom((Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch)other); @@ -2811,33 +3080,54 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch other) { if (other == Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch.getDefaultInstance()) return this; if (other.hasKpp()) { - bitField0_ |= 0x00000001; kpp_ = other.kpp_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + kpp_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2845,12 +3135,14 @@ public Builder mergeFrom( private java.lang.Object kpp_ = ""; /** * optional string Kpp = 1; + * @return Whether the kpp field is set. */ public boolean hasKpp() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Kpp = 1; + * @return The kpp. */ public java.lang.String getKpp() { java.lang.Object ref = kpp_; @@ -2868,6 +3160,7 @@ public java.lang.String getKpp() { } /** * optional string Kpp = 1; + * @return The bytes for kpp. */ public com.google.protobuf.ByteString getKppBytes() { @@ -2884,36 +3177,37 @@ public java.lang.String getKpp() { } /** * optional string Kpp = 1; + * @param value The kpp to set. + * @return This builder for chaining. */ public Builder setKpp( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } kpp_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string Kpp = 1; + * @return This builder for chaining. */ public Builder clearKpp() { - bitField0_ = (bitField0_ & ~0x00000001); kpp_ = getDefaultInstance().getKpp(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string Kpp = 1; + * @param value The bytes for kpp to set. + * @return This builder for chaining. */ public Builder setKppBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } kpp_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2921,12 +3215,52 @@ public Builder setKppBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Departments.DepartmentKppPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentKppPatch) + private static final Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch DEFAULT_INSTANCE; static { - defaultInstance = new DepartmentKppPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch(); + } + + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DepartmentKppPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentKppPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentKppPatch) } public interface DepartmentAddressPatchOrBuilder extends @@ -2935,10 +3269,12 @@ public interface DepartmentAddressPatchOrBuilder extends /** * optional .Diadoc.Api.Proto.Address Address = 1; + * @return Whether the address field is set. */ boolean hasAddress(); /** * optional .Diadoc.Api.Proto.Address Address = 1; + * @return The address. */ Diadoc.Api.Proto.AddressProtos.Address getAddress(); /** @@ -2953,81 +3289,29 @@ public static final class DepartmentAddressPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Departments.DepartmentAddressPatch) DepartmentAddressPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentAddressPatch.class.getName()); + } // Use DepartmentAddressPatch.newBuilder() to construct. private DepartmentAddressPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DepartmentAddressPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DepartmentAddressPatch defaultInstance; - public static DepartmentAddressPatch getDefaultInstance() { - return defaultInstance; - } - - public DepartmentAddressPatch getDefaultInstanceForType() { - return defaultInstance; + private DepartmentAddressPatch() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepartmentAddressPatch( - 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: { - Diadoc.Api.Proto.AddressProtos.Address.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = address_.toBuilder(); - } - address_ = input.readMessage(Diadoc.Api.Proto.AddressProtos.Address.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(address_); - address_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - 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.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentAddressPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentAddressPatch_fieldAccessorTable @@ -3035,47 +3319,35 @@ private DepartmentAddressPatch( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.class, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DepartmentAddressPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepartmentAddressPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ADDRESS_FIELD_NUMBER = 1; private Diadoc.Api.Proto.AddressProtos.Address address_; /** * optional .Diadoc.Api.Proto.Address Address = 1; + * @return Whether the address field is set. */ + @java.lang.Override public boolean hasAddress() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Address Address = 1; + * @return The address. */ + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.Address getAddress() { - return address_; + return address_ == null ? Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } /** * optional .Diadoc.Api.Proto.Address Address = 1; */ + @java.lang.Override public Diadoc.Api.Proto.AddressProtos.AddressOrBuilder getAddressOrBuilder() { - return address_; + return address_ == null ? Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } - private void initFields() { - address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3091,37 +3363,76 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, address_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAddress()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, address_); + .computeMessageSize(1, getAddress()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch other = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch) obj; + + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (!getAddress() + .equals(other.getAddress())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3145,42 +3456,57 @@ public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAd } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3200,6 +3526,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentAddressPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentAddressPatch_fieldAccessorTable @@ -3218,38 +3545,35 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getAddressFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (addressBuilder_ == null) { - address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); - } else { - addressBuilder_.clear(); + bitField0_ = 0; + address_ = null; + if (addressBuilder_ != null) { + addressBuilder_.dispose(); + addressBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentAddressPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch build() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch result = buildPartial(); if (!result.isInitialized()) { @@ -3258,23 +3582,27 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPa return result; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch buildPartial() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch result = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.address_ = addressBuilder_ == null + ? address_ + : addressBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (addressBuilder_ == null) { - result.address_ = address_; - } else { - result.address_ = addressBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch) { return mergeFrom((Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch)other); @@ -3290,53 +3618,77 @@ public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.D mergeAddress(other.getAddress()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasAddress()) { if (!getAddress().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAddressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.AddressProtos.Address address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); + private Diadoc.Api.Proto.AddressProtos.Address address_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.AddressProtos.Address, Diadoc.Api.Proto.AddressProtos.Address.Builder, Diadoc.Api.Proto.AddressProtos.AddressOrBuilder> addressBuilder_; /** * optional .Diadoc.Api.Proto.Address Address = 1; + * @return Whether the address field is set. */ public boolean hasAddress() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Address Address = 1; + * @return The address. */ public Diadoc.Api.Proto.AddressProtos.Address getAddress() { if (addressBuilder_ == null) { - return address_; + return address_ == null ? Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } @@ -3350,11 +3702,11 @@ public Builder setAddress(Diadoc.Api.Proto.AddressProtos.Address value) { throw new NullPointerException(); } address_ = value; - onChanged(); } else { addressBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -3364,11 +3716,11 @@ public Builder setAddress( Diadoc.Api.Proto.AddressProtos.Address.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); - onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -3376,31 +3728,33 @@ public Builder setAddress( */ public Builder mergeAddress(Diadoc.Api.Proto.AddressProtos.Address value) { if (addressBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - address_ != Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance()) { - address_ = - Diadoc.Api.Proto.AddressProtos.Address.newBuilder(address_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + address_ != null && + address_ != Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance()) { + getAddressBuilder().mergeFrom(value); } else { address_ = value; } - onChanged(); } else { addressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (address_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Address Address = 1; */ public Builder clearAddress() { - if (addressBuilder_ == null) { - address_ = Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance(); - onChanged(); - } else { - addressBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + address_ = null; + if (addressBuilder_ != null) { + addressBuilder_.dispose(); + addressBuilder_ = null; + } + onChanged(); return this; } /** @@ -3418,7 +3772,8 @@ public Diadoc.Api.Proto.AddressProtos.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { - return address_; + return address_ == null ? + Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance() : address_; } } /** @@ -3441,12 +3796,52 @@ public Diadoc.Api.Proto.AddressProtos.AddressOrBuilder getAddressOrBuilder() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Departments.DepartmentAddressPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentAddressPatch) + private static final Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch DEFAULT_INSTANCE; static { - defaultInstance = new DepartmentAddressPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch(); + } + + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DepartmentAddressPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentAddressPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentAddressPatch) } public interface DepartmentRoutingPatchOrBuilder extends @@ -3455,19 +3850,23 @@ public interface DepartmentRoutingPatchOrBuilder extends /** * required bool Kpp = 1; + * @return Whether the kpp field is set. */ boolean hasKpp(); /** * required bool Kpp = 1; + * @return The kpp. */ boolean getKpp(); /** * required bool Address = 2; + * @return Whether the address field is set. */ boolean hasAddress(); /** * required bool Address = 2; + * @return The address. */ boolean getAddress(); } @@ -3478,78 +3877,29 @@ public static final class DepartmentRoutingPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Departments.DepartmentRoutingPatch) DepartmentRoutingPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DepartmentRoutingPatch.class.getName()); + } // Use DepartmentRoutingPatch.newBuilder() to construct. private DepartmentRoutingPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DepartmentRoutingPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DepartmentRoutingPatch defaultInstance; - public static DepartmentRoutingPatch getDefaultInstance() { - return defaultInstance; + private DepartmentRoutingPatch() { } - public DepartmentRoutingPatch getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepartmentRoutingPatch( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - kpp_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - address_ = input.readBool(); - 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.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentRoutingPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentRoutingPatch_fieldAccessorTable @@ -3557,57 +3907,47 @@ private DepartmentRoutingPatch( Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.class, Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DepartmentRoutingPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepartmentRoutingPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int KPP_FIELD_NUMBER = 1; - private boolean kpp_; + private boolean kpp_ = false; /** * required bool Kpp = 1; + * @return Whether the kpp field is set. */ + @java.lang.Override public boolean hasKpp() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool Kpp = 1; + * @return The kpp. */ + @java.lang.Override public boolean getKpp() { return kpp_; } public static final int ADDRESS_FIELD_NUMBER = 2; - private boolean address_; + private boolean address_ = false; /** * required bool Address = 2; + * @return Whether the address field is set. */ + @java.lang.Override public boolean hasAddress() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool Address = 2; + * @return The address. */ + @java.lang.Override public boolean getAddress() { return address_; } - private void initFields() { - kpp_ = false; - address_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3625,44 +3965,94 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, kpp_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, address_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, kpp_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, address_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch other = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch) obj; + + if (hasKpp() != other.hasKpp()) return false; + if (hasKpp()) { + if (getKpp() + != other.getKpp()) return false; + } + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (getAddress() + != other.getAddress()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKpp()) { + hash = (37 * hash) + KPP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getKpp()); + } + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddress()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3686,42 +4076,57 @@ public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRo } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3741,6 +4146,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentRoutingPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentRoutingPatch_fieldAccessorTable @@ -3750,44 +4156,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; kpp_ = false; - bitField0_ = (bitField0_ & ~0x00000001); address_ = false; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.internal_static_Diadoc_Api_Proto_Departments_DepartmentRoutingPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch build() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch result = buildPartial(); if (!result.isInitialized()) { @@ -3796,23 +4193,29 @@ public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPa return result; } + @java.lang.Override public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch buildPartial() { Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch result = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kpp_ = kpp_; to_bitField0_ |= 0x00000001; } - result.kpp_ = kpp_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.address_ = address_; to_bitField0_ |= 0x00000002; } - result.address_ = address_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch) { return mergeFrom((Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch)other); @@ -3831,36 +4234,60 @@ public Builder mergeFrom(Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.D setAddress(other.getAddress()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasKpp()) { - return false; } if (!hasAddress()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + kpp_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + address_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3868,27 +4295,35 @@ public Builder mergeFrom( private boolean kpp_ ; /** * required bool Kpp = 1; + * @return Whether the kpp field is set. */ + @java.lang.Override public boolean hasKpp() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool Kpp = 1; + * @return The kpp. */ + @java.lang.Override public boolean getKpp() { return kpp_; } /** * required bool Kpp = 1; + * @param value The kpp to set. + * @return This builder for chaining. */ public Builder setKpp(boolean value) { - bitField0_ |= 0x00000001; + kpp_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool Kpp = 1; + * @return This builder for chaining. */ public Builder clearKpp() { bitField0_ = (bitField0_ & ~0x00000001); @@ -3900,27 +4335,35 @@ public Builder clearKpp() { private boolean address_ ; /** * required bool Address = 2; + * @return Whether the address field is set. */ + @java.lang.Override public boolean hasAddress() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool Address = 2; + * @return The address. */ + @java.lang.Override public boolean getAddress() { return address_; } /** * required bool Address = 2; + * @param value The address to set. + * @return This builder for chaining. */ public Builder setAddress(boolean value) { - bitField0_ |= 0x00000002; + address_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool Address = 2; + * @return This builder for chaining. */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3932,42 +4375,82 @@ public Builder clearAddress() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Departments.DepartmentRoutingPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentRoutingPatch) + private static final Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch DEFAULT_INSTANCE; static { - defaultInstance = new DepartmentRoutingPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch(); + } + + public static Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DepartmentRoutingPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Departments.DepartmentToUpdateProtos.DepartmentRoutingPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.DepartmentRoutingPatch) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Departments_DepartmentToUpdate_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Departments_DepartmentToUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Departments_ParentDepartmentPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Departments_ParentDepartmentPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Departments_DepartmentNamingPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Departments_DepartmentNamingPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Departments_DepartmentKppPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Departments_DepartmentKppPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Departments_DepartmentAddressPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Departments_DepartmentAddressPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Departments_DepartmentRoutingPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Departments_DepartmentRoutingPatch_fieldAccessorTable; @@ -3975,7 +4458,7 @@ public Builder clearAddress() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -3988,7 +4471,7 @@ public Builder clearAddress() { "ts.DepartmentNamingPatch\022=\n\003Kpp\030\003 \001(\01320." + "Diadoc.Api.Proto.Departments.DepartmentK" + "ppPatch\022E\n\007Address\030\004 \001(\01324.Diadoc.Api.Pr" + - "oto.Departments.DepartmentAddressPatch\022E", + "oto.Departments.DepartmentAddressPatch\022E" + "\n\007Routing\030\005 \001(\01324.Diadoc.Api.Proto.Depar" + "tments.DepartmentRoutingPatch\"3\n\025ParentD" + "epartmentPatch\022\032\n\022ParentDepartmentId\030\001 \002" + @@ -4000,19 +4483,11 @@ public Builder clearAddress() { "p\030\001 \002(\010\022\017\n\007Address\030\002 \002(\010B\032B\030DepartmentTo" + "UpdateProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.AddressProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Departments_DepartmentToUpdate_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Departments_DepartmentToUpdate_fieldAccessorTable = new @@ -4049,6 +4524,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Departments_DepartmentRoutingPatch_descriptor, new java.lang.String[] { "Kpp", "Address", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.AddressProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Departments/RoutingProtos.java b/src/main/java/Diadoc/Api/Proto/Departments/RoutingProtos.java index 4a3af2b1..c2a09ab8 100644 --- a/src/main/java/Diadoc/Api/Proto/Departments/RoutingProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Departments/RoutingProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Departments/Routing.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Departments; public final class RoutingProtos { private RoutingProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RoutingProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface RoutingOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Departments.Routing) @@ -14,19 +31,23 @@ public interface RoutingOrBuilder extends /** * required bool Kpp = 1; + * @return Whether the kpp field is set. */ boolean hasKpp(); /** * required bool Kpp = 1; + * @return The kpp. */ boolean getKpp(); /** * required bool Address = 2; + * @return Whether the address field is set. */ boolean hasAddress(); /** * required bool Address = 2; + * @return The address. */ boolean getAddress(); } @@ -37,78 +58,29 @@ public static final class Routing extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Departments.Routing) RoutingOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Routing.class.getName()); + } // Use Routing.newBuilder() to construct. private Routing(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private Routing(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Routing defaultInstance; - public static Routing getDefaultInstance() { - return defaultInstance; + private Routing() { } - public Routing getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Routing( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - kpp_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - address_ = input.readBool(); - 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.Departments.RoutingProtos.internal_static_Diadoc_Api_Proto_Departments_Routing_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.RoutingProtos.internal_static_Diadoc_Api_Proto_Departments_Routing_fieldAccessorTable @@ -116,57 +88,47 @@ private Routing( Diadoc.Api.Proto.Departments.RoutingProtos.Routing.class, Diadoc.Api.Proto.Departments.RoutingProtos.Routing.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Routing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Routing(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int KPP_FIELD_NUMBER = 1; - private boolean kpp_; + private boolean kpp_ = false; /** * required bool Kpp = 1; + * @return Whether the kpp field is set. */ + @java.lang.Override public boolean hasKpp() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool Kpp = 1; + * @return The kpp. */ + @java.lang.Override public boolean getKpp() { return kpp_; } public static final int ADDRESS_FIELD_NUMBER = 2; - private boolean address_; + private boolean address_ = false; /** * required bool Address = 2; + * @return Whether the address field is set. */ + @java.lang.Override public boolean hasAddress() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool Address = 2; + * @return The address. */ + @java.lang.Override public boolean getAddress() { return address_; } - private void initFields() { - kpp_ = false; - address_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -184,44 +146,94 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, kpp_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, address_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, kpp_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, address_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Departments.RoutingProtos.Routing)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Departments.RoutingProtos.Routing other = (Diadoc.Api.Proto.Departments.RoutingProtos.Routing) obj; + + if (hasKpp() != other.hasKpp()) return false; + if (hasKpp()) { + if (getKpp() + != other.getKpp()) return false; + } + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (getAddress() + != other.getAddress()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKpp()) { + hash = (37 * hash) + KPP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getKpp()); + } + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAddress()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -245,42 +257,57 @@ public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing parseFrom( } public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Departments.RoutingProtos.Routing prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -300,6 +327,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Departments.RoutingProtos.internal_static_Diadoc_Api_Proto_Departments_Routing_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Departments.RoutingProtos.internal_static_Diadoc_Api_Proto_Departments_Routing_fieldAccessorTable @@ -309,44 +337,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Departments.RoutingProtos.Routing.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; kpp_ = false; - bitField0_ = (bitField0_ & ~0x00000001); address_ = false; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Departments.RoutingProtos.internal_static_Diadoc_Api_Proto_Departments_Routing_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Departments.RoutingProtos.Routing getDefaultInstanceForType() { return Diadoc.Api.Proto.Departments.RoutingProtos.Routing.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Departments.RoutingProtos.Routing build() { Diadoc.Api.Proto.Departments.RoutingProtos.Routing result = buildPartial(); if (!result.isInitialized()) { @@ -355,23 +374,29 @@ public Diadoc.Api.Proto.Departments.RoutingProtos.Routing build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Departments.RoutingProtos.Routing buildPartial() { Diadoc.Api.Proto.Departments.RoutingProtos.Routing result = new Diadoc.Api.Proto.Departments.RoutingProtos.Routing(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Departments.RoutingProtos.Routing result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kpp_ = kpp_; to_bitField0_ |= 0x00000001; } - result.kpp_ = kpp_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.address_ = address_; to_bitField0_ |= 0x00000002; } - result.address_ = address_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Departments.RoutingProtos.Routing) { return mergeFrom((Diadoc.Api.Proto.Departments.RoutingProtos.Routing)other); @@ -390,36 +415,60 @@ public Builder mergeFrom(Diadoc.Api.Proto.Departments.RoutingProtos.Routing othe setAddress(other.getAddress()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasKpp()) { - return false; } if (!hasAddress()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Departments.RoutingProtos.Routing parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + kpp_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + address_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Departments.RoutingProtos.Routing) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -427,27 +476,35 @@ public Builder mergeFrom( private boolean kpp_ ; /** * required bool Kpp = 1; + * @return Whether the kpp field is set. */ + @java.lang.Override public boolean hasKpp() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool Kpp = 1; + * @return The kpp. */ + @java.lang.Override public boolean getKpp() { return kpp_; } /** * required bool Kpp = 1; + * @param value The kpp to set. + * @return This builder for chaining. */ public Builder setKpp(boolean value) { - bitField0_ |= 0x00000001; + kpp_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool Kpp = 1; + * @return This builder for chaining. */ public Builder clearKpp() { bitField0_ = (bitField0_ & ~0x00000001); @@ -459,27 +516,35 @@ public Builder clearKpp() { private boolean address_ ; /** * required bool Address = 2; + * @return Whether the address field is set. */ + @java.lang.Override public boolean hasAddress() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool Address = 2; + * @return The address. */ + @java.lang.Override public boolean getAddress() { return address_; } /** * required bool Address = 2; + * @param value The address to set. + * @return This builder for chaining. */ public Builder setAddress(boolean value) { - bitField0_ |= 0x00000002; + address_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool Address = 2; + * @return This builder for chaining. */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000002); @@ -491,17 +556,57 @@ public Builder clearAddress() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Departments.Routing) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.Routing) + private static final Diadoc.Api.Proto.Departments.RoutingProtos.Routing DEFAULT_INSTANCE; static { - defaultInstance = new Routing(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Departments.RoutingProtos.Routing(); + } + + public static Diadoc.Api.Proto.Departments.RoutingProtos.Routing getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Routing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Departments.RoutingProtos.Routing getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Departments.Routing) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Departments_Routing_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Departments_Routing_fieldAccessorTable; @@ -509,7 +614,7 @@ public Builder clearAddress() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -517,24 +622,17 @@ public Builder clearAddress() { "Proto.Departments\"\'\n\007Routing\022\013\n\003Kpp\030\001 \002(" + "\010\022\017\n\007Address\030\002 \002(\010B\017B\rRoutingProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Departments_Routing_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Departments_Routing_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Departments_Routing_descriptor, new java.lang.String[] { "Kpp", "Address", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/AttachmentProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/AttachmentProtos.java index f5a1d24a..568ab2e8 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/AttachmentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/AttachmentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/Attachment.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class AttachmentProtos { private AttachmentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AttachmentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface EntityOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.Entity) @@ -14,24 +31,29 @@ public interface EntityOrBuilder extends /** * optional string EntityId = 1; + * @return Whether the entityId field is set. */ boolean hasEntityId(); /** * optional string EntityId = 1; + * @return The entityId. */ java.lang.String getEntityId(); /** * optional string EntityId = 1; + * @return The bytes for entityId. */ com.google.protobuf.ByteString getEntityIdBytes(); /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 2; + * @return Whether the creationTimestamp field is set. */ boolean hasCreationTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 2; + * @return The creationTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getCreationTimestamp(); /** @@ -41,10 +63,12 @@ public interface EntityOrBuilder extends /** * optional .Diadoc.Api.Proto.Content Content = 3; + * @return Whether the content field is set. */ boolean hasContent(); /** * optional .Diadoc.Api.Proto.Content Content = 3; + * @return The content. */ Diadoc.Api.Proto.ContentProtos.Content getContent(); /** @@ -59,100 +83,30 @@ public static final class Entity extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.Entity) EntityOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Entity.class.getName()); + } // Use Entity.newBuilder() to construct. private Entity(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private Entity(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Entity defaultInstance; - public static Entity getDefaultInstance() { - return defaultInstance; - } - - public Entity getDefaultInstanceForType() { - return defaultInstance; + private Entity() { + entityId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Entity( - 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; - entityId_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = creationTimestamp_.toBuilder(); - } - creationTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(creationTimestamp_); - creationTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.ContentProtos.Content.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = content_.toBuilder(); - } - content_ = input.readMessage(Diadoc.Api.Proto.ContentProtos.Content.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(content_); - content_ = 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.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Entity_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Entity_fieldAccessorTable @@ -160,33 +114,23 @@ private Entity( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.class, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Entity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Entity(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ENTITYID_FIELD_NUMBER = 1; - private java.lang.Object entityId_; + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; /** * optional string EntityId = 1; + * @return Whether the entityId field is set. */ + @java.lang.Override public boolean hasEntityId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string EntityId = 1; + * @return The entityId. */ + @java.lang.Override public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { @@ -203,7 +147,9 @@ public java.lang.String getEntityId() { } /** * optional string EntityId = 1; + * @return The bytes for entityId. */ + @java.lang.Override public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -222,50 +168,56 @@ public java.lang.String getEntityId() { private Diadoc.Api.Proto.TimestampProtos.Timestamp creationTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 2; + * @return Whether the creationTimestamp field is set. */ + @java.lang.Override public boolean hasCreationTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 2; + * @return The creationTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getCreationTimestamp() { - return creationTimestamp_; + return creationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 2; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampOrBuilder() { - return creationTimestamp_; + return creationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } public static final int CONTENT_FIELD_NUMBER = 3; private Diadoc.Api.Proto.ContentProtos.Content content_; /** * optional .Diadoc.Api.Proto.Content Content = 3; + * @return Whether the content field is set. */ + @java.lang.Override public boolean hasContent() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Content Content = 3; + * @return The content. */ + @java.lang.Override public Diadoc.Api.Proto.ContentProtos.Content getContent() { - return content_; + return content_ == null ? Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance() : content_; } /** * optional .Diadoc.Api.Proto.Content Content = 3; */ + @java.lang.Override public Diadoc.Api.Proto.ContentProtos.ContentOrBuilder getContentOrBuilder() { - return content_; + return content_ == null ? Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance() : content_; } - private void initFields() { - entityId_ = ""; - creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - content_ = Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -287,51 +239,107 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getEntityIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, entityId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, creationTimestamp_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getCreationTimestamp()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, content_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getContent()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getEntityIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, entityId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, creationTimestamp_); + .computeMessageSize(2, getCreationTimestamp()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, content_); + .computeMessageSize(3, getContent()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity other = (Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity) obj; + + if (hasEntityId() != other.hasEntityId()) return false; + if (hasEntityId()) { + if (!getEntityId() + .equals(other.getEntityId())) return false; + } + if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; + if (hasCreationTimestamp()) { + if (!getCreationTimestamp() + .equals(other.getCreationTimestamp())) return false; + } + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent() + .equals(other.getContent())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntityId()) { + hash = (37 * hash) + ENTITYID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + } + if (hasCreationTimestamp()) { + hash = (37 * hash) + CREATIONTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getCreationTimestamp().hashCode(); + } + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -355,42 +363,57 @@ public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parseFrom( } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -410,6 +433,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Entity_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Entity_fieldAccessorTable @@ -428,47 +452,42 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getCreationTimestampFieldBuilder(); getContentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (creationTimestampBuilder_ == null) { - creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - creationTimestampBuilder_.clear(); + creationTimestamp_ = null; + if (creationTimestampBuilder_ != null) { + creationTimestampBuilder_.dispose(); + creationTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (contentBuilder_ == null) { - content_ = Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance(); - } else { - contentBuilder_.clear(); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Entity_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity build() { Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity result = buildPartial(); if (!result.isInitialized()) { @@ -477,35 +496,37 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity buildPartial() { Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity result = new Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityId_ = entityId_; to_bitField0_ |= 0x00000001; } - result.entityId_ = entityId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.creationTimestamp_ = creationTimestampBuilder_ == null + ? creationTimestamp_ + : creationTimestampBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (creationTimestampBuilder_ == null) { - result.creationTimestamp_ = creationTimestamp_; - } else { - result.creationTimestamp_ = creationTimestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.content_ = contentBuilder_ == null + ? content_ + : contentBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (contentBuilder_ == null) { - result.content_ = content_; - } else { - result.content_ = contentBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity) { return mergeFrom((Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity)other); @@ -518,8 +539,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity other) { if (other == Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) return this; if (other.hasEntityId()) { - bitField0_ |= 0x00000001; entityId_ = other.entityId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreationTimestamp()) { @@ -529,40 +550,73 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity other) mergeContent(other.getContent()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasCreationTimestamp()) { if (!getCreationTimestamp().isInitialized()) { - return false; } } if (hasContent()) { if (!getContent().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + entityId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCreationTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getContentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -570,12 +624,14 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** * optional string EntityId = 1; + * @return Whether the entityId field is set. */ public boolean hasEntityId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string EntityId = 1; + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -593,6 +649,7 @@ public java.lang.String getEntityId() { } /** * optional string EntityId = 1; + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { @@ -609,55 +666,58 @@ public java.lang.String getEntityId() { } /** * optional string EntityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. */ public Builder setEntityId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } entityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string EntityId = 1; + * @return This builder for chaining. */ public Builder clearEntityId() { - bitField0_ = (bitField0_ & ~0x00000001); entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string EntityId = 1; + * @param value The bytes for entityId to set. + * @return This builder for chaining. */ public Builder setEntityIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } entityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp creationTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> creationTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 2; + * @return Whether the creationTimestamp field is set. */ public boolean hasCreationTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 2; + * @return The creationTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getCreationTimestamp() { if (creationTimestampBuilder_ == null) { - return creationTimestamp_; + return creationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } else { return creationTimestampBuilder_.getMessage(); } @@ -671,11 +731,11 @@ public Builder setCreationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp v throw new NullPointerException(); } creationTimestamp_ = value; - onChanged(); } else { creationTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -685,11 +745,11 @@ public Builder setCreationTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (creationTimestampBuilder_ == null) { creationTimestamp_ = builderForValue.build(); - onChanged(); } else { creationTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -697,31 +757,33 @@ public Builder setCreationTimestamp( */ public Builder mergeCreationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (creationTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - creationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - creationTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(creationTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + creationTimestamp_ != null && + creationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getCreationTimestampBuilder().mergeFrom(value); } else { creationTimestamp_ = value; } - onChanged(); } else { creationTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (creationTimestamp_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 2; */ public Builder clearCreationTimestamp() { - if (creationTimestampBuilder_ == null) { - creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - creationTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + creationTimestamp_ = null; + if (creationTimestampBuilder_ != null) { + creationTimestampBuilder_.dispose(); + creationTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -739,7 +801,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampO if (creationTimestampBuilder_ != null) { return creationTimestampBuilder_.getMessageOrBuilder(); } else { - return creationTimestamp_; + return creationTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } } /** @@ -759,21 +822,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampO return creationTimestampBuilder_; } - private Diadoc.Api.Proto.ContentProtos.Content content_ = Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance(); + private Diadoc.Api.Proto.ContentProtos.Content content_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.ContentProtos.Content, Diadoc.Api.Proto.ContentProtos.Content.Builder, Diadoc.Api.Proto.ContentProtos.ContentOrBuilder> contentBuilder_; /** * optional .Diadoc.Api.Proto.Content Content = 3; + * @return Whether the content field is set. */ public boolean hasContent() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Content Content = 3; + * @return The content. */ public Diadoc.Api.Proto.ContentProtos.Content getContent() { if (contentBuilder_ == null) { - return content_; + return content_ == null ? Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance() : content_; } else { return contentBuilder_.getMessage(); } @@ -787,11 +852,11 @@ public Builder setContent(Diadoc.Api.Proto.ContentProtos.Content value) { throw new NullPointerException(); } content_ = value; - onChanged(); } else { contentBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -801,11 +866,11 @@ public Builder setContent( Diadoc.Api.Proto.ContentProtos.Content.Builder builderForValue) { if (contentBuilder_ == null) { content_ = builderForValue.build(); - onChanged(); } else { contentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -813,31 +878,33 @@ public Builder setContent( */ public Builder mergeContent(Diadoc.Api.Proto.ContentProtos.Content value) { if (contentBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - content_ != Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance()) { - content_ = - Diadoc.Api.Proto.ContentProtos.Content.newBuilder(content_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + content_ != null && + content_ != Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); } else { content_ = value; } - onChanged(); } else { contentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (content_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Content Content = 3; */ public Builder clearContent() { - if (contentBuilder_ == null) { - content_ = Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance(); - onChanged(); - } else { - contentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); return this; } /** @@ -855,7 +922,8 @@ public Diadoc.Api.Proto.ContentProtos.ContentOrBuilder getContentOrBuilder() { if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilder(); } else { - return content_; + return content_ == null ? + Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance() : content_; } } /** @@ -878,12 +946,52 @@ public Diadoc.Api.Proto.ContentProtos.ContentOrBuilder getContentOrBuilder() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.Entity) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.Entity) + private static final Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity DEFAULT_INSTANCE; static { - defaultInstance = new Entity(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity(); + } + + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.Entity) } public interface AttachmentOrBuilder extends @@ -892,10 +1000,12 @@ public interface AttachmentOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ boolean hasEntity(); /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity(); /** @@ -905,28 +1015,34 @@ public interface AttachmentOrBuilder extends /** * optional string AttachmentFilename = 2; + * @return Whether the attachmentFilename field is set. */ boolean hasAttachmentFilename(); /** * optional string AttachmentFilename = 2; + * @return The attachmentFilename. */ java.lang.String getAttachmentFilename(); /** * optional string AttachmentFilename = 2; + * @return The bytes for attachmentFilename. */ com.google.protobuf.ByteString getAttachmentFilenameBytes(); /** * optional string DisplayFilename = 3; + * @return Whether the displayFilename field is set. */ boolean hasDisplayFilename(); /** * optional string DisplayFilename = 3; + * @return The displayFilename. */ java.lang.String getDisplayFilename(); /** * optional string DisplayFilename = 3; + * @return The bytes for displayFilename. */ com.google.protobuf.ByteString getDisplayFilenameBytes(); @@ -938,93 +1054,31 @@ public static final class Attachment extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.Attachment) AttachmentOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Attachment.class.getName()); + } // Use Attachment.newBuilder() to construct. private Attachment(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Attachment(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Attachment defaultInstance; - public static Attachment getDefaultInstance() { - return defaultInstance; } - - public Attachment getDefaultInstanceForType() { - return defaultInstance; + private Attachment() { + attachmentFilename_ = ""; + displayFilename_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Attachment( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = entity_.toBuilder(); - } - entity_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - attachmentFilename_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - displayFilename_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Attachment_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Attachment_fieldAccessorTable @@ -1032,54 +1086,49 @@ private Attachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.class, Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Attachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Attachment(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ + @java.lang.Override public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuilder() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } public static final int ATTACHMENTFILENAME_FIELD_NUMBER = 2; - private java.lang.Object attachmentFilename_; + @SuppressWarnings("serial") + private volatile java.lang.Object attachmentFilename_ = ""; /** * optional string AttachmentFilename = 2; + * @return Whether the attachmentFilename field is set. */ + @java.lang.Override public boolean hasAttachmentFilename() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string AttachmentFilename = 2; + * @return The attachmentFilename. */ + @java.lang.Override public java.lang.String getAttachmentFilename() { java.lang.Object ref = attachmentFilename_; if (ref instanceof java.lang.String) { @@ -1096,7 +1145,9 @@ public java.lang.String getAttachmentFilename() { } /** * optional string AttachmentFilename = 2; + * @return The bytes for attachmentFilename. */ + @java.lang.Override public com.google.protobuf.ByteString getAttachmentFilenameBytes() { java.lang.Object ref = attachmentFilename_; @@ -1112,16 +1163,21 @@ public java.lang.String getAttachmentFilename() { } public static final int DISPLAYFILENAME_FIELD_NUMBER = 3; - private java.lang.Object displayFilename_; + @SuppressWarnings("serial") + private volatile java.lang.Object displayFilename_ = ""; /** * optional string DisplayFilename = 3; + * @return Whether the displayFilename field is set. */ + @java.lang.Override public boolean hasDisplayFilename() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string DisplayFilename = 3; + * @return The displayFilename. */ + @java.lang.Override public java.lang.String getDisplayFilename() { java.lang.Object ref = displayFilename_; if (ref instanceof java.lang.String) { @@ -1138,7 +1194,9 @@ public java.lang.String getDisplayFilename() { } /** * optional string DisplayFilename = 3; + * @return The bytes for displayFilename. */ + @java.lang.Override public com.google.protobuf.ByteString getDisplayFilenameBytes() { java.lang.Object ref = displayFilename_; @@ -1153,12 +1211,8 @@ public java.lang.String getDisplayFilename() { } } - private void initFields() { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - attachmentFilename_ = ""; - displayFilename_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1174,51 +1228,106 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, entity_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getAttachmentFilenameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, attachmentFilename_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getDisplayFilenameBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, displayFilename_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entity_); + .computeMessageSize(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getAttachmentFilenameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, attachmentFilename_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getDisplayFilenameBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayFilename_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment other = (Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment) obj; + + if (hasEntity() != other.hasEntity()) return false; + if (hasEntity()) { + if (!getEntity() + .equals(other.getEntity())) return false; + } + if (hasAttachmentFilename() != other.hasAttachmentFilename()) return false; + if (hasAttachmentFilename()) { + if (!getAttachmentFilename() + .equals(other.getAttachmentFilename())) return false; + } + if (hasDisplayFilename() != other.hasDisplayFilename()) return false; + if (hasDisplayFilename()) { + if (!getDisplayFilename() + .equals(other.getDisplayFilename())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + if (hasAttachmentFilename()) { + hash = (37 * hash) + ATTACHMENTFILENAME_FIELD_NUMBER; + hash = (53 * hash) + getAttachmentFilename().hashCode(); + } + if (hasDisplayFilename()) { + hash = (37 * hash) + DISPLAYFILENAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayFilename().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1242,42 +1351,57 @@ public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parseFrom( } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1297,6 +1421,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Attachment_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Attachment_fieldAccessorTable @@ -1315,42 +1440,37 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getEntityFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - entityBuilder_.clear(); + bitField0_ = 0; + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); attachmentFilename_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); displayFilename_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Attachment_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment build() { Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment result = buildPartial(); if (!result.isInitialized()) { @@ -1359,31 +1479,35 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment buildPartial() { Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment result = new Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entity_ = entityBuilder_ == null + ? entity_ + : entityBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attachmentFilename_ = attachmentFilename_; to_bitField0_ |= 0x00000002; } - result.attachmentFilename_ = attachmentFilename_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayFilename_ = displayFilename_; to_bitField0_ |= 0x00000004; } - result.displayFilename_ = displayFilename_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment) { return mergeFrom((Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment)other); @@ -1399,63 +1523,97 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment ot mergeEntity(other.getEntity()); } if (other.hasAttachmentFilename()) { - bitField0_ |= 0x00000002; attachmentFilename_ = other.attachmentFilename_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasDisplayFilename()) { - bitField0_ |= 0x00000004; displayFilename_ = other.displayFilename_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasEntity()) { if (!getEntity().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEntityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + attachmentFilename_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + displayFilename_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> entityBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { if (entityBuilder_ == null) { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } else { return entityBuilder_.getMessage(); } @@ -1469,11 +1627,11 @@ public Builder setEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) throw new NullPointerException(); } entity_ = value; - onChanged(); } else { entityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1483,11 +1641,11 @@ public Builder setEntity( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); - onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1495,31 +1653,33 @@ public Builder setEntity( */ public Builder mergeEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (entityBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - entity_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + entity_ != null && + entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getEntityBuilder().mergeFrom(value); } else { entity_ = value; } - onChanged(); } else { entityBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (entity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - entityBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; + } + onChanged(); return this; } /** @@ -1537,7 +1697,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { - return entity_; + return entity_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } } /** @@ -1560,12 +1721,14 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil private java.lang.Object attachmentFilename_ = ""; /** * optional string AttachmentFilename = 2; + * @return Whether the attachmentFilename field is set. */ public boolean hasAttachmentFilename() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string AttachmentFilename = 2; + * @return The attachmentFilename. */ public java.lang.String getAttachmentFilename() { java.lang.Object ref = attachmentFilename_; @@ -1583,6 +1746,7 @@ public java.lang.String getAttachmentFilename() { } /** * optional string AttachmentFilename = 2; + * @return The bytes for attachmentFilename. */ public com.google.protobuf.ByteString getAttachmentFilenameBytes() { @@ -1599,36 +1763,37 @@ public java.lang.String getAttachmentFilename() { } /** * optional string AttachmentFilename = 2; + * @param value The attachmentFilename to set. + * @return This builder for chaining. */ public Builder setAttachmentFilename( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } attachmentFilename_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string AttachmentFilename = 2; + * @return This builder for chaining. */ public Builder clearAttachmentFilename() { - bitField0_ = (bitField0_ & ~0x00000002); attachmentFilename_ = getDefaultInstance().getAttachmentFilename(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string AttachmentFilename = 2; + * @param value The bytes for attachmentFilename to set. + * @return This builder for chaining. */ public Builder setAttachmentFilenameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } attachmentFilename_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1636,12 +1801,14 @@ public Builder setAttachmentFilenameBytes( private java.lang.Object displayFilename_ = ""; /** * optional string DisplayFilename = 3; + * @return Whether the displayFilename field is set. */ public boolean hasDisplayFilename() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string DisplayFilename = 3; + * @return The displayFilename. */ public java.lang.String getDisplayFilename() { java.lang.Object ref = displayFilename_; @@ -1659,6 +1826,7 @@ public java.lang.String getDisplayFilename() { } /** * optional string DisplayFilename = 3; + * @return The bytes for displayFilename. */ public com.google.protobuf.ByteString getDisplayFilenameBytes() { @@ -1675,36 +1843,37 @@ public java.lang.String getDisplayFilename() { } /** * optional string DisplayFilename = 3; + * @param value The displayFilename to set. + * @return This builder for chaining. */ public Builder setDisplayFilename( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } displayFilename_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string DisplayFilename = 3; + * @return This builder for chaining. */ public Builder clearDisplayFilename() { - bitField0_ = (bitField0_ & ~0x00000004); displayFilename_ = getDefaultInstance().getDisplayFilename(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string DisplayFilename = 3; + * @param value The bytes for displayFilename to set. + * @return This builder for chaining. */ public Builder setDisplayFilenameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } displayFilename_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1712,12 +1881,52 @@ public Builder setDisplayFilenameBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.Attachment) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.Attachment) + private static final Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment DEFAULT_INSTANCE; static { - defaultInstance = new Attachment(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment(); + } + + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.Attachment) } public interface SignatureOrBuilder extends @@ -1726,10 +1935,12 @@ public interface SignatureOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ boolean hasEntity(); /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity(); /** @@ -1739,47 +1950,57 @@ public interface SignatureOrBuilder extends /** * optional string SignerBoxId = 2; + * @return Whether the signerBoxId field is set. */ boolean hasSignerBoxId(); /** * optional string SignerBoxId = 2; + * @return The signerBoxId. */ java.lang.String getSignerBoxId(); /** * optional string SignerBoxId = 2; + * @return The bytes for signerBoxId. */ com.google.protobuf.ByteString getSignerBoxIdBytes(); /** * optional string SignerDepartmentId = 3; + * @return Whether the signerDepartmentId field is set. */ boolean hasSignerDepartmentId(); /** * optional string SignerDepartmentId = 3; + * @return The signerDepartmentId. */ java.lang.String getSignerDepartmentId(); /** * optional string SignerDepartmentId = 3; + * @return The bytes for signerDepartmentId. */ com.google.protobuf.ByteString getSignerDepartmentIdBytes(); /** * optional bool IsValid = 4; + * @return Whether the isValid field is set. */ boolean hasIsValid(); /** * optional bool IsValid = 4; + * @return The isValid. */ boolean getIsValid(); /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 5; + * @return Whether the verificationResult field is set. */ boolean hasVerificationResult(); /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 5; + * @return The verificationResult. */ Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult getVerificationResult(); /** @@ -1794,111 +2015,31 @@ public static final class Signature extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.Signature) SignatureOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Signature.class.getName()); + } // Use Signature.newBuilder() to construct. private Signature(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private Signature(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Signature defaultInstance; - public static Signature getDefaultInstance() { - return defaultInstance; - } - - public Signature getDefaultInstanceForType() { - return defaultInstance; + private Signature() { + signerBoxId_ = ""; + signerDepartmentId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Signature( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = entity_.toBuilder(); - } - entity_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - signerBoxId_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - signerDepartmentId_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - isValid_ = input.readBool(); - break; - } - case 42: { - Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = verificationResult_.toBuilder(); - } - verificationResult_ = input.readMessage(Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(verificationResult_); - verificationResult_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - 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.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Signature_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Signature_fieldAccessorTable @@ -1906,54 +2047,49 @@ private Signature( Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.class, Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Signature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Signature(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ + @java.lang.Override public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuilder() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } public static final int SIGNERBOXID_FIELD_NUMBER = 2; - private java.lang.Object signerBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object signerBoxId_ = ""; /** * optional string SignerBoxId = 2; + * @return Whether the signerBoxId field is set. */ + @java.lang.Override public boolean hasSignerBoxId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string SignerBoxId = 2; + * @return The signerBoxId. */ + @java.lang.Override public java.lang.String getSignerBoxId() { java.lang.Object ref = signerBoxId_; if (ref instanceof java.lang.String) { @@ -1970,7 +2106,9 @@ public java.lang.String getSignerBoxId() { } /** * optional string SignerBoxId = 2; + * @return The bytes for signerBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getSignerBoxIdBytes() { java.lang.Object ref = signerBoxId_; @@ -1986,16 +2124,21 @@ public java.lang.String getSignerBoxId() { } public static final int SIGNERDEPARTMENTID_FIELD_NUMBER = 3; - private java.lang.Object signerDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object signerDepartmentId_ = ""; /** * optional string SignerDepartmentId = 3; + * @return Whether the signerDepartmentId field is set. */ + @java.lang.Override public boolean hasSignerDepartmentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string SignerDepartmentId = 3; + * @return The signerDepartmentId. */ + @java.lang.Override public java.lang.String getSignerDepartmentId() { java.lang.Object ref = signerDepartmentId_; if (ref instanceof java.lang.String) { @@ -2012,7 +2155,9 @@ public java.lang.String getSignerDepartmentId() { } /** * optional string SignerDepartmentId = 3; + * @return The bytes for signerDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getSignerDepartmentIdBytes() { java.lang.Object ref = signerDepartmentId_; @@ -2028,16 +2173,20 @@ public java.lang.String getSignerDepartmentId() { } public static final int ISVALID_FIELD_NUMBER = 4; - private boolean isValid_; + private boolean isValid_ = false; /** * optional bool IsValid = 4; + * @return Whether the isValid field is set. */ + @java.lang.Override public boolean hasIsValid() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bool IsValid = 4; + * @return The isValid. */ + @java.lang.Override public boolean getIsValid() { return isValid_; } @@ -2046,31 +2195,30 @@ public boolean getIsValid() { private Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult verificationResult_; /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 5; + * @return Whether the verificationResult field is set. */ + @java.lang.Override public boolean hasVerificationResult() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 5; + * @return The verificationResult. */ + @java.lang.Override public Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult getVerificationResult() { - return verificationResult_; + return verificationResult_ == null ? Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance() : verificationResult_; } /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 5; */ + @java.lang.Override public Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResultOrBuilder getVerificationResultOrBuilder() { - return verificationResult_; + return verificationResult_ == null ? Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance() : verificationResult_; } - private void initFields() { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - signerBoxId_ = ""; - signerDepartmentId_ = ""; - isValid_ = false; - verificationResult_ = Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2092,65 +2240,139 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, entity_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getSignerBoxIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, signerBoxId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getSignerDepartmentIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, signerDepartmentId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, isValid_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, verificationResult_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getVerificationResult()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entity_); + .computeMessageSize(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getSignerBoxIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, signerBoxId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getSignerDepartmentIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, signerDepartmentId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, isValid_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, verificationResult_); + .computeMessageSize(5, getVerificationResult()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature other = (Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature) obj; + + if (hasEntity() != other.hasEntity()) return false; + if (hasEntity()) { + if (!getEntity() + .equals(other.getEntity())) return false; + } + if (hasSignerBoxId() != other.hasSignerBoxId()) return false; + if (hasSignerBoxId()) { + if (!getSignerBoxId() + .equals(other.getSignerBoxId())) return false; + } + if (hasSignerDepartmentId() != other.hasSignerDepartmentId()) return false; + if (hasSignerDepartmentId()) { + if (!getSignerDepartmentId() + .equals(other.getSignerDepartmentId())) return false; + } + if (hasIsValid() != other.hasIsValid()) return false; + if (hasIsValid()) { + if (getIsValid() + != other.getIsValid()) return false; + } + if (hasVerificationResult() != other.hasVerificationResult()) return false; + if (hasVerificationResult()) { + if (!getVerificationResult() + .equals(other.getVerificationResult())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + if (hasSignerBoxId()) { + hash = (37 * hash) + SIGNERBOXID_FIELD_NUMBER; + hash = (53 * hash) + getSignerBoxId().hashCode(); + } + if (hasSignerDepartmentId()) { + hash = (37 * hash) + SIGNERDEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getSignerDepartmentId().hashCode(); + } + if (hasIsValid()) { + hash = (37 * hash) + ISVALID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsValid()); + } + if (hasVerificationResult()) { + hash = (37 * hash) + VERIFICATIONRESULT_FIELD_NUMBER; + hash = (53 * hash) + getVerificationResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2174,42 +2396,57 @@ public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parseFrom( } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2229,6 +2466,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Signature_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Signature_fieldAccessorTable @@ -2247,51 +2485,44 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getEntityFieldBuilder(); getVerificationResultFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - entityBuilder_.clear(); + bitField0_ = 0; + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); signerBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); signerDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); isValid_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - if (verificationResultBuilder_ == null) { - verificationResult_ = Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance(); - } else { - verificationResultBuilder_.clear(); + verificationResult_ = null; + if (verificationResultBuilder_ != null) { + verificationResultBuilder_.dispose(); + verificationResultBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_Signature_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature build() { Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature result = buildPartial(); if (!result.isInitialized()) { @@ -2300,43 +2531,45 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature buildPartial() { Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature result = new Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entity_ = entityBuilder_ == null + ? entity_ + : entityBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.signerBoxId_ = signerBoxId_; to_bitField0_ |= 0x00000002; } - result.signerBoxId_ = signerBoxId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.signerDepartmentId_ = signerDepartmentId_; to_bitField0_ |= 0x00000004; } - result.signerDepartmentId_ = signerDepartmentId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isValid_ = isValid_; to_bitField0_ |= 0x00000008; } - result.isValid_ = isValid_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.verificationResult_ = verificationResultBuilder_ == null + ? verificationResult_ + : verificationResultBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (verificationResultBuilder_ == null) { - result.verificationResult_ = verificationResult_; - } else { - result.verificationResult_ = verificationResultBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature) { return mergeFrom((Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature)other); @@ -2352,13 +2585,13 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature oth mergeEntity(other.getEntity()); } if (other.hasSignerBoxId()) { - bitField0_ |= 0x00000002; signerBoxId_ = other.signerBoxId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasSignerDepartmentId()) { - bitField0_ |= 0x00000004; signerDepartmentId_ = other.signerDepartmentId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasIsValid()) { @@ -2368,59 +2601,104 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature oth mergeVerificationResult(other.getVerificationResult()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasEntity()) { if (!getEntity().isInitialized()) { - return false; } } if (hasVerificationResult()) { if (!getVerificationResult().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEntityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + signerBoxId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + signerDepartmentId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + isValid_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getVerificationResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> entityBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { if (entityBuilder_ == null) { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } else { return entityBuilder_.getMessage(); } @@ -2434,11 +2712,11 @@ public Builder setEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) throw new NullPointerException(); } entity_ = value; - onChanged(); } else { entityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2448,11 +2726,11 @@ public Builder setEntity( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); - onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2460,31 +2738,33 @@ public Builder setEntity( */ public Builder mergeEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (entityBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - entity_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + entity_ != null && + entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getEntityBuilder().mergeFrom(value); } else { entity_ = value; } - onChanged(); } else { entityBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (entity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - entityBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; + } + onChanged(); return this; } /** @@ -2502,7 +2782,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { - return entity_; + return entity_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } } /** @@ -2525,12 +2806,14 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil private java.lang.Object signerBoxId_ = ""; /** * optional string SignerBoxId = 2; + * @return Whether the signerBoxId field is set. */ public boolean hasSignerBoxId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string SignerBoxId = 2; + * @return The signerBoxId. */ public java.lang.String getSignerBoxId() { java.lang.Object ref = signerBoxId_; @@ -2548,6 +2831,7 @@ public java.lang.String getSignerBoxId() { } /** * optional string SignerBoxId = 2; + * @return The bytes for signerBoxId. */ public com.google.protobuf.ByteString getSignerBoxIdBytes() { @@ -2564,36 +2848,37 @@ public java.lang.String getSignerBoxId() { } /** * optional string SignerBoxId = 2; + * @param value The signerBoxId to set. + * @return This builder for chaining. */ public Builder setSignerBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } signerBoxId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string SignerBoxId = 2; + * @return This builder for chaining. */ public Builder clearSignerBoxId() { - bitField0_ = (bitField0_ & ~0x00000002); signerBoxId_ = getDefaultInstance().getSignerBoxId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string SignerBoxId = 2; + * @param value The bytes for signerBoxId to set. + * @return This builder for chaining. */ public Builder setSignerBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } signerBoxId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2601,12 +2886,14 @@ public Builder setSignerBoxIdBytes( private java.lang.Object signerDepartmentId_ = ""; /** * optional string SignerDepartmentId = 3; + * @return Whether the signerDepartmentId field is set. */ public boolean hasSignerDepartmentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string SignerDepartmentId = 3; + * @return The signerDepartmentId. */ public java.lang.String getSignerDepartmentId() { java.lang.Object ref = signerDepartmentId_; @@ -2624,6 +2911,7 @@ public java.lang.String getSignerDepartmentId() { } /** * optional string SignerDepartmentId = 3; + * @return The bytes for signerDepartmentId. */ public com.google.protobuf.ByteString getSignerDepartmentIdBytes() { @@ -2640,36 +2928,37 @@ public java.lang.String getSignerDepartmentId() { } /** * optional string SignerDepartmentId = 3; + * @param value The signerDepartmentId to set. + * @return This builder for chaining. */ public Builder setSignerDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } signerDepartmentId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string SignerDepartmentId = 3; + * @return This builder for chaining. */ public Builder clearSignerDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000004); signerDepartmentId_ = getDefaultInstance().getSignerDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string SignerDepartmentId = 3; + * @param value The bytes for signerDepartmentId to set. + * @return This builder for chaining. */ public Builder setSignerDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } signerDepartmentId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2677,27 +2966,35 @@ public Builder setSignerDepartmentIdBytes( private boolean isValid_ ; /** * optional bool IsValid = 4; + * @return Whether the isValid field is set. */ + @java.lang.Override public boolean hasIsValid() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bool IsValid = 4; + * @return The isValid. */ + @java.lang.Override public boolean getIsValid() { return isValid_; } /** * optional bool IsValid = 4; + * @param value The isValid to set. + * @return This builder for chaining. */ public Builder setIsValid(boolean value) { - bitField0_ |= 0x00000008; + isValid_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional bool IsValid = 4; + * @return This builder for chaining. */ public Builder clearIsValid() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2706,21 +3003,23 @@ public Builder clearIsValid() { return this; } - private Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult verificationResult_ = Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance(); + private Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult verificationResult_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult, Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.Builder, Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResultOrBuilder> verificationResultBuilder_; /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 5; + * @return Whether the verificationResult field is set. */ public boolean hasVerificationResult() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 5; + * @return The verificationResult. */ public Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult getVerificationResult() { if (verificationResultBuilder_ == null) { - return verificationResult_; + return verificationResult_ == null ? Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance() : verificationResult_; } else { return verificationResultBuilder_.getMessage(); } @@ -2734,11 +3033,11 @@ public Builder setVerificationResult(Diadoc.Api.Proto.SignatureVerificationResul throw new NullPointerException(); } verificationResult_ = value; - onChanged(); } else { verificationResultBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2748,11 +3047,11 @@ public Builder setVerificationResult( Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.Builder builderForValue) { if (verificationResultBuilder_ == null) { verificationResult_ = builderForValue.build(); - onChanged(); } else { verificationResultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2760,31 +3059,33 @@ public Builder setVerificationResult( */ public Builder mergeVerificationResult(Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult value) { if (verificationResultBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - verificationResult_ != Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance()) { - verificationResult_ = - Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.newBuilder(verificationResult_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + verificationResult_ != null && + verificationResult_ != Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance()) { + getVerificationResultBuilder().mergeFrom(value); } else { verificationResult_ = value; } - onChanged(); } else { verificationResultBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (verificationResult_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 5; */ public Builder clearVerificationResult() { - if (verificationResultBuilder_ == null) { - verificationResult_ = Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance(); - onChanged(); - } else { - verificationResultBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + verificationResult_ = null; + if (verificationResultBuilder_ != null) { + verificationResultBuilder_.dispose(); + verificationResultBuilder_ = null; + } + onChanged(); return this; } /** @@ -2802,7 +3103,8 @@ public Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationR if (verificationResultBuilder_ != null) { return verificationResultBuilder_.getMessageOrBuilder(); } else { - return verificationResult_; + return verificationResult_ == null ? + Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance() : verificationResult_; } } /** @@ -2825,12 +3127,52 @@ public Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationR // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.Signature) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.Signature) + private static final Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature DEFAULT_INSTANCE; static { - defaultInstance = new Signature(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature(); + } + + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Signature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.Signature) } public interface SignedAttachmentOrBuilder extends @@ -2839,10 +3181,12 @@ public interface SignedAttachmentOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return Whether the attachment field is set. */ boolean hasAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return The attachment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment getAttachment(); /** @@ -2852,10 +3196,12 @@ public interface SignedAttachmentOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.Signature Signature = 2; + * @return Whether the signature field is set. */ boolean hasSignature(); /** * optional .Diadoc.Api.Proto.Docflow.Signature Signature = 2; + * @return The signature. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature getSignature(); /** @@ -2865,10 +3211,12 @@ public interface SignedAttachmentOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return Whether the comment field is set. */ boolean hasComment(); /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return The comment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getComment(); /** @@ -2883,107 +3231,29 @@ public static final class SignedAttachment extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SignedAttachment) SignedAttachmentOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SignedAttachment.class.getName()); + } // Use SignedAttachment.newBuilder() to construct. private SignedAttachment(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SignedAttachment(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SignedAttachment defaultInstance; - public static SignedAttachment getDefaultInstance() { - return defaultInstance; } - - public SignedAttachment getDefaultInstanceForType() { - return defaultInstance; + private SignedAttachment() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignedAttachment( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = attachment_.toBuilder(); - } - attachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attachment_); - attachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = signature_.toBuilder(); - } - signature_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signature_); - signature_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = comment_.toBuilder(); - } - comment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(comment_); - comment_ = 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.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_SignedAttachment_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_SignedAttachment_fieldAccessorTable @@ -2991,91 +3261,87 @@ private SignedAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.class, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SignedAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignedAttachment(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ATTACHMENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment attachment_; /** * optional .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return Whether the attachment field is set. */ + @java.lang.Override public boolean hasAttachment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return The attachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment getAttachment() { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance() : attachment_; } /** * optional .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.AttachmentOrBuilder getAttachmentOrBuilder() { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance() : attachment_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature signature_; /** * optional .Diadoc.Api.Proto.Docflow.Signature Signature = 2; + * @return Whether the signature field is set. */ + @java.lang.Override public boolean hasSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Signature Signature = 2; + * @return The signature. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature getSignature() { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance() : signature_; } /** * optional .Diadoc.Api.Proto.Docflow.Signature Signature = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignatureOrBuilder getSignatureOrBuilder() { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance() : signature_; } public static final int COMMENT_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity comment_; /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return Whether the comment field is set. */ + @java.lang.Override public boolean hasComment() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return The comment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getComment() { - return comment_; + return comment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : comment_; } /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCommentOrBuilder() { - return comment_; + return comment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : comment_; } - private void initFields() { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance(); - signature_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance(); - comment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3103,51 +3369,108 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, attachment_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAttachment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, signature_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSignature()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, comment_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getComment()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, attachment_); + .computeMessageSize(1, getAttachment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, signature_); + .computeMessageSize(2, getSignature()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, comment_); + .computeMessageSize(3, getComment()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment other = (Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment) obj; + + if (hasAttachment() != other.hasAttachment()) return false; + if (hasAttachment()) { + if (!getAttachment() + .equals(other.getAttachment())) return false; + } + if (hasSignature() != other.hasSignature()) return false; + if (hasSignature()) { + if (!getSignature() + .equals(other.getSignature())) return false; + } + if (hasComment() != other.hasComment()) return false; + if (hasComment()) { + if (!getComment() + .equals(other.getComment())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAttachment()) { + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + } + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + if (hasComment()) { + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3171,42 +3494,57 @@ public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parseFr } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3226,6 +3564,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_SignedAttachment_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_SignedAttachment_fieldAccessorTable @@ -3244,52 +3583,47 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getAttachmentFieldBuilder(); getSignatureFieldBuilder(); getCommentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (attachmentBuilder_ == null) { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance(); - } else { - attachmentBuilder_.clear(); + bitField0_ = 0; + attachment_ = null; + if (attachmentBuilder_ != null) { + attachmentBuilder_.dispose(); + attachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (signatureBuilder_ == null) { - signature_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance(); - } else { - signatureBuilder_.clear(); + signature_ = null; + if (signatureBuilder_ != null) { + signatureBuilder_.dispose(); + signatureBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (commentBuilder_ == null) { - comment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - commentBuilder_.clear(); + comment_ = null; + if (commentBuilder_ != null) { + commentBuilder_.dispose(); + commentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.internal_static_Diadoc_Api_Proto_Docflow_SignedAttachment_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment build() { Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment result = buildPartial(); if (!result.isInitialized()) { @@ -3298,39 +3632,39 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment buildPartial() { Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment result = new Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attachment_ = attachmentBuilder_ == null + ? attachment_ + : attachmentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (attachmentBuilder_ == null) { - result.attachment_ = attachment_; - } else { - result.attachment_ = attachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.signature_ = signatureBuilder_ == null + ? signature_ + : signatureBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (signatureBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = signatureBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.comment_ = commentBuilder_ == null + ? comment_ + : commentBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (commentBuilder_ == null) { - result.comment_ = comment_; - } else { - result.comment_ = commentBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment) { return mergeFrom((Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment)other); @@ -3352,65 +3686,101 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachm mergeComment(other.getComment()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasAttachment()) { if (!getAttachment().isInitialized()) { - return false; } } if (hasSignature()) { if (!getSignature().isInitialized()) { - return false; } } if (hasComment()) { if (!getComment().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSignatureFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCommentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment attachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment attachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment, Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.AttachmentOrBuilder> attachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return Whether the attachment field is set. */ public boolean hasAttachment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return The attachment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment getAttachment() { if (attachmentBuilder_ == null) { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance() : attachment_; } else { return attachmentBuilder_.getMessage(); } @@ -3424,11 +3794,11 @@ public Builder setAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachmen throw new NullPointerException(); } attachment_ = value; - onChanged(); } else { attachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -3438,11 +3808,11 @@ public Builder setAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.Builder builderForValue) { if (attachmentBuilder_ == null) { attachment_ = builderForValue.build(); - onChanged(); } else { attachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -3450,31 +3820,33 @@ public Builder setAttachment( */ public Builder mergeAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment value) { if (attachmentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - attachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance()) { - attachment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.newBuilder(attachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + attachment_ != null && + attachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance()) { + getAttachmentBuilder().mergeFrom(value); } else { attachment_ = value; } - onChanged(); } else { attachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (attachment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; */ public Builder clearAttachment() { - if (attachmentBuilder_ == null) { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance(); - onChanged(); - } else { - attachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + attachment_ = null; + if (attachmentBuilder_ != null) { + attachmentBuilder_.dispose(); + attachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -3492,7 +3864,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.AttachmentOrBuilder getAttachme if (attachmentBuilder_ != null) { return attachmentBuilder_.getMessageOrBuilder(); } else { - return attachment_; + return attachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance() : attachment_; } } /** @@ -3512,21 +3885,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.AttachmentOrBuilder getAttachme return attachmentBuilder_; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature signature_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature signature_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature, Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignatureOrBuilder> signatureBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.Signature Signature = 2; + * @return Whether the signature field is set. */ public boolean hasSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Signature Signature = 2; + * @return The signature. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature getSignature() { if (signatureBuilder_ == null) { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance() : signature_; } else { return signatureBuilder_.getMessage(); } @@ -3540,11 +3915,11 @@ public Builder setSignature(Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature throw new NullPointerException(); } signature_ = value; - onChanged(); } else { signatureBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3554,11 +3929,11 @@ public Builder setSignature( Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.Builder builderForValue) { if (signatureBuilder_ == null) { signature_ = builderForValue.build(); - onChanged(); } else { signatureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3566,31 +3941,33 @@ public Builder setSignature( */ public Builder mergeSignature(Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature value) { if (signatureBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - signature_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance()) { - signature_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.newBuilder(signature_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + signature_ != null && + signature_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance()) { + getSignatureBuilder().mergeFrom(value); } else { signature_ = value; } - onChanged(); } else { signatureBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (signature_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.Signature Signature = 2; */ public Builder clearSignature() { - if (signatureBuilder_ == null) { - signature_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance(); - onChanged(); - } else { - signatureBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + signature_ = null; + if (signatureBuilder_ != null) { + signatureBuilder_.dispose(); + signatureBuilder_ = null; + } + onChanged(); return this; } /** @@ -3608,7 +3985,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignatureOrBuilder getSignature if (signatureBuilder_ != null) { return signatureBuilder_.getMessageOrBuilder(); } else { - return signature_; + return signature_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance() : signature_; } } /** @@ -3628,21 +4006,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignatureOrBuilder getSignature return signatureBuilder_; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity comment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity comment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> commentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return Whether the comment field is set. */ public boolean hasComment() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return The comment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getComment() { if (commentBuilder_ == null) { - return comment_; + return comment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : comment_; } else { return commentBuilder_.getMessage(); } @@ -3656,11 +4036,11 @@ public Builder setComment(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value throw new NullPointerException(); } comment_ = value; - onChanged(); } else { commentBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3670,11 +4050,11 @@ public Builder setComment( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (commentBuilder_ == null) { comment_ = builderForValue.build(); - onChanged(); } else { commentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3682,31 +4062,33 @@ public Builder setComment( */ public Builder mergeComment(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (commentBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - comment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - comment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(comment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + comment_ != null && + comment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getCommentBuilder().mergeFrom(value); } else { comment_ = value; } - onChanged(); } else { commentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (comment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; */ public Builder clearComment() { - if (commentBuilder_ == null) { - comment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - commentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + comment_ = null; + if (commentBuilder_ != null) { + commentBuilder_.dispose(); + commentBuilder_ = null; + } + onChanged(); return this; } /** @@ -3724,7 +4106,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCommentOrBui if (commentBuilder_ != null) { return commentBuilder_.getMessageOrBuilder(); } else { - return comment_; + return comment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : comment_; } } /** @@ -3747,32 +4130,72 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCommentOrBui // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SignedAttachment) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignedAttachment) + private static final Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment DEFAULT_INSTANCE; static { - defaultInstance = new SignedAttachment(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment(); + } + + public static Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignedAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignedAttachment) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_Entity_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_Entity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_Attachment_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_Attachment_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_Signature_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_Signature_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SignedAttachment_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SignedAttachment_fieldAccessorTable; @@ -3780,7 +4203,7 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCommentOrBui getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -3793,7 +4216,7 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCommentOrBui "Content\"s\n\nAttachment\0220\n\006Entity\030\001 \001(\0132 ." + "Diadoc.Api.Proto.Docflow.Entity\022\032\n\022Attac" + "hmentFilename\030\002 \001(\t\022\027\n\017DisplayFilename\030\003" + - " \001(\t\"\312\001\n\tSignature\0220\n\006Entity\030\001 \001(\0132 .Dia", + " \001(\t\"\312\001\n\tSignature\0220\n\006Entity\030\001 \001(\0132 .Dia" + "doc.Api.Proto.Docflow.Entity\022\023\n\013SignerBo" + "xId\030\002 \001(\t\022\032\n\022SignerDepartmentId\030\003 \001(\t\022\017\n" + "\007IsValid\030\004 \001(\010\022I\n\022VerificationResult\030\005 \001" + @@ -3805,21 +4228,13 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCommentOrBui "\0132 .Diadoc.Api.Proto.Docflow.EntityB\022B\020A" + "ttachmentProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.ContentProtos.getDescriptor(), Diadoc.Api.Proto.TimestampProtos.getDescriptor(), Diadoc.Api.Proto.SignatureVerificationResultProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_Entity_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_Entity_fieldAccessorTable = new @@ -3844,6 +4259,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_SignedAttachment_descriptor, new java.lang.String[] { "Attachment", "Signature", "Comment", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.ContentProtos.getDescriptor(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.SignatureVerificationResultProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/AttachmentV3Protos.java b/src/main/java/Diadoc/Api/Proto/Docflow/AttachmentV3Protos.java index edd800f6..b60b7b8a 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/AttachmentV3Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/AttachmentV3Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/AttachmentV3.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class AttachmentV3Protos { private AttachmentV3Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AttachmentV3Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface SignatureV3OrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.SignatureV3) @@ -14,10 +31,12 @@ public interface SignatureV3OrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.Entity Cms = 1; + * @return Whether the cms field is set. */ boolean hasCms(); /** * required .Diadoc.Api.Proto.Docflow.Entity Cms = 1; + * @return The cms. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getCms(); /** @@ -27,10 +46,12 @@ public interface SignatureV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.Entity CadesT = 2; + * @return Whether the cadesT field is set. */ boolean hasCadesT(); /** * optional .Diadoc.Api.Proto.Docflow.Entity CadesT = 2; + * @return The cadesT. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getCadesT(); /** @@ -40,47 +61,57 @@ public interface SignatureV3OrBuilder extends /** * required string SignerBoxId = 3; + * @return Whether the signerBoxId field is set. */ boolean hasSignerBoxId(); /** * required string SignerBoxId = 3; + * @return The signerBoxId. */ java.lang.String getSignerBoxId(); /** * required string SignerBoxId = 3; + * @return The bytes for signerBoxId. */ com.google.protobuf.ByteString getSignerBoxIdBytes(); /** * required string SignerDepartmentId = 4; + * @return Whether the signerDepartmentId field is set. */ boolean hasSignerDepartmentId(); /** * required string SignerDepartmentId = 4; + * @return The signerDepartmentId. */ java.lang.String getSignerDepartmentId(); /** * required string SignerDepartmentId = 4; + * @return The bytes for signerDepartmentId. */ com.google.protobuf.ByteString getSignerDepartmentIdBytes(); /** * required bool IsValid = 5; + * @return Whether the isValid field is set. */ boolean hasIsValid(); /** * required bool IsValid = 5; + * @return The isValid. */ boolean getIsValid(); /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 6; + * @return Whether the verificationResult field is set. */ boolean hasVerificationResult(); /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 6; + * @return The verificationResult. */ Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult getVerificationResult(); /** @@ -90,10 +121,12 @@ public interface SignatureV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 7; + * @return Whether the deliveredAt field is set. */ boolean hasDeliveredAt(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 7; + * @return The deliveredAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt(); /** @@ -103,10 +136,12 @@ public interface SignatureV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney PowerOfAttorney = 8; + * @return Whether the powerOfAttorney field is set. */ boolean hasPowerOfAttorney(); /** * optional .Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney PowerOfAttorney = 8; + * @return The powerOfAttorney. */ Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney getPowerOfAttorney(); /** @@ -116,10 +151,12 @@ public interface SignatureV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus PowerOfAttorneyAttachmentStatus = 9; + * @return Whether the powerOfAttorneyAttachmentStatus field is set. */ boolean hasPowerOfAttorneyAttachmentStatus(); /** * optional .Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus PowerOfAttorneyAttachmentStatus = 9; + * @return The powerOfAttorneyAttachmentStatus. */ Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus getPowerOfAttorneyAttachmentStatus(); /** @@ -134,163 +171,31 @@ public static final class SignatureV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SignatureV3) SignatureV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SignatureV3.class.getName()); + } // Use SignatureV3.newBuilder() to construct. private SignatureV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SignatureV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SignatureV3 defaultInstance; - public static SignatureV3 getDefaultInstance() { - return defaultInstance; } - - public SignatureV3 getDefaultInstanceForType() { - return defaultInstance; + private SignatureV3() { + signerBoxId_ = ""; + signerDepartmentId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignatureV3( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = cms_.toBuilder(); - } - cms_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cms_); - cms_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = cadesT_.toBuilder(); - } - cadesT_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cadesT_); - cadesT_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - signerBoxId_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - signerDepartmentId_ = bs; - break; - } - case 40: { - bitField0_ |= 0x00000010; - isValid_ = input.readBool(); - break; - } - case 50: { - Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = verificationResult_.toBuilder(); - } - verificationResult_ = input.readMessage(Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(verificationResult_); - verificationResult_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 58: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = deliveredAt_.toBuilder(); - } - deliveredAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveredAt_); - deliveredAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 66: { - Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = powerOfAttorney_.toBuilder(); - } - powerOfAttorney_ = input.readMessage(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(powerOfAttorney_); - powerOfAttorney_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - case 74: { - Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = powerOfAttorneyAttachmentStatus_.toBuilder(); - } - powerOfAttorneyAttachmentStatus_ = input.readMessage(Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(powerOfAttorneyAttachmentStatus_); - powerOfAttorneyAttachmentStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - 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.Docflow.AttachmentV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureV3_fieldAccessorTable @@ -298,75 +203,75 @@ private SignatureV3( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.class, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SignatureV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CMS_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity cms_; /** * required .Diadoc.Api.Proto.Docflow.Entity Cms = 1; + * @return Whether the cms field is set. */ + @java.lang.Override public boolean hasCms() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Cms = 1; + * @return The cms. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getCms() { - return cms_; + return cms_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : cms_; } /** * required .Diadoc.Api.Proto.Docflow.Entity Cms = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCmsOrBuilder() { - return cms_; + return cms_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : cms_; } public static final int CADEST_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity cadesT_; /** * optional .Diadoc.Api.Proto.Docflow.Entity CadesT = 2; + * @return Whether the cadesT field is set. */ + @java.lang.Override public boolean hasCadesT() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Entity CadesT = 2; + * @return The cadesT. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getCadesT() { - return cadesT_; + return cadesT_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : cadesT_; } /** * optional .Diadoc.Api.Proto.Docflow.Entity CadesT = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCadesTOrBuilder() { - return cadesT_; + return cadesT_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : cadesT_; } public static final int SIGNERBOXID_FIELD_NUMBER = 3; - private java.lang.Object signerBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object signerBoxId_ = ""; /** * required string SignerBoxId = 3; + * @return Whether the signerBoxId field is set. */ + @java.lang.Override public boolean hasSignerBoxId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string SignerBoxId = 3; + * @return The signerBoxId. */ + @java.lang.Override public java.lang.String getSignerBoxId() { java.lang.Object ref = signerBoxId_; if (ref instanceof java.lang.String) { @@ -383,7 +288,9 @@ public java.lang.String getSignerBoxId() { } /** * required string SignerBoxId = 3; + * @return The bytes for signerBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getSignerBoxIdBytes() { java.lang.Object ref = signerBoxId_; @@ -399,16 +306,21 @@ public java.lang.String getSignerBoxId() { } public static final int SIGNERDEPARTMENTID_FIELD_NUMBER = 4; - private java.lang.Object signerDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object signerDepartmentId_ = ""; /** * required string SignerDepartmentId = 4; + * @return Whether the signerDepartmentId field is set. */ + @java.lang.Override public boolean hasSignerDepartmentId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string SignerDepartmentId = 4; + * @return The signerDepartmentId. */ + @java.lang.Override public java.lang.String getSignerDepartmentId() { java.lang.Object ref = signerDepartmentId_; if (ref instanceof java.lang.String) { @@ -425,7 +337,9 @@ public java.lang.String getSignerDepartmentId() { } /** * required string SignerDepartmentId = 4; + * @return The bytes for signerDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getSignerDepartmentIdBytes() { java.lang.Object ref = signerDepartmentId_; @@ -441,16 +355,20 @@ public java.lang.String getSignerDepartmentId() { } public static final int ISVALID_FIELD_NUMBER = 5; - private boolean isValid_; + private boolean isValid_ = false; /** * required bool IsValid = 5; + * @return Whether the isValid field is set. */ + @java.lang.Override public boolean hasIsValid() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required bool IsValid = 5; + * @return The isValid. */ + @java.lang.Override public boolean getIsValid() { return isValid_; } @@ -459,98 +377,108 @@ public boolean getIsValid() { private Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult verificationResult_; /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 6; + * @return Whether the verificationResult field is set. */ + @java.lang.Override public boolean hasVerificationResult() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 6; + * @return The verificationResult. */ + @java.lang.Override public Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult getVerificationResult() { - return verificationResult_; + return verificationResult_ == null ? Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance() : verificationResult_; } /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 6; */ + @java.lang.Override public Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResultOrBuilder getVerificationResultOrBuilder() { - return verificationResult_; + return verificationResult_ == null ? Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance() : verificationResult_; } public static final int DELIVEREDAT_FIELD_NUMBER = 7; private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 7; + * @return Whether the deliveredAt field is set. */ + @java.lang.Override public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 7; + * @return The deliveredAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 7; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuilder() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } public static final int POWEROFATTORNEY_FIELD_NUMBER = 8; private Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney powerOfAttorney_; /** * optional .Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney PowerOfAttorney = 8; + * @return Whether the powerOfAttorney field is set. */ + @java.lang.Override public boolean hasPowerOfAttorney() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney PowerOfAttorney = 8; + * @return The powerOfAttorney. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney getPowerOfAttorney() { - return powerOfAttorney_; + return powerOfAttorney_ == null ? Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance() : powerOfAttorney_; } /** * optional .Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney PowerOfAttorney = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorneyOrBuilder getPowerOfAttorneyOrBuilder() { - return powerOfAttorney_; + return powerOfAttorney_ == null ? Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance() : powerOfAttorney_; } public static final int POWEROFATTORNEYATTACHMENTSTATUS_FIELD_NUMBER = 9; private Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus powerOfAttorneyAttachmentStatus_; /** * optional .Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus PowerOfAttorneyAttachmentStatus = 9; + * @return Whether the powerOfAttorneyAttachmentStatus field is set. */ + @java.lang.Override public boolean hasPowerOfAttorneyAttachmentStatus() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus PowerOfAttorneyAttachmentStatus = 9; + * @return The powerOfAttorneyAttachmentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus getPowerOfAttorneyAttachmentStatus() { - return powerOfAttorneyAttachmentStatus_; + return powerOfAttorneyAttachmentStatus_ == null ? Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance() : powerOfAttorneyAttachmentStatus_; } /** * optional .Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus PowerOfAttorneyAttachmentStatus = 9; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatusOrBuilder getPowerOfAttorneyAttachmentStatusOrBuilder() { - return powerOfAttorneyAttachmentStatus_; + return powerOfAttorneyAttachmentStatus_ == null ? Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance() : powerOfAttorneyAttachmentStatus_; } - private void initFields() { - cms_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - cadesT_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - signerBoxId_ = ""; - signerDepartmentId_ = ""; - isValid_ = false; - verificationResult_ = Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance(); - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - powerOfAttorney_ = Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance(); - powerOfAttorneyAttachmentStatus_ = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -610,93 +538,203 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, cms_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCms()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, cadesT_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getCadesT()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getSignerBoxIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, signerBoxId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getSignerDepartmentIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, signerDepartmentId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, isValid_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, verificationResult_); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getVerificationResult()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, deliveredAt_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getDeliveredAt()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, powerOfAttorney_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getPowerOfAttorney()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, powerOfAttorneyAttachmentStatus_); + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getPowerOfAttorneyAttachmentStatus()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, cms_); + .computeMessageSize(1, getCms()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, cadesT_); + .computeMessageSize(2, getCadesT()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getSignerBoxIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, signerBoxId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getSignerDepartmentIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, signerDepartmentId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isValid_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, verificationResult_); + .computeMessageSize(6, getVerificationResult()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, deliveredAt_); + .computeMessageSize(7, getDeliveredAt()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, powerOfAttorney_); + .computeMessageSize(8, getPowerOfAttorney()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, powerOfAttorneyAttachmentStatus_); + .computeMessageSize(9, getPowerOfAttorneyAttachmentStatus()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 other = (Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3) obj; + + if (hasCms() != other.hasCms()) return false; + if (hasCms()) { + if (!getCms() + .equals(other.getCms())) return false; + } + if (hasCadesT() != other.hasCadesT()) return false; + if (hasCadesT()) { + if (!getCadesT() + .equals(other.getCadesT())) return false; + } + if (hasSignerBoxId() != other.hasSignerBoxId()) return false; + if (hasSignerBoxId()) { + if (!getSignerBoxId() + .equals(other.getSignerBoxId())) return false; + } + if (hasSignerDepartmentId() != other.hasSignerDepartmentId()) return false; + if (hasSignerDepartmentId()) { + if (!getSignerDepartmentId() + .equals(other.getSignerDepartmentId())) return false; + } + if (hasIsValid() != other.hasIsValid()) return false; + if (hasIsValid()) { + if (getIsValid() + != other.getIsValid()) return false; + } + if (hasVerificationResult() != other.hasVerificationResult()) return false; + if (hasVerificationResult()) { + if (!getVerificationResult() + .equals(other.getVerificationResult())) return false; + } + if (hasDeliveredAt() != other.hasDeliveredAt()) return false; + if (hasDeliveredAt()) { + if (!getDeliveredAt() + .equals(other.getDeliveredAt())) return false; + } + if (hasPowerOfAttorney() != other.hasPowerOfAttorney()) return false; + if (hasPowerOfAttorney()) { + if (!getPowerOfAttorney() + .equals(other.getPowerOfAttorney())) return false; + } + if (hasPowerOfAttorneyAttachmentStatus() != other.hasPowerOfAttorneyAttachmentStatus()) return false; + if (hasPowerOfAttorneyAttachmentStatus()) { + if (!getPowerOfAttorneyAttachmentStatus() + .equals(other.getPowerOfAttorneyAttachmentStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCms()) { + hash = (37 * hash) + CMS_FIELD_NUMBER; + hash = (53 * hash) + getCms().hashCode(); + } + if (hasCadesT()) { + hash = (37 * hash) + CADEST_FIELD_NUMBER; + hash = (53 * hash) + getCadesT().hashCode(); + } + if (hasSignerBoxId()) { + hash = (37 * hash) + SIGNERBOXID_FIELD_NUMBER; + hash = (53 * hash) + getSignerBoxId().hashCode(); + } + if (hasSignerDepartmentId()) { + hash = (37 * hash) + SIGNERDEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getSignerDepartmentId().hashCode(); + } + if (hasIsValid()) { + hash = (37 * hash) + ISVALID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsValid()); + } + if (hasVerificationResult()) { + hash = (37 * hash) + VERIFICATIONRESULT_FIELD_NUMBER; + hash = (53 * hash) + getVerificationResult().hashCode(); + } + if (hasDeliveredAt()) { + hash = (37 * hash) + DELIVEREDAT_FIELD_NUMBER; + hash = (53 * hash) + getDeliveredAt().hashCode(); + } + if (hasPowerOfAttorney()) { + hash = (37 * hash) + POWEROFATTORNEY_FIELD_NUMBER; + hash = (53 * hash) + getPowerOfAttorney().hashCode(); + } + if (hasPowerOfAttorneyAttachmentStatus()) { + hash = (37 * hash) + POWEROFATTORNEYATTACHMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getPowerOfAttorneyAttachmentStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -720,42 +758,57 @@ public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parseFrom( } public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -775,6 +828,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureV3_fieldAccessorTable @@ -793,7 +847,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getCmsFieldBuilder(); getCadesTFieldBuilder(); getVerificationResultFieldBuilder(); @@ -802,70 +857,58 @@ private void maybeForceBuilderInitialization() { getPowerOfAttorneyAttachmentStatusFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (cmsBuilder_ == null) { - cms_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - cmsBuilder_.clear(); + bitField0_ = 0; + cms_ = null; + if (cmsBuilder_ != null) { + cmsBuilder_.dispose(); + cmsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (cadesTBuilder_ == null) { - cadesT_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - cadesTBuilder_.clear(); + cadesT_ = null; + if (cadesTBuilder_ != null) { + cadesTBuilder_.dispose(); + cadesTBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); signerBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); signerDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); isValid_ = false; - bitField0_ = (bitField0_ & ~0x00000010); - if (verificationResultBuilder_ == null) { - verificationResult_ = Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance(); - } else { - verificationResultBuilder_.clear(); + verificationResult_ = null; + if (verificationResultBuilder_ != null) { + verificationResultBuilder_.dispose(); + verificationResultBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveredAtBuilder_.clear(); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000040); - if (powerOfAttorneyBuilder_ == null) { - powerOfAttorney_ = Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance(); - } else { - powerOfAttorneyBuilder_.clear(); + powerOfAttorney_ = null; + if (powerOfAttorneyBuilder_ != null) { + powerOfAttorneyBuilder_.dispose(); + powerOfAttorneyBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000080); - if (powerOfAttorneyAttachmentStatusBuilder_ == null) { - powerOfAttorneyAttachmentStatus_ = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance(); - } else { - powerOfAttorneyAttachmentStatusBuilder_.clear(); + powerOfAttorneyAttachmentStatus_ = null; + if (powerOfAttorneyAttachmentStatusBuilder_ != null) { + powerOfAttorneyAttachmentStatusBuilder_.dispose(); + powerOfAttorneyAttachmentStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000100); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 build() { Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 result = buildPartial(); if (!result.isInitialized()) { @@ -874,75 +917,69 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 buildPartial() { Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 result = new Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cms_ = cmsBuilder_ == null + ? cms_ + : cmsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (cmsBuilder_ == null) { - result.cms_ = cms_; - } else { - result.cms_ = cmsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cadesT_ = cadesTBuilder_ == null + ? cadesT_ + : cadesTBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (cadesTBuilder_ == null) { - result.cadesT_ = cadesT_; - } else { - result.cadesT_ = cadesTBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.signerBoxId_ = signerBoxId_; to_bitField0_ |= 0x00000004; } - result.signerBoxId_ = signerBoxId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.signerDepartmentId_ = signerDepartmentId_; to_bitField0_ |= 0x00000008; } - result.signerDepartmentId_ = signerDepartmentId_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isValid_ = isValid_; to_bitField0_ |= 0x00000010; } - result.isValid_ = isValid_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.verificationResult_ = verificationResultBuilder_ == null + ? verificationResult_ + : verificationResultBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (verificationResultBuilder_ == null) { - result.verificationResult_ = verificationResult_; - } else { - result.verificationResult_ = verificationResultBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.deliveredAt_ = deliveredAtBuilder_ == null + ? deliveredAt_ + : deliveredAtBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (deliveredAtBuilder_ == null) { - result.deliveredAt_ = deliveredAt_; - } else { - result.deliveredAt_ = deliveredAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.powerOfAttorney_ = powerOfAttorneyBuilder_ == null + ? powerOfAttorney_ + : powerOfAttorneyBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (powerOfAttorneyBuilder_ == null) { - result.powerOfAttorney_ = powerOfAttorney_; - } else { - result.powerOfAttorney_ = powerOfAttorneyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.powerOfAttorneyAttachmentStatus_ = powerOfAttorneyAttachmentStatusBuilder_ == null + ? powerOfAttorneyAttachmentStatus_ + : powerOfAttorneyAttachmentStatusBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (powerOfAttorneyAttachmentStatusBuilder_ == null) { - result.powerOfAttorneyAttachmentStatus_ = powerOfAttorneyAttachmentStatus_; - } else { - result.powerOfAttorneyAttachmentStatus_ = powerOfAttorneyAttachmentStatusBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3)other); @@ -961,13 +998,13 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 mergeCadesT(other.getCadesT()); } if (other.hasSignerBoxId()) { - bitField0_ |= 0x00000004; signerBoxId_ = other.signerBoxId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasSignerDepartmentId()) { - bitField0_ |= 0x00000008; signerDepartmentId_ = other.signerDepartmentId_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasIsValid()) { @@ -986,97 +1023,162 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 mergePowerOfAttorneyAttachmentStatus(other.getPowerOfAttorneyAttachmentStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasCms()) { - return false; } if (!hasSignerBoxId()) { - return false; } if (!hasSignerDepartmentId()) { - return false; } if (!hasIsValid()) { - return false; } if (!getCms().isInitialized()) { - return false; } if (hasCadesT()) { if (!getCadesT().isInitialized()) { - return false; } } if (hasVerificationResult()) { if (!getVerificationResult().isInitialized()) { - return false; } } if (hasDeliveredAt()) { if (!getDeliveredAt().isInitialized()) { - return false; } } if (hasPowerOfAttorney()) { if (!getPowerOfAttorney().isInitialized()) { - return false; } } if (hasPowerOfAttorneyAttachmentStatus()) { if (!getPowerOfAttorneyAttachmentStatus().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCmsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCadesTFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + signerBoxId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + signerDepartmentId_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + isValid_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + input.readMessage( + getVerificationResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getDeliveredAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getPowerOfAttorneyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage( + getPowerOfAttorneyAttachmentStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity cms_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity cms_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> cmsBuilder_; /** * required .Diadoc.Api.Proto.Docflow.Entity Cms = 1; + * @return Whether the cms field is set. */ public boolean hasCms() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Cms = 1; + * @return The cms. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getCms() { if (cmsBuilder_ == null) { - return cms_; + return cms_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : cms_; } else { return cmsBuilder_.getMessage(); } @@ -1090,11 +1192,11 @@ public Builder setCms(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { throw new NullPointerException(); } cms_ = value; - onChanged(); } else { cmsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1104,11 +1206,11 @@ public Builder setCms( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (cmsBuilder_ == null) { cms_ = builderForValue.build(); - onChanged(); } else { cmsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1116,31 +1218,33 @@ public Builder setCms( */ public Builder mergeCms(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (cmsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - cms_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - cms_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(cms_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + cms_ != null && + cms_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getCmsBuilder().mergeFrom(value); } else { cms_ = value; } - onChanged(); } else { cmsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (cms_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.Entity Cms = 1; */ public Builder clearCms() { - if (cmsBuilder_ == null) { - cms_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - cmsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + cms_ = null; + if (cmsBuilder_ != null) { + cmsBuilder_.dispose(); + cmsBuilder_ = null; + } + onChanged(); return this; } /** @@ -1158,7 +1262,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCmsOrBuilder if (cmsBuilder_ != null) { return cmsBuilder_.getMessageOrBuilder(); } else { - return cms_; + return cms_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : cms_; } } /** @@ -1178,21 +1283,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCmsOrBuilder return cmsBuilder_; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity cadesT_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity cadesT_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> cadesTBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.Entity CadesT = 2; + * @return Whether the cadesT field is set. */ public boolean hasCadesT() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Entity CadesT = 2; + * @return The cadesT. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getCadesT() { if (cadesTBuilder_ == null) { - return cadesT_; + return cadesT_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : cadesT_; } else { return cadesTBuilder_.getMessage(); } @@ -1206,11 +1313,11 @@ public Builder setCadesT(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) throw new NullPointerException(); } cadesT_ = value; - onChanged(); } else { cadesTBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1220,11 +1327,11 @@ public Builder setCadesT( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (cadesTBuilder_ == null) { cadesT_ = builderForValue.build(); - onChanged(); } else { cadesTBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1232,31 +1339,33 @@ public Builder setCadesT( */ public Builder mergeCadesT(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (cadesTBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - cadesT_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - cadesT_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(cadesT_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + cadesT_ != null && + cadesT_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getCadesTBuilder().mergeFrom(value); } else { cadesT_ = value; } - onChanged(); } else { cadesTBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (cadesT_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.Entity CadesT = 2; */ public Builder clearCadesT() { - if (cadesTBuilder_ == null) { - cadesT_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - cadesTBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + cadesT_ = null; + if (cadesTBuilder_ != null) { + cadesTBuilder_.dispose(); + cadesTBuilder_ = null; + } + onChanged(); return this; } /** @@ -1274,7 +1383,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCadesTOrBuil if (cadesTBuilder_ != null) { return cadesTBuilder_.getMessageOrBuilder(); } else { - return cadesT_; + return cadesT_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : cadesT_; } } /** @@ -1297,12 +1407,14 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCadesTOrBuil private java.lang.Object signerBoxId_ = ""; /** * required string SignerBoxId = 3; + * @return Whether the signerBoxId field is set. */ public boolean hasSignerBoxId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string SignerBoxId = 3; + * @return The signerBoxId. */ public java.lang.String getSignerBoxId() { java.lang.Object ref = signerBoxId_; @@ -1320,6 +1432,7 @@ public java.lang.String getSignerBoxId() { } /** * required string SignerBoxId = 3; + * @return The bytes for signerBoxId. */ public com.google.protobuf.ByteString getSignerBoxIdBytes() { @@ -1336,36 +1449,37 @@ public java.lang.String getSignerBoxId() { } /** * required string SignerBoxId = 3; + * @param value The signerBoxId to set. + * @return This builder for chaining. */ public Builder setSignerBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } signerBoxId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string SignerBoxId = 3; + * @return This builder for chaining. */ public Builder clearSignerBoxId() { - bitField0_ = (bitField0_ & ~0x00000004); signerBoxId_ = getDefaultInstance().getSignerBoxId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string SignerBoxId = 3; + * @param value The bytes for signerBoxId to set. + * @return This builder for chaining. */ public Builder setSignerBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } signerBoxId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1373,12 +1487,14 @@ public Builder setSignerBoxIdBytes( private java.lang.Object signerDepartmentId_ = ""; /** * required string SignerDepartmentId = 4; + * @return Whether the signerDepartmentId field is set. */ public boolean hasSignerDepartmentId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string SignerDepartmentId = 4; + * @return The signerDepartmentId. */ public java.lang.String getSignerDepartmentId() { java.lang.Object ref = signerDepartmentId_; @@ -1396,6 +1512,7 @@ public java.lang.String getSignerDepartmentId() { } /** * required string SignerDepartmentId = 4; + * @return The bytes for signerDepartmentId. */ public com.google.protobuf.ByteString getSignerDepartmentIdBytes() { @@ -1412,36 +1529,37 @@ public java.lang.String getSignerDepartmentId() { } /** * required string SignerDepartmentId = 4; + * @param value The signerDepartmentId to set. + * @return This builder for chaining. */ public Builder setSignerDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } signerDepartmentId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required string SignerDepartmentId = 4; + * @return This builder for chaining. */ public Builder clearSignerDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000008); signerDepartmentId_ = getDefaultInstance().getSignerDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * required string SignerDepartmentId = 4; + * @param value The bytes for signerDepartmentId to set. + * @return This builder for chaining. */ public Builder setSignerDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } signerDepartmentId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1449,27 +1567,35 @@ public Builder setSignerDepartmentIdBytes( private boolean isValid_ ; /** * required bool IsValid = 5; + * @return Whether the isValid field is set. */ + @java.lang.Override public boolean hasIsValid() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required bool IsValid = 5; + * @return The isValid. */ + @java.lang.Override public boolean getIsValid() { return isValid_; } /** * required bool IsValid = 5; + * @param value The isValid to set. + * @return This builder for chaining. */ public Builder setIsValid(boolean value) { - bitField0_ |= 0x00000010; + isValid_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * required bool IsValid = 5; + * @return This builder for chaining. */ public Builder clearIsValid() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1478,21 +1604,23 @@ public Builder clearIsValid() { return this; } - private Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult verificationResult_ = Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance(); + private Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult verificationResult_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult, Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.Builder, Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResultOrBuilder> verificationResultBuilder_; /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 6; + * @return Whether the verificationResult field is set. */ public boolean hasVerificationResult() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 6; + * @return The verificationResult. */ public Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult getVerificationResult() { if (verificationResultBuilder_ == null) { - return verificationResult_; + return verificationResult_ == null ? Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance() : verificationResult_; } else { return verificationResultBuilder_.getMessage(); } @@ -1506,11 +1634,11 @@ public Builder setVerificationResult(Diadoc.Api.Proto.SignatureVerificationResul throw new NullPointerException(); } verificationResult_ = value; - onChanged(); } else { verificationResultBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1520,11 +1648,11 @@ public Builder setVerificationResult( Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.Builder builderForValue) { if (verificationResultBuilder_ == null) { verificationResult_ = builderForValue.build(); - onChanged(); } else { verificationResultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1532,31 +1660,33 @@ public Builder setVerificationResult( */ public Builder mergeVerificationResult(Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult value) { if (verificationResultBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - verificationResult_ != Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance()) { - verificationResult_ = - Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.newBuilder(verificationResult_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + verificationResult_ != null && + verificationResult_ != Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance()) { + getVerificationResultBuilder().mergeFrom(value); } else { verificationResult_ = value; } - onChanged(); } else { verificationResultBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (verificationResult_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.SignatureVerificationResult VerificationResult = 6; */ public Builder clearVerificationResult() { - if (verificationResultBuilder_ == null) { - verificationResult_ = Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance(); - onChanged(); - } else { - verificationResultBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + verificationResult_ = null; + if (verificationResultBuilder_ != null) { + verificationResultBuilder_.dispose(); + verificationResultBuilder_ = null; + } + onChanged(); return this; } /** @@ -1574,7 +1704,8 @@ public Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationR if (verificationResultBuilder_ != null) { return verificationResultBuilder_.getMessageOrBuilder(); } else { - return verificationResult_; + return verificationResult_ == null ? + Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationResult.getDefaultInstance() : verificationResult_; } } /** @@ -1594,21 +1725,23 @@ public Diadoc.Api.Proto.SignatureVerificationResultProtos.SignatureVerificationR return verificationResultBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveredAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 7; + * @return Whether the deliveredAt field is set. */ public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 7; + * @return The deliveredAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { if (deliveredAtBuilder_ == null) { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } else { return deliveredAtBuilder_.getMessage(); } @@ -1622,11 +1755,11 @@ public Builder setDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) throw new NullPointerException(); } deliveredAt_ = value; - onChanged(); } else { deliveredAtBuilder_.setMessage(value); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1636,11 +1769,11 @@ public Builder setDeliveredAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveredAtBuilder_ == null) { deliveredAt_ = builderForValue.build(); - onChanged(); } else { deliveredAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1648,31 +1781,33 @@ public Builder setDeliveredAt( */ public Builder mergeDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveredAtBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveredAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveredAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) && + deliveredAt_ != null && + deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveredAtBuilder().mergeFrom(value); } else { deliveredAt_ = value; } - onChanged(); } else { deliveredAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + if (deliveredAt_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 7; */ public Builder clearDeliveredAt() { - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveredAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000040); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -1690,7 +1825,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild if (deliveredAtBuilder_ != null) { return deliveredAtBuilder_.getMessageOrBuilder(); } else { - return deliveredAt_; + return deliveredAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } } /** @@ -1710,21 +1846,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild return deliveredAtBuilder_; } - private Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney powerOfAttorney_ = Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney powerOfAttorney_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney, Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.Builder, Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorneyOrBuilder> powerOfAttorneyBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney PowerOfAttorney = 8; + * @return Whether the powerOfAttorney field is set. */ public boolean hasPowerOfAttorney() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney PowerOfAttorney = 8; + * @return The powerOfAttorney. */ public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney getPowerOfAttorney() { if (powerOfAttorneyBuilder_ == null) { - return powerOfAttorney_; + return powerOfAttorney_ == null ? Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance() : powerOfAttorney_; } else { return powerOfAttorneyBuilder_.getMessage(); } @@ -1738,11 +1876,11 @@ public Builder setPowerOfAttorney(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttor throw new NullPointerException(); } powerOfAttorney_ = value; - onChanged(); } else { powerOfAttorneyBuilder_.setMessage(value); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -1752,11 +1890,11 @@ public Builder setPowerOfAttorney( Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.Builder builderForValue) { if (powerOfAttorneyBuilder_ == null) { powerOfAttorney_ = builderForValue.build(); - onChanged(); } else { powerOfAttorneyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -1764,31 +1902,33 @@ public Builder setPowerOfAttorney( */ public Builder mergePowerOfAttorney(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney value) { if (powerOfAttorneyBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - powerOfAttorney_ != Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance()) { - powerOfAttorney_ = - Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.newBuilder(powerOfAttorney_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + powerOfAttorney_ != null && + powerOfAttorney_ != Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance()) { + getPowerOfAttorneyBuilder().mergeFrom(value); } else { powerOfAttorney_ = value; } - onChanged(); } else { powerOfAttorneyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + if (powerOfAttorney_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney PowerOfAttorney = 8; */ public Builder clearPowerOfAttorney() { - if (powerOfAttorneyBuilder_ == null) { - powerOfAttorney_ = Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance(); - onChanged(); - } else { - powerOfAttorneyBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000080); + powerOfAttorney_ = null; + if (powerOfAttorneyBuilder_ != null) { + powerOfAttorneyBuilder_.dispose(); + powerOfAttorneyBuilder_ = null; + } + onChanged(); return this; } /** @@ -1806,7 +1946,8 @@ public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfA if (powerOfAttorneyBuilder_ != null) { return powerOfAttorneyBuilder_.getMessageOrBuilder(); } else { - return powerOfAttorney_; + return powerOfAttorney_ == null ? + Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance() : powerOfAttorney_; } } /** @@ -1826,21 +1967,23 @@ public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfA return powerOfAttorneyBuilder_; } - private Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus powerOfAttorneyAttachmentStatus_ = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus powerOfAttorneyAttachmentStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus, Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.Builder, Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatusOrBuilder> powerOfAttorneyAttachmentStatusBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus PowerOfAttorneyAttachmentStatus = 9; + * @return Whether the powerOfAttorneyAttachmentStatus field is set. */ public boolean hasPowerOfAttorneyAttachmentStatus() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus PowerOfAttorneyAttachmentStatus = 9; + * @return The powerOfAttorneyAttachmentStatus. */ public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus getPowerOfAttorneyAttachmentStatus() { if (powerOfAttorneyAttachmentStatusBuilder_ == null) { - return powerOfAttorneyAttachmentStatus_; + return powerOfAttorneyAttachmentStatus_ == null ? Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance() : powerOfAttorneyAttachmentStatus_; } else { return powerOfAttorneyAttachmentStatusBuilder_.getMessage(); } @@ -1854,11 +1997,11 @@ public Builder setPowerOfAttorneyAttachmentStatus(Diadoc.Api.Proto.Docflow.Power throw new NullPointerException(); } powerOfAttorneyAttachmentStatus_ = value; - onChanged(); } else { powerOfAttorneyAttachmentStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -1868,11 +2011,11 @@ public Builder setPowerOfAttorneyAttachmentStatus( Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.Builder builderForValue) { if (powerOfAttorneyAttachmentStatusBuilder_ == null) { powerOfAttorneyAttachmentStatus_ = builderForValue.build(); - onChanged(); } else { powerOfAttorneyAttachmentStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -1880,31 +2023,33 @@ public Builder setPowerOfAttorneyAttachmentStatus( */ public Builder mergePowerOfAttorneyAttachmentStatus(Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus value) { if (powerOfAttorneyAttachmentStatusBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - powerOfAttorneyAttachmentStatus_ != Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance()) { - powerOfAttorneyAttachmentStatus_ = - Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.newBuilder(powerOfAttorneyAttachmentStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) && + powerOfAttorneyAttachmentStatus_ != null && + powerOfAttorneyAttachmentStatus_ != Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance()) { + getPowerOfAttorneyAttachmentStatusBuilder().mergeFrom(value); } else { powerOfAttorneyAttachmentStatus_ = value; } - onChanged(); } else { powerOfAttorneyAttachmentStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + if (powerOfAttorneyAttachmentStatus_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus PowerOfAttorneyAttachmentStatus = 9; */ public Builder clearPowerOfAttorneyAttachmentStatus() { - if (powerOfAttorneyAttachmentStatusBuilder_ == null) { - powerOfAttorneyAttachmentStatus_ = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance(); - onChanged(); - } else { - powerOfAttorneyAttachmentStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000100); + powerOfAttorneyAttachmentStatus_ = null; + if (powerOfAttorneyAttachmentStatusBuilder_ != null) { + powerOfAttorneyAttachmentStatusBuilder_.dispose(); + powerOfAttorneyAttachmentStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -1922,7 +2067,8 @@ public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAtt if (powerOfAttorneyAttachmentStatusBuilder_ != null) { return powerOfAttorneyAttachmentStatusBuilder_.getMessageOrBuilder(); } else { - return powerOfAttorneyAttachmentStatus_; + return powerOfAttorneyAttachmentStatus_ == null ? + Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance() : powerOfAttorneyAttachmentStatus_; } } /** @@ -1945,12 +2091,52 @@ public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAtt // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SignatureV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignatureV3) + private static final Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 DEFAULT_INSTANCE; static { - defaultInstance = new SignatureV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3(); + } + + public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignatureV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignatureV3) } public interface SignedAttachmentV3OrBuilder extends @@ -1959,10 +2145,12 @@ public interface SignedAttachmentV3OrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return Whether the attachment field is set. */ boolean hasAttachment(); /** * required .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return The attachment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment getAttachment(); /** @@ -1972,10 +2160,12 @@ public interface SignedAttachmentV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return Whether the signature field is set. */ boolean hasSignature(); /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return The signature. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getSignature(); /** @@ -1985,10 +2175,12 @@ public interface SignedAttachmentV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return Whether the comment field is set. */ boolean hasComment(); /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return The comment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getComment(); /** @@ -1998,14 +2190,17 @@ public interface SignedAttachmentV3OrBuilder extends /** * required string ContentTypeId = 4; + * @return Whether the contentTypeId field is set. */ boolean hasContentTypeId(); /** * required string ContentTypeId = 4; + * @return The contentTypeId. */ java.lang.String getContentTypeId(); /** * required string ContentTypeId = 4; + * @return The bytes for contentTypeId. */ com.google.protobuf.ByteString getContentTypeIdBytes(); @@ -2017,113 +2212,30 @@ public static final class SignedAttachmentV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SignedAttachmentV3) SignedAttachmentV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SignedAttachmentV3.class.getName()); + } // Use SignedAttachmentV3.newBuilder() to construct. private SignedAttachmentV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SignedAttachmentV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SignedAttachmentV3 defaultInstance; - public static SignedAttachmentV3 getDefaultInstance() { - return defaultInstance; } - - public SignedAttachmentV3 getDefaultInstanceForType() { - return defaultInstance; + private SignedAttachmentV3() { + contentTypeId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignedAttachmentV3( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = attachment_.toBuilder(); - } - attachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attachment_); - attachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = signature_.toBuilder(); - } - signature_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signature_); - signature_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = comment_.toBuilder(); - } - comment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(comment_); - comment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - contentTypeId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignedAttachmentV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignedAttachmentV3_fieldAccessorTable @@ -2131,96 +2243,101 @@ private SignedAttachmentV3( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.class, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SignedAttachmentV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignedAttachmentV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ATTACHMENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment attachment_; /** * required .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return Whether the attachment field is set. */ + @java.lang.Override public boolean hasAttachment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return The attachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment getAttachment() { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance() : attachment_; } /** * required .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.AttachmentOrBuilder getAttachmentOrBuilder() { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance() : attachment_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 signature_; /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return Whether the signature field is set. */ + @java.lang.Override public boolean hasSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return The signature. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getSignature() { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getSignatureOrBuilder() { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } public static final int COMMENT_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity comment_; /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return Whether the comment field is set. */ + @java.lang.Override public boolean hasComment() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return The comment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getComment() { - return comment_; + return comment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : comment_; } /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCommentOrBuilder() { - return comment_; + return comment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : comment_; } public static final int CONTENTTYPEID_FIELD_NUMBER = 4; - private java.lang.Object contentTypeId_; + @SuppressWarnings("serial") + private volatile java.lang.Object contentTypeId_ = ""; /** * required string ContentTypeId = 4; + * @return Whether the contentTypeId field is set. */ + @java.lang.Override public boolean hasContentTypeId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string ContentTypeId = 4; + * @return The contentTypeId. */ + @java.lang.Override public java.lang.String getContentTypeId() { java.lang.Object ref = contentTypeId_; if (ref instanceof java.lang.String) { @@ -2237,7 +2354,9 @@ public java.lang.String getContentTypeId() { } /** * required string ContentTypeId = 4; + * @return The bytes for contentTypeId. */ + @java.lang.Override public com.google.protobuf.ByteString getContentTypeIdBytes() { java.lang.Object ref = contentTypeId_; @@ -2252,13 +2371,8 @@ public java.lang.String getContentTypeId() { } } - private void initFields() { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance(); - signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - comment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - contentTypeId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2292,58 +2406,123 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, attachment_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAttachment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, signature_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSignature()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, comment_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getComment()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getContentTypeIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, contentTypeId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, attachment_); + .computeMessageSize(1, getAttachment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, signature_); + .computeMessageSize(2, getSignature()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, comment_); + .computeMessageSize(3, getComment()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getContentTypeIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, contentTypeId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 other = (Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3) obj; + + if (hasAttachment() != other.hasAttachment()) return false; + if (hasAttachment()) { + if (!getAttachment() + .equals(other.getAttachment())) return false; + } + if (hasSignature() != other.hasSignature()) return false; + if (hasSignature()) { + if (!getSignature() + .equals(other.getSignature())) return false; + } + if (hasComment() != other.hasComment()) return false; + if (hasComment()) { + if (!getComment() + .equals(other.getComment())) return false; + } + if (hasContentTypeId() != other.hasContentTypeId()) return false; + if (hasContentTypeId()) { + if (!getContentTypeId() + .equals(other.getContentTypeId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAttachment()) { + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + } + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + if (hasComment()) { + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + } + if (hasContentTypeId()) { + hash = (37 * hash) + CONTENTTYPEID_FIELD_NUMBER; + hash = (53 * hash) + getContentTypeId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2367,42 +2546,57 @@ public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 par } public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2422,6 +2616,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignedAttachmentV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignedAttachmentV3_fieldAccessorTable @@ -2440,54 +2635,48 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getAttachmentFieldBuilder(); getSignatureFieldBuilder(); getCommentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (attachmentBuilder_ == null) { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance(); - } else { - attachmentBuilder_.clear(); + bitField0_ = 0; + attachment_ = null; + if (attachmentBuilder_ != null) { + attachmentBuilder_.dispose(); + attachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (signatureBuilder_ == null) { - signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - } else { - signatureBuilder_.clear(); + signature_ = null; + if (signatureBuilder_ != null) { + signatureBuilder_.dispose(); + signatureBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (commentBuilder_ == null) { - comment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - commentBuilder_.clear(); + comment_ = null; + if (commentBuilder_ != null) { + commentBuilder_.dispose(); + commentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); contentTypeId_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignedAttachmentV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 build() { Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 result = buildPartial(); if (!result.isInitialized()) { @@ -2496,43 +2685,43 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 buildPartial() { Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 result = new Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attachment_ = attachmentBuilder_ == null + ? attachment_ + : attachmentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (attachmentBuilder_ == null) { - result.attachment_ = attachment_; - } else { - result.attachment_ = attachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.signature_ = signatureBuilder_ == null + ? signature_ + : signatureBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (signatureBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = signatureBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.comment_ = commentBuilder_ == null + ? comment_ + : commentBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (commentBuilder_ == null) { - result.comment_ = comment_; - } else { - result.comment_ = commentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.contentTypeId_ = contentTypeId_; to_bitField0_ |= 0x00000008; } - result.contentTypeId_ = contentTypeId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3)other); @@ -2554,76 +2743,115 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttac mergeComment(other.getComment()); } if (other.hasContentTypeId()) { - bitField0_ |= 0x00000008; contentTypeId_ = other.contentTypeId_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasAttachment()) { - return false; } if (!hasContentTypeId()) { - return false; } if (!getAttachment().isInitialized()) { - return false; } if (hasSignature()) { if (!getSignature().isInitialized()) { - return false; } } if (hasComment()) { if (!getComment().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSignatureFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCommentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + contentTypeId_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment attachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment attachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment, Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.AttachmentOrBuilder> attachmentBuilder_; /** * required .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return Whether the attachment field is set. */ public boolean hasAttachment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; + * @return The attachment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment getAttachment() { if (attachmentBuilder_ == null) { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance() : attachment_; } else { return attachmentBuilder_.getMessage(); } @@ -2637,11 +2865,11 @@ public Builder setAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachmen throw new NullPointerException(); } attachment_ = value; - onChanged(); } else { attachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2651,11 +2879,11 @@ public Builder setAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.Builder builderForValue) { if (attachmentBuilder_ == null) { attachment_ = builderForValue.build(); - onChanged(); } else { attachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2663,31 +2891,33 @@ public Builder setAttachment( */ public Builder mergeAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment value) { if (attachmentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - attachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance()) { - attachment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.newBuilder(attachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + attachment_ != null && + attachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance()) { + getAttachmentBuilder().mergeFrom(value); } else { attachment_ = value; } - onChanged(); } else { attachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (attachment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.Attachment Attachment = 1; */ public Builder clearAttachment() { - if (attachmentBuilder_ == null) { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance(); - onChanged(); - } else { - attachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + attachment_ = null; + if (attachmentBuilder_ != null) { + attachmentBuilder_.dispose(); + attachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -2705,7 +2935,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.AttachmentOrBuilder getAttachme if (attachmentBuilder_ != null) { return attachmentBuilder_.getMessageOrBuilder(); } else { - return attachment_; + return attachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Attachment.getDefaultInstance() : attachment_; } } /** @@ -2725,21 +2956,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.AttachmentOrBuilder getAttachme return attachmentBuilder_; } - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 signature_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder> signatureBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return Whether the signature field is set. */ public boolean hasSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return The signature. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getSignature() { if (signatureBuilder_ == null) { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } else { return signatureBuilder_.getMessage(); } @@ -2753,11 +2986,11 @@ public Builder setSignature(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.Signatur throw new NullPointerException(); } signature_ = value; - onChanged(); } else { signatureBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2767,11 +3000,11 @@ public Builder setSignature( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder builderForValue) { if (signatureBuilder_ == null) { signature_ = builderForValue.build(); - onChanged(); } else { signatureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2779,31 +3012,33 @@ public Builder setSignature( */ public Builder mergeSignature(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 value) { if (signatureBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - signature_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance()) { - signature_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.newBuilder(signature_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + signature_ != null && + signature_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance()) { + getSignatureBuilder().mergeFrom(value); } else { signature_ = value; } - onChanged(); } else { signatureBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (signature_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; */ public Builder clearSignature() { - if (signatureBuilder_ == null) { - signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - onChanged(); - } else { - signatureBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + signature_ = null; + if (signatureBuilder_ != null) { + signatureBuilder_.dispose(); + signatureBuilder_ = null; + } + onChanged(); return this; } /** @@ -2821,7 +3056,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getSigna if (signatureBuilder_ != null) { return signatureBuilder_.getMessageOrBuilder(); } else { - return signature_; + return signature_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } } /** @@ -2841,21 +3077,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getSigna return signatureBuilder_; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity comment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity comment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> commentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return Whether the comment field is set. */ public boolean hasComment() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; + * @return The comment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getComment() { if (commentBuilder_ == null) { - return comment_; + return comment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : comment_; } else { return commentBuilder_.getMessage(); } @@ -2869,11 +3107,11 @@ public Builder setComment(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value throw new NullPointerException(); } comment_ = value; - onChanged(); } else { commentBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2883,11 +3121,11 @@ public Builder setComment( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (commentBuilder_ == null) { comment_ = builderForValue.build(); - onChanged(); } else { commentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2895,31 +3133,33 @@ public Builder setComment( */ public Builder mergeComment(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (commentBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - comment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - comment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(comment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + comment_ != null && + comment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getCommentBuilder().mergeFrom(value); } else { comment_ = value; } - onChanged(); } else { commentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (comment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.Entity Comment = 3; */ public Builder clearComment() { - if (commentBuilder_ == null) { - comment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - commentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + comment_ = null; + if (commentBuilder_ != null) { + commentBuilder_.dispose(); + commentBuilder_ = null; + } + onChanged(); return this; } /** @@ -2937,7 +3177,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCommentOrBui if (commentBuilder_ != null) { return commentBuilder_.getMessageOrBuilder(); } else { - return comment_; + return comment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : comment_; } } /** @@ -2960,12 +3201,14 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getCommentOrBui private java.lang.Object contentTypeId_ = ""; /** * required string ContentTypeId = 4; + * @return Whether the contentTypeId field is set. */ public boolean hasContentTypeId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string ContentTypeId = 4; + * @return The contentTypeId. */ public java.lang.String getContentTypeId() { java.lang.Object ref = contentTypeId_; @@ -2983,6 +3226,7 @@ public java.lang.String getContentTypeId() { } /** * required string ContentTypeId = 4; + * @return The bytes for contentTypeId. */ public com.google.protobuf.ByteString getContentTypeIdBytes() { @@ -2999,36 +3243,37 @@ public java.lang.String getContentTypeId() { } /** * required string ContentTypeId = 4; + * @param value The contentTypeId to set. + * @return This builder for chaining. */ public Builder setContentTypeId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } contentTypeId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required string ContentTypeId = 4; + * @return This builder for chaining. */ public Builder clearContentTypeId() { - bitField0_ = (bitField0_ & ~0x00000008); contentTypeId_ = getDefaultInstance().getContentTypeId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * required string ContentTypeId = 4; + * @param value The bytes for contentTypeId to set. + * @return This builder for chaining. */ public Builder setContentTypeIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } contentTypeId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3036,22 +3281,62 @@ public Builder setContentTypeIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SignedAttachmentV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignedAttachmentV3) + private static final Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 DEFAULT_INSTANCE; static { - defaultInstance = new SignedAttachmentV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3(); + } + + public static Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignedAttachmentV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignedAttachmentV3) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SignatureV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SignatureV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SignedAttachmentV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SignedAttachmentV3_fieldAccessorTable; @@ -3059,7 +3344,7 @@ public Builder setContentTypeIdBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -3072,7 +3357,7 @@ public Builder setContentTypeIdBytes( "ignatureV3\022-\n\003Cms\030\001 \002(\0132 .Diadoc.Api.Pro" + "to.Docflow.Entity\0220\n\006CadesT\030\002 \001(\0132 .Diad" + "oc.Api.Proto.Docflow.Entity\022\023\n\013SignerBox" + - "Id\030\003 \002(\t\022\032\n\022SignerDepartmentId\030\004 \002(\t\022\017\n\007", + "Id\030\003 \002(\t\022\032\n\022SignerDepartmentId\030\004 \002(\t\022\017\n\007" + "IsValid\030\005 \002(\010\022I\n\022VerificationResult\030\006 \001(" + "\0132-.Diadoc.Api.Proto.SignatureVerificati" + "onResult\0220\n\013DeliveredAt\030\007 \001(\0132\033.Diadoc.A" + @@ -3082,21 +3367,13 @@ public Builder setContentTypeIdBytes( "mentStatus\030\t \001(\01329.Diadoc.Api.Proto.Docf" + "low.PowerOfAttorneyAttachmentStatus\"\322\001\n\022" + "SignedAttachmentV3\0228\n\nAttachment\030\001 \002(\0132$" + - ".Diadoc.Api.Proto.Docflow.Attachment\0228\n\t", + ".Diadoc.Api.Proto.Docflow.Attachment\0228\n\t" + "Signature\030\002 \001(\0132%.Diadoc.Api.Proto.Docfl" + "ow.SignatureV3\0221\n\007Comment\030\003 \001(\0132 .Diadoc" + ".Api.Proto.Docflow.Entity\022\025\n\rContentType" + "Id\030\004 \002(\tB\024B\022AttachmentV3Protos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), @@ -3105,7 +3382,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( Diadoc.Api.Proto.SignatureVerificationResultProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_SignatureV3_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_SignatureV3_fieldAccessorTable = new @@ -3118,6 +3395,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_SignedAttachmentV3_descriptor, new java.lang.String[] { "Attachment", "Signature", "Comment", "ContentTypeId", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); Diadoc.Api.Proto.ContentProtos.getDescriptor(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/BilateralDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/BilateralDocflowProtos.java index 84bdf7c2..d06d6f68 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/BilateralDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/BilateralDocflowProtos.java @@ -1,32 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/BilateralDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class BilateralDocflowProtos { private BilateralDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BilateralDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface BilateralDocflowOrBuilder extends + @java.lang.Deprecated public interface BilateralDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.BilateralDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ boolean hasReceiptDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow(); /** @@ -36,10 +57,12 @@ public interface BilateralDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return Whether the recipientSignatureDocflow field is set. */ boolean hasRecipientSignatureDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return The recipientSignatureDocflow. */ Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow getRecipientSignatureDocflow(); /** @@ -49,10 +72,12 @@ public interface BilateralDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ boolean hasRecipientSignatureRejectionDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return The recipientSignatureRejectionDocflow. */ Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow(); /** @@ -62,215 +87,111 @@ public interface BilateralDocflowOrBuilder extends /** * optional bool IsReceiptRequested = 5; + * @return Whether the isReceiptRequested field is set. */ boolean hasIsReceiptRequested(); /** * optional bool IsReceiptRequested = 5; + * @return The isReceiptRequested. */ boolean getIsReceiptRequested(); /** * optional bool IsRecipientSignatureRequested = 6; + * @return Whether the isRecipientSignatureRequested field is set. */ boolean hasIsRecipientSignatureRequested(); /** * optional bool IsRecipientSignatureRequested = 6; + * @return The isRecipientSignatureRequested. */ boolean getIsRecipientSignatureRequested(); /** * optional bool IsDocumentSignedByRecipient = 7; + * @return Whether the isDocumentSignedByRecipient field is set. */ boolean hasIsDocumentSignedByRecipient(); /** * optional bool IsDocumentSignedByRecipient = 7; + * @return The isDocumentSignedByRecipient. */ boolean getIsDocumentSignedByRecipient(); /** * optional bool IsDocumentRejectedByRecipient = 8; + * @return Whether the isDocumentRejectedByRecipient field is set. */ boolean hasIsDocumentRejectedByRecipient(); /** * optional bool IsDocumentRejectedByRecipient = 8; + * @return The isDocumentRejectedByRecipient. */ boolean getIsDocumentRejectedByRecipient(); /** * optional bool CanDocumentBeReceipted = 9; + * @return Whether the canDocumentBeReceipted field is set. */ boolean hasCanDocumentBeReceipted(); /** * optional bool CanDocumentBeReceipted = 9; + * @return The canDocumentBeReceipted. */ boolean getCanDocumentBeReceipted(); /** * optional bool CanDocumentBeSignedBySender = 10; + * @return Whether the canDocumentBeSignedBySender field is set. */ boolean hasCanDocumentBeSignedBySender(); /** * optional bool CanDocumentBeSignedBySender = 10; + * @return The canDocumentBeSignedBySender. */ boolean getCanDocumentBeSignedBySender(); /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 11; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ boolean hasCanDocumentBeSignedOrRejectedByRecipient(); /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 11; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ boolean getCanDocumentBeSignedOrRejectedByRecipient(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.BilateralDocflow} */ - public static final class BilateralDocflow extends + @java.lang.Deprecated public static final class BilateralDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.BilateralDocflow) BilateralDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BilateralDocflow.class.getName()); + } // Use BilateralDocflow.newBuilder() to construct. private BilateralDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private BilateralDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final BilateralDocflow defaultInstance; - public static BilateralDocflow getDefaultInstance() { - return defaultInstance; + private BilateralDocflow() { } - public BilateralDocflow getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BilateralDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = receiptDocflow_.toBuilder(); - } - receiptDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptDocflow_); - receiptDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = recipientSignatureDocflow_.toBuilder(); - } - recipientSignatureDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientSignatureDocflow_); - recipientSignatureDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = recipientSignatureRejectionDocflow_.toBuilder(); - } - recipientSignatureRejectionDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientSignatureRejectionDocflow_); - recipientSignatureRejectionDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 40: { - bitField0_ |= 0x00000010; - isReceiptRequested_ = input.readBool(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - isRecipientSignatureRequested_ = input.readBool(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - isDocumentSignedByRecipient_ = input.readBool(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - isDocumentRejectedByRecipient_ = input.readBool(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - canDocumentBeReceipted_ = input.readBool(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - canDocumentBeSignedBySender_ = input.readBool(); - break; - } - case 88: { - bitField0_ |= 0x00000400; - canDocumentBeSignedOrRejectedByRecipient_ = input.readBool(); - 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.Docflow.BilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_BilateralDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_BilateralDocflow_fieldAccessorTable @@ -278,33 +199,22 @@ private BilateralDocflow( Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.class, Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BilateralDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BilateralDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -313,184 +223,215 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ + @java.lang.Override public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder getReceiptDocflowOrBuilder() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } public static final int RECIPIENTSIGNATUREDOCFLOW_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow recipientSignatureDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return Whether the recipientSignatureDocflow field is set. */ + @java.lang.Override public boolean hasRecipientSignatureDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return The recipientSignatureDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow getRecipientSignatureDocflow() { - return recipientSignatureDocflow_; + return recipientSignatureDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance() : recipientSignatureDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflowOrBuilder getRecipientSignatureDocflowOrBuilder() { - return recipientSignatureDocflow_; + return recipientSignatureDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance() : recipientSignatureDocflow_; } public static final int RECIPIENTSIGNATUREREJECTIONDOCFLOW_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ + @java.lang.Override public boolean hasRecipientSignatureRejectionDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return The recipientSignatureRejectionDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow() { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflowOrBuilder getRecipientSignatureRejectionDocflowOrBuilder() { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } public static final int ISRECEIPTREQUESTED_FIELD_NUMBER = 5; - private boolean isReceiptRequested_; + private boolean isReceiptRequested_ = false; /** * optional bool IsReceiptRequested = 5; + * @return Whether the isReceiptRequested field is set. */ + @java.lang.Override public boolean hasIsReceiptRequested() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool IsReceiptRequested = 5; + * @return The isReceiptRequested. */ + @java.lang.Override public boolean getIsReceiptRequested() { return isReceiptRequested_; } public static final int ISRECIPIENTSIGNATUREREQUESTED_FIELD_NUMBER = 6; - private boolean isRecipientSignatureRequested_; + private boolean isRecipientSignatureRequested_ = false; /** * optional bool IsRecipientSignatureRequested = 6; + * @return Whether the isRecipientSignatureRequested field is set. */ + @java.lang.Override public boolean hasIsRecipientSignatureRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsRecipientSignatureRequested = 6; + * @return The isRecipientSignatureRequested. */ + @java.lang.Override public boolean getIsRecipientSignatureRequested() { return isRecipientSignatureRequested_; } public static final int ISDOCUMENTSIGNEDBYRECIPIENT_FIELD_NUMBER = 7; - private boolean isDocumentSignedByRecipient_; + private boolean isDocumentSignedByRecipient_ = false; /** * optional bool IsDocumentSignedByRecipient = 7; + * @return Whether the isDocumentSignedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentSignedByRecipient() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsDocumentSignedByRecipient = 7; + * @return The isDocumentSignedByRecipient. */ + @java.lang.Override public boolean getIsDocumentSignedByRecipient() { return isDocumentSignedByRecipient_; } public static final int ISDOCUMENTREJECTEDBYRECIPIENT_FIELD_NUMBER = 8; - private boolean isDocumentRejectedByRecipient_; + private boolean isDocumentRejectedByRecipient_ = false; /** * optional bool IsDocumentRejectedByRecipient = 8; + * @return Whether the isDocumentRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentRejectedByRecipient() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsDocumentRejectedByRecipient = 8; + * @return The isDocumentRejectedByRecipient. */ + @java.lang.Override public boolean getIsDocumentRejectedByRecipient() { return isDocumentRejectedByRecipient_; } public static final int CANDOCUMENTBERECEIPTED_FIELD_NUMBER = 9; - private boolean canDocumentBeReceipted_; + private boolean canDocumentBeReceipted_ = false; /** * optional bool CanDocumentBeReceipted = 9; + * @return Whether the canDocumentBeReceipted field is set. */ + @java.lang.Override public boolean hasCanDocumentBeReceipted() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional bool CanDocumentBeReceipted = 9; + * @return The canDocumentBeReceipted. */ + @java.lang.Override public boolean getCanDocumentBeReceipted() { return canDocumentBeReceipted_; } public static final int CANDOCUMENTBESIGNEDBYSENDER_FIELD_NUMBER = 10; - private boolean canDocumentBeSignedBySender_; + private boolean canDocumentBeSignedBySender_ = false; /** * optional bool CanDocumentBeSignedBySender = 10; + * @return Whether the canDocumentBeSignedBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedBySender() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional bool CanDocumentBeSignedBySender = 10; + * @return The canDocumentBeSignedBySender. */ + @java.lang.Override public boolean getCanDocumentBeSignedBySender() { return canDocumentBeSignedBySender_; } public static final int CANDOCUMENTBESIGNEDORREJECTEDBYRECIPIENT_FIELD_NUMBER = 11; - private boolean canDocumentBeSignedOrRejectedByRecipient_; + private boolean canDocumentBeSignedOrRejectedByRecipient_ = false; /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 11; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedOrRejectedByRecipient() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 11; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ + @java.lang.Override public boolean getCanDocumentBeSignedOrRejectedByRecipient() { return canDocumentBeSignedOrRejectedByRecipient_; } - private void initFields() { - isFinished_ = false; - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - recipientSignatureDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance(); - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - isReceiptRequested_ = false; - isRecipientSignatureRequested_ = false; - isDocumentSignedByRecipient_ = false; - isDocumentRejectedByRecipient_ = false; - canDocumentBeReceipted_ = false; - canDocumentBeSignedBySender_ = false; - canDocumentBeSignedOrRejectedByRecipient_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -518,107 +459,244 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, receiptDocflow_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, recipientSignatureDocflow_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getRecipientSignatureDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, recipientSignatureRejectionDocflow_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getRecipientSignatureRejectionDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, isReceiptRequested_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, isRecipientSignatureRequested_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, isDocumentSignedByRecipient_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(8, isDocumentRejectedByRecipient_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(9, canDocumentBeReceipted_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(10, canDocumentBeSignedBySender_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeBool(11, canDocumentBeSignedOrRejectedByRecipient_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receiptDocflow_); + .computeMessageSize(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, recipientSignatureDocflow_); + .computeMessageSize(3, getRecipientSignatureDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, recipientSignatureRejectionDocflow_); + .computeMessageSize(4, getRecipientSignatureRejectionDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isReceiptRequested_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, isRecipientSignatureRequested_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isDocumentSignedByRecipient_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, isDocumentRejectedByRecipient_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, canDocumentBeReceipted_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, canDocumentBeSignedBySender_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, canDocumentBeSignedOrRejectedByRecipient_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow other = (Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasReceiptDocflow() != other.hasReceiptDocflow()) return false; + if (hasReceiptDocflow()) { + if (!getReceiptDocflow() + .equals(other.getReceiptDocflow())) return false; + } + if (hasRecipientSignatureDocflow() != other.hasRecipientSignatureDocflow()) return false; + if (hasRecipientSignatureDocflow()) { + if (!getRecipientSignatureDocflow() + .equals(other.getRecipientSignatureDocflow())) return false; + } + if (hasRecipientSignatureRejectionDocflow() != other.hasRecipientSignatureRejectionDocflow()) return false; + if (hasRecipientSignatureRejectionDocflow()) { + if (!getRecipientSignatureRejectionDocflow() + .equals(other.getRecipientSignatureRejectionDocflow())) return false; + } + if (hasIsReceiptRequested() != other.hasIsReceiptRequested()) return false; + if (hasIsReceiptRequested()) { + if (getIsReceiptRequested() + != other.getIsReceiptRequested()) return false; + } + if (hasIsRecipientSignatureRequested() != other.hasIsRecipientSignatureRequested()) return false; + if (hasIsRecipientSignatureRequested()) { + if (getIsRecipientSignatureRequested() + != other.getIsRecipientSignatureRequested()) return false; + } + if (hasIsDocumentSignedByRecipient() != other.hasIsDocumentSignedByRecipient()) return false; + if (hasIsDocumentSignedByRecipient()) { + if (getIsDocumentSignedByRecipient() + != other.getIsDocumentSignedByRecipient()) return false; + } + if (hasIsDocumentRejectedByRecipient() != other.hasIsDocumentRejectedByRecipient()) return false; + if (hasIsDocumentRejectedByRecipient()) { + if (getIsDocumentRejectedByRecipient() + != other.getIsDocumentRejectedByRecipient()) return false; + } + if (hasCanDocumentBeReceipted() != other.hasCanDocumentBeReceipted()) return false; + if (hasCanDocumentBeReceipted()) { + if (getCanDocumentBeReceipted() + != other.getCanDocumentBeReceipted()) return false; + } + if (hasCanDocumentBeSignedBySender() != other.hasCanDocumentBeSignedBySender()) return false; + if (hasCanDocumentBeSignedBySender()) { + if (getCanDocumentBeSignedBySender() + != other.getCanDocumentBeSignedBySender()) return false; + } + if (hasCanDocumentBeSignedOrRejectedByRecipient() != other.hasCanDocumentBeSignedOrRejectedByRecipient()) return false; + if (hasCanDocumentBeSignedOrRejectedByRecipient()) { + if (getCanDocumentBeSignedOrRejectedByRecipient() + != other.getCanDocumentBeSignedOrRejectedByRecipient()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasReceiptDocflow()) { + hash = (37 * hash) + RECEIPTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getReceiptDocflow().hashCode(); + } + if (hasRecipientSignatureDocflow()) { + hash = (37 * hash) + RECIPIENTSIGNATUREDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getRecipientSignatureDocflow().hashCode(); + } + if (hasRecipientSignatureRejectionDocflow()) { + hash = (37 * hash) + RECIPIENTSIGNATUREREJECTIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getRecipientSignatureRejectionDocflow().hashCode(); + } + if (hasIsReceiptRequested()) { + hash = (37 * hash) + ISRECEIPTREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsReceiptRequested()); + } + if (hasIsRecipientSignatureRequested()) { + hash = (37 * hash) + ISRECIPIENTSIGNATUREREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRecipientSignatureRequested()); + } + if (hasIsDocumentSignedByRecipient()) { + hash = (37 * hash) + ISDOCUMENTSIGNEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDocumentSignedByRecipient()); + } + if (hasIsDocumentRejectedByRecipient()) { + hash = (37 * hash) + ISDOCUMENTREJECTEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDocumentRejectedByRecipient()); + } + if (hasCanDocumentBeReceipted()) { + hash = (37 * hash) + CANDOCUMENTBERECEIPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeReceipted()); + } + if (hasCanDocumentBeSignedBySender()) { + hash = (37 * hash) + CANDOCUMENTBESIGNEDBYSENDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeSignedBySender()); + } + if (hasCanDocumentBeSignedOrRejectedByRecipient()) { + hash = (37 * hash) + CANDOCUMENTBESIGNEDORREJECTEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeSignedOrRejectedByRecipient()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -642,42 +720,57 @@ public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow p } public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -697,6 +790,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_BilateralDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_BilateralDocflow_fieldAccessorTable @@ -715,68 +809,55 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getReceiptDocflowFieldBuilder(); getRecipientSignatureDocflowFieldBuilder(); getRecipientSignatureRejectionDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - } else { - receiptDocflowBuilder_.clear(); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (recipientSignatureDocflowBuilder_ == null) { - recipientSignatureDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance(); - } else { - recipientSignatureDocflowBuilder_.clear(); + recipientSignatureDocflow_ = null; + if (recipientSignatureDocflowBuilder_ != null) { + recipientSignatureDocflowBuilder_.dispose(); + recipientSignatureDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (recipientSignatureRejectionDocflowBuilder_ == null) { - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - } else { - recipientSignatureRejectionDocflowBuilder_.clear(); + recipientSignatureRejectionDocflow_ = null; + if (recipientSignatureRejectionDocflowBuilder_ != null) { + recipientSignatureRejectionDocflowBuilder_.dispose(); + recipientSignatureRejectionDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); isReceiptRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000010); isRecipientSignatureRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000020); isDocumentSignedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00000040); isDocumentRejectedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00000080); canDocumentBeReceipted_ = false; - bitField0_ = (bitField0_ & ~0x00000100); canDocumentBeSignedBySender_ = false; - bitField0_ = (bitField0_ & ~0x00000200); canDocumentBeSignedOrRejectedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00000400); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_BilateralDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow build() { Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -785,71 +866,71 @@ public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow buildPartial() { Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow result = new Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptDocflow_ = receiptDocflowBuilder_ == null + ? receiptDocflow_ + : receiptDocflowBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (receiptDocflowBuilder_ == null) { - result.receiptDocflow_ = receiptDocflow_; - } else { - result.receiptDocflow_ = receiptDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.recipientSignatureDocflow_ = recipientSignatureDocflowBuilder_ == null + ? recipientSignatureDocflow_ + : recipientSignatureDocflowBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (recipientSignatureDocflowBuilder_ == null) { - result.recipientSignatureDocflow_ = recipientSignatureDocflow_; - } else { - result.recipientSignatureDocflow_ = recipientSignatureDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflowBuilder_ == null + ? recipientSignatureRejectionDocflow_ + : recipientSignatureRejectionDocflowBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (recipientSignatureRejectionDocflowBuilder_ == null) { - result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflow_; - } else { - result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isReceiptRequested_ = isReceiptRequested_; to_bitField0_ |= 0x00000010; } - result.isReceiptRequested_ = isReceiptRequested_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isRecipientSignatureRequested_ = isRecipientSignatureRequested_; to_bitField0_ |= 0x00000020; } - result.isRecipientSignatureRequested_ = isRecipientSignatureRequested_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isDocumentSignedByRecipient_ = isDocumentSignedByRecipient_; to_bitField0_ |= 0x00000040; } - result.isDocumentSignedByRecipient_ = isDocumentSignedByRecipient_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.isDocumentRejectedByRecipient_ = isDocumentRejectedByRecipient_; to_bitField0_ |= 0x00000080; } - result.isDocumentRejectedByRecipient_ = isDocumentRejectedByRecipient_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.canDocumentBeReceipted_ = canDocumentBeReceipted_; to_bitField0_ |= 0x00000100; } - result.canDocumentBeReceipted_ = canDocumentBeReceipted_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.canDocumentBeSignedBySender_ = canDocumentBeSignedBySender_; to_bitField0_ |= 0x00000200; } - result.canDocumentBeSignedBySender_ = canDocumentBeSignedBySender_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.canDocumentBeSignedOrRejectedByRecipient_ = canDocumentBeSignedOrRejectedByRecipient_; to_bitField0_ |= 0x00000400; } - result.canDocumentBeSignedOrRejectedByRecipient_ = canDocumentBeSignedOrRejectedByRecipient_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow)other); @@ -895,46 +976,120 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.Bilater setCanDocumentBeSignedOrRejectedByRecipient(other.getCanDocumentBeSignedOrRejectedByRecipient()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasReceiptDocflow()) { if (!getReceiptDocflow().isInitialized()) { - return false; } } if (hasRecipientSignatureDocflow()) { if (!getRecipientSignatureDocflow().isInitialized()) { - return false; } } if (hasRecipientSignatureRejectionDocflow()) { if (!getRecipientSignatureRejectionDocflow().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getReceiptDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRecipientSignatureDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getRecipientSignatureRejectionDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + isReceiptRequested_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + isRecipientSignatureRequested_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + isDocumentSignedByRecipient_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + isDocumentRejectedByRecipient_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + canDocumentBeReceipted_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + canDocumentBeSignedBySender_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: { + canDocumentBeSignedOrRejectedByRecipient_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -942,27 +1097,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -971,21 +1134,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder> receiptDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { if (receiptDocflowBuilder_ == null) { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } else { return receiptDocflowBuilder_.getMessage(); } @@ -999,11 +1164,11 @@ public Builder setReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.R throw new NullPointerException(); } receiptDocflow_ = value; - onChanged(); } else { receiptDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1013,11 +1178,11 @@ public Builder setReceiptDocflow( Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder builderForValue) { if (receiptDocflowBuilder_ == null) { receiptDocflow_ = builderForValue.build(); - onChanged(); } else { receiptDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1025,31 +1190,33 @@ public Builder setReceiptDocflow( */ public Builder mergeReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow value) { if (receiptDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { - receiptDocflow_ = - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.newBuilder(receiptDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + receiptDocflow_ != null && + receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { + getReceiptDocflowBuilder().mergeFrom(value); } else { receiptDocflow_ = value; } - onChanged(); } else { receiptDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (receiptDocflow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; */ public Builder clearReceiptDocflow() { - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - onChanged(); - } else { - receiptDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1067,7 +1234,8 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get if (receiptDocflowBuilder_ != null) { return receiptDocflowBuilder_.getMessageOrBuilder(); } else { - return receiptDocflow_; + return receiptDocflow_ == null ? + Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } } /** @@ -1087,21 +1255,23 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get return receiptDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow recipientSignatureDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow recipientSignatureDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow, Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.Builder, Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflowOrBuilder> recipientSignatureDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return Whether the recipientSignatureDocflow field is set. */ public boolean hasRecipientSignatureDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return The recipientSignatureDocflow. */ public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow getRecipientSignatureDocflow() { if (recipientSignatureDocflowBuilder_ == null) { - return recipientSignatureDocflow_; + return recipientSignatureDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance() : recipientSignatureDocflow_; } else { return recipientSignatureDocflowBuilder_.getMessage(); } @@ -1115,11 +1285,11 @@ public Builder setRecipientSignatureDocflow(Diadoc.Api.Proto.Docflow.RecipientSi throw new NullPointerException(); } recipientSignatureDocflow_ = value; - onChanged(); } else { recipientSignatureDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1129,11 +1299,11 @@ public Builder setRecipientSignatureDocflow( Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.Builder builderForValue) { if (recipientSignatureDocflowBuilder_ == null) { recipientSignatureDocflow_ = builderForValue.build(); - onChanged(); } else { recipientSignatureDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1141,31 +1311,33 @@ public Builder setRecipientSignatureDocflow( */ public Builder mergeRecipientSignatureDocflow(Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow value) { if (recipientSignatureDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - recipientSignatureDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance()) { - recipientSignatureDocflow_ = - Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.newBuilder(recipientSignatureDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + recipientSignatureDocflow_ != null && + recipientSignatureDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance()) { + getRecipientSignatureDocflowBuilder().mergeFrom(value); } else { recipientSignatureDocflow_ = value; } - onChanged(); } else { recipientSignatureDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (recipientSignatureDocflow_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; */ public Builder clearRecipientSignatureDocflow() { - if (recipientSignatureDocflowBuilder_ == null) { - recipientSignatureDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance(); - onChanged(); - } else { - recipientSignatureDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + recipientSignatureDocflow_ = null; + if (recipientSignatureDocflowBuilder_ != null) { + recipientSignatureDocflowBuilder_.dispose(); + recipientSignatureDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1183,7 +1355,8 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatu if (recipientSignatureDocflowBuilder_ != null) { return recipientSignatureDocflowBuilder_.getMessageOrBuilder(); } else { - return recipientSignatureDocflow_; + return recipientSignatureDocflow_ == null ? + Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance() : recipientSignatureDocflow_; } } /** @@ -1203,21 +1376,23 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatu return recipientSignatureDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflowOrBuilder> recipientSignatureRejectionDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ public boolean hasRecipientSignatureRejectionDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return The recipientSignatureRejectionDocflow. */ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow() { if (recipientSignatureRejectionDocflowBuilder_ == null) { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } else { return recipientSignatureRejectionDocflowBuilder_.getMessage(); } @@ -1231,11 +1406,11 @@ public Builder setRecipientSignatureRejectionDocflow(Diadoc.Api.Proto.Docflow.Re throw new NullPointerException(); } recipientSignatureRejectionDocflow_ = value; - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1245,11 +1420,11 @@ public Builder setRecipientSignatureRejectionDocflow( Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder builderForValue) { if (recipientSignatureRejectionDocflowBuilder_ == null) { recipientSignatureRejectionDocflow_ = builderForValue.build(); - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1257,31 +1432,33 @@ public Builder setRecipientSignatureRejectionDocflow( */ public Builder mergeRecipientSignatureRejectionDocflow(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow value) { if (recipientSignatureRejectionDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - recipientSignatureRejectionDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance()) { - recipientSignatureRejectionDocflow_ = - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.newBuilder(recipientSignatureRejectionDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + recipientSignatureRejectionDocflow_ != null && + recipientSignatureRejectionDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance()) { + getRecipientSignatureRejectionDocflowBuilder().mergeFrom(value); } else { recipientSignatureRejectionDocflow_ = value; } - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (recipientSignatureRejectionDocflow_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; */ public Builder clearRecipientSignatureRejectionDocflow() { - if (recipientSignatureRejectionDocflowBuilder_ == null) { - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - onChanged(); - } else { - recipientSignatureRejectionDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + recipientSignatureRejectionDocflow_ = null; + if (recipientSignatureRejectionDocflowBuilder_ != null) { + recipientSignatureRejectionDocflowBuilder_.dispose(); + recipientSignatureRejectionDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1299,7 +1476,8 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie if (recipientSignatureRejectionDocflowBuilder_ != null) { return recipientSignatureRejectionDocflowBuilder_.getMessageOrBuilder(); } else { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? + Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } } /** @@ -1322,27 +1500,35 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie private boolean isReceiptRequested_ ; /** * optional bool IsReceiptRequested = 5; + * @return Whether the isReceiptRequested field is set. */ + @java.lang.Override public boolean hasIsReceiptRequested() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool IsReceiptRequested = 5; + * @return The isReceiptRequested. */ + @java.lang.Override public boolean getIsReceiptRequested() { return isReceiptRequested_; } /** * optional bool IsReceiptRequested = 5; + * @param value The isReceiptRequested to set. + * @return This builder for chaining. */ public Builder setIsReceiptRequested(boolean value) { - bitField0_ |= 0x00000010; + isReceiptRequested_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional bool IsReceiptRequested = 5; + * @return This builder for chaining. */ public Builder clearIsReceiptRequested() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1354,27 +1540,35 @@ public Builder clearIsReceiptRequested() { private boolean isRecipientSignatureRequested_ ; /** * optional bool IsRecipientSignatureRequested = 6; + * @return Whether the isRecipientSignatureRequested field is set. */ + @java.lang.Override public boolean hasIsRecipientSignatureRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsRecipientSignatureRequested = 6; + * @return The isRecipientSignatureRequested. */ + @java.lang.Override public boolean getIsRecipientSignatureRequested() { return isRecipientSignatureRequested_; } /** * optional bool IsRecipientSignatureRequested = 6; + * @param value The isRecipientSignatureRequested to set. + * @return This builder for chaining. */ public Builder setIsRecipientSignatureRequested(boolean value) { - bitField0_ |= 0x00000020; + isRecipientSignatureRequested_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional bool IsRecipientSignatureRequested = 6; + * @return This builder for chaining. */ public Builder clearIsRecipientSignatureRequested() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1386,27 +1580,35 @@ public Builder clearIsRecipientSignatureRequested() { private boolean isDocumentSignedByRecipient_ ; /** * optional bool IsDocumentSignedByRecipient = 7; + * @return Whether the isDocumentSignedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentSignedByRecipient() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsDocumentSignedByRecipient = 7; + * @return The isDocumentSignedByRecipient. */ + @java.lang.Override public boolean getIsDocumentSignedByRecipient() { return isDocumentSignedByRecipient_; } /** * optional bool IsDocumentSignedByRecipient = 7; + * @param value The isDocumentSignedByRecipient to set. + * @return This builder for chaining. */ public Builder setIsDocumentSignedByRecipient(boolean value) { - bitField0_ |= 0x00000040; + isDocumentSignedByRecipient_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional bool IsDocumentSignedByRecipient = 7; + * @return This builder for chaining. */ public Builder clearIsDocumentSignedByRecipient() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1418,27 +1620,35 @@ public Builder clearIsDocumentSignedByRecipient() { private boolean isDocumentRejectedByRecipient_ ; /** * optional bool IsDocumentRejectedByRecipient = 8; + * @return Whether the isDocumentRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentRejectedByRecipient() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsDocumentRejectedByRecipient = 8; + * @return The isDocumentRejectedByRecipient. */ + @java.lang.Override public boolean getIsDocumentRejectedByRecipient() { return isDocumentRejectedByRecipient_; } /** * optional bool IsDocumentRejectedByRecipient = 8; + * @param value The isDocumentRejectedByRecipient to set. + * @return This builder for chaining. */ public Builder setIsDocumentRejectedByRecipient(boolean value) { - bitField0_ |= 0x00000080; + isDocumentRejectedByRecipient_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional bool IsDocumentRejectedByRecipient = 8; + * @return This builder for chaining. */ public Builder clearIsDocumentRejectedByRecipient() { bitField0_ = (bitField0_ & ~0x00000080); @@ -1450,27 +1660,35 @@ public Builder clearIsDocumentRejectedByRecipient() { private boolean canDocumentBeReceipted_ ; /** * optional bool CanDocumentBeReceipted = 9; + * @return Whether the canDocumentBeReceipted field is set. */ + @java.lang.Override public boolean hasCanDocumentBeReceipted() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional bool CanDocumentBeReceipted = 9; + * @return The canDocumentBeReceipted. */ + @java.lang.Override public boolean getCanDocumentBeReceipted() { return canDocumentBeReceipted_; } /** * optional bool CanDocumentBeReceipted = 9; + * @param value The canDocumentBeReceipted to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeReceipted(boolean value) { - bitField0_ |= 0x00000100; + canDocumentBeReceipted_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional bool CanDocumentBeReceipted = 9; + * @return This builder for chaining. */ public Builder clearCanDocumentBeReceipted() { bitField0_ = (bitField0_ & ~0x00000100); @@ -1482,27 +1700,35 @@ public Builder clearCanDocumentBeReceipted() { private boolean canDocumentBeSignedBySender_ ; /** * optional bool CanDocumentBeSignedBySender = 10; + * @return Whether the canDocumentBeSignedBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedBySender() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional bool CanDocumentBeSignedBySender = 10; + * @return The canDocumentBeSignedBySender. */ + @java.lang.Override public boolean getCanDocumentBeSignedBySender() { return canDocumentBeSignedBySender_; } /** * optional bool CanDocumentBeSignedBySender = 10; + * @param value The canDocumentBeSignedBySender to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeSignedBySender(boolean value) { - bitField0_ |= 0x00000200; + canDocumentBeSignedBySender_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional bool CanDocumentBeSignedBySender = 10; + * @return This builder for chaining. */ public Builder clearCanDocumentBeSignedBySender() { bitField0_ = (bitField0_ & ~0x00000200); @@ -1514,27 +1740,35 @@ public Builder clearCanDocumentBeSignedBySender() { private boolean canDocumentBeSignedOrRejectedByRecipient_ ; /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 11; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedOrRejectedByRecipient() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 11; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ + @java.lang.Override public boolean getCanDocumentBeSignedOrRejectedByRecipient() { return canDocumentBeSignedOrRejectedByRecipient_; } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 11; + * @param value The canDocumentBeSignedOrRejectedByRecipient to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeSignedOrRejectedByRecipient(boolean value) { - bitField0_ |= 0x00000400; + canDocumentBeSignedOrRejectedByRecipient_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 11; + * @return This builder for chaining. */ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { bitField0_ = (bitField0_ & ~0x00000400); @@ -1546,17 +1780,57 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.BilateralDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.BilateralDocflow) + private static final Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow DEFAULT_INSTANCE; static { - defaultInstance = new BilateralDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BilateralDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.BilateralDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_BilateralDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_BilateralDocflow_fieldAccessorTable; @@ -1564,7 +1838,7 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1572,12 +1846,12 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { ".Api.Proto.Docflow\032\034Docflow/ReceiptDocfl" + "ow.proto\032\'Docflow/RecipientSignatureDocf" + "low.proto\0320Docflow/RecipientSignatureRej" + - "ectionDocflow.proto\"\260\004\n\020BilateralDocflow" + + "ectionDocflow.proto\"\264\004\n\020BilateralDocflow" + "\022\022\n\nIsFinished\030\001 \001(\010\022@\n\016ReceiptDocflow\030\002" + " \001(\0132(.Diadoc.Api.Proto.Docflow.ReceiptD" + "ocflow\022V\n\031RecipientSignatureDocflow\030\003 \001(" + "\01323.Diadoc.Api.Proto.Docflow.RecipientSi" + - "gnatureDocflow\022h\n\"RecipientSignatureReje", + "gnatureDocflow\022h\n\"RecipientSignatureReje" + "ctionDocflow\030\004 \001(\0132<.Diadoc.Api.Proto.Do" + "cflow.RecipientSignatureRejectionDocflow" + "\022\032\n\022IsReceiptRequested\030\005 \001(\010\022%\n\035IsRecipi" + @@ -1586,30 +1860,23 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { "jectedByRecipient\030\010 \001(\010\022\036\n\026CanDocumentBe" + "Receipted\030\t \001(\010\022#\n\033CanDocumentBeSignedBy" + "Sender\030\n \001(\010\0220\n(CanDocumentBeSignedOrRej" + - "ectedByRecipient\030\013 \001(\010B\030B\026BilateralDocfl" + - "owProtos" + "ectedByRecipient\030\013 \001(\010:\002\030\001B\030B\026BilateralD" + + "ocflowProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_BilateralDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_BilateralDocflow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_BilateralDocflow_descriptor, new java.lang.String[] { "IsFinished", "ReceiptDocflow", "RecipientSignatureDocflow", "RecipientSignatureRejectionDocflow", "IsReceiptRequested", "IsRecipientSignatureRequested", "IsDocumentSignedByRecipient", "IsDocumentRejectedByRecipient", "CanDocumentBeReceipted", "CanDocumentBeSignedBySender", "CanDocumentBeSignedOrRejectedByRecipient", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/DocflowApiProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/DocflowApiProtos.java index fcb69339..94e8c330 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/DocflowApiProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/DocflowApiProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/DocflowApi.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class DocflowApiProtos { private DocflowApiProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowApiProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Docflow.SearchScope} @@ -16,25 +33,34 @@ public enum SearchScope /** * SearchScopeAny = 0; */ - SearchScopeAny(0, 0), + SearchScopeAny(0), /** * SearchScopeIncoming = 1; */ - SearchScopeIncoming(1, 1), + SearchScopeIncoming(1), /** * SearchScopeOutgoing = 2; */ - SearchScopeOutgoing(2, 2), + SearchScopeOutgoing(2), /** * SearchScopeDeleted = 3; */ - SearchScopeDeleted(3, 3), + SearchScopeDeleted(3), /** * SearchScopeInternal = 4; */ - SearchScopeInternal(4, 4), + SearchScopeInternal(4), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SearchScope.class.getName()); + } /** * SearchScopeAny = 0; */ @@ -57,9 +83,25 @@ public enum SearchScope public static final int SearchScopeInternal_VALUE = 4; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static SearchScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SearchScope forNumber(int value) { switch (value) { case 0: return SearchScopeAny; case 1: return SearchScopeIncoming; @@ -74,17 +116,17 @@ public static SearchScope valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + SearchScope> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SearchScope findValueByNumber(int number) { - return SearchScope.valueOf(number); + return SearchScope.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -106,11 +148,9 @@ public static SearchScope valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private SearchScope(int index, int value) { - this.index = index; + private SearchScope(int value) { this.value = value; } @@ -152,79 +192,30 @@ public static final class GetDocflowBatchRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.GetDocflowBatchRequest) GetDocflowBatchRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocflowBatchRequest.class.getName()); + } // Use GetDocflowBatchRequest.newBuilder() to construct. private GetDocflowBatchRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private GetDocflowBatchRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocflowBatchRequest defaultInstance; - public static GetDocflowBatchRequest getDefaultInstance() { - return defaultInstance; - } - - public GetDocflowBatchRequest getDefaultInstanceForType() { - return defaultInstance; + private GetDocflowBatchRequest() { + requests_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocflowBatchRequest( - 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)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest.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)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchRequest_fieldAccessorTable @@ -232,32 +223,20 @@ private GetDocflowBatchRequest( Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocflowBatchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocflowBatchRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int REQUESTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List requests_; /** * repeated .Diadoc.Api.Proto.Docflow.GetDocflowRequest Requests = 1; */ + @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** * repeated .Diadoc.Api.Proto.Docflow.GetDocflowRequest Requests = 1; */ + @java.lang.Override public java.util.List getRequestsOrBuilderList() { return requests_; @@ -265,27 +244,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.GetDocflowRequest Requests = 1; */ + @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.GetDocflowRequest Requests = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest getRequests(int index) { return requests_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.GetDocflowRequest Requests = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequestOrBuilder getRequestsOrBuilder( int index) { return requests_.get(index); } - private void initFields() { - requests_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -301,18 +281,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -321,17 +301,53 @@ public int getSerializedSize() { .computeMessageSize(1, requests_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest) obj; + + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -355,42 +371,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest p } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -410,6 +441,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchRequest_fieldAccessorTable @@ -419,47 +451,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRequestsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + requests_ = null; requestsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchRequest_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest result = buildPartial(); if (!result.isInitialized()) { @@ -468,11 +493,18 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest result) { if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -480,10 +512,13 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest buildPar } else { result.requests_ = requestsBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest)other); @@ -522,34 +557,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBat } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getRequestsCount(); i++) { if (!getRequests(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -557,7 +620,7 @@ public Builder mergeFrom( private java.util.List requests_ = java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; } @@ -786,7 +849,7 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest.Builder addRe requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest, Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest.Builder, Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequestOrBuilder>( requests_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; @@ -797,12 +860,52 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest.Builder addRe // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.GetDocflowBatchRequest) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowBatchRequest) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest DEFAULT_INSTANCE; static { - defaultInstance = new GetDocflowBatchRequest(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocflowBatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowBatchRequest) } public interface GetDocflowRequestOrBuilder extends @@ -811,10 +914,12 @@ public interface GetDocflowRequestOrBuilder extends /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ boolean hasDocumentId(); /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId(); /** @@ -824,24 +929,29 @@ public interface GetDocflowRequestOrBuilder extends /** * optional string LastEventId = 2; + * @return Whether the lastEventId field is set. */ boolean hasLastEventId(); /** * optional string LastEventId = 2; + * @return The lastEventId. */ java.lang.String getLastEventId(); /** * optional string LastEventId = 2; + * @return The bytes for lastEventId. */ com.google.protobuf.ByteString getLastEventIdBytes(); /** * optional bool InjectEntityContent = 3 [default = false]; + * @return Whether the injectEntityContent field is set. */ boolean hasInjectEntityContent(); /** * optional bool InjectEntityContent = 3 [default = false]; + * @return The injectEntityContent. */ boolean getInjectEntityContent(); } @@ -852,92 +962,30 @@ public static final class GetDocflowRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.GetDocflowRequest) GetDocflowRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocflowRequest.class.getName()); + } // Use GetDocflowRequest.newBuilder() to construct. private GetDocflowRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetDocflowRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocflowRequest defaultInstance; - public static GetDocflowRequest getDefaultInstance() { - return defaultInstance; } - - public GetDocflowRequest getDefaultInstanceForType() { - return defaultInstance; + private GetDocflowRequest() { + lastEventId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocflowRequest( - 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: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = documentId_.toBuilder(); - } - documentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentId_); - documentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - lastEventId_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - injectEntityContent_ = input.readBool(); - 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.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowRequest_fieldAccessorTable @@ -945,54 +993,49 @@ private GetDocflowRequest( Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocflowRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTID_FIELD_NUMBER = 1; private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ + @java.lang.Override public boolean hasDocumentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuilder() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } public static final int LASTEVENTID_FIELD_NUMBER = 2; - private java.lang.Object lastEventId_; + @SuppressWarnings("serial") + private volatile java.lang.Object lastEventId_ = ""; /** * optional string LastEventId = 2; + * @return Whether the lastEventId field is set. */ + @java.lang.Override public boolean hasLastEventId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string LastEventId = 2; + * @return The lastEventId. */ + @java.lang.Override public java.lang.String getLastEventId() { java.lang.Object ref = lastEventId_; if (ref instanceof java.lang.String) { @@ -1009,7 +1052,9 @@ public java.lang.String getLastEventId() { } /** * optional string LastEventId = 2; + * @return The bytes for lastEventId. */ + @java.lang.Override public com.google.protobuf.ByteString getLastEventIdBytes() { java.lang.Object ref = lastEventId_; @@ -1025,26 +1070,26 @@ public java.lang.String getLastEventId() { } public static final int INJECTENTITYCONTENT_FIELD_NUMBER = 3; - private boolean injectEntityContent_; + private boolean injectEntityContent_ = false; /** * optional bool InjectEntityContent = 3 [default = false]; + * @return Whether the injectEntityContent field is set. */ + @java.lang.Override public boolean hasInjectEntityContent() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool InjectEntityContent = 3 [default = false]; + * @return The injectEntityContent. */ + @java.lang.Override public boolean getInjectEntityContent() { return injectEntityContent_; } - private void initFields() { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - lastEventId_ = ""; - injectEntityContent_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1062,51 +1107,108 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, documentId_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDocumentId()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getLastEventIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, lastEventId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, injectEntityContent_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, documentId_); + .computeMessageSize(1, getDocumentId()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getLastEventIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, lastEventId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, injectEntityContent_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest) obj; + + if (hasDocumentId() != other.hasDocumentId()) return false; + if (hasDocumentId()) { + if (!getDocumentId() + .equals(other.getDocumentId())) return false; + } + if (hasLastEventId() != other.hasLastEventId()) return false; + if (hasLastEventId()) { + if (!getLastEventId() + .equals(other.getLastEventId())) return false; + } + if (hasInjectEntityContent() != other.hasInjectEntityContent()) return false; + if (hasInjectEntityContent()) { + if (getInjectEntityContent() + != other.getInjectEntityContent()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentId()) { + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDocumentId().hashCode(); + } + if (hasLastEventId()) { + hash = (37 * hash) + LASTEVENTID_FIELD_NUMBER; + hash = (53 * hash) + getLastEventId().hashCode(); + } + if (hasInjectEntityContent()) { + hash = (37 * hash) + INJECTENTITYCONTENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInjectEntityContent()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1130,42 +1232,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parseF } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1185,6 +1302,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowRequest_fieldAccessorTable @@ -1203,42 +1321,37 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDocumentIdFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - documentIdBuilder_.clear(); + bitField0_ = 0; + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); lastEventId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); injectEntityContent_ = false; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowRequest_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest result = buildPartial(); if (!result.isInitialized()) { @@ -1247,31 +1360,35 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentId_ = documentIdBuilder_ == null + ? documentId_ + : documentIdBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (documentIdBuilder_ == null) { - result.documentId_ = documentId_; - } else { - result.documentId_ = documentIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastEventId_ = lastEventId_; to_bitField0_ |= 0x00000002; } - result.lastEventId_ = lastEventId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.injectEntityContent_ = injectEntityContent_; to_bitField0_ |= 0x00000004; } - result.injectEntityContent_ = injectEntityContent_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest)other); @@ -1287,63 +1404,96 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowReq mergeDocumentId(other.getDocumentId()); } if (other.hasLastEventId()) { - bitField0_ |= 0x00000002; lastEventId_ = other.lastEventId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasInjectEntityContent()) { setInjectEntityContent(other.getInjectEntityContent()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocumentId()) { - return false; } if (!getDocumentId().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + lastEventId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + injectEntityContent_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> documentIdBuilder_; /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ public boolean hasDocumentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { if (documentIdBuilder_ == null) { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } else { return documentIdBuilder_.getMessage(); } @@ -1357,11 +1507,11 @@ public Builder setDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) throw new NullPointerException(); } documentId_ = value; - onChanged(); } else { documentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1371,11 +1521,11 @@ public Builder setDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (documentIdBuilder_ == null) { documentId_ = builderForValue.build(); - onChanged(); } else { documentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1383,33 +1533,35 @@ public Builder setDocumentId( */ public Builder mergeDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (documentIdBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - documentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(documentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + documentId_ != null && + documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getDocumentIdBuilder().mergeFrom(value); } else { documentId_ = value; } - onChanged(); } else { documentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (documentId_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; */ public Builder clearDocumentId() { - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - documentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); - return this; - } + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; + } + onChanged(); + return this; + } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; */ @@ -1425,7 +1577,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil if (documentIdBuilder_ != null) { return documentIdBuilder_.getMessageOrBuilder(); } else { - return documentId_; + return documentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } } /** @@ -1448,12 +1601,14 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil private java.lang.Object lastEventId_ = ""; /** * optional string LastEventId = 2; + * @return Whether the lastEventId field is set. */ public boolean hasLastEventId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string LastEventId = 2; + * @return The lastEventId. */ public java.lang.String getLastEventId() { java.lang.Object ref = lastEventId_; @@ -1471,6 +1626,7 @@ public java.lang.String getLastEventId() { } /** * optional string LastEventId = 2; + * @return The bytes for lastEventId. */ public com.google.protobuf.ByteString getLastEventIdBytes() { @@ -1487,36 +1643,37 @@ public java.lang.String getLastEventId() { } /** * optional string LastEventId = 2; + * @param value The lastEventId to set. + * @return This builder for chaining. */ public Builder setLastEventId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } lastEventId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string LastEventId = 2; + * @return This builder for chaining. */ public Builder clearLastEventId() { - bitField0_ = (bitField0_ & ~0x00000002); lastEventId_ = getDefaultInstance().getLastEventId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string LastEventId = 2; + * @param value The bytes for lastEventId to set. + * @return This builder for chaining. */ public Builder setLastEventIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } lastEventId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1524,27 +1681,35 @@ public Builder setLastEventIdBytes( private boolean injectEntityContent_ ; /** * optional bool InjectEntityContent = 3 [default = false]; + * @return Whether the injectEntityContent field is set. */ + @java.lang.Override public boolean hasInjectEntityContent() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool InjectEntityContent = 3 [default = false]; + * @return The injectEntityContent. */ + @java.lang.Override public boolean getInjectEntityContent() { return injectEntityContent_; } /** * optional bool InjectEntityContent = 3 [default = false]; + * @param value The injectEntityContent to set. + * @return This builder for chaining. */ public Builder setInjectEntityContent(boolean value) { - bitField0_ |= 0x00000004; + injectEntityContent_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional bool InjectEntityContent = 3 [default = false]; + * @return This builder for chaining. */ public Builder clearInjectEntityContent() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1556,15 +1721,55 @@ public Builder clearInjectEntityContent() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.GetDocflowRequest) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowRequest) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest DEFAULT_INSTANCE; static { - defaultInstance = new GetDocflowRequest(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowRequest) } - public interface GetDocflowBatchResponseOrBuilder extends + @java.lang.Deprecated public interface GetDocflowBatchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.GetDocflowBatchResponse) com.google.protobuf.MessageOrBuilder { @@ -1595,83 +1800,34 @@ Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.GetDocflowBatchResponse} */ - public static final class GetDocflowBatchResponse extends + @java.lang.Deprecated public static final class GetDocflowBatchResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.GetDocflowBatchResponse) GetDocflowBatchResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocflowBatchResponse.class.getName()); + } // Use GetDocflowBatchResponse.newBuilder() to construct. private GetDocflowBatchResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetDocflowBatchResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocflowBatchResponse defaultInstance; - public static GetDocflowBatchResponse getDefaultInstance() { - return defaultInstance; } - - public GetDocflowBatchResponse getDefaultInstanceForType() { - return defaultInstance; + private GetDocflowBatchResponse() { + documents_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocflowBatchResponse( - 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)) { - documents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documents_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.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)) { - documents_ = java.util.Collections.unmodifiableList(documents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponse_fieldAccessorTable @@ -1679,32 +1835,20 @@ private GetDocflowBatchResponse( Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocflowBatchResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocflowBatchResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documents_; /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsList() { return documents_; } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsOrBuilderList() { return documents_; @@ -1712,27 +1856,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Documents = 1; */ + @java.lang.Override public int getDocumentsCount() { return documents_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDocuments(int index) { return documents_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder getDocumentsOrBuilder( int index) { return documents_.get(index); } - private void initFields() { - documents_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1748,18 +1893,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < documents_.size(); i++) { output.writeMessage(1, documents_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1768,17 +1913,53 @@ public int getSerializedSize() { .computeMessageSize(1, documents_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse) obj; + + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1802,42 +1983,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1857,6 +2053,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponse_fieldAccessorTable @@ -1866,47 +2063,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (documentsBuilder_ == null) { documents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + documents_ = null; documentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponse_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse result = buildPartial(); if (!result.isInitialized()) { @@ -1915,11 +2105,18 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse result) { if (documentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { documents_ = java.util.Collections.unmodifiableList(documents_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1927,10 +2124,13 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse buildPa } else { result.documents_ = documentsBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse)other); @@ -1969,34 +2169,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBat } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getDocumentsCount(); i++) { if (!getDocuments(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2004,7 +2232,7 @@ public Builder mergeFrom( private java.util.List documents_ = java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000001; } @@ -2233,7 +2461,7 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Bu documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder>( documents_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documents_ = null; @@ -2244,12 +2472,52 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Bu // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.GetDocflowBatchResponse) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowBatchResponse) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse DEFAULT_INSTANCE; static { - defaultInstance = new GetDocflowBatchResponse(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocflowBatchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowBatchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowBatchResponse) } public interface SearchDocflowsRequestOrBuilder extends @@ -2258,51 +2526,62 @@ public interface SearchDocflowsRequestOrBuilder extends /** * required string QueryString = 1; + * @return Whether the queryString field is set. */ boolean hasQueryString(); /** * required string QueryString = 1; + * @return The queryString. */ java.lang.String getQueryString(); /** * required string QueryString = 1; + * @return The bytes for queryString. */ com.google.protobuf.ByteString getQueryStringBytes(); /** * optional int32 Count = 2 [default = 100]; + * @return Whether the count field is set. */ boolean hasCount(); /** * optional int32 Count = 2 [default = 100]; + * @return The count. */ int getCount(); /** * optional int32 FirstIndex = 3; + * @return Whether the firstIndex field is set. */ boolean hasFirstIndex(); /** * optional int32 FirstIndex = 3; + * @return The firstIndex. */ int getFirstIndex(); /** * optional .Diadoc.Api.Proto.Docflow.SearchScope Scope = 4 [default = SearchScopeAny]; + * @return Whether the scope field is set. */ boolean hasScope(); /** * optional .Diadoc.Api.Proto.Docflow.SearchScope Scope = 4 [default = SearchScopeAny]; + * @return The scope. */ Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope getScope(); /** * optional bool InjectEntityContent = 5 [default = false]; + * @return Whether the injectEntityContent field is set. */ boolean hasInjectEntityContent(); /** * optional bool InjectEntityContent = 5 [default = false]; + * @return The injectEntityContent. */ boolean getInjectEntityContent(); } @@ -2313,100 +2592,32 @@ public static final class SearchDocflowsRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SearchDocflowsRequest) SearchDocflowsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SearchDocflowsRequest.class.getName()); + } // Use SearchDocflowsRequest.newBuilder() to construct. private SearchDocflowsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private SearchDocflowsRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SearchDocflowsRequest defaultInstance; - public static SearchDocflowsRequest getDefaultInstance() { - return defaultInstance; - } - - public SearchDocflowsRequest getDefaultInstanceForType() { - return defaultInstance; + private SearchDocflowsRequest() { + queryString_ = ""; + count_ = 100; + scope_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SearchDocflowsRequest( - 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; - queryString_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - count_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - firstIndex_ = input.readInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope value = Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - scope_ = value; - } - break; - } - case 40: { - bitField0_ |= 0x00000010; - injectEntityContent_ = input.readBool(); - 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.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsRequest_fieldAccessorTable @@ -2414,33 +2625,23 @@ private SearchDocflowsRequest( Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SearchDocflowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchDocflowsRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int QUERYSTRING_FIELD_NUMBER = 1; - private java.lang.Object queryString_; + @SuppressWarnings("serial") + private volatile java.lang.Object queryString_ = ""; /** * required string QueryString = 1; + * @return Whether the queryString field is set. */ + @java.lang.Override public boolean hasQueryString() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string QueryString = 1; + * @return The queryString. */ + @java.lang.Override public java.lang.String getQueryString() { java.lang.Object ref = queryString_; if (ref instanceof java.lang.String) { @@ -2457,7 +2658,9 @@ public java.lang.String getQueryString() { } /** * required string QueryString = 1; + * @return The bytes for queryString. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryStringBytes() { java.lang.Object ref = queryString_; @@ -2473,73 +2676,82 @@ public java.lang.String getQueryString() { } public static final int COUNT_FIELD_NUMBER = 2; - private int count_; + private int count_ = 100; /** * optional int32 Count = 2 [default = 100]; + * @return Whether the count field is set. */ + @java.lang.Override public boolean hasCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 Count = 2 [default = 100]; + * @return The count. */ + @java.lang.Override public int getCount() { return count_; } public static final int FIRSTINDEX_FIELD_NUMBER = 3; - private int firstIndex_; + private int firstIndex_ = 0; /** * optional int32 FirstIndex = 3; + * @return Whether the firstIndex field is set. */ + @java.lang.Override public boolean hasFirstIndex() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 FirstIndex = 3; + * @return The firstIndex. */ + @java.lang.Override public int getFirstIndex() { return firstIndex_; } public static final int SCOPE_FIELD_NUMBER = 4; - private Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope scope_; + private int scope_ = 0; /** * optional .Diadoc.Api.Proto.Docflow.SearchScope Scope = 4 [default = SearchScopeAny]; + * @return Whether the scope field is set. */ - public boolean hasScope() { - return ((bitField0_ & 0x00000008) == 0x00000008); + @java.lang.Override public boolean hasScope() { + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SearchScope Scope = 4 [default = SearchScopeAny]; + * @return The scope. */ - public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope getScope() { - return scope_; + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope getScope() { + Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope result = Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope.forNumber(scope_); + return result == null ? Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope.SearchScopeAny : result; } public static final int INJECTENTITYCONTENT_FIELD_NUMBER = 5; - private boolean injectEntityContent_; + private boolean injectEntityContent_ = false; /** * optional bool InjectEntityContent = 5 [default = false]; + * @return Whether the injectEntityContent field is set. */ + @java.lang.Override public boolean hasInjectEntityContent() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool InjectEntityContent = 5 [default = false]; + * @return The injectEntityContent. */ + @java.lang.Override public boolean getInjectEntityContent() { return injectEntityContent_; } - private void initFields() { - queryString_ = ""; - count_ = 100; - firstIndex_ = 0; - scope_ = Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope.SearchScopeAny; - injectEntityContent_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2553,65 +2765,139 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getQueryStringBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, queryString_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, count_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, firstIndex_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, scope_.getNumber()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, scope_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, injectEntityContent_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getQueryStringBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryString_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, count_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, firstIndex_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, scope_.getNumber()); + .computeEnumSize(4, scope_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, injectEntityContent_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest) obj; + + if (hasQueryString() != other.hasQueryString()) return false; + if (hasQueryString()) { + if (!getQueryString() + .equals(other.getQueryString())) return false; + } + if (hasCount() != other.hasCount()) return false; + if (hasCount()) { + if (getCount() + != other.getCount()) return false; + } + if (hasFirstIndex() != other.hasFirstIndex()) return false; + if (hasFirstIndex()) { + if (getFirstIndex() + != other.getFirstIndex()) return false; + } + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (scope_ != other.scope_) return false; + } + if (hasInjectEntityContent() != other.hasInjectEntityContent()) return false; + if (hasInjectEntityContent()) { + if (getInjectEntityContent() + != other.getInjectEntityContent()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasQueryString()) { + hash = (37 * hash) + QUERYSTRING_FIELD_NUMBER; + hash = (53 * hash) + getQueryString().hashCode(); + } + if (hasCount()) { + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount(); + } + if (hasFirstIndex()) { + hash = (37 * hash) + FIRSTINDEX_FIELD_NUMBER; + hash = (53 * hash) + getFirstIndex(); + } + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + } + if (hasInjectEntityContent()) { + hash = (37 * hash) + INJECTENTITYCONTENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInjectEntityContent()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2635,42 +2921,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest pa } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2690,6 +2991,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsRequest_fieldAccessorTable @@ -2699,50 +3001,38 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; queryString_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); count_ = 100; - bitField0_ = (bitField0_ & ~0x00000002); firstIndex_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - scope_ = Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope.SearchScopeAny; - bitField0_ = (bitField0_ & ~0x00000008); + scope_ = 0; injectEntityContent_ = false; - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsRequest_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -2751,35 +3041,41 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryString_ = queryString_; to_bitField0_ |= 0x00000001; } - result.queryString_ = queryString_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.count_ = count_; to_bitField0_ |= 0x00000002; } - result.count_ = count_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.firstIndex_ = firstIndex_; to_bitField0_ |= 0x00000004; } - result.firstIndex_ = firstIndex_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.scope_ = scope_; to_bitField0_ |= 0x00000008; } - result.scope_ = scope_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.injectEntityContent_ = injectEntityContent_; to_bitField0_ |= 0x00000010; } - result.injectEntityContent_ = injectEntityContent_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest)other); @@ -2792,8 +3088,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest other) { if (other == Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest.getDefaultInstance()) return this; if (other.hasQueryString()) { - bitField0_ |= 0x00000001; queryString_ = other.queryString_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCount()) { @@ -2809,32 +3105,79 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflow setInjectEntityContent(other.getInjectEntityContent()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasQueryString()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + queryString_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + count_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + firstIndex_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope tmpValue = + Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(4, tmpRaw); + } else { + scope_ = tmpRaw; + bitField0_ |= 0x00000008; + } + break; + } // case 32 + case 40: { + injectEntityContent_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2842,12 +3185,14 @@ public Builder mergeFrom( private java.lang.Object queryString_ = ""; /** * required string QueryString = 1; + * @return Whether the queryString field is set. */ public boolean hasQueryString() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string QueryString = 1; + * @return The queryString. */ public java.lang.String getQueryString() { java.lang.Object ref = queryString_; @@ -2865,6 +3210,7 @@ public java.lang.String getQueryString() { } /** * required string QueryString = 1; + * @return The bytes for queryString. */ public com.google.protobuf.ByteString getQueryStringBytes() { @@ -2881,36 +3227,37 @@ public java.lang.String getQueryString() { } /** * required string QueryString = 1; + * @param value The queryString to set. + * @return This builder for chaining. */ public Builder setQueryString( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } queryString_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string QueryString = 1; + * @return This builder for chaining. */ public Builder clearQueryString() { - bitField0_ = (bitField0_ & ~0x00000001); queryString_ = getDefaultInstance().getQueryString(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string QueryString = 1; + * @param value The bytes for queryString to set. + * @return This builder for chaining. */ public Builder setQueryStringBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } queryString_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2918,27 +3265,35 @@ public Builder setQueryStringBytes( private int count_ = 100; /** * optional int32 Count = 2 [default = 100]; + * @return Whether the count field is set. */ + @java.lang.Override public boolean hasCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 Count = 2 [default = 100]; + * @return The count. */ + @java.lang.Override public int getCount() { return count_; } /** * optional int32 Count = 2 [default = 100]; + * @param value The count to set. + * @return This builder for chaining. */ public Builder setCount(int value) { - bitField0_ |= 0x00000002; + count_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int32 Count = 2 [default = 100]; + * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2950,27 +3305,35 @@ public Builder clearCount() { private int firstIndex_ ; /** * optional int32 FirstIndex = 3; + * @return Whether the firstIndex field is set. */ + @java.lang.Override public boolean hasFirstIndex() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 FirstIndex = 3; + * @return The firstIndex. */ + @java.lang.Override public int getFirstIndex() { return firstIndex_; } /** * optional int32 FirstIndex = 3; + * @param value The firstIndex to set. + * @return This builder for chaining. */ public Builder setFirstIndex(int value) { - bitField0_ |= 0x00000004; + firstIndex_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional int32 FirstIndex = 3; + * @return This builder for chaining. */ public Builder clearFirstIndex() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2979,37 +3342,44 @@ public Builder clearFirstIndex() { return this; } - private Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope scope_ = Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope.SearchScopeAny; + private int scope_ = 0; /** * optional .Diadoc.Api.Proto.Docflow.SearchScope Scope = 4 [default = SearchScopeAny]; + * @return Whether the scope field is set. */ - public boolean hasScope() { - return ((bitField0_ & 0x00000008) == 0x00000008); + @java.lang.Override public boolean hasScope() { + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SearchScope Scope = 4 [default = SearchScopeAny]; + * @return The scope. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope getScope() { - return scope_; + Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope result = Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope.forNumber(scope_); + return result == null ? Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope.SearchScopeAny : result; } /** * optional .Diadoc.Api.Proto.Docflow.SearchScope Scope = 4 [default = SearchScopeAny]; + * @param value The scope to set. + * @return This builder for chaining. */ public Builder setScope(Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; - scope_ = value; + scope_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Docflow.SearchScope Scope = 4 [default = SearchScopeAny]; + * @return This builder for chaining. */ public Builder clearScope() { bitField0_ = (bitField0_ & ~0x00000008); - scope_ = Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchScope.SearchScopeAny; + scope_ = 0; onChanged(); return this; } @@ -3017,27 +3387,35 @@ public Builder clearScope() { private boolean injectEntityContent_ ; /** * optional bool InjectEntityContent = 5 [default = false]; + * @return Whether the injectEntityContent field is set. */ + @java.lang.Override public boolean hasInjectEntityContent() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool InjectEntityContent = 5 [default = false]; + * @return The injectEntityContent. */ + @java.lang.Override public boolean getInjectEntityContent() { return injectEntityContent_; } /** * optional bool InjectEntityContent = 5 [default = false]; + * @param value The injectEntityContent to set. + * @return This builder for chaining. */ public Builder setInjectEntityContent(boolean value) { - bitField0_ |= 0x00000010; + injectEntityContent_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional bool InjectEntityContent = 5 [default = false]; + * @return This builder for chaining. */ public Builder clearInjectEntityContent() { bitField0_ = (bitField0_ & ~0x00000010); @@ -3049,15 +3427,55 @@ public Builder clearInjectEntityContent() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SearchDocflowsRequest) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SearchDocflowsRequest) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest DEFAULT_INSTANCE; static { - defaultInstance = new SearchDocflowsRequest(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDocflowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SearchDocflowsRequest) } - public interface SearchDocflowsResponseOrBuilder extends + @java.lang.Deprecated public interface SearchDocflowsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.SearchDocflowsResponse) com.google.protobuf.MessageOrBuilder { @@ -3087,98 +3505,46 @@ Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder /** * optional bool HaveMoreDocuments = 2; + * @return Whether the haveMoreDocuments field is set. */ boolean hasHaveMoreDocuments(); /** * optional bool HaveMoreDocuments = 2; + * @return The haveMoreDocuments. */ boolean getHaveMoreDocuments(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.SearchDocflowsResponse} */ - public static final class SearchDocflowsResponse extends + @java.lang.Deprecated public static final class SearchDocflowsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SearchDocflowsResponse) SearchDocflowsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SearchDocflowsResponse.class.getName()); + } // Use SearchDocflowsResponse.newBuilder() to construct. private SearchDocflowsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SearchDocflowsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SearchDocflowsResponse defaultInstance; - public static SearchDocflowsResponse getDefaultInstance() { - return defaultInstance; } - - public SearchDocflowsResponse getDefaultInstanceForType() { - return defaultInstance; + private SearchDocflowsResponse() { + documents_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SearchDocflowsResponse( - 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)) { - documents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documents_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.PARSER, extensionRegistry)); - break; - } - case 16: { - bitField0_ |= 0x00000001; - haveMoreDocuments_ = input.readBool(); - 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)) { - documents_ = java.util.Collections.unmodifiableList(documents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponse_fieldAccessorTable @@ -3186,33 +3552,21 @@ private SearchDocflowsResponse( Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SearchDocflowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchDocflowsResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documents_; /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsList() { return documents_; } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsOrBuilderList() { return documents_; @@ -3220,43 +3574,47 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Documents = 1; */ + @java.lang.Override public int getDocumentsCount() { return documents_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDocuments(int index) { return documents_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder getDocumentsOrBuilder( int index) { return documents_.get(index); } public static final int HAVEMOREDOCUMENTS_FIELD_NUMBER = 2; - private boolean haveMoreDocuments_; + private boolean haveMoreDocuments_ = false; /** * optional bool HaveMoreDocuments = 2; + * @return Whether the haveMoreDocuments field is set. */ + @java.lang.Override public boolean hasHaveMoreDocuments() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool HaveMoreDocuments = 2; + * @return The haveMoreDocuments. */ + @java.lang.Override public boolean getHaveMoreDocuments() { return haveMoreDocuments_; } - private void initFields() { - documents_ = java.util.Collections.emptyList(); - haveMoreDocuments_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3272,21 +3630,21 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < documents_.size(); i++) { output.writeMessage(1, documents_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(2, haveMoreDocuments_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -3294,22 +3652,68 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, documents_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, haveMoreDocuments_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse) obj; + + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (hasHaveMoreDocuments() != other.hasHaveMoreDocuments()) return false; + if (hasHaveMoreDocuments()) { + if (getHaveMoreDocuments() + != other.getHaveMoreDocuments()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + if (hasHaveMoreDocuments()) { + hash = (37 * hash) + HAVEMOREDOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHaveMoreDocuments()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3333,42 +3737,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse p } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3388,6 +3807,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponse_fieldAccessorTable @@ -3397,49 +3817,41 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (documentsBuilder_ == null) { documents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + documents_ = null; documentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); haveMoreDocuments_ = false; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponse_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -3448,12 +3860,18 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse result) { if (documentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { documents_ = java.util.Collections.unmodifiableList(documents_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -3461,15 +3879,19 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse buildPar } else { result.documents_ = documentsBuilder_.build(); } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.haveMoreDocuments_ = haveMoreDocuments_; to_bitField0_ |= 0x00000001; } - result.haveMoreDocuments_ = haveMoreDocuments_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse)other); @@ -3511,34 +3933,67 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflow setHaveMoreDocuments(other.getHaveMoreDocuments()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getDocumentsCount(); i++) { if (!getDocuments(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + haveMoreDocuments_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3546,7 +4001,7 @@ public Builder mergeFrom( private java.util.List documents_ = java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000001; } @@ -3775,7 +4230,7 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Bu documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder>( documents_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documents_ = null; @@ -3786,27 +4241,35 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Bu private boolean haveMoreDocuments_ ; /** * optional bool HaveMoreDocuments = 2; + * @return Whether the haveMoreDocuments field is set. */ + @java.lang.Override public boolean hasHaveMoreDocuments() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bool HaveMoreDocuments = 2; + * @return The haveMoreDocuments. */ + @java.lang.Override public boolean getHaveMoreDocuments() { return haveMoreDocuments_; } /** * optional bool HaveMoreDocuments = 2; + * @param value The haveMoreDocuments to set. + * @return This builder for chaining. */ public Builder setHaveMoreDocuments(boolean value) { - bitField0_ |= 0x00000002; + haveMoreDocuments_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional bool HaveMoreDocuments = 2; + * @return This builder for chaining. */ public Builder clearHaveMoreDocuments() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3818,12 +4281,52 @@ public Builder clearHaveMoreDocuments() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SearchDocflowsResponse) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SearchDocflowsResponse) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse DEFAULT_INSTANCE; static { - defaultInstance = new SearchDocflowsResponse(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDocflowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.SearchDocflowsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SearchDocflowsResponse) } public interface GetDocflowsByPacketIdRequestOrBuilder extends @@ -3832,42 +4335,51 @@ public interface GetDocflowsByPacketIdRequestOrBuilder extends /** * required string PacketId = 1; + * @return Whether the packetId field is set. */ boolean hasPacketId(); /** * required string PacketId = 1; + * @return The packetId. */ java.lang.String getPacketId(); /** * required string PacketId = 1; + * @return The bytes for packetId. */ com.google.protobuf.ByteString getPacketIdBytes(); /** * optional int32 Count = 2 [default = 100]; + * @return Whether the count field is set. */ boolean hasCount(); /** * optional int32 Count = 2 [default = 100]; + * @return The count. */ int getCount(); /** * optional bool InjectEntityContent = 3 [default = false]; + * @return Whether the injectEntityContent field is set. */ boolean hasInjectEntityContent(); /** * optional bool InjectEntityContent = 3 [default = false]; + * @return The injectEntityContent. */ boolean getInjectEntityContent(); /** * optional bytes AfterIndexKey = 4; + * @return Whether the afterIndexKey field is set. */ boolean hasAfterIndexKey(); /** * optional bytes AfterIndexKey = 4; + * @return The afterIndexKey. */ com.google.protobuf.ByteString getAfterIndexKey(); } @@ -3878,89 +4390,32 @@ public static final class GetDocflowsByPacketIdRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdRequest) GetDocflowsByPacketIdRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocflowsByPacketIdRequest.class.getName()); + } // Use GetDocflowsByPacketIdRequest.newBuilder() to construct. private GetDocflowsByPacketIdRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private GetDocflowsByPacketIdRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocflowsByPacketIdRequest defaultInstance; - public static GetDocflowsByPacketIdRequest getDefaultInstance() { - return defaultInstance; - } - - public GetDocflowsByPacketIdRequest getDefaultInstanceForType() { - return defaultInstance; + private GetDocflowsByPacketIdRequest() { + packetId_ = ""; + count_ = 100; + afterIndexKey_ = com.google.protobuf.ByteString.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocflowsByPacketIdRequest( - 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; - packetId_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - count_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - injectEntityContent_ = input.readBool(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - afterIndexKey_ = input.readBytes(); - 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.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdRequest_fieldAccessorTable @@ -3968,33 +4423,23 @@ private GetDocflowsByPacketIdRequest( Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocflowsByPacketIdRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocflowsByPacketIdRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PACKETID_FIELD_NUMBER = 1; - private java.lang.Object packetId_; + @SuppressWarnings("serial") + private volatile java.lang.Object packetId_ = ""; /** * required string PacketId = 1; + * @return Whether the packetId field is set. */ + @java.lang.Override public boolean hasPacketId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string PacketId = 1; + * @return The packetId. */ + @java.lang.Override public java.lang.String getPacketId() { java.lang.Object ref = packetId_; if (ref instanceof java.lang.String) { @@ -4011,7 +4456,9 @@ public java.lang.String getPacketId() { } /** * required string PacketId = 1; + * @return The bytes for packetId. */ + @java.lang.Override public com.google.protobuf.ByteString getPacketIdBytes() { java.lang.Object ref = packetId_; @@ -4027,57 +4474,64 @@ public java.lang.String getPacketId() { } public static final int COUNT_FIELD_NUMBER = 2; - private int count_; + private int count_ = 100; /** * optional int32 Count = 2 [default = 100]; + * @return Whether the count field is set. */ + @java.lang.Override public boolean hasCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 Count = 2 [default = 100]; + * @return The count. */ + @java.lang.Override public int getCount() { return count_; } public static final int INJECTENTITYCONTENT_FIELD_NUMBER = 3; - private boolean injectEntityContent_; + private boolean injectEntityContent_ = false; /** * optional bool InjectEntityContent = 3 [default = false]; + * @return Whether the injectEntityContent field is set. */ + @java.lang.Override public boolean hasInjectEntityContent() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool InjectEntityContent = 3 [default = false]; + * @return The injectEntityContent. */ + @java.lang.Override public boolean getInjectEntityContent() { return injectEntityContent_; } public static final int AFTERINDEXKEY_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString afterIndexKey_; + private com.google.protobuf.ByteString afterIndexKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes AfterIndexKey = 4; + * @return Whether the afterIndexKey field is set. */ + @java.lang.Override public boolean hasAfterIndexKey() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bytes AfterIndexKey = 4; + * @return The afterIndexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getAfterIndexKey() { return afterIndexKey_; } - private void initFields() { - packetId_ = ""; - count_ = 100; - injectEntityContent_ = false; - afterIndexKey_ = com.google.protobuf.ByteString.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4091,60 +4545,126 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getPacketIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, packetId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, count_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, injectEntityContent_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBytes(4, afterIndexKey_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getPacketIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, packetId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, count_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, injectEntityContent_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, afterIndexKey_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest) obj; - public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parseFrom( - com.google.protobuf.ByteString data) + if (hasPacketId() != other.hasPacketId()) return false; + if (hasPacketId()) { + if (!getPacketId() + .equals(other.getPacketId())) return false; + } + if (hasCount() != other.hasCount()) return false; + if (hasCount()) { + if (getCount() + != other.getCount()) return false; + } + if (hasInjectEntityContent() != other.hasInjectEntityContent()) return false; + if (hasInjectEntityContent()) { + if (getInjectEntityContent() + != other.getInjectEntityContent()) return false; + } + if (hasAfterIndexKey() != other.hasAfterIndexKey()) return false; + if (hasAfterIndexKey()) { + if (!getAfterIndexKey() + .equals(other.getAfterIndexKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPacketId()) { + hash = (37 * hash) + PACKETID_FIELD_NUMBER; + hash = (53 * hash) + getPacketId().hashCode(); + } + if (hasCount()) { + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount(); + } + if (hasInjectEntityContent()) { + hash = (37 * hash) + INJECTENTITYCONTENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInjectEntityContent()); + } + if (hasAfterIndexKey()) { + hash = (37 * hash) + AFTERINDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getAfterIndexKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } @@ -4166,42 +4686,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdReq } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4221,6 +4756,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdRequest_fieldAccessorTable @@ -4230,48 +4766,37 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; packetId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); count_ = 100; - bitField0_ = (bitField0_ & ~0x00000002); injectEntityContent_ = false; - bitField0_ = (bitField0_ & ~0x00000004); afterIndexKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdRequest_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest result = buildPartial(); if (!result.isInitialized()) { @@ -4280,31 +4805,37 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest bu return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.packetId_ = packetId_; to_bitField0_ |= 0x00000001; } - result.packetId_ = packetId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.count_ = count_; to_bitField0_ |= 0x00000002; } - result.count_ = count_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.injectEntityContent_ = injectEntityContent_; to_bitField0_ |= 0x00000004; } - result.injectEntityContent_ = injectEntityContent_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.afterIndexKey_ = afterIndexKey_; to_bitField0_ |= 0x00000008; } - result.afterIndexKey_ = afterIndexKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest)other); @@ -4317,8 +4848,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest other) { if (other == Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest.getDefaultInstance()) return this; if (other.hasPacketId()) { - bitField0_ |= 0x00000001; packetId_ = other.packetId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCount()) { @@ -4331,32 +4862,67 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsBy setAfterIndexKey(other.getAfterIndexKey()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasPacketId()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + packetId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + count_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + injectEntityContent_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + afterIndexKey_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -4364,12 +4930,14 @@ public Builder mergeFrom( private java.lang.Object packetId_ = ""; /** * required string PacketId = 1; + * @return Whether the packetId field is set. */ public boolean hasPacketId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string PacketId = 1; + * @return The packetId. */ public java.lang.String getPacketId() { java.lang.Object ref = packetId_; @@ -4387,6 +4955,7 @@ public java.lang.String getPacketId() { } /** * required string PacketId = 1; + * @return The bytes for packetId. */ public com.google.protobuf.ByteString getPacketIdBytes() { @@ -4403,36 +4972,37 @@ public java.lang.String getPacketId() { } /** * required string PacketId = 1; + * @param value The packetId to set. + * @return This builder for chaining. */ public Builder setPacketId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } packetId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string PacketId = 1; + * @return This builder for chaining. */ public Builder clearPacketId() { - bitField0_ = (bitField0_ & ~0x00000001); packetId_ = getDefaultInstance().getPacketId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string PacketId = 1; + * @param value The bytes for packetId to set. + * @return This builder for chaining. */ public Builder setPacketIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } packetId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4440,27 +5010,35 @@ public Builder setPacketIdBytes( private int count_ = 100; /** * optional int32 Count = 2 [default = 100]; + * @return Whether the count field is set. */ + @java.lang.Override public boolean hasCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 Count = 2 [default = 100]; + * @return The count. */ + @java.lang.Override public int getCount() { return count_; } /** * optional int32 Count = 2 [default = 100]; + * @param value The count to set. + * @return This builder for chaining. */ public Builder setCount(int value) { - bitField0_ |= 0x00000002; + count_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int32 Count = 2 [default = 100]; + * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000002); @@ -4472,27 +5050,35 @@ public Builder clearCount() { private boolean injectEntityContent_ ; /** * optional bool InjectEntityContent = 3 [default = false]; + * @return Whether the injectEntityContent field is set. */ + @java.lang.Override public boolean hasInjectEntityContent() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool InjectEntityContent = 3 [default = false]; + * @return The injectEntityContent. */ + @java.lang.Override public boolean getInjectEntityContent() { return injectEntityContent_; } /** * optional bool InjectEntityContent = 3 [default = false]; + * @param value The injectEntityContent to set. + * @return This builder for chaining. */ public Builder setInjectEntityContent(boolean value) { - bitField0_ |= 0x00000004; + injectEntityContent_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional bool InjectEntityContent = 3 [default = false]; + * @return This builder for chaining. */ public Builder clearInjectEntityContent() { bitField0_ = (bitField0_ & ~0x00000004); @@ -4504,30 +5090,35 @@ public Builder clearInjectEntityContent() { private com.google.protobuf.ByteString afterIndexKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes AfterIndexKey = 4; + * @return Whether the afterIndexKey field is set. */ + @java.lang.Override public boolean hasAfterIndexKey() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bytes AfterIndexKey = 4; + * @return The afterIndexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getAfterIndexKey() { return afterIndexKey_; } /** * optional bytes AfterIndexKey = 4; + * @param value The afterIndexKey to set. + * @return This builder for chaining. */ public Builder setAfterIndexKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } afterIndexKey_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional bytes AfterIndexKey = 4; + * @return This builder for chaining. */ public Builder clearAfterIndexKey() { bitField0_ = (bitField0_ & ~0x00000008); @@ -4539,24 +5130,66 @@ public Builder clearAfterIndexKey() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdRequest) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdRequest) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest DEFAULT_INSTANCE; static { - defaultInstance = new GetDocflowsByPacketIdRequest(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocflowsByPacketIdRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdRequest) } - public interface FetchedDocumentOrBuilder extends + @java.lang.Deprecated public interface FetchedDocumentOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.FetchedDocument) com.google.protobuf.MessageOrBuilder { /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 1; + * @return Whether the document field is set. */ boolean hasDocument(); /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 1; + * @return The document. */ Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDocument(); /** @@ -4566,100 +5199,46 @@ public interface FetchedDocumentOrBuilder extends /** * required bytes IndexKey = 2; + * @return Whether the indexKey field is set. */ boolean hasIndexKey(); /** * required bytes IndexKey = 2; + * @return The indexKey. */ com.google.protobuf.ByteString getIndexKey(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.FetchedDocument} */ - public static final class FetchedDocument extends + @java.lang.Deprecated public static final class FetchedDocument extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.FetchedDocument) FetchedDocumentOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + FetchedDocument.class.getName()); + } // Use FetchedDocument.newBuilder() to construct. private FetchedDocument(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private FetchedDocument(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final FetchedDocument defaultInstance; - public static FetchedDocument getDefaultInstance() { - return defaultInstance; } - - public FetchedDocument getDefaultInstanceForType() { - return defaultInstance; + private FetchedDocument() { + indexKey_ = com.google.protobuf.ByteString.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FetchedDocument( - 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: { - Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = document_.toBuilder(); - } - document_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(document_); - document_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - bitField0_ |= 0x00000002; - indexKey_ = input.readBytes(); - 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.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_FetchedDocument_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_FetchedDocument_fieldAccessorTable @@ -4667,63 +5246,54 @@ private FetchedDocument( Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public FetchedDocument parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchedDocument(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow document_; /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 1; + * @return Whether the document field is set. */ + @java.lang.Override public boolean hasDocument() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 1; + * @return The document. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDocument() { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : document_; } /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder getDocumentOrBuilder() { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : document_; } public static final int INDEXKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString indexKey_; + private com.google.protobuf.ByteString indexKey_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes IndexKey = 2; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bytes IndexKey = 2; + * @return The indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKey() { return indexKey_; } - private void initFields() { - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); - indexKey_ = com.google.protobuf.ByteString.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4745,44 +5315,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, document_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDocument()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, indexKey_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, document_); + .computeMessageSize(1, getDocument()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, indexKey_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument) obj; + + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument() + .equals(other.getDocument())) return false; + } + if (hasIndexKey() != other.hasIndexKey()) return false; + if (hasIndexKey()) { + if (!getIndexKey() + .equals(other.getIndexKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + if (hasIndexKey()) { + hash = (37 * hash) + INDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getIndexKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4806,42 +5424,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parseFro } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4861,6 +5494,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_FetchedDocument_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_FetchedDocument_fieldAccessorTable @@ -4879,40 +5513,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDocumentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (documentBuilder_ == null) { - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); - } else { - documentBuilder_.clear(); + bitField0_ = 0; + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); indexKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_FetchedDocument_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument result = buildPartial(); if (!result.isInitialized()) { @@ -4921,27 +5551,31 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (documentBuilder_ == null) { - result.document_ = document_; - } else { - result.document_ = documentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.indexKey_ = indexKey_; to_bitField0_ |= 0x00000002; } - result.indexKey_ = indexKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument)other); @@ -4960,59 +5594,86 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocume setIndexKey(other.getIndexKey()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocument()) { - return false; } if (!hasIndexKey()) { - return false; } if (!getDocument().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + indexKey_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow document_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder> documentBuilder_; /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 1; + * @return Whether the document field is set. */ public boolean hasDocument() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 1; + * @return The document. */ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDocument() { if (documentBuilder_ == null) { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } @@ -5026,11 +5687,11 @@ public Builder setDocument(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.Do throw new NullPointerException(); } document_ = value; - onChanged(); } else { documentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5040,11 +5701,11 @@ public Builder setDocument( Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder builderForValue) { if (documentBuilder_ == null) { document_ = builderForValue.build(); - onChanged(); } else { documentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5052,31 +5713,33 @@ public Builder setDocument( */ public Builder mergeDocument(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - document_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance()) { - document_ = - Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.newBuilder(document_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + document_ != null && + document_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); } else { document_ = value; } - onChanged(); } else { documentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (document_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 1; */ public Builder clearDocument() { - if (documentBuilder_ == null) { - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); - onChanged(); - } else { - documentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); return this; } /** @@ -5094,7 +5757,8 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrB if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_; + return document_ == null ? + Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : document_; } } /** @@ -5117,30 +5781,35 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrB private com.google.protobuf.ByteString indexKey_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes IndexKey = 2; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bytes IndexKey = 2; + * @return The indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKey() { return indexKey_; } /** * required bytes IndexKey = 2; + * @param value The indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bytes IndexKey = 2; + * @return This builder for chaining. */ public Builder clearIndexKey() { bitField0_ = (bitField0_ & ~0x00000002); @@ -5152,15 +5821,55 @@ public Builder clearIndexKey() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.FetchedDocument) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.FetchedDocument) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument DEFAULT_INSTANCE; static { - defaultInstance = new FetchedDocument(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchedDocument parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.FetchedDocument) } - public interface GetDocflowsByPacketIdResponseOrBuilder extends + @java.lang.Deprecated public interface GetDocflowsByPacketIdResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdResponse) com.google.protobuf.MessageOrBuilder { @@ -5190,98 +5899,47 @@ Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocumentOrBuilder getDocumentsO /** * optional bytes NextPageIndexKey = 2; + * @return Whether the nextPageIndexKey field is set. */ boolean hasNextPageIndexKey(); /** * optional bytes NextPageIndexKey = 2; + * @return The nextPageIndexKey. */ com.google.protobuf.ByteString getNextPageIndexKey(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdResponse} */ - public static final class GetDocflowsByPacketIdResponse extends + @java.lang.Deprecated public static final class GetDocflowsByPacketIdResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdResponse) GetDocflowsByPacketIdResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocflowsByPacketIdResponse.class.getName()); + } // Use GetDocflowsByPacketIdResponse.newBuilder() to construct. private GetDocflowsByPacketIdResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private GetDocflowsByPacketIdResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocflowsByPacketIdResponse defaultInstance; - public static GetDocflowsByPacketIdResponse getDefaultInstance() { - return defaultInstance; - } - - public GetDocflowsByPacketIdResponse getDefaultInstanceForType() { - return defaultInstance; + private GetDocflowsByPacketIdResponse() { + documents_ = java.util.Collections.emptyList(); + nextPageIndexKey_ = com.google.protobuf.ByteString.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocflowsByPacketIdResponse( - 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)) { - documents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documents_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument.PARSER, extensionRegistry)); - break; - } - case 18: { - bitField0_ |= 0x00000001; - nextPageIndexKey_ = input.readBytes(); - 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)) { - documents_ = java.util.Collections.unmodifiableList(documents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponse_fieldAccessorTable @@ -5289,33 +5947,21 @@ private GetDocflowsByPacketIdResponse( Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocflowsByPacketIdResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocflowsByPacketIdResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documents_; /** * repeated .Diadoc.Api.Proto.Docflow.FetchedDocument Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsList() { return documents_; } /** * repeated .Diadoc.Api.Proto.Docflow.FetchedDocument Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsOrBuilderList() { return documents_; @@ -5323,43 +5969,47 @@ public java.util.List /** * repeated .Diadoc.Api.Proto.Docflow.FetchedDocument Documents = 1; */ + @java.lang.Override public int getDocumentsCount() { return documents_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.FetchedDocument Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument getDocuments(int index) { return documents_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.FetchedDocument Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocumentOrBuilder getDocumentsOrBuilder( int index) { return documents_.get(index); } public static final int NEXTPAGEINDEXKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString nextPageIndexKey_; + private com.google.protobuf.ByteString nextPageIndexKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes NextPageIndexKey = 2; + * @return Whether the nextPageIndexKey field is set. */ + @java.lang.Override public boolean hasNextPageIndexKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bytes NextPageIndexKey = 2; + * @return The nextPageIndexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageIndexKey() { return nextPageIndexKey_; } - private void initFields() { - documents_ = java.util.Collections.emptyList(); - nextPageIndexKey_ = com.google.protobuf.ByteString.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5375,21 +6025,21 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < documents_.size(); i++) { output.writeMessage(1, documents_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(2, nextPageIndexKey_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -5397,22 +6047,67 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, documents_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, nextPageIndexKey_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse) obj; + + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (hasNextPageIndexKey() != other.hasNextPageIndexKey()) return false; + if (hasNextPageIndexKey()) { + if (!getNextPageIndexKey() + .equals(other.getNextPageIndexKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + if (hasNextPageIndexKey()) { + hash = (37 * hash) + NEXTPAGEINDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getNextPageIndexKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5436,42 +6131,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdRes } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5491,6 +6201,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponse_fieldAccessorTable @@ -5500,49 +6211,41 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (documentsBuilder_ == null) { documents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + documents_ = null; documentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageIndexKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponse_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse result = buildPartial(); if (!result.isInitialized()) { @@ -5551,12 +6254,18 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse b return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse result) { if (documentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { documents_ = java.util.Collections.unmodifiableList(documents_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -5564,15 +6273,19 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse b } else { result.documents_ = documentsBuilder_.build(); } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageIndexKey_ = nextPageIndexKey_; to_bitField0_ |= 0x00000001; } - result.nextPageIndexKey_ = nextPageIndexKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse)other); @@ -5614,34 +6327,67 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsBy setNextPageIndexKey(other.getNextPageIndexKey()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getDocumentsCount(); i++) { if (!getDocuments(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageIndexKey_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -5649,7 +6395,7 @@ public Builder mergeFrom( private java.util.List documents_ = java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000001; } @@ -5878,7 +6624,7 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument.Builder addDocu documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument, Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument.Builder, Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocumentOrBuilder>( documents_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documents_ = null; @@ -5889,30 +6635,35 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.FetchedDocument.Builder addDocu private com.google.protobuf.ByteString nextPageIndexKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes NextPageIndexKey = 2; + * @return Whether the nextPageIndexKey field is set. */ + @java.lang.Override public boolean hasNextPageIndexKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes NextPageIndexKey = 2; + * @return The nextPageIndexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageIndexKey() { return nextPageIndexKey_; } /** * optional bytes NextPageIndexKey = 2; + * @param value The nextPageIndexKey to set. + * @return This builder for chaining. */ public Builder setNextPageIndexKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } nextPageIndexKey_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional bytes NextPageIndexKey = 2; + * @return This builder for chaining. */ public Builder clearNextPageIndexKey() { bitField0_ = (bitField0_ & ~0x00000002); @@ -5924,12 +6675,52 @@ public Builder clearNextPageIndexKey() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdResponse) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdResponse) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse DEFAULT_INSTANCE; static { - defaultInstance = new GetDocflowsByPacketIdResponse(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocflowsByPacketIdResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowsByPacketIdResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdResponse) } public interface GetDocflowEventsRequestOrBuilder extends @@ -5938,10 +6729,12 @@ public interface GetDocflowEventsRequestOrBuilder extends /** * required .Diadoc.Api.Proto.TimeBasedFilter Filter = 1; + * @return Whether the filter field is set. */ boolean hasFilter(); /** * required .Diadoc.Api.Proto.TimeBasedFilter Filter = 1; + * @return The filter. */ Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter getFilter(); /** @@ -5951,131 +6744,165 @@ public interface GetDocflowEventsRequestOrBuilder extends /** * optional bytes AfterIndexKey = 2; + * @return Whether the afterIndexKey field is set. */ boolean hasAfterIndexKey(); /** * optional bytes AfterIndexKey = 2; + * @return The afterIndexKey. */ com.google.protobuf.ByteString getAfterIndexKey(); /** * optional bool PopulateDocuments = 3 [default = false]; + * @return Whether the populateDocuments field is set. */ boolean hasPopulateDocuments(); /** * optional bool PopulateDocuments = 3 [default = false]; + * @return The populateDocuments. */ boolean getPopulateDocuments(); /** * optional bool InjectEntityContent = 4 [default = false]; + * @return Whether the injectEntityContent field is set. */ boolean hasInjectEntityContent(); /** * optional bool InjectEntityContent = 4 [default = false]; + * @return The injectEntityContent. */ boolean getInjectEntityContent(); /** * optional bool PopulatePreviousDocumentStates = 5 [default = false]; + * @return Whether the populatePreviousDocumentStates field is set. */ boolean hasPopulatePreviousDocumentStates(); /** * optional bool PopulatePreviousDocumentStates = 5 [default = false]; + * @return The populatePreviousDocumentStates. */ boolean getPopulatePreviousDocumentStates(); /** * repeated string MessageTypes = 6; + * @return A list containing the messageTypes. */ - com.google.protobuf.ProtocolStringList + java.util.List getMessageTypesList(); /** * repeated string MessageTypes = 6; + * @return The count of messageTypes. */ int getMessageTypesCount(); /** * repeated string MessageTypes = 6; + * @param index The index of the element to return. + * @return The messageTypes at the given index. */ java.lang.String getMessageTypes(int index); /** * repeated string MessageTypes = 6; + * @param index The index of the value to return. + * @return The bytes of the messageTypes at the given index. */ com.google.protobuf.ByteString getMessageTypesBytes(int index); /** * repeated string DocumentDirections = 7; + * @return A list containing the documentDirections. */ - com.google.protobuf.ProtocolStringList + java.util.List getDocumentDirectionsList(); /** * repeated string DocumentDirections = 7; + * @return The count of documentDirections. */ int getDocumentDirectionsCount(); /** * repeated string DocumentDirections = 7; + * @param index The index of the element to return. + * @return The documentDirections at the given index. */ java.lang.String getDocumentDirections(int index); /** * repeated string DocumentDirections = 7; + * @param index The index of the value to return. + * @return The bytes of the documentDirections at the given index. */ com.google.protobuf.ByteString getDocumentDirectionsBytes(int index); /** * optional string DepartmentId = 8; + * @return Whether the departmentId field is set. */ boolean hasDepartmentId(); /** * optional string DepartmentId = 8; + * @return The departmentId. */ java.lang.String getDepartmentId(); /** * optional string DepartmentId = 8; + * @return The bytes for departmentId. */ com.google.protobuf.ByteString getDepartmentIdBytes(); /** * repeated string TypeNamedIds = 9; + * @return A list containing the typeNamedIds. */ - com.google.protobuf.ProtocolStringList + java.util.List getTypeNamedIdsList(); /** * repeated string TypeNamedIds = 9; + * @return The count of typeNamedIds. */ int getTypeNamedIdsCount(); /** * repeated string TypeNamedIds = 9; + * @param index The index of the element to return. + * @return The typeNamedIds at the given index. */ java.lang.String getTypeNamedIds(int index); /** * repeated string TypeNamedIds = 9; + * @param index The index of the value to return. + * @return The bytes of the typeNamedIds at the given index. */ com.google.protobuf.ByteString getTypeNamedIdsBytes(int index); /** * optional string CounteragentBoxId = 10; + * @return Whether the counteragentBoxId field is set. */ boolean hasCounteragentBoxId(); /** * optional string CounteragentBoxId = 10; + * @return The counteragentBoxId. */ java.lang.String getCounteragentBoxId(); /** * optional string CounteragentBoxId = 10; + * @return The bytes for counteragentBoxId. */ com.google.protobuf.ByteString getCounteragentBoxIdBytes(); /** * optional int32 Limit = 11 [default = 100]; + * @return Whether the limit field is set. */ boolean hasLimit(); /** * optional int32 Limit = 11 [default = 100]; + * @return The limit. */ int getLimit(); } @@ -6086,154 +6913,39 @@ public static final class GetDocflowEventsRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.GetDocflowEventsRequest) GetDocflowEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocflowEventsRequest.class.getName()); + } // Use GetDocflowEventsRequest.newBuilder() to construct. private GetDocflowEventsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private GetDocflowEventsRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocflowEventsRequest defaultInstance; - public static GetDocflowEventsRequest getDefaultInstance() { - return defaultInstance; - } - - public GetDocflowEventsRequest getDefaultInstanceForType() { - return defaultInstance; + private GetDocflowEventsRequest() { + afterIndexKey_ = com.google.protobuf.ByteString.EMPTY; + messageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + documentDirections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + departmentId_ = ""; + typeNamedIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + counteragentBoxId_ = ""; + limit_ = 100; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocflowEventsRequest( - 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: { - Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = filter_.toBuilder(); - } - filter_ = input.readMessage(Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filter_); - filter_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - bitField0_ |= 0x00000002; - afterIndexKey_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - populateDocuments_ = input.readBool(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - injectEntityContent_ = input.readBool(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - populatePreviousDocumentStates_ = input.readBool(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - messageTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000020; - } - messageTypes_.add(bs); - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - documentDirections_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000040; - } - documentDirections_.add(bs); - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - departmentId_ = bs; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - typeNamedIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000100; - } - typeNamedIds_.add(bs); - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - counteragentBoxId_ = bs; - break; - } - case 88: { - bitField0_ |= 0x00000080; - limit_ = input.readInt32(); - 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_ & 0x00000020) == 0x00000020)) { - messageTypes_ = messageTypes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - documentDirections_ = documentDirections_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - typeNamedIds_ = typeNamedIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsRequest_fieldAccessorTable @@ -6241,107 +6953,116 @@ private GetDocflowEventsRequest( Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocflowEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocflowEventsRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int FILTER_FIELD_NUMBER = 1; private Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter filter_; /** * required .Diadoc.Api.Proto.TimeBasedFilter Filter = 1; + * @return Whether the filter field is set. */ + @java.lang.Override public boolean hasFilter() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.TimeBasedFilter Filter = 1; + * @return The filter. */ + @java.lang.Override public Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter getFilter() { - return filter_; + return filter_ == null ? Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.getDefaultInstance() : filter_; } /** * required .Diadoc.Api.Proto.TimeBasedFilter Filter = 1; */ + @java.lang.Override public Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilterOrBuilder getFilterOrBuilder() { - return filter_; + return filter_ == null ? Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.getDefaultInstance() : filter_; } public static final int AFTERINDEXKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString afterIndexKey_; + private com.google.protobuf.ByteString afterIndexKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes AfterIndexKey = 2; + * @return Whether the afterIndexKey field is set. */ + @java.lang.Override public boolean hasAfterIndexKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes AfterIndexKey = 2; + * @return The afterIndexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getAfterIndexKey() { return afterIndexKey_; } public static final int POPULATEDOCUMENTS_FIELD_NUMBER = 3; - private boolean populateDocuments_; + private boolean populateDocuments_ = false; /** * optional bool PopulateDocuments = 3 [default = false]; + * @return Whether the populateDocuments field is set. */ + @java.lang.Override public boolean hasPopulateDocuments() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool PopulateDocuments = 3 [default = false]; + * @return The populateDocuments. */ + @java.lang.Override public boolean getPopulateDocuments() { return populateDocuments_; } public static final int INJECTENTITYCONTENT_FIELD_NUMBER = 4; - private boolean injectEntityContent_; + private boolean injectEntityContent_ = false; /** * optional bool InjectEntityContent = 4 [default = false]; + * @return Whether the injectEntityContent field is set. */ + @java.lang.Override public boolean hasInjectEntityContent() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bool InjectEntityContent = 4 [default = false]; + * @return The injectEntityContent. */ + @java.lang.Override public boolean getInjectEntityContent() { return injectEntityContent_; } public static final int POPULATEPREVIOUSDOCUMENTSTATES_FIELD_NUMBER = 5; - private boolean populatePreviousDocumentStates_; + private boolean populatePreviousDocumentStates_ = false; /** * optional bool PopulatePreviousDocumentStates = 5 [default = false]; + * @return Whether the populatePreviousDocumentStates field is set. */ + @java.lang.Override public boolean hasPopulatePreviousDocumentStates() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool PopulatePreviousDocumentStates = 5 [default = false]; + * @return The populatePreviousDocumentStates. */ + @java.lang.Override public boolean getPopulatePreviousDocumentStates() { return populatePreviousDocumentStates_; } public static final int MESSAGETYPES_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList messageTypes_; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList messageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string MessageTypes = 6; + * @return A list containing the messageTypes. */ public com.google.protobuf.ProtocolStringList getMessageTypesList() { @@ -6349,18 +7070,23 @@ public boolean getPopulatePreviousDocumentStates() { } /** * repeated string MessageTypes = 6; + * @return The count of messageTypes. */ public int getMessageTypesCount() { return messageTypes_.size(); } /** * repeated string MessageTypes = 6; + * @param index The index of the element to return. + * @return The messageTypes at the given index. */ public java.lang.String getMessageTypes(int index) { return messageTypes_.get(index); } /** * repeated string MessageTypes = 6; + * @param index The index of the value to return. + * @return The bytes of the messageTypes at the given index. */ public com.google.protobuf.ByteString getMessageTypesBytes(int index) { @@ -6368,9 +7094,12 @@ public java.lang.String getMessageTypes(int index) { } public static final int DOCUMENTDIRECTIONS_FIELD_NUMBER = 7; - private com.google.protobuf.LazyStringList documentDirections_; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList documentDirections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string DocumentDirections = 7; + * @return A list containing the documentDirections. */ public com.google.protobuf.ProtocolStringList getDocumentDirectionsList() { @@ -6378,18 +7107,23 @@ public java.lang.String getMessageTypes(int index) { } /** * repeated string DocumentDirections = 7; + * @return The count of documentDirections. */ public int getDocumentDirectionsCount() { return documentDirections_.size(); } /** * repeated string DocumentDirections = 7; + * @param index The index of the element to return. + * @return The documentDirections at the given index. */ public java.lang.String getDocumentDirections(int index) { return documentDirections_.get(index); } /** * repeated string DocumentDirections = 7; + * @param index The index of the value to return. + * @return The bytes of the documentDirections at the given index. */ public com.google.protobuf.ByteString getDocumentDirectionsBytes(int index) { @@ -6397,16 +7131,21 @@ public java.lang.String getDocumentDirections(int index) { } public static final int DEPARTMENTID_FIELD_NUMBER = 8; - private java.lang.Object departmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object departmentId_ = ""; /** * optional string DepartmentId = 8; + * @return Whether the departmentId field is set. */ + @java.lang.Override public boolean hasDepartmentId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string DepartmentId = 8; + * @return The departmentId. */ + @java.lang.Override public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; if (ref instanceof java.lang.String) { @@ -6423,7 +7162,9 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 8; + * @return The bytes for departmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getDepartmentIdBytes() { java.lang.Object ref = departmentId_; @@ -6439,9 +7180,12 @@ public java.lang.String getDepartmentId() { } public static final int TYPENAMEDIDS_FIELD_NUMBER = 9; - private com.google.protobuf.LazyStringList typeNamedIds_; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList typeNamedIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string TypeNamedIds = 9; + * @return A list containing the typeNamedIds. */ public com.google.protobuf.ProtocolStringList getTypeNamedIdsList() { @@ -6449,18 +7193,23 @@ public java.lang.String getDepartmentId() { } /** * repeated string TypeNamedIds = 9; + * @return The count of typeNamedIds. */ public int getTypeNamedIdsCount() { return typeNamedIds_.size(); } /** * repeated string TypeNamedIds = 9; + * @param index The index of the element to return. + * @return The typeNamedIds at the given index. */ public java.lang.String getTypeNamedIds(int index) { return typeNamedIds_.get(index); } /** * repeated string TypeNamedIds = 9; + * @param index The index of the value to return. + * @return The bytes of the typeNamedIds at the given index. */ public com.google.protobuf.ByteString getTypeNamedIdsBytes(int index) { @@ -6468,16 +7217,21 @@ public java.lang.String getTypeNamedIds(int index) { } public static final int COUNTERAGENTBOXID_FIELD_NUMBER = 10; - private java.lang.Object counteragentBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object counteragentBoxId_ = ""; /** * optional string CounteragentBoxId = 10; + * @return Whether the counteragentBoxId field is set. */ + @java.lang.Override public boolean hasCounteragentBoxId() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string CounteragentBoxId = 10; + * @return The counteragentBoxId. */ + @java.lang.Override public java.lang.String getCounteragentBoxId() { java.lang.Object ref = counteragentBoxId_; if (ref instanceof java.lang.String) { @@ -6494,7 +7248,9 @@ public java.lang.String getCounteragentBoxId() { } /** * optional string CounteragentBoxId = 10; + * @return The bytes for counteragentBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getCounteragentBoxIdBytes() { java.lang.Object ref = counteragentBoxId_; @@ -6510,34 +7266,26 @@ public java.lang.String getCounteragentBoxId() { } public static final int LIMIT_FIELD_NUMBER = 11; - private int limit_; + private int limit_ = 100; /** * optional int32 Limit = 11 [default = 100]; + * @return Whether the limit field is set. */ + @java.lang.Override public boolean hasLimit() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional int32 Limit = 11 [default = 100]; + * @return The limit. */ + @java.lang.Override public int getLimit() { return limit_; } - private void initFields() { - filter_ = Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.getDefaultInstance(); - afterIndexKey_ = com.google.protobuf.ByteString.EMPTY; - populateDocuments_ = false; - injectEntityContent_ = false; - populatePreviousDocumentStates_ = false; - messageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - documentDirections_ = com.google.protobuf.LazyStringArrayList.EMPTY; - departmentId_ = ""; - typeNamedIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - counteragentBoxId_ = ""; - limit_ = 100; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -6555,76 +7303,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, filter_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFilter()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, afterIndexKey_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, populateDocuments_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, injectEntityContent_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, populatePreviousDocumentStates_); } for (int i = 0; i < messageTypes_.size(); i++) { - output.writeBytes(6, messageTypes_.getByteString(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 6, messageTypes_.getRaw(i)); } for (int i = 0; i < documentDirections_.size(); i++) { - output.writeBytes(7, documentDirections_.getByteString(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 7, documentDirections_.getRaw(i)); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(8, getDepartmentIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, departmentId_); } for (int i = 0; i < typeNamedIds_.size(); i++) { - output.writeBytes(9, typeNamedIds_.getByteString(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 9, typeNamedIds_.getRaw(i)); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(10, getCounteragentBoxIdBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, counteragentBoxId_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeInt32(11, limit_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, filter_); + .computeMessageSize(1, getFilter()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, afterIndexKey_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, populateDocuments_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, injectEntityContent_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, populatePreviousDocumentStates_); } { int dataSize = 0; for (int i = 0; i < messageTypes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(messageTypes_.getByteString(i)); + dataSize += computeStringSizeNoTag(messageTypes_.getRaw(i)); } size += dataSize; size += 1 * getMessageTypesList().size(); @@ -6632,45 +7379,164 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < documentDirections_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(documentDirections_.getByteString(i)); + dataSize += computeStringSizeNoTag(documentDirections_.getRaw(i)); } size += dataSize; size += 1 * getDocumentDirectionsList().size(); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getDepartmentIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, departmentId_); } { int dataSize = 0; for (int i = 0; i < typeNamedIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(typeNamedIds_.getByteString(i)); + dataSize += computeStringSizeNoTag(typeNamedIds_.getRaw(i)); } size += dataSize; size += 1 * getTypeNamedIdsList().size(); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getCounteragentBoxIdBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, counteragentBoxId_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, limit_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (hasAfterIndexKey() != other.hasAfterIndexKey()) return false; + if (hasAfterIndexKey()) { + if (!getAfterIndexKey() + .equals(other.getAfterIndexKey())) return false; + } + if (hasPopulateDocuments() != other.hasPopulateDocuments()) return false; + if (hasPopulateDocuments()) { + if (getPopulateDocuments() + != other.getPopulateDocuments()) return false; + } + if (hasInjectEntityContent() != other.hasInjectEntityContent()) return false; + if (hasInjectEntityContent()) { + if (getInjectEntityContent() + != other.getInjectEntityContent()) return false; + } + if (hasPopulatePreviousDocumentStates() != other.hasPopulatePreviousDocumentStates()) return false; + if (hasPopulatePreviousDocumentStates()) { + if (getPopulatePreviousDocumentStates() + != other.getPopulatePreviousDocumentStates()) return false; + } + if (!getMessageTypesList() + .equals(other.getMessageTypesList())) return false; + if (!getDocumentDirectionsList() + .equals(other.getDocumentDirectionsList())) return false; + if (hasDepartmentId() != other.hasDepartmentId()) return false; + if (hasDepartmentId()) { + if (!getDepartmentId() + .equals(other.getDepartmentId())) return false; + } + if (!getTypeNamedIdsList() + .equals(other.getTypeNamedIdsList())) return false; + if (hasCounteragentBoxId() != other.hasCounteragentBoxId()) return false; + if (hasCounteragentBoxId()) { + if (!getCounteragentBoxId() + .equals(other.getCounteragentBoxId())) return false; + } + if (hasLimit() != other.hasLimit()) return false; + if (hasLimit()) { + if (getLimit() + != other.getLimit()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasAfterIndexKey()) { + hash = (37 * hash) + AFTERINDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getAfterIndexKey().hashCode(); + } + if (hasPopulateDocuments()) { + hash = (37 * hash) + POPULATEDOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPopulateDocuments()); + } + if (hasInjectEntityContent()) { + hash = (37 * hash) + INJECTENTITYCONTENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInjectEntityContent()); + } + if (hasPopulatePreviousDocumentStates()) { + hash = (37 * hash) + POPULATEPREVIOUSDOCUMENTSTATES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPopulatePreviousDocumentStates()); + } + if (getMessageTypesCount() > 0) { + hash = (37 * hash) + MESSAGETYPES_FIELD_NUMBER; + hash = (53 * hash) + getMessageTypesList().hashCode(); + } + if (getDocumentDirectionsCount() > 0) { + hash = (37 * hash) + DOCUMENTDIRECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentDirectionsList().hashCode(); + } + if (hasDepartmentId()) { + hash = (37 * hash) + DEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDepartmentId().hashCode(); + } + if (getTypeNamedIdsCount() > 0) { + hash = (37 * hash) + TYPENAMEDIDS_FIELD_NUMBER; + hash = (53 * hash) + getTypeNamedIdsList().hashCode(); + } + if (hasCounteragentBoxId()) { + hash = (37 * hash) + COUNTERAGENTBOXID_FIELD_NUMBER; + hash = (53 * hash) + getCounteragentBoxId().hashCode(); + } + if (hasLimit()) { + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6694,42 +7560,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -6749,6 +7630,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsRequest_fieldAccessorTable @@ -6767,58 +7649,48 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getFilterFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (filterBuilder_ == null) { - filter_ = Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.getDefaultInstance(); - } else { - filterBuilder_.clear(); + bitField0_ = 0; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); afterIndexKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); populateDocuments_ = false; - bitField0_ = (bitField0_ & ~0x00000004); injectEntityContent_ = false; - bitField0_ = (bitField0_ & ~0x00000008); populatePreviousDocumentStates_ = false; - bitField0_ = (bitField0_ & ~0x00000010); - messageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - documentDirections_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); + messageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + documentDirections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); departmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); - typeNamedIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); + typeNamedIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); counteragentBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); limit_ = 100; - bitField0_ = (bitField0_ & ~0x00000400); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsRequest_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -6827,66 +7699,67 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filterBuilder_ == null + ? filter_ + : filterBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (filterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = filterBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.afterIndexKey_ = afterIndexKey_; to_bitField0_ |= 0x00000002; } - result.afterIndexKey_ = afterIndexKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.populateDocuments_ = populateDocuments_; to_bitField0_ |= 0x00000004; } - result.populateDocuments_ = populateDocuments_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.injectEntityContent_ = injectEntityContent_; to_bitField0_ |= 0x00000008; } - result.injectEntityContent_ = injectEntityContent_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.populatePreviousDocumentStates_ = populatePreviousDocumentStates_; to_bitField0_ |= 0x00000010; } - result.populatePreviousDocumentStates_ = populatePreviousDocumentStates_; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - messageTypes_ = messageTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000020); + if (((from_bitField0_ & 0x00000020) != 0)) { + messageTypes_.makeImmutable(); + result.messageTypes_ = messageTypes_; } - result.messageTypes_ = messageTypes_; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - documentDirections_ = documentDirections_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000040); + if (((from_bitField0_ & 0x00000040) != 0)) { + documentDirections_.makeImmutable(); + result.documentDirections_ = documentDirections_; } - result.documentDirections_ = documentDirections_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.departmentId_ = departmentId_; to_bitField0_ |= 0x00000020; } - result.departmentId_ = departmentId_; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - typeNamedIds_ = typeNamedIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000100); + if (((from_bitField0_ & 0x00000100) != 0)) { + typeNamedIds_.makeImmutable(); + result.typeNamedIds_ = typeNamedIds_; } - result.typeNamedIds_ = typeNamedIds_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.counteragentBoxId_ = counteragentBoxId_; to_bitField0_ |= 0x00000040; } - result.counteragentBoxId_ = counteragentBoxId_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.limit_ = limit_; to_bitField0_ |= 0x00000080; } - result.limit_ = limit_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest)other); @@ -6916,7 +7789,7 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEve if (!other.messageTypes_.isEmpty()) { if (messageTypes_.isEmpty()) { messageTypes_ = other.messageTypes_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ |= 0x00000020; } else { ensureMessageTypesIsMutable(); messageTypes_.addAll(other.messageTypes_); @@ -6926,7 +7799,7 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEve if (!other.documentDirections_.isEmpty()) { if (documentDirections_.isEmpty()) { documentDirections_ = other.documentDirections_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ |= 0x00000040; } else { ensureDocumentDirectionsIsMutable(); documentDirections_.addAll(other.documentDirections_); @@ -6934,14 +7807,14 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEve onChanged(); } if (other.hasDepartmentId()) { - bitField0_ |= 0x00000080; departmentId_ = other.departmentId_; + bitField0_ |= 0x00000080; onChanged(); } if (!other.typeNamedIds_.isEmpty()) { if (typeNamedIds_.isEmpty()) { typeNamedIds_ = other.typeNamedIds_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ |= 0x00000100; } else { ensureTypeNamedIdsIsMutable(); typeNamedIds_.addAll(other.typeNamedIds_); @@ -6949,63 +7822,139 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEve onChanged(); } if (other.hasCounteragentBoxId()) { - bitField0_ |= 0x00000200; counteragentBoxId_ = other.counteragentBoxId_; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasLimit()) { setLimit(other.getLimit()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasFilter()) { - return false; } if (!getFilter().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getFilterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + afterIndexKey_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + populateDocuments_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + injectEntityContent_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + populatePreviousDocumentStates_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureMessageTypesIsMutable(); + messageTypes_.add(bs); + break; + } // case 50 + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureDocumentDirectionsIsMutable(); + documentDirections_.add(bs); + break; + } // case 58 + case 66: { + departmentId_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureTypeNamedIdsIsMutable(); + typeNamedIds_.add(bs); + break; + } // case 74 + case 82: { + counteragentBoxId_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: { + limit_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter filter_ = Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.getDefaultInstance(); + private Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter filter_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter, Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.Builder, Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilterOrBuilder> filterBuilder_; /** * required .Diadoc.Api.Proto.TimeBasedFilter Filter = 1; + * @return Whether the filter field is set. */ public boolean hasFilter() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.TimeBasedFilter Filter = 1; + * @return The filter. */ public Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter getFilter() { if (filterBuilder_ == null) { - return filter_; + return filter_ == null ? Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.getDefaultInstance() : filter_; } else { return filterBuilder_.getMessage(); } @@ -7019,11 +7968,11 @@ public Builder setFilter(Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter throw new NullPointerException(); } filter_ = value; - onChanged(); } else { filterBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -7033,11 +7982,11 @@ public Builder setFilter( Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.Builder builderForValue) { if (filterBuilder_ == null) { filter_ = builderForValue.build(); - onChanged(); } else { filterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -7045,31 +7994,33 @@ public Builder setFilter( */ public Builder mergeFilter(Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter value) { if (filterBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - filter_ != Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.getDefaultInstance()) { - filter_ = - Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.newBuilder(filter_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + filter_ != null && + filter_ != Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); } else { filter_ = value; } - onChanged(); } else { filterBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (filter_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.TimeBasedFilter Filter = 1; */ public Builder clearFilter() { - if (filterBuilder_ == null) { - filter_ = Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.getDefaultInstance(); - onChanged(); - } else { - filterBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); return this; } /** @@ -7087,7 +8038,8 @@ public Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilterOrBuilder getFilter if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { - return filter_; + return filter_ == null ? + Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilter.getDefaultInstance() : filter_; } } /** @@ -7110,30 +8062,35 @@ public Diadoc.Api.Proto.TimeBasedFilterProtos.TimeBasedFilterOrBuilder getFilter private com.google.protobuf.ByteString afterIndexKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes AfterIndexKey = 2; + * @return Whether the afterIndexKey field is set. */ + @java.lang.Override public boolean hasAfterIndexKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes AfterIndexKey = 2; + * @return The afterIndexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getAfterIndexKey() { return afterIndexKey_; } /** * optional bytes AfterIndexKey = 2; + * @param value The afterIndexKey to set. + * @return This builder for chaining. */ public Builder setAfterIndexKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } afterIndexKey_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional bytes AfterIndexKey = 2; + * @return This builder for chaining. */ public Builder clearAfterIndexKey() { bitField0_ = (bitField0_ & ~0x00000002); @@ -7145,27 +8102,35 @@ public Builder clearAfterIndexKey() { private boolean populateDocuments_ ; /** * optional bool PopulateDocuments = 3 [default = false]; + * @return Whether the populateDocuments field is set. */ + @java.lang.Override public boolean hasPopulateDocuments() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool PopulateDocuments = 3 [default = false]; + * @return The populateDocuments. */ + @java.lang.Override public boolean getPopulateDocuments() { return populateDocuments_; } /** * optional bool PopulateDocuments = 3 [default = false]; + * @param value The populateDocuments to set. + * @return This builder for chaining. */ public Builder setPopulateDocuments(boolean value) { - bitField0_ |= 0x00000004; + populateDocuments_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional bool PopulateDocuments = 3 [default = false]; + * @return This builder for chaining. */ public Builder clearPopulateDocuments() { bitField0_ = (bitField0_ & ~0x00000004); @@ -7177,27 +8142,35 @@ public Builder clearPopulateDocuments() { private boolean injectEntityContent_ ; /** * optional bool InjectEntityContent = 4 [default = false]; + * @return Whether the injectEntityContent field is set. */ + @java.lang.Override public boolean hasInjectEntityContent() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bool InjectEntityContent = 4 [default = false]; + * @return The injectEntityContent. */ + @java.lang.Override public boolean getInjectEntityContent() { return injectEntityContent_; } /** * optional bool InjectEntityContent = 4 [default = false]; + * @param value The injectEntityContent to set. + * @return This builder for chaining. */ public Builder setInjectEntityContent(boolean value) { - bitField0_ |= 0x00000008; + injectEntityContent_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional bool InjectEntityContent = 4 [default = false]; + * @return This builder for chaining. */ public Builder clearInjectEntityContent() { bitField0_ = (bitField0_ & ~0x00000008); @@ -7209,27 +8182,35 @@ public Builder clearInjectEntityContent() { private boolean populatePreviousDocumentStates_ ; /** * optional bool PopulatePreviousDocumentStates = 5 [default = false]; + * @return Whether the populatePreviousDocumentStates field is set. */ + @java.lang.Override public boolean hasPopulatePreviousDocumentStates() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool PopulatePreviousDocumentStates = 5 [default = false]; + * @return The populatePreviousDocumentStates. */ + @java.lang.Override public boolean getPopulatePreviousDocumentStates() { return populatePreviousDocumentStates_; } /** * optional bool PopulatePreviousDocumentStates = 5 [default = false]; + * @param value The populatePreviousDocumentStates to set. + * @return This builder for chaining. */ public Builder setPopulatePreviousDocumentStates(boolean value) { - bitField0_ |= 0x00000010; + populatePreviousDocumentStates_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional bool PopulatePreviousDocumentStates = 5 [default = false]; + * @return This builder for chaining. */ public Builder clearPopulatePreviousDocumentStates() { bitField0_ = (bitField0_ & ~0x00000010); @@ -7238,34 +8219,42 @@ public Builder clearPopulatePreviousDocumentStates() { return this; } - private com.google.protobuf.LazyStringList messageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList messageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureMessageTypesIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { + if (!messageTypes_.isModifiable()) { messageTypes_ = new com.google.protobuf.LazyStringArrayList(messageTypes_); - bitField0_ |= 0x00000020; - } + } + bitField0_ |= 0x00000020; } /** * repeated string MessageTypes = 6; + * @return A list containing the messageTypes. */ public com.google.protobuf.ProtocolStringList getMessageTypesList() { - return messageTypes_.getUnmodifiableView(); + messageTypes_.makeImmutable(); + return messageTypes_; } /** * repeated string MessageTypes = 6; + * @return The count of messageTypes. */ public int getMessageTypesCount() { return messageTypes_.size(); } /** * repeated string MessageTypes = 6; + * @param index The index of the element to return. + * @return The messageTypes at the given index. */ public java.lang.String getMessageTypes(int index) { return messageTypes_.get(index); } /** * repeated string MessageTypes = 6; + * @param index The index of the value to return. + * @return The bytes of the messageTypes at the given index. */ public com.google.protobuf.ByteString getMessageTypesBytes(int index) { @@ -7273,92 +8262,109 @@ public java.lang.String getMessageTypes(int index) { } /** * repeated string MessageTypes = 6; + * @param index The index to set the value at. + * @param value The messageTypes to set. + * @return This builder for chaining. */ public Builder setMessageTypes( int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageTypesIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureMessageTypesIsMutable(); messageTypes_.set(index, value); + bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string MessageTypes = 6; + * @param value The messageTypes to add. + * @return This builder for chaining. */ public Builder addMessageTypes( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageTypesIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureMessageTypesIsMutable(); messageTypes_.add(value); + bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string MessageTypes = 6; + * @param values The messageTypes to add. + * @return This builder for chaining. */ public Builder addAllMessageTypes( java.lang.Iterable values) { ensureMessageTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, messageTypes_); + bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string MessageTypes = 6; + * @return This builder for chaining. */ public Builder clearMessageTypes() { - messageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + messageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } /** * repeated string MessageTypes = 6; + * @param value The bytes of the messageTypes to add. + * @return This builder for chaining. */ public Builder addMessageTypesBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageTypesIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureMessageTypesIsMutable(); messageTypes_.add(value); + bitField0_ |= 0x00000020; onChanged(); return this; } - private com.google.protobuf.LazyStringList documentDirections_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList documentDirections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDocumentDirectionsIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { + if (!documentDirections_.isModifiable()) { documentDirections_ = new com.google.protobuf.LazyStringArrayList(documentDirections_); - bitField0_ |= 0x00000040; - } + } + bitField0_ |= 0x00000040; } /** * repeated string DocumentDirections = 7; + * @return A list containing the documentDirections. */ public com.google.protobuf.ProtocolStringList getDocumentDirectionsList() { - return documentDirections_.getUnmodifiableView(); + documentDirections_.makeImmutable(); + return documentDirections_; } /** * repeated string DocumentDirections = 7; + * @return The count of documentDirections. */ public int getDocumentDirectionsCount() { return documentDirections_.size(); } /** * repeated string DocumentDirections = 7; + * @param index The index of the element to return. + * @return The documentDirections at the given index. */ public java.lang.String getDocumentDirections(int index) { return documentDirections_.get(index); } /** * repeated string DocumentDirections = 7; + * @param index The index of the value to return. + * @return The bytes of the documentDirections at the given index. */ public com.google.protobuf.ByteString getDocumentDirectionsBytes(int index) { @@ -7366,60 +8372,69 @@ public java.lang.String getDocumentDirections(int index) { } /** * repeated string DocumentDirections = 7; + * @param index The index to set the value at. + * @param value The documentDirections to set. + * @return This builder for chaining. */ public Builder setDocumentDirections( int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDocumentDirectionsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureDocumentDirectionsIsMutable(); documentDirections_.set(index, value); + bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string DocumentDirections = 7; + * @param value The documentDirections to add. + * @return This builder for chaining. */ public Builder addDocumentDirections( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDocumentDirectionsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureDocumentDirectionsIsMutable(); documentDirections_.add(value); + bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string DocumentDirections = 7; + * @param values The documentDirections to add. + * @return This builder for chaining. */ public Builder addAllDocumentDirections( java.lang.Iterable values) { ensureDocumentDirectionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, documentDirections_); + bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string DocumentDirections = 7; + * @return This builder for chaining. */ public Builder clearDocumentDirections() { - documentDirections_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); + documentDirections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; onChanged(); return this; } /** * repeated string DocumentDirections = 7; + * @param value The bytes of the documentDirections to add. + * @return This builder for chaining. */ public Builder addDocumentDirectionsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDocumentDirectionsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureDocumentDirectionsIsMutable(); documentDirections_.add(value); + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -7427,12 +8442,14 @@ public Builder addDocumentDirectionsBytes( private java.lang.Object departmentId_ = ""; /** * optional string DepartmentId = 8; + * @return Whether the departmentId field is set. */ public boolean hasDepartmentId() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional string DepartmentId = 8; + * @return The departmentId. */ public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; @@ -7450,6 +8467,7 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 8; + * @return The bytes for departmentId. */ public com.google.protobuf.ByteString getDepartmentIdBytes() { @@ -7466,68 +8484,77 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 8; + * @param value The departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional string DepartmentId = 8; + * @return This builder for chaining. */ public Builder clearDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000080); departmentId_ = getDefaultInstance().getDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * optional string DepartmentId = 8; + * @param value The bytes for departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } - private com.google.protobuf.LazyStringList typeNamedIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList typeNamedIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTypeNamedIdsIsMutable() { - if (!((bitField0_ & 0x00000100) == 0x00000100)) { + if (!typeNamedIds_.isModifiable()) { typeNamedIds_ = new com.google.protobuf.LazyStringArrayList(typeNamedIds_); - bitField0_ |= 0x00000100; - } + } + bitField0_ |= 0x00000100; } /** * repeated string TypeNamedIds = 9; + * @return A list containing the typeNamedIds. */ public com.google.protobuf.ProtocolStringList getTypeNamedIdsList() { - return typeNamedIds_.getUnmodifiableView(); + typeNamedIds_.makeImmutable(); + return typeNamedIds_; } /** * repeated string TypeNamedIds = 9; + * @return The count of typeNamedIds. */ public int getTypeNamedIdsCount() { return typeNamedIds_.size(); } /** * repeated string TypeNamedIds = 9; + * @param index The index of the element to return. + * @return The typeNamedIds at the given index. */ public java.lang.String getTypeNamedIds(int index) { return typeNamedIds_.get(index); } /** * repeated string TypeNamedIds = 9; + * @param index The index of the value to return. + * @return The bytes of the typeNamedIds at the given index. */ public com.google.protobuf.ByteString getTypeNamedIdsBytes(int index) { @@ -7535,60 +8562,69 @@ public java.lang.String getTypeNamedIds(int index) { } /** * repeated string TypeNamedIds = 9; + * @param index The index to set the value at. + * @param value The typeNamedIds to set. + * @return This builder for chaining. */ public Builder setTypeNamedIds( int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTypeNamedIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureTypeNamedIdsIsMutable(); typeNamedIds_.set(index, value); + bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated string TypeNamedIds = 9; + * @param value The typeNamedIds to add. + * @return This builder for chaining. */ public Builder addTypeNamedIds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTypeNamedIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureTypeNamedIdsIsMutable(); typeNamedIds_.add(value); + bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated string TypeNamedIds = 9; + * @param values The typeNamedIds to add. + * @return This builder for chaining. */ public Builder addAllTypeNamedIds( java.lang.Iterable values) { ensureTypeNamedIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, typeNamedIds_); + bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated string TypeNamedIds = 9; + * @return This builder for chaining. */ public Builder clearTypeNamedIds() { - typeNamedIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); + typeNamedIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** * repeated string TypeNamedIds = 9; + * @param value The bytes of the typeNamedIds to add. + * @return This builder for chaining. */ public Builder addTypeNamedIdsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTypeNamedIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureTypeNamedIdsIsMutable(); typeNamedIds_.add(value); + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -7596,12 +8632,14 @@ public Builder addTypeNamedIdsBytes( private java.lang.Object counteragentBoxId_ = ""; /** * optional string CounteragentBoxId = 10; + * @return Whether the counteragentBoxId field is set. */ public boolean hasCounteragentBoxId() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional string CounteragentBoxId = 10; + * @return The counteragentBoxId. */ public java.lang.String getCounteragentBoxId() { java.lang.Object ref = counteragentBoxId_; @@ -7619,6 +8657,7 @@ public java.lang.String getCounteragentBoxId() { } /** * optional string CounteragentBoxId = 10; + * @return The bytes for counteragentBoxId. */ public com.google.protobuf.ByteString getCounteragentBoxIdBytes() { @@ -7635,36 +8674,37 @@ public java.lang.String getCounteragentBoxId() { } /** * optional string CounteragentBoxId = 10; + * @param value The counteragentBoxId to set. + * @return This builder for chaining. */ public Builder setCounteragentBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } counteragentBoxId_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional string CounteragentBoxId = 10; + * @return This builder for chaining. */ public Builder clearCounteragentBoxId() { - bitField0_ = (bitField0_ & ~0x00000200); counteragentBoxId_ = getDefaultInstance().getCounteragentBoxId(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * optional string CounteragentBoxId = 10; + * @param value The bytes for counteragentBoxId to set. + * @return This builder for chaining. */ public Builder setCounteragentBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } counteragentBoxId_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -7672,27 +8712,35 @@ public Builder setCounteragentBoxIdBytes( private int limit_ = 100; /** * optional int32 Limit = 11 [default = 100]; + * @return Whether the limit field is set. */ + @java.lang.Override public boolean hasLimit() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional int32 Limit = 11 [default = 100]; + * @return The limit. */ + @java.lang.Override public int getLimit() { return limit_; } /** * optional int32 Limit = 11 [default = 100]; + * @param value The limit to set. + * @return This builder for chaining. */ public Builder setLimit(int value) { - bitField0_ |= 0x00000400; + limit_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * optional int32 Limit = 11 [default = 100]; + * @return This builder for chaining. */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00000400); @@ -7704,24 +8752,66 @@ public Builder clearLimit() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.GetDocflowEventsRequest) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowEventsRequest) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest DEFAULT_INSTANCE; static { - defaultInstance = new GetDocflowEventsRequest(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocflowEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowEventsRequest) } - public interface GetDocflowEventsResponseOrBuilder extends + @java.lang.Deprecated public interface GetDocflowEventsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.GetDocflowEventsResponse) com.google.protobuf.MessageOrBuilder { /** * optional int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ boolean hasTotalCount(); /** * optional int32 TotalCount = 1; + * @return The totalCount. */ int getTotalCount(); @@ -7751,109 +8841,47 @@ Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEventOrBuilder getEventsOrBuild /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ boolean hasTotalCountType(); /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.GetDocflowEventsResponse} */ - public static final class GetDocflowEventsResponse extends + @java.lang.Deprecated public static final class GetDocflowEventsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.GetDocflowEventsResponse) GetDocflowEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocflowEventsResponse.class.getName()); + } // Use GetDocflowEventsResponse.newBuilder() to construct. private GetDocflowEventsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetDocflowEventsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocflowEventsResponse defaultInstance; - public static GetDocflowEventsResponse getDefaultInstance() { - return defaultInstance; } - - public GetDocflowEventsResponse getDefaultInstanceForType() { - return defaultInstance; + private GetDocflowEventsResponse() { + events_ = java.util.Collections.emptyList(); + totalCountType_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocflowEventsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - totalCount_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - events_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent.PARSER, extensionRegistry)); - break; - } - case 24: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType value = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000002; - totalCountType_ = value; - } - 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_ & 0x00000002) == 0x00000002)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponse_fieldAccessorTable @@ -7861,48 +8889,40 @@ private GetDocflowEventsResponse( Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocflowEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocflowEventsResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TOTALCOUNT_FIELD_NUMBER = 1; - private int totalCount_; + private int totalCount_ = 0; /** * optional int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 TotalCount = 1; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } public static final int EVENTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List events_; /** * repeated .Diadoc.Api.Proto.Docflow.DocflowEvent Events = 2; */ + @java.lang.Override public java.util.List getEventsList() { return events_; } /** * repeated .Diadoc.Api.Proto.Docflow.DocflowEvent Events = 2; */ + @java.lang.Override public java.util.List getEventsOrBuilderList() { return events_; @@ -7910,44 +8930,46 @@ public java.util.List ge /** * repeated .Diadoc.Api.Proto.Docflow.DocflowEvent Events = 2; */ + @java.lang.Override public int getEventsCount() { return events_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.DocflowEvent Events = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent getEvents(int index) { return events_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.DocflowEvent Events = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } public static final int TOTALCOUNTTYPE_FIELD_NUMBER = 3; - private Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType totalCountType_; + private int totalCountType_ = 0; /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ - public boolean hasTotalCountType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasTotalCountType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ - public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { - return totalCountType_; + @java.lang.Override public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType result = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(totalCountType_); + return result == null ? Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType : result; } - private void initFields() { - totalCount_ = 0; - events_ = java.util.Collections.emptyList(); - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -7967,28 +8989,28 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, totalCount_); } for (int i = 0; i < events_.size(); i++) { output.writeMessage(2, events_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(3, totalCountType_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, totalCountType_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, totalCount_); } @@ -7996,22 +9018,75 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, events_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, totalCountType_.getNumber()); + .computeEnumSize(3, totalCountType_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse) obj; + + if (hasTotalCount() != other.hasTotalCount()) return false; + if (hasTotalCount()) { + if (getTotalCount() + != other.getTotalCount()) return false; + } + if (!getEventsList() + .equals(other.getEventsList())) return false; + if (hasTotalCountType() != other.hasTotalCountType()) return false; + if (hasTotalCountType()) { + if (totalCountType_ != other.totalCountType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalCount()) { + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + } + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + if (hasTotalCountType()) { + hash = (37 * hash) + TOTALCOUNTTYPE_FIELD_NUMBER; + hash = (53 * hash) + totalCountType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8035,42 +9110,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -8090,6 +9180,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponse_fieldAccessorTable @@ -8099,51 +9190,42 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getEventsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; totalCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + events_ = null; eventsBuilder_.clear(); } - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); + totalCountType_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponse_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -8152,16 +9234,18 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.totalCount_ = totalCount_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse result) { if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000002); } @@ -8169,15 +9253,23 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse buildP } else { result.events_ = eventsBuilder_.build(); } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalCount_ = totalCount_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalCountType_ = totalCountType_; to_bitField0_ |= 0x00000002; } - result.totalCountType_ = totalCountType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse)other); @@ -8222,38 +9314,82 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEve setTotalCountType(other.getTotalCountType()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotalCountType()) { - return false; } for (int i = 0; i < getEventsCount(); i++) { if (!getEvents(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent.parser(), + extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType tmpValue = + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + totalCountType_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -8261,27 +9397,35 @@ public Builder mergeFrom( private int totalCount_ ; /** * optional int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 TotalCount = 1; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } /** * optional int32 TotalCount = 1; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - bitField0_ |= 0x00000001; + totalCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 TotalCount = 1; + * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000001); @@ -8293,7 +9437,7 @@ public Builder clearTotalCount() { private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000002; } @@ -8522,7 +9666,7 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent.Builder addEventsB eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent, Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent.Builder, Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEventOrBuilder>( events_, - ((bitField0_ & 0x00000002) == 0x00000002), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); events_ = null; @@ -8530,37 +9674,44 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent.Builder addEventsB return eventsBuilder_; } - private Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; + private int totalCountType_ = 0; /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ - public boolean hasTotalCountType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasTotalCountType() { + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ + @java.lang.Override public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { - return totalCountType_; + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType result = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(totalCountType_); + return result == null ? Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType : result; } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @param value The totalCountType to set. + * @return This builder for chaining. */ public Builder setTotalCountType(Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - totalCountType_ = value; + totalCountType_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return This builder for chaining. */ public Builder clearTotalCountType() { bitField0_ = (bitField0_ & ~0x00000004); - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; + totalCountType_ = 0; onChanged(); return this; } @@ -8568,38 +9719,83 @@ public Builder clearTotalCountType() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.GetDocflowEventsResponse) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowEventsResponse) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse DEFAULT_INSTANCE; static { - defaultInstance = new GetDocflowEventsResponse(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocflowEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.GetDocflowEventsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowEventsResponse) } - public interface DocflowEventOrBuilder extends + @java.lang.Deprecated public interface DocflowEventOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.DocflowEvent) com.google.protobuf.MessageOrBuilder { /** * optional string EventId = 1; + * @return Whether the eventId field is set. */ boolean hasEventId(); /** * optional string EventId = 1; + * @return The eventId. */ java.lang.String getEventId(); /** * optional string EventId = 1; + * @return The bytes for eventId. */ com.google.protobuf.ByteString getEventIdBytes(); /** * optional .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return The timestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getTimestamp(); /** @@ -8609,10 +9805,12 @@ public interface DocflowEventOrBuilder extends /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return Whether the documentId field is set. */ boolean hasDocumentId(); /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return The documentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId(); /** @@ -8622,19 +9820,23 @@ public interface DocflowEventOrBuilder extends /** * optional bytes IndexKey = 4; + * @return Whether the indexKey field is set. */ boolean hasIndexKey(); /** * optional bytes IndexKey = 4; + * @return The indexKey. */ com.google.protobuf.ByteString getIndexKey(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 5; + * @return Whether the document field is set. */ boolean hasDocument(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 5; + * @return The document. */ Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDocument(); /** @@ -8644,24 +9846,29 @@ public interface DocflowEventOrBuilder extends /** * optional string PreviousEventId = 6; + * @return Whether the previousEventId field is set. */ boolean hasPreviousEventId(); /** * optional string PreviousEventId = 6; + * @return The previousEventId. */ java.lang.String getPreviousEventId(); /** * optional string PreviousEventId = 6; + * @return The bytes for previousEventId. */ com.google.protobuf.ByteString getPreviousEventIdBytes(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow PreviousDocumentState = 7; + * @return Whether the previousDocumentState field is set. */ boolean hasPreviousDocumentState(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow PreviousDocumentState = 7; + * @return The previousDocumentState. */ Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getPreviousDocumentState(); /** @@ -8672,141 +9879,36 @@ public interface DocflowEventOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.DocflowEvent} */ - public static final class DocflowEvent extends + @java.lang.Deprecated public static final class DocflowEvent extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocflowEvent) DocflowEventOrBuilder { - // Use DocflowEvent.newBuilder() to construct. - private DocflowEvent(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocflowEvent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocflowEvent defaultInstance; - public static DocflowEvent getDefaultInstance() { - return defaultInstance; - } - - public DocflowEvent getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocflowEvent( - 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; - eventId_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = documentId_.toBuilder(); - } - documentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentId_); - documentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - bitField0_ |= 0x00000008; - indexKey_ = input.readBytes(); - break; - } - case 42: { - Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = document_.toBuilder(); - } - document_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(document_); - document_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - previousEventId_ = bs; - break; - } - case 58: { - Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = previousDocumentState_.toBuilder(); - } - previousDocumentState_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(previousDocumentState_); - previousDocumentState_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - 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(); - } + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowEvent.class.getName()); + } + // Use DocflowEvent.newBuilder() to construct. + private DocflowEvent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DocflowEvent() { + eventId_ = ""; + indexKey_ = com.google.protobuf.ByteString.EMPTY; + previousEventId_ = ""; } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowEvent_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowEvent_fieldAccessorTable @@ -8814,33 +9916,23 @@ private DocflowEvent( Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent.class, Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocflowEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocflowEvent(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int EVENTID_FIELD_NUMBER = 1; - private java.lang.Object eventId_; + @SuppressWarnings("serial") + private volatile java.lang.Object eventId_ = ""; /** * optional string EventId = 1; + * @return Whether the eventId field is set. */ + @java.lang.Override public boolean hasEventId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string EventId = 1; + * @return The eventId. */ + @java.lang.Override public java.lang.String getEventId() { java.lang.Object ref = eventId_; if (ref instanceof java.lang.String) { @@ -8857,7 +9949,9 @@ public java.lang.String getEventId() { } /** * optional string EventId = 1; + * @return The bytes for eventId. */ + @java.lang.Override public com.google.protobuf.ByteString getEventIdBytes() { java.lang.Object ref = eventId_; @@ -8876,55 +9970,69 @@ public java.lang.String getEventId() { private Diadoc.Api.Proto.TimestampProtos.Timestamp timestamp_; /** * optional .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return Whether the timestamp field is set. */ + @java.lang.Override public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return The timestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getTimestamp() { - return timestamp_; + return timestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp Timestamp = 2; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder() { - return timestamp_; + return timestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } public static final int DOCUMENTID_FIELD_NUMBER = 3; private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return Whether the documentId field is set. */ + @java.lang.Override public boolean hasDocumentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return The documentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 3; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuilder() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } public static final int INDEXKEY_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString indexKey_; + private com.google.protobuf.ByteString indexKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes IndexKey = 4; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bytes IndexKey = 4; + * @return The indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKey() { return indexKey_; } @@ -8933,34 +10041,44 @@ public com.google.protobuf.ByteString getIndexKey() { private Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow document_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 5; + * @return Whether the document field is set. */ + @java.lang.Override public boolean hasDocument() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 5; + * @return The document. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDocument() { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : document_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder getDocumentOrBuilder() { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : document_; } public static final int PREVIOUSEVENTID_FIELD_NUMBER = 6; - private java.lang.Object previousEventId_; + @SuppressWarnings("serial") + private volatile java.lang.Object previousEventId_ = ""; /** * optional string PreviousEventId = 6; + * @return Whether the previousEventId field is set. */ + @java.lang.Override public boolean hasPreviousEventId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string PreviousEventId = 6; + * @return The previousEventId. */ + @java.lang.Override public java.lang.String getPreviousEventId() { java.lang.Object ref = previousEventId_; if (ref instanceof java.lang.String) { @@ -8977,7 +10095,9 @@ public java.lang.String getPreviousEventId() { } /** * optional string PreviousEventId = 6; + * @return The bytes for previousEventId. */ + @java.lang.Override public com.google.protobuf.ByteString getPreviousEventIdBytes() { java.lang.Object ref = previousEventId_; @@ -8996,33 +10116,30 @@ public java.lang.String getPreviousEventId() { private Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow previousDocumentState_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow PreviousDocumentState = 7; + * @return Whether the previousDocumentState field is set. */ + @java.lang.Override public boolean hasPreviousDocumentState() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow PreviousDocumentState = 7; + * @return The previousDocumentState. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getPreviousDocumentState() { - return previousDocumentState_; + return previousDocumentState_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : previousDocumentState_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow PreviousDocumentState = 7; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder getPreviousDocumentStateOrBuilder() { - return previousDocumentState_; + return previousDocumentState_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : previousDocumentState_; } - private void initFields() { - eventId_ = ""; - timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - indexKey_ = com.google.protobuf.ByteString.EMPTY; - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); - previousEventId_ = ""; - previousDocumentState_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -9056,79 +10173,170 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getEventIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, eventId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, timestamp_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTimestamp()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, documentId_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDocumentId()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBytes(4, indexKey_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, document_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getDocument()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getPreviousEventIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, previousEventId_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, previousDocumentState_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getPreviousDocumentState()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getEventIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, eventId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, timestamp_); + .computeMessageSize(2, getTimestamp()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, documentId_); + .computeMessageSize(3, getDocumentId()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, indexKey_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, document_); + .computeMessageSize(5, getDocument()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getPreviousEventIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, previousEventId_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, previousDocumentState_); + .computeMessageSize(7, getPreviousDocumentState()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent other = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent) obj; + + if (hasEventId() != other.hasEventId()) return false; + if (hasEventId()) { + if (!getEventId() + .equals(other.getEventId())) return false; + } + if (hasTimestamp() != other.hasTimestamp()) return false; + if (hasTimestamp()) { + if (!getTimestamp() + .equals(other.getTimestamp())) return false; + } + if (hasDocumentId() != other.hasDocumentId()) return false; + if (hasDocumentId()) { + if (!getDocumentId() + .equals(other.getDocumentId())) return false; + } + if (hasIndexKey() != other.hasIndexKey()) return false; + if (hasIndexKey()) { + if (!getIndexKey() + .equals(other.getIndexKey())) return false; + } + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument() + .equals(other.getDocument())) return false; + } + if (hasPreviousEventId() != other.hasPreviousEventId()) return false; + if (hasPreviousEventId()) { + if (!getPreviousEventId() + .equals(other.getPreviousEventId())) return false; + } + if (hasPreviousDocumentState() != other.hasPreviousDocumentState()) return false; + if (hasPreviousDocumentState()) { + if (!getPreviousDocumentState() + .equals(other.getPreviousDocumentState())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEventId()) { + hash = (37 * hash) + EVENTID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + } + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp().hashCode(); + } + if (hasDocumentId()) { + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDocumentId().hashCode(); + } + if (hasIndexKey()) { + hash = (37 * hash) + INDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getIndexKey().hashCode(); + } + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + if (hasPreviousEventId()) { + hash = (37 * hash) + PREVIOUSEVENTID_FIELD_NUMBER; + hash = (53 * hash) + getPreviousEventId().hashCode(); + } + if (hasPreviousDocumentState()) { + hash = (37 * hash) + PREVIOUSDOCUMENTSTATE_FIELD_NUMBER; + hash = (53 * hash) + getPreviousDocumentState().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9152,42 +10360,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parseFrom( } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -9207,6 +10430,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowEvent_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowEvent_fieldAccessorTable @@ -9225,65 +10449,56 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getTimestampFieldBuilder(); getDocumentIdFieldBuilder(); getDocumentFieldBuilder(); getPreviousDocumentStateFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; eventId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (timestampBuilder_ == null) { - timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - timestampBuilder_.clear(); + timestamp_ = null; + if (timestampBuilder_ != null) { + timestampBuilder_.dispose(); + timestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - documentIdBuilder_.clear(); + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); indexKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (documentBuilder_ == null) { - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); - } else { - documentBuilder_.clear(); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); previousEventId_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - if (previousDocumentStateBuilder_ == null) { - previousDocumentState_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); - } else { - previousDocumentStateBuilder_.clear(); + previousDocumentState_ = null; + if (previousDocumentStateBuilder_ != null) { + previousDocumentStateBuilder_.dispose(); + previousDocumentStateBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000040); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowEvent_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent build() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent result = buildPartial(); if (!result.isInitialized()) { @@ -9292,59 +10507,57 @@ public Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent result = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eventId_ = eventId_; to_bitField0_ |= 0x00000001; } - result.eventId_ = eventId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timestamp_ = timestampBuilder_ == null + ? timestamp_ + : timestampBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.documentId_ = documentIdBuilder_ == null + ? documentId_ + : documentIdBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (documentIdBuilder_ == null) { - result.documentId_ = documentId_; - } else { - result.documentId_ = documentIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.indexKey_ = indexKey_; to_bitField0_ |= 0x00000008; } - result.indexKey_ = indexKey_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (documentBuilder_ == null) { - result.document_ = document_; - } else { - result.document_ = documentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.previousEventId_ = previousEventId_; to_bitField0_ |= 0x00000020; } - result.previousEventId_ = previousEventId_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.previousDocumentState_ = previousDocumentStateBuilder_ == null + ? previousDocumentState_ + : previousDocumentStateBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (previousDocumentStateBuilder_ == null) { - result.previousDocumentState_ = previousDocumentState_; - } else { - result.previousDocumentState_ = previousDocumentStateBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent)other); @@ -9357,8 +10570,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent other) { if (other == Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent.getDefaultInstance()) return this; if (other.hasEventId()) { - bitField0_ |= 0x00000001; eventId_ = other.eventId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTimestamp()) { @@ -9374,60 +10587,115 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent mergeDocument(other.getDocument()); } if (other.hasPreviousEventId()) { - bitField0_ |= 0x00000020; previousEventId_ = other.previousEventId_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasPreviousDocumentState()) { mergePreviousDocumentState(other.getPreviousDocumentState()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasTimestamp()) { if (!getTimestamp().isInitialized()) { - return false; } } if (hasDocumentId()) { if (!getDocumentId().isInitialized()) { - return false; } } if (hasDocument()) { if (!getDocument().isInitialized()) { - return false; } } if (hasPreviousDocumentState()) { if (!getPreviousDocumentState().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + eventId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + indexKey_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + previousEventId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getPreviousDocumentStateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -9435,12 +10703,14 @@ public Builder mergeFrom( private java.lang.Object eventId_ = ""; /** * optional string EventId = 1; + * @return Whether the eventId field is set. */ public boolean hasEventId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string EventId = 1; + * @return The eventId. */ public java.lang.String getEventId() { java.lang.Object ref = eventId_; @@ -9458,6 +10728,7 @@ public java.lang.String getEventId() { } /** * optional string EventId = 1; + * @return The bytes for eventId. */ public com.google.protobuf.ByteString getEventIdBytes() { @@ -9474,55 +10745,58 @@ public java.lang.String getEventId() { } /** * optional string EventId = 1; + * @param value The eventId to set. + * @return This builder for chaining. */ public Builder setEventId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } eventId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string EventId = 1; + * @return This builder for chaining. */ public Builder clearEventId() { - bitField0_ = (bitField0_ & ~0x00000001); eventId_ = getDefaultInstance().getEventId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string EventId = 1; + * @param value The bytes for eventId to set. + * @return This builder for chaining. */ public Builder setEventIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } eventId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> timestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return The timestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getTimestamp() { if (timestampBuilder_ == null) { - return timestamp_; + return timestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } @@ -9536,11 +10810,11 @@ public Builder setTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { throw new NullPointerException(); } timestamp_ = value; - onChanged(); } else { timestampBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -9550,11 +10824,11 @@ public Builder setTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); - onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -9562,31 +10836,33 @@ public Builder setTimestamp( */ public Builder mergeTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (timestampBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - timestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - timestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + timestamp_ != null && + timestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getTimestampBuilder().mergeFrom(value); } else { timestamp_ = value; } - onChanged(); } else { timestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (timestamp_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp Timestamp = 2; */ public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - timestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + timestamp_ = null; + if (timestampBuilder_ != null) { + timestampBuilder_.dispose(); + timestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -9604,7 +10880,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { - return timestamp_; + return timestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } } /** @@ -9624,21 +10901,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder return timestampBuilder_; } - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> documentIdBuilder_; /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return Whether the documentId field is set. */ public boolean hasDocumentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return The documentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { if (documentIdBuilder_ == null) { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } else { return documentIdBuilder_.getMessage(); } @@ -9652,11 +10931,11 @@ public Builder setDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) throw new NullPointerException(); } documentId_ = value; - onChanged(); } else { documentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -9666,11 +10945,11 @@ public Builder setDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (documentIdBuilder_ == null) { documentId_ = builderForValue.build(); - onChanged(); } else { documentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -9678,31 +10957,33 @@ public Builder setDocumentId( */ public Builder mergeDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (documentIdBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - documentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(documentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + documentId_ != null && + documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getDocumentIdBuilder().mergeFrom(value); } else { documentId_ = value; } - onChanged(); } else { documentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (documentId_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 3; */ public Builder clearDocumentId() { - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - documentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -9720,7 +11001,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil if (documentIdBuilder_ != null) { return documentIdBuilder_.getMessageOrBuilder(); } else { - return documentId_; + return documentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } } /** @@ -9743,30 +11025,35 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil private com.google.protobuf.ByteString indexKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes IndexKey = 4; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bytes IndexKey = 4; + * @return The indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKey() { return indexKey_; } /** * optional bytes IndexKey = 4; + * @param value The indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional bytes IndexKey = 4; + * @return This builder for chaining. */ public Builder clearIndexKey() { bitField0_ = (bitField0_ & ~0x00000008); @@ -9775,21 +11062,23 @@ public Builder clearIndexKey() { return this; } - private Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow document_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder> documentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 5; + * @return Whether the document field is set. */ public boolean hasDocument() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 5; + * @return The document. */ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDocument() { if (documentBuilder_ == null) { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } @@ -9803,11 +11092,11 @@ public Builder setDocument(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.Do throw new NullPointerException(); } document_ = value; - onChanged(); } else { documentBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -9817,11 +11106,11 @@ public Builder setDocument( Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder builderForValue) { if (documentBuilder_ == null) { document_ = builderForValue.build(); - onChanged(); } else { documentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -9829,31 +11118,33 @@ public Builder setDocument( */ public Builder mergeDocument(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - document_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance()) { - document_ = - Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.newBuilder(document_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + document_ != null && + document_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); } else { document_ = value; } - onChanged(); } else { documentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (document_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow Document = 5; */ public Builder clearDocument() { - if (documentBuilder_ == null) { - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); - onChanged(); - } else { - documentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); return this; } /** @@ -9871,7 +11162,8 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrB if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_; + return document_ == null ? + Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : document_; } } /** @@ -9894,12 +11186,14 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrB private java.lang.Object previousEventId_ = ""; /** * optional string PreviousEventId = 6; + * @return Whether the previousEventId field is set. */ public boolean hasPreviousEventId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string PreviousEventId = 6; + * @return The previousEventId. */ public java.lang.String getPreviousEventId() { java.lang.Object ref = previousEventId_; @@ -9917,6 +11211,7 @@ public java.lang.String getPreviousEventId() { } /** * optional string PreviousEventId = 6; + * @return The bytes for previousEventId. */ public com.google.protobuf.ByteString getPreviousEventIdBytes() { @@ -9933,55 +11228,58 @@ public java.lang.String getPreviousEventId() { } /** * optional string PreviousEventId = 6; + * @param value The previousEventId to set. + * @return This builder for chaining. */ public Builder setPreviousEventId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } previousEventId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional string PreviousEventId = 6; + * @return This builder for chaining. */ public Builder clearPreviousEventId() { - bitField0_ = (bitField0_ & ~0x00000020); previousEventId_ = getDefaultInstance().getPreviousEventId(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * optional string PreviousEventId = 6; + * @param value The bytes for previousEventId to set. + * @return This builder for chaining. */ public Builder setPreviousEventIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } previousEventId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow previousDocumentState_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow previousDocumentState_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrBuilder> previousDocumentStateBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow PreviousDocumentState = 7; + * @return Whether the previousDocumentState field is set. */ public boolean hasPreviousDocumentState() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow PreviousDocumentState = 7; + * @return The previousDocumentState. */ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getPreviousDocumentState() { if (previousDocumentStateBuilder_ == null) { - return previousDocumentState_; + return previousDocumentState_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : previousDocumentState_; } else { return previousDocumentStateBuilder_.getMessage(); } @@ -9995,11 +11293,11 @@ public Builder setPreviousDocumentState(Diadoc.Api.Proto.Docflow.DocumentWithDoc throw new NullPointerException(); } previousDocumentState_ = value; - onChanged(); } else { previousDocumentStateBuilder_.setMessage(value); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -10009,11 +11307,11 @@ public Builder setPreviousDocumentState( Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder builderForValue) { if (previousDocumentStateBuilder_ == null) { previousDocumentState_ = builderForValue.build(); - onChanged(); } else { previousDocumentStateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -10021,31 +11319,33 @@ public Builder setPreviousDocumentState( */ public Builder mergePreviousDocumentState(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow value) { if (previousDocumentStateBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - previousDocumentState_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance()) { - previousDocumentState_ = - Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.newBuilder(previousDocumentState_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) && + previousDocumentState_ != null && + previousDocumentState_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance()) { + getPreviousDocumentStateBuilder().mergeFrom(value); } else { previousDocumentState_ = value; } - onChanged(); } else { previousDocumentStateBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + if (previousDocumentState_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflow PreviousDocumentState = 7; */ public Builder clearPreviousDocumentState() { - if (previousDocumentStateBuilder_ == null) { - previousDocumentState_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); - onChanged(); - } else { - previousDocumentStateBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000040); + previousDocumentState_ = null; + if (previousDocumentStateBuilder_ != null) { + previousDocumentStateBuilder_.dispose(); + previousDocumentStateBuilder_ = null; + } + onChanged(); return this; } /** @@ -10063,7 +11363,8 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrB if (previousDocumentStateBuilder_ != null) { return previousDocumentStateBuilder_.getMessageOrBuilder(); } else { - return previousDocumentState_; + return previousDocumentState_ == null ? + Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance() : previousDocumentState_; } } /** @@ -10086,67 +11387,107 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrB // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocflowEvent) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocflowEvent) + private static final Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent DEFAULT_INSTANCE; static { - defaultInstance = new DocflowEvent(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocflowEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiProtos.DocflowEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocflowEvent) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_GetDocflowRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_GetDocflowRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_FetchedDocument_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_FetchedDocument_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocflowEvent_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocflowEvent_fieldAccessorTable; @@ -10154,7 +11495,7 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrB getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -10167,61 +11508,54 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflowOrB "etDocflowRequest\"~\n\021GetDocflowRequest\0220\n" + "\nDocumentId\030\001 \002(\0132\034.Diadoc.Api.Proto.Doc" + "umentId\022\023\n\013LastEventId\030\002 \001(\t\022\"\n\023InjectEn" + - "tityContent\030\003 \001(\010:\005false\"[\n\027GetDocflowBa", + "tityContent\030\003 \001(\010:\005false\"_\n\027GetDocflowBa" + "tchResponse\022@\n\tDocuments\030\001 \003(\0132-.Diadoc." + - "Api.Proto.Docflow.DocumentWithDocflow\"\276\001" + - "\n\025SearchDocflowsRequest\022\023\n\013QueryString\030\001" + - " \002(\t\022\022\n\005Count\030\002 \001(\005:\003100\022\022\n\nFirstIndex\030\003" + - " \001(\005\022D\n\005Scope\030\004 \001(\0162%.Diadoc.Api.Proto.D" + - "ocflow.SearchScope:\016SearchScopeAny\022\"\n\023In" + - "jectEntityContent\030\005 \001(\010:\005false\"u\n\026Search" + - "DocflowsResponse\022@\n\tDocuments\030\001 \003(\0132-.Di" + + "Api.Proto.Docflow.DocumentWithDocflow:\002\030" + + "\001\"\276\001\n\025SearchDocflowsRequest\022\023\n\013QueryStri" + + "ng\030\001 \002(\t\022\022\n\005Count\030\002 \001(\005:\003100\022\022\n\nFirstInd" + + "ex\030\003 \001(\005\022D\n\005Scope\030\004 \001(\0162%.Diadoc.Api.Pro" + + "to.Docflow.SearchScope:\016SearchScopeAny\022\"" + + "\n\023InjectEntityContent\030\005 \001(\010:\005false\"y\n\026Se" + + "archDocflowsResponse\022@\n\tDocuments\030\001 \003(\0132" + + "-.Diadoc.Api.Proto.Docflow.DocumentWithD" + + "ocflow\022\031\n\021HaveMoreDocuments\030\002 \001(\010:\002\030\001\"\177\n" + + "\034GetDocflowsByPacketIdRequest\022\020\n\010PacketI" + + "d\030\001 \002(\t\022\022\n\005Count\030\002 \001(\005:\003100\022\"\n\023InjectEnt" + + "ityContent\030\003 \001(\010:\005false\022\025\n\rAfterIndexKey" + + "\030\004 \001(\014\"h\n\017FetchedDocument\022?\n\010Document\030\001 " + + "\002(\0132-.Diadoc.Api.Proto.Docflow.DocumentW" + + "ithDocflow\022\020\n\010IndexKey\030\002 \002(\014:\002\030\001\"{\n\035GetD" + + "ocflowsByPacketIdResponse\022<\n\tDocuments\030\001" + + " \003(\0132).Diadoc.Api.Proto.Docflow.FetchedD" + + "ocument\022\030\n\020NextPageIndexKey\030\002 \001(\014:\002\030\001\"\345\002" + + "\n\027GetDocflowEventsRequest\0221\n\006Filter\030\001 \002(" + + "\0132!.Diadoc.Api.Proto.TimeBasedFilter\022\025\n\r" + + "AfterIndexKey\030\002 \001(\014\022 \n\021PopulateDocuments" + + "\030\003 \001(\010:\005false\022\"\n\023InjectEntityContent\030\004 \001" + + "(\010:\005false\022-\n\036PopulatePreviousDocumentSta" + + "tes\030\005 \001(\010:\005false\022\024\n\014MessageTypes\030\006 \003(\t\022\032" + + "\n\022DocumentDirections\030\007 \003(\t\022\024\n\014Department" + + "Id\030\010 \001(\t\022\024\n\014TypeNamedIds\030\t \003(\t\022\031\n\021Counte" + + "ragentBoxId\030\n \001(\t\022\022\n\005Limit\030\013 \001(\005:\003100\"\244\001" + + "\n\030GetDocflowEventsResponse\022\022\n\nTotalCount" + + "\030\001 \001(\005\0226\n\006Events\030\002 \003(\0132&.Diadoc.Api.Prot" + + "o.Docflow.DocflowEvent\0228\n\016TotalCountType" + + "\030\003 \002(\0162 .Diadoc.Api.Proto.TotalCountType" + + ":\002\030\001\"\277\002\n\014DocflowEvent\022\017\n\007EventId\030\001 \001(\t\022." + + "\n\tTimestamp\030\002 \001(\0132\033.Diadoc.Api.Proto.Tim" + + "estamp\0220\n\nDocumentId\030\003 \001(\0132\034.Diadoc.Api." + + "Proto.DocumentId\022\020\n\010IndexKey\030\004 \001(\014\022?\n\010Do" + + "cument\030\005 \001(\0132-.Diadoc.Api.Proto.Docflow." + + "DocumentWithDocflow\022\027\n\017PreviousEventId\030\006" + + " \001(\t\022L\n\025PreviousDocumentState\030\007 \001(\0132-.Di" + "adoc.Api.Proto.Docflow.DocumentWithDocfl" + - "ow\022\031\n\021HaveMoreDocuments\030\002 \001(\010\"\177\n\034GetDocf", - "lowsByPacketIdRequest\022\020\n\010PacketId\030\001 \002(\t\022" + - "\022\n\005Count\030\002 \001(\005:\003100\022\"\n\023InjectEntityConte" + - "nt\030\003 \001(\010:\005false\022\025\n\rAfterIndexKey\030\004 \001(\014\"d" + - "\n\017FetchedDocument\022?\n\010Document\030\001 \002(\0132-.Di" + - "adoc.Api.Proto.Docflow.DocumentWithDocfl" + - "ow\022\020\n\010IndexKey\030\002 \002(\014\"w\n\035GetDocflowsByPac" + - "ketIdResponse\022<\n\tDocuments\030\001 \003(\0132).Diado" + - "c.Api.Proto.Docflow.FetchedDocument\022\030\n\020N" + - "extPageIndexKey\030\002 \001(\014\"\345\002\n\027GetDocflowEven" + - "tsRequest\0221\n\006Filter\030\001 \002(\0132!.Diadoc.Api.P", - "roto.TimeBasedFilter\022\025\n\rAfterIndexKey\030\002 " + - "\001(\014\022 \n\021PopulateDocuments\030\003 \001(\010:\005false\022\"\n" + - "\023InjectEntityContent\030\004 \001(\010:\005false\022-\n\036Pop" + - "ulatePreviousDocumentStates\030\005 \001(\010:\005false" + - "\022\024\n\014MessageTypes\030\006 \003(\t\022\032\n\022DocumentDirect" + - "ions\030\007 \003(\t\022\024\n\014DepartmentId\030\010 \001(\t\022\024\n\014Type" + - "NamedIds\030\t \003(\t\022\031\n\021CounteragentBoxId\030\n \001(" + - "\t\022\022\n\005Limit\030\013 \001(\005:\003100\"\240\001\n\030GetDocflowEven" + - "tsResponse\022\022\n\nTotalCount\030\001 \001(\005\0226\n\006Events" + - "\030\002 \003(\0132&.Diadoc.Api.Proto.Docflow.Docflo", - "wEvent\0228\n\016TotalCountType\030\003 \002(\0162 .Diadoc." + - "Api.Proto.TotalCountType\"\273\002\n\014DocflowEven" + - "t\022\017\n\007EventId\030\001 \001(\t\022.\n\tTimestamp\030\002 \001(\0132\033." + - "Diadoc.Api.Proto.Timestamp\0220\n\nDocumentId" + - "\030\003 \001(\0132\034.Diadoc.Api.Proto.DocumentId\022\020\n\010" + - "IndexKey\030\004 \001(\014\022?\n\010Document\030\005 \001(\0132-.Diado" + - "c.Api.Proto.Docflow.DocumentWithDocflow\022" + - "\027\n\017PreviousEventId\030\006 \001(\t\022L\n\025PreviousDocu" + - "mentState\030\007 \001(\0132-.Diadoc.Api.Proto.Docfl" + - "ow.DocumentWithDocflow*\204\001\n\013SearchScope\022\022", - "\n\016SearchScopeAny\020\000\022\027\n\023SearchScopeIncomin" + - "g\020\001\022\027\n\023SearchScopeOutgoing\020\002\022\026\n\022SearchSc" + - "opeDeleted\020\003\022\027\n\023SearchScopeInternal\020\004B\022B" + - "\020DocflowApiProtos" + "ow:\002\030\001*\204\001\n\013SearchScope\022\022\n\016SearchScopeAny" + + "\020\000\022\027\n\023SearchScopeIncoming\020\001\022\027\n\023SearchSco" + + "peOutgoing\020\002\022\026\n\022SearchScopeDeleted\020\003\022\027\n\023" + + "SearchScopeInternal\020\004B\022B\020DocflowApiProto" + + "s" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), @@ -10229,7 +11563,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( Diadoc.Api.Proto.TotalCountTypeProtos.getDescriptor(), Diadoc.Api.Proto.TimeBasedFilterProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchRequest_fieldAccessorTable = new @@ -10296,6 +11630,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_DocflowEvent_descriptor, new java.lang.String[] { "EventId", "Timestamp", "DocumentId", "IndexKey", "Document", "PreviousEventId", "PreviousDocumentState", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); Diadoc.Api.Proto.TotalCountTypeProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/DocflowApiV3Protos.java b/src/main/java/Diadoc/Api/Proto/Docflow/DocflowApiV3Protos.java index b2004292..c17eafef 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/DocflowApiV3Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/DocflowApiV3Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/DocflowApiV3.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class DocflowApiV3Protos { private DocflowApiV3Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowApiV3Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface GetDocflowBatchResponseV3OrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.GetDocflowBatchResponseV3) @@ -43,79 +60,30 @@ public static final class GetDocflowBatchResponseV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.GetDocflowBatchResponseV3) GetDocflowBatchResponseV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocflowBatchResponseV3.class.getName()); + } // Use GetDocflowBatchResponseV3.newBuilder() to construct. private GetDocflowBatchResponseV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetDocflowBatchResponseV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocflowBatchResponseV3 defaultInstance; - public static GetDocflowBatchResponseV3 getDefaultInstance() { - return defaultInstance; } - - public GetDocflowBatchResponseV3 getDefaultInstanceForType() { - return defaultInstance; + private GetDocflowBatchResponseV3() { + documents_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocflowBatchResponseV3( - 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)) { - documents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documents_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.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)) { - documents_ = java.util.Collections.unmodifiableList(documents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponseV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponseV3_fieldAccessorTable @@ -123,32 +91,20 @@ private GetDocflowBatchResponseV3( Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3.class, Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocflowBatchResponseV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocflowBatchResponseV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documents_; /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsList() { return documents_; } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsOrBuilderList() { return documents_; @@ -156,27 +112,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Documents = 1; */ + @java.lang.Override public int getDocumentsCount() { return documents_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDocuments(int index) { return documents_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuilder getDocumentsOrBuilder( int index) { return documents_.get(index); } - private void initFields() { - documents_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,18 +149,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < documents_.size(); i++) { output.writeMessage(1, documents_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -212,17 +169,53 @@ public int getSerializedSize() { .computeMessageSize(1, documents_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 other = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3) obj; + + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchRespons } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -301,6 +309,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponseV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponseV3_fieldAccessorTable @@ -310,47 +319,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (documentsBuilder_ == null) { documents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + documents_ = null; documentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponseV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 build() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 result = buildPartial(); if (!result.isInitialized()) { @@ -359,11 +361,18 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 bui return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 result = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 result) { if (documentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { documents_ = java.util.Collections.unmodifiableList(documents_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,10 +380,13 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 bui } else { result.documents_ = documentsBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3)other); @@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowB } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getDocumentsCount(); i++) { if (!getDocuments(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -448,7 +488,7 @@ public Builder mergeFrom( private java.util.List documents_ = java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000001; } @@ -677,7 +717,7 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuilder>( documents_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documents_ = null; @@ -688,12 +728,52 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.GetDocflowBatchResponseV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowBatchResponseV3) + private static final Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 DEFAULT_INSTANCE; static { - defaultInstance = new GetDocflowBatchResponseV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocflowBatchResponseV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowBatchResponseV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowBatchResponseV3) } public interface SearchDocflowsResponseV3OrBuilder extends @@ -726,10 +806,12 @@ Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuil /** * required bool HaveMoreDocuments = 2; + * @return Whether the haveMoreDocuments field is set. */ boolean hasHaveMoreDocuments(); /** * required bool HaveMoreDocuments = 2; + * @return The haveMoreDocuments. */ boolean getHaveMoreDocuments(); } @@ -740,84 +822,30 @@ public static final class SearchDocflowsResponseV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SearchDocflowsResponseV3) SearchDocflowsResponseV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SearchDocflowsResponseV3.class.getName()); + } // Use SearchDocflowsResponseV3.newBuilder() to construct. private SearchDocflowsResponseV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private SearchDocflowsResponseV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SearchDocflowsResponseV3 defaultInstance; - public static SearchDocflowsResponseV3 getDefaultInstance() { - return defaultInstance; - } - - public SearchDocflowsResponseV3 getDefaultInstanceForType() { - return defaultInstance; + private SearchDocflowsResponseV3() { + documents_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SearchDocflowsResponseV3( - 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)) { - documents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documents_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.PARSER, extensionRegistry)); - break; - } - case 16: { - bitField0_ |= 0x00000001; - haveMoreDocuments_ = input.readBool(); - 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)) { - documents_ = java.util.Collections.unmodifiableList(documents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponseV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponseV3_fieldAccessorTable @@ -825,33 +853,21 @@ private SearchDocflowsResponseV3( Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3.class, Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SearchDocflowsResponseV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchDocflowsResponseV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documents_; /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsList() { return documents_; } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsOrBuilderList() { return documents_; @@ -859,43 +875,47 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Documents = 1; */ + @java.lang.Override public int getDocumentsCount() { return documents_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDocuments(int index) { return documents_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuilder getDocumentsOrBuilder( int index) { return documents_.get(index); } public static final int HAVEMOREDOCUMENTS_FIELD_NUMBER = 2; - private boolean haveMoreDocuments_; + private boolean haveMoreDocuments_ = false; /** * required bool HaveMoreDocuments = 2; + * @return Whether the haveMoreDocuments field is set. */ + @java.lang.Override public boolean hasHaveMoreDocuments() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool HaveMoreDocuments = 2; + * @return The haveMoreDocuments. */ + @java.lang.Override public boolean getHaveMoreDocuments() { return haveMoreDocuments_; } - private void initFields() { - documents_ = java.util.Collections.emptyList(); - haveMoreDocuments_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -915,21 +935,21 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < documents_.size(); i++) { output.writeMessage(1, documents_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(2, haveMoreDocuments_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -937,22 +957,68 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, documents_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, haveMoreDocuments_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 other = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3) obj; + + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (hasHaveMoreDocuments() != other.hasHaveMoreDocuments()) return false; + if (hasHaveMoreDocuments()) { + if (getHaveMoreDocuments() + != other.getHaveMoreDocuments()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + if (hasHaveMoreDocuments()) { + hash = (37 * hash) + HAVEMOREDOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHaveMoreDocuments()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -976,42 +1042,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponse } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1031,6 +1112,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponseV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponseV3_fieldAccessorTable @@ -1040,49 +1122,41 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (documentsBuilder_ == null) { documents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + documents_ = null; documentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); haveMoreDocuments_ = false; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponseV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 build() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 result = buildPartial(); if (!result.isInitialized()) { @@ -1091,12 +1165,18 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 buil return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 result = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 result) { if (documentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { documents_ = java.util.Collections.unmodifiableList(documents_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1104,15 +1184,19 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 buil } else { result.documents_ = documentsBuilder_.build(); } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.haveMoreDocuments_ = haveMoreDocuments_; to_bitField0_ |= 0x00000001; } - result.haveMoreDocuments_ = haveMoreDocuments_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3)other); @@ -1154,38 +1238,70 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocfl setHaveMoreDocuments(other.getHaveMoreDocuments()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasHaveMoreDocuments()) { - return false; } for (int i = 0; i < getDocumentsCount(); i++) { if (!getDocuments(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + haveMoreDocuments_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1193,7 +1309,7 @@ public Builder mergeFrom( private java.util.List documents_ = java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000001; } @@ -1422,7 +1538,7 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuilder>( documents_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documents_ = null; @@ -1433,27 +1549,35 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV private boolean haveMoreDocuments_ ; /** * required bool HaveMoreDocuments = 2; + * @return Whether the haveMoreDocuments field is set. */ + @java.lang.Override public boolean hasHaveMoreDocuments() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool HaveMoreDocuments = 2; + * @return The haveMoreDocuments. */ + @java.lang.Override public boolean getHaveMoreDocuments() { return haveMoreDocuments_; } /** * required bool HaveMoreDocuments = 2; + * @param value The haveMoreDocuments to set. + * @return This builder for chaining. */ public Builder setHaveMoreDocuments(boolean value) { - bitField0_ |= 0x00000002; + haveMoreDocuments_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool HaveMoreDocuments = 2; + * @return This builder for chaining. */ public Builder clearHaveMoreDocuments() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1465,24 +1589,66 @@ public Builder clearHaveMoreDocuments() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SearchDocflowsResponseV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SearchDocflowsResponseV3) + private static final Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 DEFAULT_INSTANCE; static { - defaultInstance = new SearchDocflowsResponseV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3(); } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SearchDocflowsResponseV3) - } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public interface FetchedDocumentV3OrBuilder extends - // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.FetchedDocumentV3) - com.google.protobuf.MessageOrBuilder { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDocflowsResponseV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - /** - * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 1; - */ - boolean hasDocument(); - /** - * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 1; + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.SearchDocflowsResponseV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FetchedDocumentV3OrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.FetchedDocumentV3) + com.google.protobuf.MessageOrBuilder { + + /** + * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 1; + * @return Whether the document field is set. + */ + boolean hasDocument(); + /** + * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 1; + * @return The document. */ Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDocument(); /** @@ -1492,10 +1658,12 @@ public interface FetchedDocumentV3OrBuilder extends /** * required bytes IndexKey = 2; + * @return Whether the indexKey field is set. */ boolean hasIndexKey(); /** * required bytes IndexKey = 2; + * @return The indexKey. */ com.google.protobuf.ByteString getIndexKey(); } @@ -1506,86 +1674,30 @@ public static final class FetchedDocumentV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.FetchedDocumentV3) FetchedDocumentV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + FetchedDocumentV3.class.getName()); + } // Use FetchedDocumentV3.newBuilder() to construct. private FetchedDocumentV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private FetchedDocumentV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final FetchedDocumentV3 defaultInstance; - public static FetchedDocumentV3 getDefaultInstance() { - return defaultInstance; - } - - public FetchedDocumentV3 getDefaultInstanceForType() { - return defaultInstance; + private FetchedDocumentV3() { + indexKey_ = com.google.protobuf.ByteString.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FetchedDocumentV3( - 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: { - Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = document_.toBuilder(); - } - document_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(document_); - document_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - bitField0_ |= 0x00000002; - indexKey_ = input.readBytes(); - 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.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_FetchedDocumentV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_FetchedDocumentV3_fieldAccessorTable @@ -1593,63 +1705,54 @@ private FetchedDocumentV3( Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3.class, Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public FetchedDocumentV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchedDocumentV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 document_; /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 1; + * @return Whether the document field is set. */ + @java.lang.Override public boolean hasDocument() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 1; + * @return The document. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDocument() { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : document_; } /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuilder getDocumentOrBuilder() { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : document_; } public static final int INDEXKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString indexKey_; + private com.google.protobuf.ByteString indexKey_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes IndexKey = 2; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bytes IndexKey = 2; + * @return The indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKey() { return indexKey_; } - private void initFields() { - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); - indexKey_ = com.google.protobuf.ByteString.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1671,44 +1774,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, document_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDocument()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, indexKey_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, document_); + .computeMessageSize(1, getDocument()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, indexKey_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 other = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3) obj; + + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument() + .equals(other.getDocument())) return false; + } + if (hasIndexKey() != other.hasIndexKey()) return false; + if (hasIndexKey()) { + if (!getIndexKey() + .equals(other.getIndexKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + if (hasIndexKey()) { + hash = (37 * hash) + INDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getIndexKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1732,42 +1883,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 pars } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1787,6 +1953,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_FetchedDocumentV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_FetchedDocumentV3_fieldAccessorTable @@ -1805,40 +1972,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDocumentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (documentBuilder_ == null) { - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); - } else { - documentBuilder_.clear(); + bitField0_ = 0; + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); indexKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_FetchedDocumentV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 build() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 result = buildPartial(); if (!result.isInitialized()) { @@ -1847,27 +2010,31 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 result = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (documentBuilder_ == null) { - result.document_ = document_; - } else { - result.document_ = documentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.indexKey_ = indexKey_; to_bitField0_ |= 0x00000002; } - result.indexKey_ = indexKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3)other); @@ -1886,59 +2053,86 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocu setIndexKey(other.getIndexKey()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocument()) { - return false; } if (!hasIndexKey()) { - return false; } if (!getDocument().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + indexKey_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 document_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuilder> documentBuilder_; /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 1; + * @return Whether the document field is set. */ public boolean hasDocument() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 1; + * @return The document. */ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDocument() { if (documentBuilder_ == null) { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } @@ -1952,11 +2146,11 @@ public Builder setDocument(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos. throw new NullPointerException(); } document_ = value; - onChanged(); } else { documentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1966,11 +2160,11 @@ public Builder setDocument( Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder builderForValue) { if (documentBuilder_ == null) { document_ = builderForValue.build(); - onChanged(); } else { documentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1978,31 +2172,33 @@ public Builder setDocument( */ public Builder mergeDocument(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - document_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance()) { - document_ = - Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.newBuilder(document_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + document_ != null && + document_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); } else { document_ = value; } - onChanged(); } else { documentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (document_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 1; */ public Builder clearDocument() { - if (documentBuilder_ == null) { - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); - onChanged(); - } else { - documentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); return this; } /** @@ -2020,7 +2216,8 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_; + return document_ == null ? + Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : document_; } } /** @@ -2043,30 +2240,35 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV private com.google.protobuf.ByteString indexKey_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes IndexKey = 2; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bytes IndexKey = 2; + * @return The indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKey() { return indexKey_; } /** * required bytes IndexKey = 2; + * @param value The indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bytes IndexKey = 2; + * @return This builder for chaining. */ public Builder clearIndexKey() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2078,12 +2280,52 @@ public Builder clearIndexKey() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.FetchedDocumentV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.FetchedDocumentV3) + private static final Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 DEFAULT_INSTANCE; static { - defaultInstance = new FetchedDocumentV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchedDocumentV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.FetchedDocumentV3) } public interface GetDocflowsByPacketIdResponseV3OrBuilder extends @@ -2116,10 +2358,12 @@ Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3OrBuilder getDocume /** * optional bytes NextPageIndexKey = 2; + * @return Whether the nextPageIndexKey field is set. */ boolean hasNextPageIndexKey(); /** * optional bytes NextPageIndexKey = 2; + * @return The nextPageIndexKey. */ com.google.protobuf.ByteString getNextPageIndexKey(); } @@ -2130,84 +2374,31 @@ public static final class GetDocflowsByPacketIdResponseV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdResponseV3) GetDocflowsByPacketIdResponseV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocflowsByPacketIdResponseV3.class.getName()); + } // Use GetDocflowsByPacketIdResponseV3.newBuilder() to construct. private GetDocflowsByPacketIdResponseV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private GetDocflowsByPacketIdResponseV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocflowsByPacketIdResponseV3 defaultInstance; - public static GetDocflowsByPacketIdResponseV3 getDefaultInstance() { - return defaultInstance; - } - - public GetDocflowsByPacketIdResponseV3 getDefaultInstanceForType() { - return defaultInstance; + private GetDocflowsByPacketIdResponseV3() { + documents_ = java.util.Collections.emptyList(); + nextPageIndexKey_ = com.google.protobuf.ByteString.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocflowsByPacketIdResponseV3( - 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)) { - documents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documents_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3.PARSER, extensionRegistry)); - break; - } - case 18: { - bitField0_ |= 0x00000001; - nextPageIndexKey_ = input.readBytes(); - 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)) { - documents_ = java.util.Collections.unmodifiableList(documents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponseV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponseV3_fieldAccessorTable @@ -2215,33 +2406,21 @@ private GetDocflowsByPacketIdResponseV3( Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3.class, Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocflowsByPacketIdResponseV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocflowsByPacketIdResponseV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documents_; /** * repeated .Diadoc.Api.Proto.Docflow.FetchedDocumentV3 Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsList() { return documents_; } /** * repeated .Diadoc.Api.Proto.Docflow.FetchedDocumentV3 Documents = 1; */ + @java.lang.Override public java.util.List getDocumentsOrBuilderList() { return documents_; @@ -2249,43 +2428,47 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.FetchedDocumentV3 Documents = 1; */ + @java.lang.Override public int getDocumentsCount() { return documents_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.FetchedDocumentV3 Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 getDocuments(int index) { return documents_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.FetchedDocumentV3 Documents = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3OrBuilder getDocumentsOrBuilder( int index) { return documents_.get(index); } public static final int NEXTPAGEINDEXKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString nextPageIndexKey_; + private com.google.protobuf.ByteString nextPageIndexKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes NextPageIndexKey = 2; + * @return Whether the nextPageIndexKey field is set. */ + @java.lang.Override public boolean hasNextPageIndexKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bytes NextPageIndexKey = 2; + * @return The nextPageIndexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageIndexKey() { return nextPageIndexKey_; } - private void initFields() { - documents_ = java.util.Collections.emptyList(); - nextPageIndexKey_ = com.google.protobuf.ByteString.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2301,21 +2484,21 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < documents_.size(); i++) { output.writeMessage(1, documents_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(2, nextPageIndexKey_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2323,22 +2506,67 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, documents_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, nextPageIndexKey_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 other = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3) obj; + + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (hasNextPageIndexKey() != other.hasNextPageIndexKey()) return false; + if (hasNextPageIndexKey()) { + if (!getNextPageIndexKey() + .equals(other.getNextPageIndexKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + if (hasNextPageIndexKey()) { + hash = (37 * hash) + NEXTPAGEINDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getNextPageIndexKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2362,42 +2590,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdR } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2417,6 +2660,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponseV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponseV3_fieldAccessorTable @@ -2426,49 +2670,41 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (documentsBuilder_ == null) { documents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + documents_ = null; documentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageIndexKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponseV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 build() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 result = buildPartial(); if (!result.isInitialized()) { @@ -2477,12 +2713,18 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponse return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 result = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 result) { if (documentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { documents_ = java.util.Collections.unmodifiableList(documents_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -2490,15 +2732,19 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponse } else { result.documents_ = documentsBuilder_.build(); } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageIndexKey_ = nextPageIndexKey_; to_bitField0_ |= 0x00000001; } - result.nextPageIndexKey_ = nextPageIndexKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3)other); @@ -2540,34 +2786,67 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflows setNextPageIndexKey(other.getNextPageIndexKey()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getDocumentsCount(); i++) { if (!getDocuments(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3 m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageIndexKey_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2575,7 +2854,7 @@ public Builder mergeFrom( private java.util.List documents_ = java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000001; } @@ -2804,7 +3083,7 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3.Builder add documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3, Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3.Builder, Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3OrBuilder>( documents_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documents_ = null; @@ -2815,30 +3094,35 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.FetchedDocumentV3.Builder add private com.google.protobuf.ByteString nextPageIndexKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes NextPageIndexKey = 2; + * @return Whether the nextPageIndexKey field is set. */ + @java.lang.Override public boolean hasNextPageIndexKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes NextPageIndexKey = 2; + * @return The nextPageIndexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageIndexKey() { return nextPageIndexKey_; } /** * optional bytes NextPageIndexKey = 2; + * @param value The nextPageIndexKey to set. + * @return This builder for chaining. */ public Builder setNextPageIndexKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } nextPageIndexKey_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional bytes NextPageIndexKey = 2; + * @return This builder for chaining. */ public Builder clearNextPageIndexKey() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2850,12 +3134,52 @@ public Builder clearNextPageIndexKey() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdResponseV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdResponseV3) + private static final Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 DEFAULT_INSTANCE; static { - defaultInstance = new GetDocflowsByPacketIdResponseV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocflowsByPacketIdResponseV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowsByPacketIdResponseV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowsByPacketIdResponseV3) } public interface GetDocflowEventsResponseV3OrBuilder extends @@ -2864,10 +3188,12 @@ public interface GetDocflowEventsResponseV3OrBuilder extends /** * required int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ boolean hasTotalCount(); /** * required int32 TotalCount = 1; + * @return The totalCount. */ int getTotalCount(); @@ -2897,10 +3223,12 @@ Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3OrBuilder getEventsOrB /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ boolean hasTotalCountType(); /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType(); } @@ -2911,95 +3239,31 @@ public static final class GetDocflowEventsResponseV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.GetDocflowEventsResponseV3) GetDocflowEventsResponseV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocflowEventsResponseV3.class.getName()); + } // Use GetDocflowEventsResponseV3.newBuilder() to construct. private GetDocflowEventsResponseV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetDocflowEventsResponseV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocflowEventsResponseV3 defaultInstance; - public static GetDocflowEventsResponseV3 getDefaultInstance() { - return defaultInstance; } - - public GetDocflowEventsResponseV3 getDefaultInstanceForType() { - return defaultInstance; + private GetDocflowEventsResponseV3() { + events_ = java.util.Collections.emptyList(); + totalCountType_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocflowEventsResponseV3( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - totalCount_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - events_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3.PARSER, extensionRegistry)); - break; - } - case 24: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType value = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000002; - totalCountType_ = value; - } - 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_ & 0x00000002) == 0x00000002)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponseV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponseV3_fieldAccessorTable @@ -3007,48 +3271,40 @@ private GetDocflowEventsResponseV3( Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3.class, Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocflowEventsResponseV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocflowEventsResponseV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TOTALCOUNT_FIELD_NUMBER = 1; - private int totalCount_; + private int totalCount_ = 0; /** * required int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 TotalCount = 1; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } public static final int EVENTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List events_; /** * repeated .Diadoc.Api.Proto.Docflow.DocflowEventV3 Events = 2; */ + @java.lang.Override public java.util.List getEventsList() { return events_; } /** * repeated .Diadoc.Api.Proto.Docflow.DocflowEventV3 Events = 2; */ + @java.lang.Override public java.util.List getEventsOrBuilderList() { return events_; @@ -3056,44 +3312,46 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.DocflowEventV3 Events = 2; */ + @java.lang.Override public int getEventsCount() { return events_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.DocflowEventV3 Events = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 getEvents(int index) { return events_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.DocflowEventV3 Events = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3OrBuilder getEventsOrBuilder( int index) { return events_.get(index); } public static final int TOTALCOUNTTYPE_FIELD_NUMBER = 3; - private Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType totalCountType_; + private int totalCountType_ = 0; /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ - public boolean hasTotalCountType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasTotalCountType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ - public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { - return totalCountType_; + @java.lang.Override public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType result = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(totalCountType_); + return result == null ? Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType : result; } - private void initFields() { - totalCount_ = 0; - events_ = java.util.Collections.emptyList(); - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3117,28 +3375,28 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, totalCount_); } for (int i = 0; i < events_.size(); i++) { output.writeMessage(2, events_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(3, totalCountType_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, totalCountType_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, totalCount_); } @@ -3146,22 +3404,75 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, events_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, totalCountType_.getNumber()); + .computeEnumSize(3, totalCountType_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 other = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3) obj; + + if (hasTotalCount() != other.hasTotalCount()) return false; + if (hasTotalCount()) { + if (getTotalCount() + != other.getTotalCount()) return false; + } + if (!getEventsList() + .equals(other.getEventsList())) return false; + if (hasTotalCountType() != other.hasTotalCountType()) return false; + if (hasTotalCountType()) { + if (totalCountType_ != other.totalCountType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalCount()) { + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + } + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + if (hasTotalCountType()) { + hash = (37 * hash) + TOTALCOUNTTYPE_FIELD_NUMBER; + hash = (53 * hash) + totalCountType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3185,42 +3496,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsRespon } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3240,6 +3566,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponseV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponseV3_fieldAccessorTable @@ -3249,51 +3576,42 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getEventsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; totalCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + events_ = null; eventsBuilder_.clear(); } - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); + totalCountType_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponseV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 build() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 result = buildPartial(); if (!result.isInitialized()) { @@ -3302,16 +3620,18 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 bu return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 result = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.totalCount_ = totalCount_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 result) { if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000002); } @@ -3319,15 +3639,23 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 bu } else { result.events_ = eventsBuilder_.build(); } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalCount_ = totalCount_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalCountType_ = totalCountType_; to_bitField0_ |= 0x00000002; } - result.totalCountType_ = totalCountType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3)other); @@ -3372,42 +3700,85 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowE setTotalCountType(other.getTotalCountType()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotalCount()) { - return false; } if (!hasTotalCountType()) { - return false; } for (int i = 0; i < getEventsCount(); i++) { if (!getEvents(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3.parser(), + extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType tmpValue = + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + totalCountType_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3415,27 +3786,35 @@ public Builder mergeFrom( private int totalCount_ ; /** * required int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 TotalCount = 1; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } /** * required int32 TotalCount = 1; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - bitField0_ |= 0x00000001; + totalCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int32 TotalCount = 1; + * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000001); @@ -3447,7 +3826,7 @@ public Builder clearTotalCount() { private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000002; } @@ -3676,7 +4055,7 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3.Builder addEve eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3, Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3.Builder, Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3OrBuilder>( events_, - ((bitField0_ & 0x00000002) == 0x00000002), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); events_ = null; @@ -3684,37 +4063,44 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3.Builder addEve return eventsBuilder_; } - private Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; + private int totalCountType_ = 0; /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ - public boolean hasTotalCountType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasTotalCountType() { + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ + @java.lang.Override public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { - return totalCountType_; + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType result = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(totalCountType_); + return result == null ? Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType : result; } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @param value The totalCountType to set. + * @return This builder for chaining. */ public Builder setTotalCountType(Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - totalCountType_ = value; + totalCountType_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return This builder for chaining. */ public Builder clearTotalCountType() { bitField0_ = (bitField0_ & ~0x00000004); - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; + totalCountType_ = 0; onChanged(); return this; } @@ -3722,12 +4108,52 @@ public Builder clearTotalCountType() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.GetDocflowEventsResponseV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowEventsResponseV3) + private static final Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 DEFAULT_INSTANCE; static { - defaultInstance = new GetDocflowEventsResponseV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocflowEventsResponseV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.GetDocflowEventsResponseV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.GetDocflowEventsResponseV3) } public interface DocflowEventV3OrBuilder extends @@ -3736,24 +4162,29 @@ public interface DocflowEventV3OrBuilder extends /** * required string EventId = 1; + * @return Whether the eventId field is set. */ boolean hasEventId(); /** * required string EventId = 1; + * @return The eventId. */ java.lang.String getEventId(); /** * required string EventId = 1; + * @return The bytes for eventId. */ com.google.protobuf.ByteString getEventIdBytes(); /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return The timestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getTimestamp(); /** @@ -3763,10 +4194,12 @@ public interface DocflowEventV3OrBuilder extends /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return Whether the documentId field is set. */ boolean hasDocumentId(); /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return The documentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId(); /** @@ -3776,19 +4209,23 @@ public interface DocflowEventV3OrBuilder extends /** * required bytes IndexKey = 4; + * @return Whether the indexKey field is set. */ boolean hasIndexKey(); /** * required bytes IndexKey = 4; + * @return The indexKey. */ com.google.protobuf.ByteString getIndexKey(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 5; + * @return Whether the document field is set. */ boolean hasDocument(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 5; + * @return The document. */ Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDocument(); /** @@ -3798,24 +4235,29 @@ public interface DocflowEventV3OrBuilder extends /** * optional string PreviousEventId = 6; + * @return Whether the previousEventId field is set. */ boolean hasPreviousEventId(); /** * optional string PreviousEventId = 6; + * @return The previousEventId. */ java.lang.String getPreviousEventId(); /** * optional string PreviousEventId = 6; + * @return The bytes for previousEventId. */ com.google.protobuf.ByteString getPreviousEventIdBytes(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 PreviousDocumentState = 7; + * @return Whether the previousDocumentState field is set. */ boolean hasPreviousDocumentState(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 PreviousDocumentState = 7; + * @return The previousDocumentState. */ Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getPreviousDocumentState(); /** @@ -3830,137 +4272,32 @@ public static final class DocflowEventV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocflowEventV3) DocflowEventV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowEventV3.class.getName()); + } // Use DocflowEventV3.newBuilder() to construct. private DocflowEventV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DocflowEventV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocflowEventV3 defaultInstance; - public static DocflowEventV3 getDefaultInstance() { - return defaultInstance; - } - - public DocflowEventV3 getDefaultInstanceForType() { - return defaultInstance; + private DocflowEventV3() { + eventId_ = ""; + indexKey_ = com.google.protobuf.ByteString.EMPTY; + previousEventId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocflowEventV3( - 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; - eventId_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = documentId_.toBuilder(); - } - documentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentId_); - documentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - bitField0_ |= 0x00000008; - indexKey_ = input.readBytes(); - break; - } - case 42: { - Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = document_.toBuilder(); - } - document_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(document_); - document_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - previousEventId_ = bs; - break; - } - case 58: { - Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = previousDocumentState_.toBuilder(); - } - previousDocumentState_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(previousDocumentState_); - previousDocumentState_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - 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.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocflowEventV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocflowEventV3_fieldAccessorTable @@ -3968,33 +4305,23 @@ private DocflowEventV3( Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3.class, Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocflowEventV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocflowEventV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int EVENTID_FIELD_NUMBER = 1; - private java.lang.Object eventId_; + @SuppressWarnings("serial") + private volatile java.lang.Object eventId_ = ""; /** * required string EventId = 1; + * @return Whether the eventId field is set. */ + @java.lang.Override public boolean hasEventId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string EventId = 1; + * @return The eventId. */ + @java.lang.Override public java.lang.String getEventId() { java.lang.Object ref = eventId_; if (ref instanceof java.lang.String) { @@ -4011,7 +4338,9 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @return The bytes for eventId. */ + @java.lang.Override public com.google.protobuf.ByteString getEventIdBytes() { java.lang.Object ref = eventId_; @@ -4030,55 +4359,69 @@ public java.lang.String getEventId() { private Diadoc.Api.Proto.TimestampProtos.Timestamp timestamp_; /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return Whether the timestamp field is set. */ + @java.lang.Override public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return The timestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getTimestamp() { - return timestamp_; + return timestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder() { - return timestamp_; + return timestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } public static final int DOCUMENTID_FIELD_NUMBER = 3; private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return Whether the documentId field is set. */ + @java.lang.Override public boolean hasDocumentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return The documentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 3; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuilder() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } public static final int INDEXKEY_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString indexKey_; + private com.google.protobuf.ByteString indexKey_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes IndexKey = 4; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required bytes IndexKey = 4; + * @return The indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKey() { return indexKey_; } @@ -4087,34 +4430,44 @@ public com.google.protobuf.ByteString getIndexKey() { private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 document_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 5; + * @return Whether the document field is set. */ + @java.lang.Override public boolean hasDocument() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 5; + * @return The document. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDocument() { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : document_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuilder getDocumentOrBuilder() { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : document_; } public static final int PREVIOUSEVENTID_FIELD_NUMBER = 6; - private java.lang.Object previousEventId_; + @SuppressWarnings("serial") + private volatile java.lang.Object previousEventId_ = ""; /** * optional string PreviousEventId = 6; + * @return Whether the previousEventId field is set. */ + @java.lang.Override public boolean hasPreviousEventId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string PreviousEventId = 6; + * @return The previousEventId. */ + @java.lang.Override public java.lang.String getPreviousEventId() { java.lang.Object ref = previousEventId_; if (ref instanceof java.lang.String) { @@ -4131,7 +4484,9 @@ public java.lang.String getPreviousEventId() { } /** * optional string PreviousEventId = 6; + * @return The bytes for previousEventId. */ + @java.lang.Override public com.google.protobuf.ByteString getPreviousEventIdBytes() { java.lang.Object ref = previousEventId_; @@ -4150,33 +4505,30 @@ public java.lang.String getPreviousEventId() { private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 previousDocumentState_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 PreviousDocumentState = 7; + * @return Whether the previousDocumentState field is set. */ + @java.lang.Override public boolean hasPreviousDocumentState() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 PreviousDocumentState = 7; + * @return The previousDocumentState. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getPreviousDocumentState() { - return previousDocumentState_; + return previousDocumentState_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : previousDocumentState_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 PreviousDocumentState = 7; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuilder getPreviousDocumentStateOrBuilder() { - return previousDocumentState_; + return previousDocumentState_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : previousDocumentState_; } - private void initFields() { - eventId_ = ""; - timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - indexKey_ = com.google.protobuf.ByteString.EMPTY; - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); - previousEventId_ = ""; - previousDocumentState_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4222,79 +4574,170 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getEventIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, eventId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, timestamp_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTimestamp()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, documentId_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDocumentId()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBytes(4, indexKey_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, document_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getDocument()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getPreviousEventIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, previousEventId_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, previousDocumentState_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getPreviousDocumentState()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getEventIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, eventId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, timestamp_); + .computeMessageSize(2, getTimestamp()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, documentId_); + .computeMessageSize(3, getDocumentId()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, indexKey_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, document_); + .computeMessageSize(5, getDocument()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getPreviousEventIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, previousEventId_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, previousDocumentState_); + .computeMessageSize(7, getPreviousDocumentState()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 other = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3) obj; + + if (hasEventId() != other.hasEventId()) return false; + if (hasEventId()) { + if (!getEventId() + .equals(other.getEventId())) return false; + } + if (hasTimestamp() != other.hasTimestamp()) return false; + if (hasTimestamp()) { + if (!getTimestamp() + .equals(other.getTimestamp())) return false; + } + if (hasDocumentId() != other.hasDocumentId()) return false; + if (hasDocumentId()) { + if (!getDocumentId() + .equals(other.getDocumentId())) return false; + } + if (hasIndexKey() != other.hasIndexKey()) return false; + if (hasIndexKey()) { + if (!getIndexKey() + .equals(other.getIndexKey())) return false; + } + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument() + .equals(other.getDocument())) return false; + } + if (hasPreviousEventId() != other.hasPreviousEventId()) return false; + if (hasPreviousEventId()) { + if (!getPreviousEventId() + .equals(other.getPreviousEventId())) return false; + } + if (hasPreviousDocumentState() != other.hasPreviousDocumentState()) return false; + if (hasPreviousDocumentState()) { + if (!getPreviousDocumentState() + .equals(other.getPreviousDocumentState())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEventId()) { + hash = (37 * hash) + EVENTID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + } + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp().hashCode(); + } + if (hasDocumentId()) { + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDocumentId().hashCode(); + } + if (hasIndexKey()) { + hash = (37 * hash) + INDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getIndexKey().hashCode(); + } + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + if (hasPreviousEventId()) { + hash = (37 * hash) + PREVIOUSEVENTID_FIELD_NUMBER; + hash = (53 * hash) + getPreviousEventId().hashCode(); + } + if (hasPreviousDocumentState()) { + hash = (37 * hash) + PREVIOUSDOCUMENTSTATE_FIELD_NUMBER; + hash = (53 * hash) + getPreviousDocumentState().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4318,42 +4761,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parseFr } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4373,6 +4831,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocflowEventV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocflowEventV3_fieldAccessorTable @@ -4391,65 +4850,56 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getTimestampFieldBuilder(); getDocumentIdFieldBuilder(); getDocumentFieldBuilder(); getPreviousDocumentStateFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; eventId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (timestampBuilder_ == null) { - timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - timestampBuilder_.clear(); + timestamp_ = null; + if (timestampBuilder_ != null) { + timestampBuilder_.dispose(); + timestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - documentIdBuilder_.clear(); + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); indexKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (documentBuilder_ == null) { - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); - } else { - documentBuilder_.clear(); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); previousEventId_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - if (previousDocumentStateBuilder_ == null) { - previousDocumentState_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); - } else { - previousDocumentStateBuilder_.clear(); + previousDocumentState_ = null; + if (previousDocumentStateBuilder_ != null) { + previousDocumentStateBuilder_.dispose(); + previousDocumentStateBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000040); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocflowEventV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 build() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 result = buildPartial(); if (!result.isInitialized()) { @@ -4458,59 +4908,57 @@ public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 result = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eventId_ = eventId_; to_bitField0_ |= 0x00000001; } - result.eventId_ = eventId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timestamp_ = timestampBuilder_ == null + ? timestamp_ + : timestampBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.documentId_ = documentIdBuilder_ == null + ? documentId_ + : documentIdBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (documentIdBuilder_ == null) { - result.documentId_ = documentId_; - } else { - result.documentId_ = documentIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.indexKey_ = indexKey_; to_bitField0_ |= 0x00000008; } - result.indexKey_ = indexKey_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (documentBuilder_ == null) { - result.document_ = document_; - } else { - result.document_ = documentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.previousEventId_ = previousEventId_; to_bitField0_ |= 0x00000020; } - result.previousEventId_ = previousEventId_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.previousDocumentState_ = previousDocumentStateBuilder_ == null + ? previousDocumentState_ + : previousDocumentStateBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (previousDocumentStateBuilder_ == null) { - result.previousDocumentState_ = previousDocumentState_; - } else { - result.previousDocumentState_ = previousDocumentStateBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3)other); @@ -4523,8 +4971,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 other) { if (other == Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3.getDefaultInstance()) return this; if (other.hasEventId()) { - bitField0_ |= 0x00000001; eventId_ = other.eventId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTimestamp()) { @@ -4540,72 +4988,123 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEven mergeDocument(other.getDocument()); } if (other.hasPreviousEventId()) { - bitField0_ |= 0x00000020; previousEventId_ = other.previousEventId_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasPreviousDocumentState()) { mergePreviousDocumentState(other.getPreviousDocumentState()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasEventId()) { - return false; } if (!hasTimestamp()) { - return false; } if (!hasDocumentId()) { - return false; } if (!hasIndexKey()) { - return false; } if (!getTimestamp().isInitialized()) { - return false; } if (!getDocumentId().isInitialized()) { - return false; } if (hasDocument()) { if (!getDocument().isInitialized()) { - return false; } } if (hasPreviousDocumentState()) { if (!getPreviousDocumentState().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + eventId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + indexKey_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + previousEventId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getPreviousDocumentStateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -4613,12 +5112,14 @@ public Builder mergeFrom( private java.lang.Object eventId_ = ""; /** * required string EventId = 1; + * @return Whether the eventId field is set. */ public boolean hasEventId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string EventId = 1; + * @return The eventId. */ public java.lang.String getEventId() { java.lang.Object ref = eventId_; @@ -4636,6 +5137,7 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @return The bytes for eventId. */ public com.google.protobuf.ByteString getEventIdBytes() { @@ -4652,55 +5154,58 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @param value The eventId to set. + * @return This builder for chaining. */ public Builder setEventId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } eventId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string EventId = 1; + * @return This builder for chaining. */ public Builder clearEventId() { - bitField0_ = (bitField0_ & ~0x00000001); eventId_ = getDefaultInstance().getEventId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string EventId = 1; + * @param value The bytes for eventId to set. + * @return This builder for chaining. */ public Builder setEventIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } eventId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> timestampBuilder_; /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return The timestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getTimestamp() { if (timestampBuilder_ == null) { - return timestamp_; + return timestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } @@ -4714,11 +5219,11 @@ public Builder setTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { throw new NullPointerException(); } timestamp_ = value; - onChanged(); } else { timestampBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4728,11 +5233,11 @@ public Builder setTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); - onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4740,31 +5245,33 @@ public Builder setTimestamp( */ public Builder mergeTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (timestampBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - timestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - timestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + timestamp_ != null && + timestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getTimestampBuilder().mergeFrom(value); } else { timestamp_ = value; } - onChanged(); } else { timestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (timestamp_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; */ public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - timestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + timestamp_ = null; + if (timestampBuilder_ != null) { + timestampBuilder_.dispose(); + timestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -4782,7 +5289,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { - return timestamp_; + return timestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } } /** @@ -4802,21 +5310,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder return timestampBuilder_; } - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> documentIdBuilder_; /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return Whether the documentId field is set. */ public boolean hasDocumentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 3; + * @return The documentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { if (documentIdBuilder_ == null) { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } else { return documentIdBuilder_.getMessage(); } @@ -4830,11 +5340,11 @@ public Builder setDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) throw new NullPointerException(); } documentId_ = value; - onChanged(); } else { documentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4844,11 +5354,11 @@ public Builder setDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (documentIdBuilder_ == null) { documentId_ = builderForValue.build(); - onChanged(); } else { documentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4856,31 +5366,33 @@ public Builder setDocumentId( */ public Builder mergeDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (documentIdBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - documentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(documentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + documentId_ != null && + documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getDocumentIdBuilder().mergeFrom(value); } else { documentId_ = value; } - onChanged(); } else { documentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (documentId_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 3; */ public Builder clearDocumentId() { - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - documentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -4898,7 +5410,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil if (documentIdBuilder_ != null) { return documentIdBuilder_.getMessageOrBuilder(); } else { - return documentId_; + return documentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } } /** @@ -4921,30 +5434,35 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil private com.google.protobuf.ByteString indexKey_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes IndexKey = 4; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required bytes IndexKey = 4; + * @return The indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKey() { return indexKey_; } /** * required bytes IndexKey = 4; + * @param value The indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required bytes IndexKey = 4; + * @return This builder for chaining. */ public Builder clearIndexKey() { bitField0_ = (bitField0_ & ~0x00000008); @@ -4953,21 +5471,23 @@ public Builder clearIndexKey() { return this; } - private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 document_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuilder> documentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 5; + * @return Whether the document field is set. */ public boolean hasDocument() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 5; + * @return The document. */ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDocument() { if (documentBuilder_ == null) { - return document_; + return document_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } @@ -4981,11 +5501,11 @@ public Builder setDocument(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos. throw new NullPointerException(); } document_ = value; - onChanged(); } else { documentBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4995,11 +5515,11 @@ public Builder setDocument( Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder builderForValue) { if (documentBuilder_ == null) { document_ = builderForValue.build(); - onChanged(); } else { documentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5007,31 +5527,33 @@ public Builder setDocument( */ public Builder mergeDocument(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - document_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance()) { - document_ = - Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.newBuilder(document_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + document_ != null && + document_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); } else { document_ = value; } - onChanged(); } else { documentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (document_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 Document = 5; */ public Builder clearDocument() { - if (documentBuilder_ == null) { - document_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); - onChanged(); - } else { - documentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); return this; } /** @@ -5049,7 +5571,8 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_; + return document_ == null ? + Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : document_; } } /** @@ -5072,12 +5595,14 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV private java.lang.Object previousEventId_ = ""; /** * optional string PreviousEventId = 6; + * @return Whether the previousEventId field is set. */ public boolean hasPreviousEventId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string PreviousEventId = 6; + * @return The previousEventId. */ public java.lang.String getPreviousEventId() { java.lang.Object ref = previousEventId_; @@ -5095,6 +5620,7 @@ public java.lang.String getPreviousEventId() { } /** * optional string PreviousEventId = 6; + * @return The bytes for previousEventId. */ public com.google.protobuf.ByteString getPreviousEventIdBytes() { @@ -5111,55 +5637,58 @@ public java.lang.String getPreviousEventId() { } /** * optional string PreviousEventId = 6; + * @param value The previousEventId to set. + * @return This builder for chaining. */ public Builder setPreviousEventId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } previousEventId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional string PreviousEventId = 6; + * @return This builder for chaining. */ public Builder clearPreviousEventId() { - bitField0_ = (bitField0_ & ~0x00000020); previousEventId_ = getDefaultInstance().getPreviousEventId(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * optional string PreviousEventId = 6; + * @param value The bytes for previousEventId to set. + * @return This builder for chaining. */ public Builder setPreviousEventIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } previousEventId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 previousDocumentState_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 previousDocumentState_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3OrBuilder> previousDocumentStateBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 PreviousDocumentState = 7; + * @return Whether the previousDocumentState field is set. */ public boolean hasPreviousDocumentState() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 PreviousDocumentState = 7; + * @return The previousDocumentState. */ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getPreviousDocumentState() { if (previousDocumentStateBuilder_ == null) { - return previousDocumentState_; + return previousDocumentState_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : previousDocumentState_; } else { return previousDocumentStateBuilder_.getMessage(); } @@ -5173,11 +5702,11 @@ public Builder setPreviousDocumentState(Diadoc.Api.Proto.Docflow.DocumentWithDoc throw new NullPointerException(); } previousDocumentState_ = value; - onChanged(); } else { previousDocumentStateBuilder_.setMessage(value); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5187,11 +5716,11 @@ public Builder setPreviousDocumentState( Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder builderForValue) { if (previousDocumentStateBuilder_ == null) { previousDocumentState_ = builderForValue.build(); - onChanged(); } else { previousDocumentStateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5199,31 +5728,33 @@ public Builder setPreviousDocumentState( */ public Builder mergePreviousDocumentState(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 value) { if (previousDocumentStateBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - previousDocumentState_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance()) { - previousDocumentState_ = - Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.newBuilder(previousDocumentState_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) && + previousDocumentState_ != null && + previousDocumentState_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance()) { + getPreviousDocumentStateBuilder().mergeFrom(value); } else { previousDocumentState_ = value; } - onChanged(); } else { previousDocumentStateBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + if (previousDocumentState_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3 PreviousDocumentState = 7; */ public Builder clearPreviousDocumentState() { - if (previousDocumentStateBuilder_ == null) { - previousDocumentState_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); - onChanged(); - } else { - previousDocumentStateBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000040); + previousDocumentState_ = null; + if (previousDocumentStateBuilder_ != null) { + previousDocumentStateBuilder_.dispose(); + previousDocumentStateBuilder_ = null; + } + onChanged(); return this; } /** @@ -5241,7 +5772,8 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV if (previousDocumentStateBuilder_ != null) { return previousDocumentStateBuilder_.getMessageOrBuilder(); } else { - return previousDocumentState_; + return previousDocumentState_ == null ? + Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance() : previousDocumentState_; } } /** @@ -5264,42 +5796,82 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocflowEventV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocflowEventV3) + private static final Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 DEFAULT_INSTANCE; static { - defaultInstance = new DocflowEventV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocflowEventV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowApiV3Protos.DocflowEventV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocflowEventV3) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponseV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponseV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponseV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SearchDocflowsResponseV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_FetchedDocumentV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_FetchedDocumentV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponseV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_GetDocflowsByPacketIdResponseV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponseV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_GetDocflowEventsResponseV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocflowEventV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocflowEventV3_fieldAccessorTable; @@ -5307,7 +5879,7 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -5320,7 +5892,7 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV "lowV3\"y\n\030SearchDocflowsResponseV3\022B\n\tDoc" + "uments\030\001 \003(\0132/.Diadoc.Api.Proto.Docflow." + "DocumentWithDocflowV3\022\031\n\021HaveMoreDocumen" + - "ts\030\002 \002(\010\"h\n\021FetchedDocumentV3\022A\n\010Documen", + "ts\030\002 \002(\010\"h\n\021FetchedDocumentV3\022A\n\010Documen" + "t\030\001 \002(\0132/.Diadoc.Api.Proto.Docflow.Docum" + "entWithDocflowV3\022\020\n\010IndexKey\030\002 \002(\014\"{\n\037Ge" + "tDocflowsByPacketIdResponseV3\022>\n\tDocumen" + @@ -5330,7 +5902,7 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV "ount\030\001 \002(\005\0228\n\006Events\030\002 \003(\0132(.Diadoc.Api." + "Proto.Docflow.DocflowEventV3\0228\n\016TotalCou" + "ntType\030\003 \002(\0162 .Diadoc.Api.Proto.TotalCou" + - "ntType\"\301\002\n\016DocflowEventV3\022\017\n\007EventId\030\001 \002", + "ntType\"\301\002\n\016DocflowEventV3\022\017\n\007EventId\030\001 \002" + "(\t\022.\n\tTimestamp\030\002 \002(\0132\033.Diadoc.Api.Proto" + ".Timestamp\0220\n\nDocumentId\030\003 \002(\0132\034.Diadoc." + "Api.Proto.DocumentId\022\020\n\010IndexKey\030\004 \002(\014\022A" + @@ -5340,22 +5912,14 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV "\0132/.Diadoc.Api.Proto.Docflow.DocumentWit" + "hDocflowV3B\024B\022DocflowApiV3Protos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(), Diadoc.Api.Proto.TotalCountTypeProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponseV3_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_GetDocflowBatchResponseV3_fieldAccessorTable = new @@ -5392,6 +5956,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_DocflowEventV3_descriptor, new java.lang.String[] { "EventId", "Timestamp", "DocumentId", "IndexKey", "Document", "PreviousEventId", "PreviousDocumentState", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); Diadoc.Api.Proto.TotalCountTypeProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/DocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/DocflowProtos.java index b47f980c..3cbcddd5 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/DocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/DocflowProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/Docflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class DocflowProtos { private DocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Docflow.DocflowStatusSeverity} @@ -14,37 +31,46 @@ public static void registerAllExtensions( public enum DocflowStatusSeverity implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownDocflowStatusSeverity = 0; - * *
      * reserved for backward compatibility
      * 
+ * + * UnknownDocflowStatusSeverity = 0; */ - UnknownDocflowStatusSeverity(0, 0), + UnknownDocflowStatusSeverity(0), /** * Info = 1; */ - Info(1, 1), + Info(1), /** * Success = 2; */ - Success(2, 2), + Success(2), /** * Warning = 3; */ - Warning(3, 3), + Warning(3), /** * Error = 4; */ - Error(4, 4), + Error(4), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowStatusSeverity.class.getName()); + } /** - * UnknownDocflowStatusSeverity = 0; - * *
      * reserved for backward compatibility
      * 
+ * + * UnknownDocflowStatusSeverity = 0; */ public static final int UnknownDocflowStatusSeverity_VALUE = 0; /** @@ -65,9 +91,25 @@ public enum DocflowStatusSeverity public static final int Error_VALUE = 4; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static DocflowStatusSeverity valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DocflowStatusSeverity forNumber(int value) { switch (value) { case 0: return UnknownDocflowStatusSeverity; case 1: return Info; @@ -82,17 +124,17 @@ public static DocflowStatusSeverity valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + DocflowStatusSeverity> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DocflowStatusSeverity findValueByNumber(int number) { - return DocflowStatusSeverity.valueOf(number); + return DocflowStatusSeverity.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -114,36 +156,38 @@ public static DocflowStatusSeverity valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private DocflowStatusSeverity(int index, int value) { - this.index = index; + private DocflowStatusSeverity(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Diadoc.Api.Proto.Docflow.DocflowStatusSeverity) } - public interface DocflowOrBuilder extends + @java.lang.Deprecated public interface DocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.Docflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment DocumentAttachment = 2; + * @return Whether the documentAttachment field is set. */ boolean hasDocumentAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment DocumentAttachment = 2; + * @return The documentAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getDocumentAttachment(); /** @@ -153,33 +197,40 @@ public interface DocflowOrBuilder extends /** * optional string DepartmentId = 3; + * @return Whether the departmentId field is set. */ boolean hasDepartmentId(); /** * optional string DepartmentId = 3; + * @return The departmentId. */ java.lang.String getDepartmentId(); /** * optional string DepartmentId = 3; + * @return The bytes for departmentId. */ com.google.protobuf.ByteString getDepartmentIdBytes(); /** * optional bool DocumentIsDeleted = 4; + * @return Whether the documentIsDeleted field is set. */ boolean hasDocumentIsDeleted(); /** * optional bool DocumentIsDeleted = 4; + * @return The documentIsDeleted. */ boolean getDocumentIsDeleted(); /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatus DocflowStatus = 5; + * @return Whether the docflowStatus field is set. */ boolean hasDocflowStatus(); /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatus DocflowStatus = 5; + * @return The docflowStatus. */ Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus getDocflowStatus(); /** @@ -189,10 +240,12 @@ public interface DocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 6; + * @return Whether the sendTimestamp field is set. */ boolean hasSendTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 6; + * @return The sendTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getSendTimestamp(); /** @@ -202,10 +255,12 @@ public interface DocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 7; + * @return Whether the deliveryTimestamp field is set. */ boolean hasDeliveryTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 7; + * @return The deliveryTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp(); /** @@ -214,136 +269,148 @@ public interface DocflowOrBuilder extends Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; + * @return Whether the inboundInvoiceDocflow field is set. */ boolean hasInboundInvoiceDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; + * @return The inboundInvoiceDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow getInboundInvoiceDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflowOrBuilder getInboundInvoiceDocflowOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; + * @return Whether the outboundInvoiceDocflow field is set. */ boolean hasOutboundInvoiceDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; + * @return The outboundInvoiceDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow getOutboundInvoiceDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflowOrBuilder getOutboundInvoiceDocflowOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
      * for XmlTorg12, XmlAcceptanceCertificate
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; + * @return Whether the xmlBilateralDocflow field is set. */ boolean hasXmlBilateralDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
      * for XmlTorg12, XmlAcceptanceCertificate
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; + * @return The xmlBilateralDocflow. */ Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow getXmlBilateralDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
      * for XmlTorg12, XmlAcceptanceCertificate
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; */ Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflowOrBuilder getXmlBilateralDocflowOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
      * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; + * @return Whether the bilateralDocflow field is set. */ boolean hasBilateralDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
      * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; + * @return The bilateralDocflow. */ Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow getBilateralDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
      * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; */ Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflowOrBuilder getBilateralDocflowOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
      * for ProformaInvoice, ServiceDetails
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; + * @return Whether the unilateralDocflow field is set. */ boolean hasUnilateralDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
      * for ProformaInvoice, ServiceDetails
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; + * @return The unilateralDocflow. */ Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow getUnilateralDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
      * for ProformaInvoice, ServiceDetails
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; */ Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflowOrBuilder getUnilateralDocflowOrBuilder(); /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflow RevocationDocflow = 13; + * @return Whether the revocationDocflow field is set. */ boolean hasRevocationDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflow RevocationDocflow = 13; + * @return The revocationDocflow. */ Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow getRevocationDocflow(); /** @@ -353,10 +420,12 @@ public interface DocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflow ResolutionDocflow = 14; + * @return Whether the resolutionDocflow field is set. */ boolean hasResolutionDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflow ResolutionDocflow = 14; + * @return The resolutionDocflow. */ Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow getResolutionDocflow(); /** @@ -366,23 +435,28 @@ public interface DocflowOrBuilder extends /** * optional bool CanDocumentBeRevokedUnilaterallyBySender = 15; + * @return Whether the canDocumentBeRevokedUnilaterallyBySender field is set. */ boolean hasCanDocumentBeRevokedUnilaterallyBySender(); /** * optional bool CanDocumentBeRevokedUnilaterallyBySender = 15; + * @return The canDocumentBeRevokedUnilaterallyBySender. */ boolean getCanDocumentBeRevokedUnilaterallyBySender(); /** * optional string PacketId = 16; + * @return Whether the packetId field is set. */ boolean hasPacketId(); /** * optional string PacketId = 16; + * @return The packetId. */ java.lang.String getPacketId(); /** * optional string PacketId = 16; + * @return The bytes for packetId. */ com.google.protobuf.ByteString getPacketIdBytes(); @@ -412,61 +486,67 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui int index); /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; + * @return Whether the inboundUniversalTransferDocumentDocflow field is set. */ boolean hasInboundUniversalTransferDocumentDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; + * @return The inboundUniversalTransferDocumentDocflow. */ Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow getInboundUniversalTransferDocumentDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; */ Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflowOrBuilder getInboundUniversalTransferDocumentDocflowOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; + * @return Whether the outboundUniversalTransferDocumentDocflow field is set. */ boolean hasOutboundUniversalTransferDocumentDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; + * @return The outboundUniversalTransferDocumentDocflow. */ Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow getOutboundUniversalTransferDocumentDocflow(); /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; */ Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflowOrBuilder getOutboundUniversalTransferDocumentDocflowOrBuilder(); /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 20; + * @return Whether the roamingNotification field is set. */ boolean hasRoamingNotification(); /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 20; + * @return The roamingNotification. */ Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getRoamingNotification(); /** @@ -477,292 +557,36 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.Docflow} */ - public static final class Docflow extends + @java.lang.Deprecated public static final class Docflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.Docflow) DocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Docflow.class.getName()); + } // Use Docflow.newBuilder() to construct. private Docflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private Docflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Docflow defaultInstance; - public static Docflow getDefaultInstance() { - return defaultInstance; - } - - public Docflow getDefaultInstanceForType() { - return defaultInstance; + private Docflow() { + departmentId_ = ""; + packetId_ = ""; + customData_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Docflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = documentAttachment_.toBuilder(); - } - documentAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentAttachment_); - documentAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - departmentId_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - documentIsDeleted_ = input.readBool(); - break; - } - case 42: { - Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = docflowStatus_.toBuilder(); - } - docflowStatus_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(docflowStatus_); - docflowStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = sendTimestamp_.toBuilder(); - } - sendTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sendTimestamp_); - sendTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 58: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = deliveryTimestamp_.toBuilder(); - } - deliveryTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveryTimestamp_); - deliveryTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 66: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = inboundInvoiceDocflow_.toBuilder(); - } - inboundInvoiceDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inboundInvoiceDocflow_); - inboundInvoiceDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - case 74: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = outboundInvoiceDocflow_.toBuilder(); - } - outboundInvoiceDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outboundInvoiceDocflow_); - outboundInvoiceDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 82: { - Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) == 0x00000200)) { - subBuilder = xmlBilateralDocflow_.toBuilder(); - } - xmlBilateralDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(xmlBilateralDocflow_); - xmlBilateralDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - break; - } - case 90: { - Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000400) == 0x00000400)) { - subBuilder = bilateralDocflow_.toBuilder(); - } - bilateralDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bilateralDocflow_); - bilateralDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000400; - break; - } - case 98: { - Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000800) == 0x00000800)) { - subBuilder = unilateralDocflow_.toBuilder(); - } - unilateralDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(unilateralDocflow_); - unilateralDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000800; - break; - } - case 106: { - Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00001000) == 0x00001000)) { - subBuilder = revocationDocflow_.toBuilder(); - } - revocationDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revocationDocflow_); - revocationDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00001000; - break; - } - case 114: { - Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00002000) == 0x00002000)) { - subBuilder = resolutionDocflow_.toBuilder(); - } - resolutionDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resolutionDocflow_); - resolutionDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00002000; - break; - } - case 120: { - bitField0_ |= 0x00004000; - canDocumentBeRevokedUnilaterallyBySender_ = input.readBool(); - break; - } - case 130: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00008000; - packetId_ = bs; - break; - } - case 138: { - if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { - customData_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00010000; - } - customData_.add(input.readMessage(Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.PARSER, extensionRegistry)); - break; - } - case 146: { - Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00010000) == 0x00010000)) { - subBuilder = inboundUniversalTransferDocumentDocflow_.toBuilder(); - } - inboundUniversalTransferDocumentDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inboundUniversalTransferDocumentDocflow_); - inboundUniversalTransferDocumentDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00010000; - break; - } - case 154: { - Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00020000) == 0x00020000)) { - subBuilder = outboundUniversalTransferDocumentDocflow_.toBuilder(); - } - outboundUniversalTransferDocumentDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outboundUniversalTransferDocumentDocflow_); - outboundUniversalTransferDocumentDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00020000; - break; - } - case 162: { - Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.Builder subBuilder = null; - if (((bitField0_ & 0x00040000) == 0x00040000)) { - subBuilder = roamingNotification_.toBuilder(); - } - roamingNotification_ = input.readMessage(Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(roamingNotification_); - roamingNotification_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00040000; - 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_ & 0x00010000) == 0x00010000)) { - customData_ = java.util.Collections.unmodifiableList(customData_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_Docflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_Docflow_fieldAccessorTable @@ -770,33 +594,22 @@ private Docflow( Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.class, Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Docflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Docflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -805,34 +618,44 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment documentAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment DocumentAttachment = 2; + * @return Whether the documentAttachment field is set. */ + @java.lang.Override public boolean hasDocumentAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment DocumentAttachment = 2; + * @return The documentAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getDocumentAttachment() { - return documentAttachment_; + return documentAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : documentAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment DocumentAttachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getDocumentAttachmentOrBuilder() { - return documentAttachment_; + return documentAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : documentAttachment_; } public static final int DEPARTMENTID_FIELD_NUMBER = 3; - private java.lang.Object departmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object departmentId_ = ""; /** * optional string DepartmentId = 3; + * @return Whether the departmentId field is set. */ + @java.lang.Override public boolean hasDepartmentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string DepartmentId = 3; + * @return The departmentId. */ + @java.lang.Override public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; if (ref instanceof java.lang.String) { @@ -849,7 +672,9 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 3; + * @return The bytes for departmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getDepartmentIdBytes() { java.lang.Object ref = departmentId_; @@ -865,16 +690,20 @@ public java.lang.String getDepartmentId() { } public static final int DOCUMENTISDELETED_FIELD_NUMBER = 4; - private boolean documentIsDeleted_; + private boolean documentIsDeleted_ = false; /** * optional bool DocumentIsDeleted = 4; + * @return Whether the documentIsDeleted field is set. */ + @java.lang.Override public boolean hasDocumentIsDeleted() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bool DocumentIsDeleted = 4; + * @return The documentIsDeleted. */ + @java.lang.Override public boolean getDocumentIsDeleted() { return documentIsDeleted_; } @@ -883,298 +712,357 @@ public boolean getDocumentIsDeleted() { private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus docflowStatus_; /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatus DocflowStatus = 5; + * @return Whether the docflowStatus field is set. */ + @java.lang.Override public boolean hasDocflowStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatus DocflowStatus = 5; + * @return The docflowStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus getDocflowStatus() { - return docflowStatus_; + return docflowStatus_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance() : docflowStatus_; } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatus DocflowStatus = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusOrBuilder getDocflowStatusOrBuilder() { - return docflowStatus_; + return docflowStatus_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance() : docflowStatus_; } public static final int SENDTIMESTAMP_FIELD_NUMBER = 6; private Diadoc.Api.Proto.TimestampProtos.Timestamp sendTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 6; + * @return Whether the sendTimestamp field is set. */ + @java.lang.Override public boolean hasSendTimestamp() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 6; + * @return The sendTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getSendTimestamp() { - return sendTimestamp_; + return sendTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sendTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 6; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSendTimestampOrBuilder() { - return sendTimestamp_; + return sendTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sendTimestamp_; } public static final int DELIVERYTIMESTAMP_FIELD_NUMBER = 7; private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 7; + * @return Whether the deliveryTimestamp field is set. */ + @java.lang.Override public boolean hasDeliveryTimestamp() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 7; + * @return The deliveryTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp() { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 7; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampOrBuilder() { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } public static final int INBOUNDINVOICEDOCFLOW_FIELD_NUMBER = 8; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow inboundInvoiceDocflow_; /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; + * @return Whether the inboundInvoiceDocflow field is set. */ + @java.lang.Override public boolean hasInboundInvoiceDocflow() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; + * @return The inboundInvoiceDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow getInboundInvoiceDocflow() { - return inboundInvoiceDocflow_; + return inboundInvoiceDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance() : inboundInvoiceDocflow_; } /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflowOrBuilder getInboundInvoiceDocflowOrBuilder() { - return inboundInvoiceDocflow_; + return inboundInvoiceDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance() : inboundInvoiceDocflow_; } public static final int OUTBOUNDINVOICEDOCFLOW_FIELD_NUMBER = 9; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow outboundInvoiceDocflow_; /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; + * @return Whether the outboundInvoiceDocflow field is set. */ + @java.lang.Override public boolean hasOutboundInvoiceDocflow() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; + * @return The outboundInvoiceDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow getOutboundInvoiceDocflow() { - return outboundInvoiceDocflow_; + return outboundInvoiceDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance() : outboundInvoiceDocflow_; } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
      * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflowOrBuilder getOutboundInvoiceDocflowOrBuilder() { - return outboundInvoiceDocflow_; + return outboundInvoiceDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance() : outboundInvoiceDocflow_; } public static final int XMLBILATERALDOCFLOW_FIELD_NUMBER = 10; private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow xmlBilateralDocflow_; /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
      * for XmlTorg12, XmlAcceptanceCertificate
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; + * @return Whether the xmlBilateralDocflow field is set. */ + @java.lang.Override public boolean hasXmlBilateralDocflow() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
      * for XmlTorg12, XmlAcceptanceCertificate
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; + * @return The xmlBilateralDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow getXmlBilateralDocflow() { - return xmlBilateralDocflow_; + return xmlBilateralDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance() : xmlBilateralDocflow_; } /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
      * for XmlTorg12, XmlAcceptanceCertificate
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflowOrBuilder getXmlBilateralDocflowOrBuilder() { - return xmlBilateralDocflow_; + return xmlBilateralDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance() : xmlBilateralDocflow_; } public static final int BILATERALDOCFLOW_FIELD_NUMBER = 11; private Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow bilateralDocflow_; /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
      * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; + * @return Whether the bilateralDocflow field is set. */ + @java.lang.Override public boolean hasBilateralDocflow() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
      * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; + * @return The bilateralDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow getBilateralDocflow() { - return bilateralDocflow_; + return bilateralDocflow_ == null ? Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance() : bilateralDocflow_; } /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
      * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflowOrBuilder getBilateralDocflowOrBuilder() { - return bilateralDocflow_; + return bilateralDocflow_ == null ? Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance() : bilateralDocflow_; } public static final int UNILATERALDOCFLOW_FIELD_NUMBER = 12; private Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow unilateralDocflow_; /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
      * for ProformaInvoice, ServiceDetails
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; + * @return Whether the unilateralDocflow field is set. */ + @java.lang.Override public boolean hasUnilateralDocflow() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
      * for ProformaInvoice, ServiceDetails
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; + * @return The unilateralDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow getUnilateralDocflow() { - return unilateralDocflow_; + return unilateralDocflow_ == null ? Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance() : unilateralDocflow_; } /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
      * for ProformaInvoice, ServiceDetails
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflowOrBuilder getUnilateralDocflowOrBuilder() { - return unilateralDocflow_; + return unilateralDocflow_ == null ? Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance() : unilateralDocflow_; } public static final int REVOCATIONDOCFLOW_FIELD_NUMBER = 13; private Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow revocationDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflow RevocationDocflow = 13; + * @return Whether the revocationDocflow field is set. */ + @java.lang.Override public boolean hasRevocationDocflow() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflow RevocationDocflow = 13; + * @return The revocationDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow getRevocationDocflow() { - return revocationDocflow_; + return revocationDocflow_ == null ? Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance() : revocationDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflow RevocationDocflow = 13; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflowOrBuilder getRevocationDocflowOrBuilder() { - return revocationDocflow_; + return revocationDocflow_ == null ? Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance() : revocationDocflow_; } public static final int RESOLUTIONDOCFLOW_FIELD_NUMBER = 14; private Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow resolutionDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflow ResolutionDocflow = 14; + * @return Whether the resolutionDocflow field is set. */ + @java.lang.Override public boolean hasResolutionDocflow() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflow ResolutionDocflow = 14; + * @return The resolutionDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow getResolutionDocflow() { - return resolutionDocflow_; + return resolutionDocflow_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance() : resolutionDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflow ResolutionDocflow = 14; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflowOrBuilder getResolutionDocflowOrBuilder() { - return resolutionDocflow_; + return resolutionDocflow_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance() : resolutionDocflow_; } public static final int CANDOCUMENTBEREVOKEDUNILATERALLYBYSENDER_FIELD_NUMBER = 15; - private boolean canDocumentBeRevokedUnilaterallyBySender_; + private boolean canDocumentBeRevokedUnilaterallyBySender_ = false; /** * optional bool CanDocumentBeRevokedUnilaterallyBySender = 15; + * @return Whether the canDocumentBeRevokedUnilaterallyBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeRevokedUnilaterallyBySender() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional bool CanDocumentBeRevokedUnilaterallyBySender = 15; + * @return The canDocumentBeRevokedUnilaterallyBySender. */ + @java.lang.Override public boolean getCanDocumentBeRevokedUnilaterallyBySender() { return canDocumentBeRevokedUnilaterallyBySender_; } public static final int PACKETID_FIELD_NUMBER = 16; - private java.lang.Object packetId_; + @SuppressWarnings("serial") + private volatile java.lang.Object packetId_ = ""; /** * optional string PacketId = 16; + * @return Whether the packetId field is set. */ + @java.lang.Override public boolean hasPacketId() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional string PacketId = 16; + * @return The packetId. */ + @java.lang.Override public java.lang.String getPacketId() { java.lang.Object ref = packetId_; if (ref instanceof java.lang.String) { @@ -1191,7 +1079,9 @@ public java.lang.String getPacketId() { } /** * optional string PacketId = 16; + * @return The bytes for packetId. */ + @java.lang.Override public com.google.protobuf.ByteString getPacketIdBytes() { java.lang.Object ref = packetId_; @@ -1207,16 +1097,19 @@ public java.lang.String getPacketId() { } public static final int CUSTOMDATA_FIELD_NUMBER = 17; + @SuppressWarnings("serial") private java.util.List customData_; /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 17; */ + @java.lang.Override public java.util.List getCustomDataList() { return customData_; } /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 17; */ + @java.lang.Override public java.util.List getCustomDataOrBuilderList() { return customData_; @@ -1224,18 +1117,21 @@ public java.util.List getC /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 17; */ + @java.lang.Override public int getCustomDataCount() { return customData_.size(); } /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 17; */ + @java.lang.Override public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem getCustomData(int index) { return customData_.get(index); } /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 17; */ + @java.lang.Override public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBuilder( int index) { return customData_.get(index); @@ -1244,113 +1140,107 @@ public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDa public static final int INBOUNDUNIVERSALTRANSFERDOCUMENTDOCFLOW_FIELD_NUMBER = 18; private Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow inboundUniversalTransferDocumentDocflow_; /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; + * @return Whether the inboundUniversalTransferDocumentDocflow field is set. */ + @java.lang.Override public boolean hasInboundUniversalTransferDocumentDocflow() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; + * @return The inboundUniversalTransferDocumentDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow getInboundUniversalTransferDocumentDocflow() { - return inboundUniversalTransferDocumentDocflow_; + return inboundUniversalTransferDocumentDocflow_ == null ? Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance() : inboundUniversalTransferDocumentDocflow_; } /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflowOrBuilder getInboundUniversalTransferDocumentDocflowOrBuilder() { - return inboundUniversalTransferDocumentDocflow_; + return inboundUniversalTransferDocumentDocflow_ == null ? Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance() : inboundUniversalTransferDocumentDocflow_; } public static final int OUTBOUNDUNIVERSALTRANSFERDOCUMENTDOCFLOW_FIELD_NUMBER = 19; private Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow outboundUniversalTransferDocumentDocflow_; /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; + * @return Whether the outboundUniversalTransferDocumentDocflow field is set. */ + @java.lang.Override public boolean hasOutboundUniversalTransferDocumentDocflow() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00020000) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; + * @return The outboundUniversalTransferDocumentDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow getOutboundUniversalTransferDocumentDocflow() { - return outboundUniversalTransferDocumentDocflow_; + return outboundUniversalTransferDocumentDocflow_ == null ? Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance() : outboundUniversalTransferDocumentDocflow_; } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflowOrBuilder getOutboundUniversalTransferDocumentDocflowOrBuilder() { - return outboundUniversalTransferDocumentDocflow_; + return outboundUniversalTransferDocumentDocflow_ == null ? Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance() : outboundUniversalTransferDocumentDocflow_; } public static final int ROAMINGNOTIFICATION_FIELD_NUMBER = 20; private Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification roamingNotification_; /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 20; + * @return Whether the roamingNotification field is set. */ + @java.lang.Override public boolean hasRoamingNotification() { - return ((bitField0_ & 0x00040000) == 0x00040000); + return ((bitField0_ & 0x00040000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 20; + * @return The roamingNotification. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getRoamingNotification() { - return roamingNotification_; + return roamingNotification_ == null ? Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 20; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrBuilder getRoamingNotificationOrBuilder() { - return roamingNotification_; + return roamingNotification_ == null ? Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } - private void initFields() { - isFinished_ = false; - documentAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - departmentId_ = ""; - documentIsDeleted_ = false; - docflowStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance(); - sendTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - inboundInvoiceDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance(); - outboundInvoiceDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance(); - xmlBilateralDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance(); - bilateralDocflow_ = Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance(); - unilateralDocflow_ = Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance(); - revocationDocflow_ = Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance(); - resolutionDocflow_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance(); - canDocumentBeRevokedUnilaterallyBySender_ = false; - packetId_ = ""; - customData_ = java.util.Collections.emptyList(); - inboundUniversalTransferDocumentDocflow_ = Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance(); - outboundUniversalTransferDocumentDocflow_ = Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance(); - roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1438,170 +1328,378 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, documentAttachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDocumentAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getDepartmentIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, departmentId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, documentIsDeleted_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, docflowStatus_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getDocflowStatus()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, sendTimestamp_); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getSendTimestamp()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, deliveryTimestamp_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getDeliveryTimestamp()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, inboundInvoiceDocflow_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getInboundInvoiceDocflow()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, outboundInvoiceDocflow_); + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getOutboundInvoiceDocflow()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(10, xmlBilateralDocflow_); + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(10, getXmlBilateralDocflow()); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(11, bilateralDocflow_); + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(11, getBilateralDocflow()); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(12, unilateralDocflow_); + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(12, getUnilateralDocflow()); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(13, revocationDocflow_); + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(13, getRevocationDocflow()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(14, resolutionDocflow_); + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(14, getResolutionDocflow()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(15, canDocumentBeRevokedUnilaterallyBySender_); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeBytes(16, getPacketIdBytes()); + if (((bitField0_ & 0x00008000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 16, packetId_); } for (int i = 0; i < customData_.size(); i++) { output.writeMessage(17, customData_.get(i)); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeMessage(18, inboundUniversalTransferDocumentDocflow_); + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(18, getInboundUniversalTransferDocumentDocflow()); } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - output.writeMessage(19, outboundUniversalTransferDocumentDocflow_); + if (((bitField0_ & 0x00020000) != 0)) { + output.writeMessage(19, getOutboundUniversalTransferDocumentDocflow()); } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - output.writeMessage(20, roamingNotification_); + if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(20, getRoamingNotification()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, documentAttachment_); + .computeMessageSize(2, getDocumentAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getDepartmentIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, departmentId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, documentIsDeleted_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, docflowStatus_); + .computeMessageSize(5, getDocflowStatus()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, sendTimestamp_); + .computeMessageSize(6, getSendTimestamp()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, deliveryTimestamp_); + .computeMessageSize(7, getDeliveryTimestamp()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, inboundInvoiceDocflow_); + .computeMessageSize(8, getInboundInvoiceDocflow()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, outboundInvoiceDocflow_); + .computeMessageSize(9, getOutboundInvoiceDocflow()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, xmlBilateralDocflow_); + .computeMessageSize(10, getXmlBilateralDocflow()); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, bilateralDocflow_); + .computeMessageSize(11, getBilateralDocflow()); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, unilateralDocflow_); + .computeMessageSize(12, getUnilateralDocflow()); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, revocationDocflow_); + .computeMessageSize(13, getRevocationDocflow()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, resolutionDocflow_); + .computeMessageSize(14, getResolutionDocflow()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, canDocumentBeRevokedUnilaterallyBySender_); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, getPacketIdBytes()); + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(16, packetId_); } for (int i = 0; i < customData_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, customData_.get(i)); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, inboundUniversalTransferDocumentDocflow_); + .computeMessageSize(18, getInboundUniversalTransferDocumentDocflow()); } - if (((bitField0_ & 0x00020000) == 0x00020000)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, outboundUniversalTransferDocumentDocflow_); + .computeMessageSize(19, getOutboundUniversalTransferDocumentDocflow()); } - if (((bitField0_ & 0x00040000) == 0x00040000)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, roamingNotification_); + .computeMessageSize(20, getRoamingNotification()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow other = (Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasDocumentAttachment() != other.hasDocumentAttachment()) return false; + if (hasDocumentAttachment()) { + if (!getDocumentAttachment() + .equals(other.getDocumentAttachment())) return false; + } + if (hasDepartmentId() != other.hasDepartmentId()) return false; + if (hasDepartmentId()) { + if (!getDepartmentId() + .equals(other.getDepartmentId())) return false; + } + if (hasDocumentIsDeleted() != other.hasDocumentIsDeleted()) return false; + if (hasDocumentIsDeleted()) { + if (getDocumentIsDeleted() + != other.getDocumentIsDeleted()) return false; + } + if (hasDocflowStatus() != other.hasDocflowStatus()) return false; + if (hasDocflowStatus()) { + if (!getDocflowStatus() + .equals(other.getDocflowStatus())) return false; + } + if (hasSendTimestamp() != other.hasSendTimestamp()) return false; + if (hasSendTimestamp()) { + if (!getSendTimestamp() + .equals(other.getSendTimestamp())) return false; + } + if (hasDeliveryTimestamp() != other.hasDeliveryTimestamp()) return false; + if (hasDeliveryTimestamp()) { + if (!getDeliveryTimestamp() + .equals(other.getDeliveryTimestamp())) return false; + } + if (hasInboundInvoiceDocflow() != other.hasInboundInvoiceDocflow()) return false; + if (hasInboundInvoiceDocflow()) { + if (!getInboundInvoiceDocflow() + .equals(other.getInboundInvoiceDocflow())) return false; + } + if (hasOutboundInvoiceDocflow() != other.hasOutboundInvoiceDocflow()) return false; + if (hasOutboundInvoiceDocflow()) { + if (!getOutboundInvoiceDocflow() + .equals(other.getOutboundInvoiceDocflow())) return false; + } + if (hasXmlBilateralDocflow() != other.hasXmlBilateralDocflow()) return false; + if (hasXmlBilateralDocflow()) { + if (!getXmlBilateralDocflow() + .equals(other.getXmlBilateralDocflow())) return false; + } + if (hasBilateralDocflow() != other.hasBilateralDocflow()) return false; + if (hasBilateralDocflow()) { + if (!getBilateralDocflow() + .equals(other.getBilateralDocflow())) return false; + } + if (hasUnilateralDocflow() != other.hasUnilateralDocflow()) return false; + if (hasUnilateralDocflow()) { + if (!getUnilateralDocflow() + .equals(other.getUnilateralDocflow())) return false; + } + if (hasRevocationDocflow() != other.hasRevocationDocflow()) return false; + if (hasRevocationDocflow()) { + if (!getRevocationDocflow() + .equals(other.getRevocationDocflow())) return false; + } + if (hasResolutionDocflow() != other.hasResolutionDocflow()) return false; + if (hasResolutionDocflow()) { + if (!getResolutionDocflow() + .equals(other.getResolutionDocflow())) return false; + } + if (hasCanDocumentBeRevokedUnilaterallyBySender() != other.hasCanDocumentBeRevokedUnilaterallyBySender()) return false; + if (hasCanDocumentBeRevokedUnilaterallyBySender()) { + if (getCanDocumentBeRevokedUnilaterallyBySender() + != other.getCanDocumentBeRevokedUnilaterallyBySender()) return false; + } + if (hasPacketId() != other.hasPacketId()) return false; + if (hasPacketId()) { + if (!getPacketId() + .equals(other.getPacketId())) return false; + } + if (!getCustomDataList() + .equals(other.getCustomDataList())) return false; + if (hasInboundUniversalTransferDocumentDocflow() != other.hasInboundUniversalTransferDocumentDocflow()) return false; + if (hasInboundUniversalTransferDocumentDocflow()) { + if (!getInboundUniversalTransferDocumentDocflow() + .equals(other.getInboundUniversalTransferDocumentDocflow())) return false; + } + if (hasOutboundUniversalTransferDocumentDocflow() != other.hasOutboundUniversalTransferDocumentDocflow()) return false; + if (hasOutboundUniversalTransferDocumentDocflow()) { + if (!getOutboundUniversalTransferDocumentDocflow() + .equals(other.getOutboundUniversalTransferDocumentDocflow())) return false; + } + if (hasRoamingNotification() != other.hasRoamingNotification()) return false; + if (hasRoamingNotification()) { + if (!getRoamingNotification() + .equals(other.getRoamingNotification())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasDocumentAttachment()) { + hash = (37 * hash) + DOCUMENTATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocumentAttachment().hashCode(); + } + if (hasDepartmentId()) { + hash = (37 * hash) + DEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDepartmentId().hashCode(); + } + if (hasDocumentIsDeleted()) { + hash = (37 * hash) + DOCUMENTISDELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDocumentIsDeleted()); + } + if (hasDocflowStatus()) { + hash = (37 * hash) + DOCFLOWSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getDocflowStatus().hashCode(); + } + if (hasSendTimestamp()) { + hash = (37 * hash) + SENDTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getSendTimestamp().hashCode(); + } + if (hasDeliveryTimestamp()) { + hash = (37 * hash) + DELIVERYTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getDeliveryTimestamp().hashCode(); + } + if (hasInboundInvoiceDocflow()) { + hash = (37 * hash) + INBOUNDINVOICEDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getInboundInvoiceDocflow().hashCode(); + } + if (hasOutboundInvoiceDocflow()) { + hash = (37 * hash) + OUTBOUNDINVOICEDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getOutboundInvoiceDocflow().hashCode(); + } + if (hasXmlBilateralDocflow()) { + hash = (37 * hash) + XMLBILATERALDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getXmlBilateralDocflow().hashCode(); + } + if (hasBilateralDocflow()) { + hash = (37 * hash) + BILATERALDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getBilateralDocflow().hashCode(); + } + if (hasUnilateralDocflow()) { + hash = (37 * hash) + UNILATERALDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getUnilateralDocflow().hashCode(); + } + if (hasRevocationDocflow()) { + hash = (37 * hash) + REVOCATIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getRevocationDocflow().hashCode(); + } + if (hasResolutionDocflow()) { + hash = (37 * hash) + RESOLUTIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getResolutionDocflow().hashCode(); + } + if (hasCanDocumentBeRevokedUnilaterallyBySender()) { + hash = (37 * hash) + CANDOCUMENTBEREVOKEDUNILATERALLYBYSENDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeRevokedUnilaterallyBySender()); + } + if (hasPacketId()) { + hash = (37 * hash) + PACKETID_FIELD_NUMBER; + hash = (53 * hash) + getPacketId().hashCode(); + } + if (getCustomDataCount() > 0) { + hash = (37 * hash) + CUSTOMDATA_FIELD_NUMBER; + hash = (53 * hash) + getCustomDataList().hashCode(); + } + if (hasInboundUniversalTransferDocumentDocflow()) { + hash = (37 * hash) + INBOUNDUNIVERSALTRANSFERDOCUMENTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getInboundUniversalTransferDocumentDocflow().hashCode(); + } + if (hasOutboundUniversalTransferDocumentDocflow()) { + hash = (37 * hash) + OUTBOUNDUNIVERSALTRANSFERDOCUMENTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getOutboundUniversalTransferDocumentDocflow().hashCode(); + } + if (hasRoamingNotification()) { + hash = (37 * hash) + ROAMINGNOTIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getRoamingNotification().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1625,42 +1723,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parseFrom( } public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1680,6 +1793,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_Docflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_Docflow_fieldAccessorTable @@ -1698,7 +1812,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDocumentAttachmentFieldBuilder(); getDocflowStatusFieldBuilder(); getSendTimestampFieldBuilder(); @@ -1716,128 +1831,107 @@ private void maybeForceBuilderInitialization() { getRoamingNotificationFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (documentAttachmentBuilder_ == null) { - documentAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - } else { - documentAttachmentBuilder_.clear(); + documentAttachment_ = null; + if (documentAttachmentBuilder_ != null) { + documentAttachmentBuilder_.dispose(); + documentAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); departmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); documentIsDeleted_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - if (docflowStatusBuilder_ == null) { - docflowStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance(); - } else { - docflowStatusBuilder_.clear(); + docflowStatus_ = null; + if (docflowStatusBuilder_ != null) { + docflowStatusBuilder_.dispose(); + docflowStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); - if (sendTimestampBuilder_ == null) { - sendTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - sendTimestampBuilder_.clear(); + sendTimestamp_ = null; + if (sendTimestampBuilder_ != null) { + sendTimestampBuilder_.dispose(); + sendTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); - if (deliveryTimestampBuilder_ == null) { - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveryTimestampBuilder_.clear(); + deliveryTimestamp_ = null; + if (deliveryTimestampBuilder_ != null) { + deliveryTimestampBuilder_.dispose(); + deliveryTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000040); - if (inboundInvoiceDocflowBuilder_ == null) { - inboundInvoiceDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance(); - } else { - inboundInvoiceDocflowBuilder_.clear(); + inboundInvoiceDocflow_ = null; + if (inboundInvoiceDocflowBuilder_ != null) { + inboundInvoiceDocflowBuilder_.dispose(); + inboundInvoiceDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000080); - if (outboundInvoiceDocflowBuilder_ == null) { - outboundInvoiceDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance(); - } else { - outboundInvoiceDocflowBuilder_.clear(); + outboundInvoiceDocflow_ = null; + if (outboundInvoiceDocflowBuilder_ != null) { + outboundInvoiceDocflowBuilder_.dispose(); + outboundInvoiceDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000100); - if (xmlBilateralDocflowBuilder_ == null) { - xmlBilateralDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance(); - } else { - xmlBilateralDocflowBuilder_.clear(); + xmlBilateralDocflow_ = null; + if (xmlBilateralDocflowBuilder_ != null) { + xmlBilateralDocflowBuilder_.dispose(); + xmlBilateralDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000200); - if (bilateralDocflowBuilder_ == null) { - bilateralDocflow_ = Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance(); - } else { - bilateralDocflowBuilder_.clear(); + bilateralDocflow_ = null; + if (bilateralDocflowBuilder_ != null) { + bilateralDocflowBuilder_.dispose(); + bilateralDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000400); - if (unilateralDocflowBuilder_ == null) { - unilateralDocflow_ = Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance(); - } else { - unilateralDocflowBuilder_.clear(); + unilateralDocflow_ = null; + if (unilateralDocflowBuilder_ != null) { + unilateralDocflowBuilder_.dispose(); + unilateralDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000800); - if (revocationDocflowBuilder_ == null) { - revocationDocflow_ = Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance(); - } else { - revocationDocflowBuilder_.clear(); + revocationDocflow_ = null; + if (revocationDocflowBuilder_ != null) { + revocationDocflowBuilder_.dispose(); + revocationDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00001000); - if (resolutionDocflowBuilder_ == null) { - resolutionDocflow_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance(); - } else { - resolutionDocflowBuilder_.clear(); + resolutionDocflow_ = null; + if (resolutionDocflowBuilder_ != null) { + resolutionDocflowBuilder_.dispose(); + resolutionDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00002000); canDocumentBeRevokedUnilaterallyBySender_ = false; - bitField0_ = (bitField0_ & ~0x00004000); packetId_ = ""; - bitField0_ = (bitField0_ & ~0x00008000); if (customDataBuilder_ == null) { customData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); } else { + customData_ = null; customDataBuilder_.clear(); } - if (inboundUniversalTransferDocumentDocflowBuilder_ == null) { - inboundUniversalTransferDocumentDocflow_ = Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance(); - } else { - inboundUniversalTransferDocumentDocflowBuilder_.clear(); + bitField0_ = (bitField0_ & ~0x00010000); + inboundUniversalTransferDocumentDocflow_ = null; + if (inboundUniversalTransferDocumentDocflowBuilder_ != null) { + inboundUniversalTransferDocumentDocflowBuilder_.dispose(); + inboundUniversalTransferDocumentDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00020000); - if (outboundUniversalTransferDocumentDocflowBuilder_ == null) { - outboundUniversalTransferDocumentDocflow_ = Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance(); - } else { - outboundUniversalTransferDocumentDocflowBuilder_.clear(); + outboundUniversalTransferDocumentDocflow_ = null; + if (outboundUniversalTransferDocumentDocflowBuilder_ != null) { + outboundUniversalTransferDocumentDocflowBuilder_.dispose(); + outboundUniversalTransferDocumentDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00040000); - if (roamingNotificationBuilder_ == null) { - roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); - } else { - roamingNotificationBuilder_.clear(); + roamingNotification_ = null; + if (roamingNotificationBuilder_ != null) { + roamingNotificationBuilder_.dispose(); + roamingNotificationBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00080000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_Docflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow build() { Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow result = buildPartial(); if (!result.isInitialized()) { @@ -1846,156 +1940,138 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow buildPartial() { Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow result = new Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow result) { + if (customDataBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0)) { + customData_ = java.util.Collections.unmodifiableList(customData_); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.customData_ = customData_; + } else { + result.customData_ = customDataBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.documentAttachment_ = documentAttachmentBuilder_ == null + ? documentAttachment_ + : documentAttachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (documentAttachmentBuilder_ == null) { - result.documentAttachment_ = documentAttachment_; - } else { - result.documentAttachment_ = documentAttachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.departmentId_ = departmentId_; to_bitField0_ |= 0x00000004; } - result.departmentId_ = departmentId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.documentIsDeleted_ = documentIsDeleted_; to_bitField0_ |= 0x00000008; } - result.documentIsDeleted_ = documentIsDeleted_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.docflowStatus_ = docflowStatusBuilder_ == null + ? docflowStatus_ + : docflowStatusBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (docflowStatusBuilder_ == null) { - result.docflowStatus_ = docflowStatus_; - } else { - result.docflowStatus_ = docflowStatusBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sendTimestamp_ = sendTimestampBuilder_ == null + ? sendTimestamp_ + : sendTimestampBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (sendTimestampBuilder_ == null) { - result.sendTimestamp_ = sendTimestamp_; - } else { - result.sendTimestamp_ = sendTimestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.deliveryTimestamp_ = deliveryTimestampBuilder_ == null + ? deliveryTimestamp_ + : deliveryTimestampBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (deliveryTimestampBuilder_ == null) { - result.deliveryTimestamp_ = deliveryTimestamp_; - } else { - result.deliveryTimestamp_ = deliveryTimestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.inboundInvoiceDocflow_ = inboundInvoiceDocflowBuilder_ == null + ? inboundInvoiceDocflow_ + : inboundInvoiceDocflowBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (inboundInvoiceDocflowBuilder_ == null) { - result.inboundInvoiceDocflow_ = inboundInvoiceDocflow_; - } else { - result.inboundInvoiceDocflow_ = inboundInvoiceDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.outboundInvoiceDocflow_ = outboundInvoiceDocflowBuilder_ == null + ? outboundInvoiceDocflow_ + : outboundInvoiceDocflowBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (outboundInvoiceDocflowBuilder_ == null) { - result.outboundInvoiceDocflow_ = outboundInvoiceDocflow_; - } else { - result.outboundInvoiceDocflow_ = outboundInvoiceDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.xmlBilateralDocflow_ = xmlBilateralDocflowBuilder_ == null + ? xmlBilateralDocflow_ + : xmlBilateralDocflowBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (xmlBilateralDocflowBuilder_ == null) { - result.xmlBilateralDocflow_ = xmlBilateralDocflow_; - } else { - result.xmlBilateralDocflow_ = xmlBilateralDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.bilateralDocflow_ = bilateralDocflowBuilder_ == null + ? bilateralDocflow_ + : bilateralDocflowBuilder_.build(); to_bitField0_ |= 0x00000400; } - if (bilateralDocflowBuilder_ == null) { - result.bilateralDocflow_ = bilateralDocflow_; - } else { - result.bilateralDocflow_ = bilateralDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.unilateralDocflow_ = unilateralDocflowBuilder_ == null + ? unilateralDocflow_ + : unilateralDocflowBuilder_.build(); to_bitField0_ |= 0x00000800; } - if (unilateralDocflowBuilder_ == null) { - result.unilateralDocflow_ = unilateralDocflow_; - } else { - result.unilateralDocflow_ = unilateralDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + if (((from_bitField0_ & 0x00001000) != 0)) { + result.revocationDocflow_ = revocationDocflowBuilder_ == null + ? revocationDocflow_ + : revocationDocflowBuilder_.build(); to_bitField0_ |= 0x00001000; } - if (revocationDocflowBuilder_ == null) { - result.revocationDocflow_ = revocationDocflow_; - } else { - result.revocationDocflow_ = revocationDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.resolutionDocflow_ = resolutionDocflowBuilder_ == null + ? resolutionDocflow_ + : resolutionDocflowBuilder_.build(); to_bitField0_ |= 0x00002000; } - if (resolutionDocflowBuilder_ == null) { - result.resolutionDocflow_ = resolutionDocflow_; - } else { - result.resolutionDocflow_ = resolutionDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + if (((from_bitField0_ & 0x00004000) != 0)) { + result.canDocumentBeRevokedUnilaterallyBySender_ = canDocumentBeRevokedUnilaterallyBySender_; to_bitField0_ |= 0x00004000; } - result.canDocumentBeRevokedUnilaterallyBySender_ = canDocumentBeRevokedUnilaterallyBySender_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00008000) != 0)) { + result.packetId_ = packetId_; to_bitField0_ |= 0x00008000; } - result.packetId_ = packetId_; - if (customDataBuilder_ == null) { - if (((bitField0_ & 0x00010000) == 0x00010000)) { - customData_ = java.util.Collections.unmodifiableList(customData_); - bitField0_ = (bitField0_ & ~0x00010000); - } - result.customData_ = customData_; - } else { - result.customData_ = customDataBuilder_.build(); - } - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { + if (((from_bitField0_ & 0x00020000) != 0)) { + result.inboundUniversalTransferDocumentDocflow_ = inboundUniversalTransferDocumentDocflowBuilder_ == null + ? inboundUniversalTransferDocumentDocflow_ + : inboundUniversalTransferDocumentDocflowBuilder_.build(); to_bitField0_ |= 0x00010000; } - if (inboundUniversalTransferDocumentDocflowBuilder_ == null) { - result.inboundUniversalTransferDocumentDocflow_ = inboundUniversalTransferDocumentDocflow_; - } else { - result.inboundUniversalTransferDocumentDocflow_ = inboundUniversalTransferDocumentDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { + if (((from_bitField0_ & 0x00040000) != 0)) { + result.outboundUniversalTransferDocumentDocflow_ = outboundUniversalTransferDocumentDocflowBuilder_ == null + ? outboundUniversalTransferDocumentDocflow_ + : outboundUniversalTransferDocumentDocflowBuilder_.build(); to_bitField0_ |= 0x00020000; } - if (outboundUniversalTransferDocumentDocflowBuilder_ == null) { - result.outboundUniversalTransferDocumentDocflow_ = outboundUniversalTransferDocumentDocflow_; - } else { - result.outboundUniversalTransferDocumentDocflow_ = outboundUniversalTransferDocumentDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { + if (((from_bitField0_ & 0x00080000) != 0)) { + result.roamingNotification_ = roamingNotificationBuilder_ == null + ? roamingNotification_ + : roamingNotificationBuilder_.build(); to_bitField0_ |= 0x00040000; } - if (roamingNotificationBuilder_ == null) { - result.roamingNotification_ = roamingNotification_; - } else { - result.roamingNotification_ = roamingNotificationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow)other); @@ -2014,8 +2090,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow other) { mergeDocumentAttachment(other.getDocumentAttachment()); } if (other.hasDepartmentId()) { - bitField0_ |= 0x00000004; departmentId_ = other.departmentId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasDocumentIsDeleted()) { @@ -2055,8 +2131,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow other) { setCanDocumentBeRevokedUnilaterallyBySender(other.getCanDocumentBeRevokedUnilaterallyBySender()); } if (other.hasPacketId()) { - bitField0_ |= 0x00008000; packetId_ = other.packetId_; + bitField0_ |= 0x00008000; onChanged(); } if (customDataBuilder_ == null) { @@ -2095,106 +2171,245 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow other) { mergeRoamingNotification(other.getRoamingNotification()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasDocumentAttachment()) { if (!getDocumentAttachment().isInitialized()) { - return false; } } if (hasSendTimestamp()) { if (!getSendTimestamp().isInitialized()) { - return false; } } if (hasDeliveryTimestamp()) { if (!getDeliveryTimestamp().isInitialized()) { - return false; } } if (hasInboundInvoiceDocflow()) { if (!getInboundInvoiceDocflow().isInitialized()) { - return false; } } if (hasOutboundInvoiceDocflow()) { if (!getOutboundInvoiceDocflow().isInitialized()) { - return false; } } if (hasXmlBilateralDocflow()) { if (!getXmlBilateralDocflow().isInitialized()) { - return false; } } if (hasBilateralDocflow()) { if (!getBilateralDocflow().isInitialized()) { - return false; } } if (hasUnilateralDocflow()) { if (!getUnilateralDocflow().isInitialized()) { - return false; } } if (hasRevocationDocflow()) { if (!getRevocationDocflow().isInitialized()) { - return false; } } for (int i = 0; i < getCustomDataCount(); i++) { if (!getCustomData(i).isInitialized()) { - return false; } } if (hasInboundUniversalTransferDocumentDocflow()) { if (!getInboundUniversalTransferDocumentDocflow().isInitialized()) { - return false; } } if (hasOutboundUniversalTransferDocumentDocflow()) { if (!getOutboundUniversalTransferDocumentDocflow().isInitialized()) { - return false; } } if (hasRoamingNotification()) { if (!getRoamingNotification().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getDocumentAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + departmentId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + documentIsDeleted_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getDocflowStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getSendTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getDeliveryTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getInboundInvoiceDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage( + getOutboundInvoiceDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getXmlBilateralDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + input.readMessage( + getBilateralDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + input.readMessage( + getUnilateralDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + input.readMessage( + getRevocationDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + input.readMessage( + getResolutionDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 120: { + canDocumentBeRevokedUnilaterallyBySender_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 130: { + packetId_ = input.readBytes(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: { + Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem m = + input.readMessage( + Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.parser(), + extensionRegistry); + if (customDataBuilder_ == null) { + ensureCustomDataIsMutable(); + customData_.add(m); + } else { + customDataBuilder_.addMessage(m); + } + break; + } // case 138 + case 146: { + input.readMessage( + getInboundUniversalTransferDocumentDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 154: { + input.readMessage( + getOutboundUniversalTransferDocumentDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 162: { + input.readMessage( + getRoamingNotificationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 162 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2202,27 +2417,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2231,21 +2454,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment documentAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment documentAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder> documentAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment DocumentAttachment = 2; + * @return Whether the documentAttachment field is set. */ public boolean hasDocumentAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment DocumentAttachment = 2; + * @return The documentAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getDocumentAttachment() { if (documentAttachmentBuilder_ == null) { - return documentAttachment_; + return documentAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : documentAttachment_; } else { return documentAttachmentBuilder_.getMessage(); } @@ -2259,11 +2484,11 @@ public Builder setDocumentAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.S throw new NullPointerException(); } documentAttachment_ = value; - onChanged(); } else { documentAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2273,11 +2498,11 @@ public Builder setDocumentAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder builderForValue) { if (documentAttachmentBuilder_ == null) { documentAttachment_ = builderForValue.build(); - onChanged(); } else { documentAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2285,31 +2510,33 @@ public Builder setDocumentAttachment( */ public Builder mergeDocumentAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment value) { if (documentAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - documentAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { - documentAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.newBuilder(documentAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + documentAttachment_ != null && + documentAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { + getDocumentAttachmentBuilder().mergeFrom(value); } else { documentAttachment_ = value; } - onChanged(); } else { documentAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (documentAttachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment DocumentAttachment = 2; */ public Builder clearDocumentAttachment() { - if (documentAttachmentBuilder_ == null) { - documentAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - onChanged(); - } else { - documentAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + documentAttachment_ = null; + if (documentAttachmentBuilder_ != null) { + documentAttachmentBuilder_.dispose(); + documentAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -2327,7 +2554,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getDo if (documentAttachmentBuilder_ != null) { return documentAttachmentBuilder_.getMessageOrBuilder(); } else { - return documentAttachment_; + return documentAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : documentAttachment_; } } /** @@ -2350,12 +2578,14 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getDo private java.lang.Object departmentId_ = ""; /** * optional string DepartmentId = 3; + * @return Whether the departmentId field is set. */ public boolean hasDepartmentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string DepartmentId = 3; + * @return The departmentId. */ public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; @@ -2373,6 +2603,7 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 3; + * @return The bytes for departmentId. */ public com.google.protobuf.ByteString getDepartmentIdBytes() { @@ -2389,36 +2620,37 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 3; + * @param value The departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string DepartmentId = 3; + * @return This builder for chaining. */ public Builder clearDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000004); departmentId_ = getDefaultInstance().getDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string DepartmentId = 3; + * @param value The bytes for departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2426,27 +2658,35 @@ public Builder setDepartmentIdBytes( private boolean documentIsDeleted_ ; /** * optional bool DocumentIsDeleted = 4; + * @return Whether the documentIsDeleted field is set. */ + @java.lang.Override public boolean hasDocumentIsDeleted() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bool DocumentIsDeleted = 4; + * @return The documentIsDeleted. */ + @java.lang.Override public boolean getDocumentIsDeleted() { return documentIsDeleted_; } /** * optional bool DocumentIsDeleted = 4; + * @param value The documentIsDeleted to set. + * @return This builder for chaining. */ public Builder setDocumentIsDeleted(boolean value) { - bitField0_ |= 0x00000008; + documentIsDeleted_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional bool DocumentIsDeleted = 4; + * @return This builder for chaining. */ public Builder clearDocumentIsDeleted() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2455,21 +2695,23 @@ public Builder clearDocumentIsDeleted() { return this; } - private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus docflowStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus docflowStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus, Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.Builder, Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusOrBuilder> docflowStatusBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatus DocflowStatus = 5; + * @return Whether the docflowStatus field is set. */ public boolean hasDocflowStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatus DocflowStatus = 5; + * @return The docflowStatus. */ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus getDocflowStatus() { if (docflowStatusBuilder_ == null) { - return docflowStatus_; + return docflowStatus_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance() : docflowStatus_; } else { return docflowStatusBuilder_.getMessage(); } @@ -2483,11 +2725,11 @@ public Builder setDocflowStatus(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowSt throw new NullPointerException(); } docflowStatus_ = value; - onChanged(); } else { docflowStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2497,11 +2739,11 @@ public Builder setDocflowStatus( Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.Builder builderForValue) { if (docflowStatusBuilder_ == null) { docflowStatus_ = builderForValue.build(); - onChanged(); } else { docflowStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2509,31 +2751,33 @@ public Builder setDocflowStatus( */ public Builder mergeDocflowStatus(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus value) { if (docflowStatusBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - docflowStatus_ != Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance()) { - docflowStatus_ = - Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.newBuilder(docflowStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + docflowStatus_ != null && + docflowStatus_ != Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance()) { + getDocflowStatusBuilder().mergeFrom(value); } else { docflowStatus_ = value; } - onChanged(); } else { docflowStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (docflowStatus_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatus DocflowStatus = 5; */ public Builder clearDocflowStatus() { - if (docflowStatusBuilder_ == null) { - docflowStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance(); - onChanged(); - } else { - docflowStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + docflowStatus_ = null; + if (docflowStatusBuilder_ != null) { + docflowStatusBuilder_.dispose(); + docflowStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -2551,7 +2795,8 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusOrBuilder getDocflowS if (docflowStatusBuilder_ != null) { return docflowStatusBuilder_.getMessageOrBuilder(); } else { - return docflowStatus_; + return docflowStatus_ == null ? + Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance() : docflowStatus_; } } /** @@ -2571,21 +2816,23 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusOrBuilder getDocflowS return docflowStatusBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp sendTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp sendTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> sendTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 6; + * @return Whether the sendTimestamp field is set. */ public boolean hasSendTimestamp() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 6; + * @return The sendTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getSendTimestamp() { if (sendTimestampBuilder_ == null) { - return sendTimestamp_; + return sendTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sendTimestamp_; } else { return sendTimestampBuilder_.getMessage(); } @@ -2599,11 +2846,11 @@ public Builder setSendTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value throw new NullPointerException(); } sendTimestamp_ = value; - onChanged(); } else { sendTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2613,11 +2860,11 @@ public Builder setSendTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (sendTimestampBuilder_ == null) { sendTimestamp_ = builderForValue.build(); - onChanged(); } else { sendTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2625,31 +2872,33 @@ public Builder setSendTimestamp( */ public Builder mergeSendTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (sendTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - sendTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - sendTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(sendTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + sendTimestamp_ != null && + sendTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getSendTimestampBuilder().mergeFrom(value); } else { sendTimestamp_ = value; } - onChanged(); } else { sendTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (sendTimestamp_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 6; */ public Builder clearSendTimestamp() { - if (sendTimestampBuilder_ == null) { - sendTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - sendTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + sendTimestamp_ = null; + if (sendTimestampBuilder_ != null) { + sendTimestampBuilder_.dispose(); + sendTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -2667,7 +2916,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSendTimestampOrBui if (sendTimestampBuilder_ != null) { return sendTimestampBuilder_.getMessageOrBuilder(); } else { - return sendTimestamp_; + return sendTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sendTimestamp_; } } /** @@ -2687,21 +2937,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSendTimestampOrBui return sendTimestampBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveryTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 7; + * @return Whether the deliveryTimestamp field is set. */ public boolean hasDeliveryTimestamp() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 7; + * @return The deliveryTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp() { if (deliveryTimestampBuilder_ == null) { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } else { return deliveryTimestampBuilder_.getMessage(); } @@ -2715,11 +2967,11 @@ public Builder setDeliveryTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp v throw new NullPointerException(); } deliveryTimestamp_ = value; - onChanged(); } else { deliveryTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2729,11 +2981,11 @@ public Builder setDeliveryTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveryTimestampBuilder_ == null) { deliveryTimestamp_ = builderForValue.build(); - onChanged(); } else { deliveryTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2741,31 +2993,33 @@ public Builder setDeliveryTimestamp( */ public Builder mergeDeliveryTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveryTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - deliveryTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveryTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveryTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) && + deliveryTimestamp_ != null && + deliveryTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveryTimestampBuilder().mergeFrom(value); } else { deliveryTimestamp_ = value; } - onChanged(); } else { deliveryTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + if (deliveryTimestamp_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 7; */ public Builder clearDeliveryTimestamp() { - if (deliveryTimestampBuilder_ == null) { - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveryTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000040); + deliveryTimestamp_ = null; + if (deliveryTimestampBuilder_ != null) { + deliveryTimestampBuilder_.dispose(); + deliveryTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -2783,7 +3037,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO if (deliveryTimestampBuilder_ != null) { return deliveryTimestampBuilder_.getMessageOrBuilder(); } else { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } } /** @@ -2803,39 +3058,41 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO return deliveryTimestampBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow inboundInvoiceDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow inboundInvoiceDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflowOrBuilder> inboundInvoiceDocflowBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; + * @return Whether the inboundInvoiceDocflow field is set. */ public boolean hasInboundInvoiceDocflow() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; + * @return The inboundInvoiceDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow getInboundInvoiceDocflow() { if (inboundInvoiceDocflowBuilder_ == null) { - return inboundInvoiceDocflow_; + return inboundInvoiceDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance() : inboundInvoiceDocflow_; } else { return inboundInvoiceDocflowBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; */ public Builder setInboundInvoiceDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow value) { if (inboundInvoiceDocflowBuilder_ == null) { @@ -2843,77 +3100,79 @@ public Builder setInboundInvoiceDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowP throw new NullPointerException(); } inboundInvoiceDocflow_ = value; - onChanged(); } else { inboundInvoiceDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; */ public Builder setInboundInvoiceDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.Builder builderForValue) { if (inboundInvoiceDocflowBuilder_ == null) { inboundInvoiceDocflow_ = builderForValue.build(); - onChanged(); } else { inboundInvoiceDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; */ public Builder mergeInboundInvoiceDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow value) { if (inboundInvoiceDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - inboundInvoiceDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance()) { - inboundInvoiceDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.newBuilder(inboundInvoiceDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + inboundInvoiceDocflow_ != null && + inboundInvoiceDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance()) { + getInboundInvoiceDocflowBuilder().mergeFrom(value); } else { inboundInvoiceDocflow_ = value; } - onChanged(); } else { inboundInvoiceDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + if (inboundInvoiceDocflow_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; */ public Builder clearInboundInvoiceDocflow() { - if (inboundInvoiceDocflowBuilder_ == null) { - inboundInvoiceDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance(); - onChanged(); - } else { - inboundInvoiceDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000080); + inboundInvoiceDocflow_ = null; + if (inboundInvoiceDocflowBuilder_ != null) { + inboundInvoiceDocflowBuilder_.dispose(); + inboundInvoiceDocflowBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.Builder getInboundInvoiceDocflowBuilder() { bitField0_ |= 0x00000080; @@ -2921,25 +3180,26 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.Build return getInboundInvoiceDocflowFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflowOrBuilder getInboundInvoiceDocflowOrBuilder() { if (inboundInvoiceDocflowBuilder_ != null) { return inboundInvoiceDocflowBuilder_.getMessageOrBuilder(); } else { - return inboundInvoiceDocflow_; + return inboundInvoiceDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance() : inboundInvoiceDocflow_; } } /** - * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow InboundInvoiceDocflow = 8; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflowOrBuilder> @@ -2955,39 +3215,41 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflowOrBuil return inboundInvoiceDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow outboundInvoiceDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow outboundInvoiceDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflowOrBuilder> outboundInvoiceDocflowBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; + * @return Whether the outboundInvoiceDocflow field is set. */ public boolean hasOutboundInvoiceDocflow() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; + * @return The outboundInvoiceDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow getOutboundInvoiceDocflow() { if (outboundInvoiceDocflowBuilder_ == null) { - return outboundInvoiceDocflow_; + return outboundInvoiceDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance() : outboundInvoiceDocflow_; } else { return outboundInvoiceDocflowBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; */ public Builder setOutboundInvoiceDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow value) { if (outboundInvoiceDocflowBuilder_ == null) { @@ -2995,77 +3257,79 @@ public Builder setOutboundInvoiceDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflow throw new NullPointerException(); } outboundInvoiceDocflow_ = value; - onChanged(); } else { outboundInvoiceDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; */ public Builder setOutboundInvoiceDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.Builder builderForValue) { if (outboundInvoiceDocflowBuilder_ == null) { outboundInvoiceDocflow_ = builderForValue.build(); - onChanged(); } else { outboundInvoiceDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; */ public Builder mergeOutboundInvoiceDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow value) { if (outboundInvoiceDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - outboundInvoiceDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance()) { - outboundInvoiceDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.newBuilder(outboundInvoiceDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) && + outboundInvoiceDocflow_ != null && + outboundInvoiceDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance()) { + getOutboundInvoiceDocflowBuilder().mergeFrom(value); } else { outboundInvoiceDocflow_ = value; } - onChanged(); } else { outboundInvoiceDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + if (outboundInvoiceDocflow_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; */ public Builder clearOutboundInvoiceDocflow() { - if (outboundInvoiceDocflowBuilder_ == null) { - outboundInvoiceDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance(); - onChanged(); - } else { - outboundInvoiceDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000100); + outboundInvoiceDocflow_ = null; + if (outboundInvoiceDocflowBuilder_ != null) { + outboundInvoiceDocflowBuilder_.dispose(); + outboundInvoiceDocflowBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.Builder getOutboundInvoiceDocflowBuilder() { bitField0_ |= 0x00000100; @@ -3073,25 +3337,26 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.Buil return getOutboundInvoiceDocflowFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflowOrBuilder getOutboundInvoiceDocflowOrBuilder() { if (outboundInvoiceDocflowBuilder_ != null) { return outboundInvoiceDocflowBuilder_.getMessageOrBuilder(); } else { - return outboundInvoiceDocflow_; + return outboundInvoiceDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance() : outboundInvoiceDocflow_; } } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; - * *
        * for Invoice, InvoiceRevision, InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow OutboundInvoiceDocflow = 9; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflowOrBuilder> @@ -3107,39 +3372,41 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflowOrBui return outboundInvoiceDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow xmlBilateralDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow xmlBilateralDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.Builder, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflowOrBuilder> xmlBilateralDocflowBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
        * for XmlTorg12, XmlAcceptanceCertificate
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; + * @return Whether the xmlBilateralDocflow field is set. */ public boolean hasXmlBilateralDocflow() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
        * for XmlTorg12, XmlAcceptanceCertificate
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; + * @return The xmlBilateralDocflow. */ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow getXmlBilateralDocflow() { if (xmlBilateralDocflowBuilder_ == null) { - return xmlBilateralDocflow_; + return xmlBilateralDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance() : xmlBilateralDocflow_; } else { return xmlBilateralDocflowBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
        * for XmlTorg12, XmlAcceptanceCertificate
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; */ public Builder setXmlBilateralDocflow(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow value) { if (xmlBilateralDocflowBuilder_ == null) { @@ -3147,77 +3414,79 @@ public Builder setXmlBilateralDocflow(Diadoc.Api.Proto.Docflow.XmlBilateralDocfl throw new NullPointerException(); } xmlBilateralDocflow_ = value; - onChanged(); } else { xmlBilateralDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
        * for XmlTorg12, XmlAcceptanceCertificate
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; */ public Builder setXmlBilateralDocflow( Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.Builder builderForValue) { if (xmlBilateralDocflowBuilder_ == null) { xmlBilateralDocflow_ = builderForValue.build(); - onChanged(); } else { xmlBilateralDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
        * for XmlTorg12, XmlAcceptanceCertificate
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; */ public Builder mergeXmlBilateralDocflow(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow value) { if (xmlBilateralDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - xmlBilateralDocflow_ != Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance()) { - xmlBilateralDocflow_ = - Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.newBuilder(xmlBilateralDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) && + xmlBilateralDocflow_ != null && + xmlBilateralDocflow_ != Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance()) { + getXmlBilateralDocflowBuilder().mergeFrom(value); } else { xmlBilateralDocflow_ = value; } - onChanged(); } else { xmlBilateralDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; + if (xmlBilateralDocflow_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
        * for XmlTorg12, XmlAcceptanceCertificate
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; */ public Builder clearXmlBilateralDocflow() { - if (xmlBilateralDocflowBuilder_ == null) { - xmlBilateralDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance(); - onChanged(); - } else { - xmlBilateralDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000200); + xmlBilateralDocflow_ = null; + if (xmlBilateralDocflowBuilder_ != null) { + xmlBilateralDocflowBuilder_.dispose(); + xmlBilateralDocflowBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
        * for XmlTorg12, XmlAcceptanceCertificate
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; */ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.Builder getXmlBilateralDocflowBuilder() { bitField0_ |= 0x00000200; @@ -3225,25 +3494,26 @@ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.Bu return getXmlBilateralDocflowFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
        * for XmlTorg12, XmlAcceptanceCertificate
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; */ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflowOrBuilder getXmlBilateralDocflowOrBuilder() { if (xmlBilateralDocflowBuilder_ != null) { return xmlBilateralDocflowBuilder_.getMessageOrBuilder(); } else { - return xmlBilateralDocflow_; + return xmlBilateralDocflow_ == null ? + Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance() : xmlBilateralDocflow_; } } /** - * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; - * *
        * for XmlTorg12, XmlAcceptanceCertificate
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.XmlBilateralDocflow XmlBilateralDocflow = 10; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.Builder, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflowOrBuilder> @@ -3259,39 +3529,41 @@ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflowOrB return xmlBilateralDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow bilateralDocflow_ = Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow bilateralDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow, Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.Builder, Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflowOrBuilder> bilateralDocflowBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
        * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; + * @return Whether the bilateralDocflow field is set. */ public boolean hasBilateralDocflow() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
        * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; + * @return The bilateralDocflow. */ public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow getBilateralDocflow() { if (bilateralDocflowBuilder_ == null) { - return bilateralDocflow_; + return bilateralDocflow_ == null ? Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance() : bilateralDocflow_; } else { return bilateralDocflowBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
        * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; */ public Builder setBilateralDocflow(Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow value) { if (bilateralDocflowBuilder_ == null) { @@ -3299,77 +3571,79 @@ public Builder setBilateralDocflow(Diadoc.Api.Proto.Docflow.BilateralDocflowProt throw new NullPointerException(); } bilateralDocflow_ = value; - onChanged(); } else { bilateralDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000400; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
        * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; */ public Builder setBilateralDocflow( Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.Builder builderForValue) { if (bilateralDocflowBuilder_ == null) { bilateralDocflow_ = builderForValue.build(); - onChanged(); } else { bilateralDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
        * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; */ public Builder mergeBilateralDocflow(Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow value) { if (bilateralDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400) && - bilateralDocflow_ != Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance()) { - bilateralDocflow_ = - Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.newBuilder(bilateralDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) && + bilateralDocflow_ != null && + bilateralDocflow_ != Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance()) { + getBilateralDocflowBuilder().mergeFrom(value); } else { bilateralDocflow_ = value; } - onChanged(); } else { bilateralDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; + if (bilateralDocflow_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
        * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; */ public Builder clearBilateralDocflow() { - if (bilateralDocflowBuilder_ == null) { - bilateralDocflow_ = Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance(); - onChanged(); - } else { - bilateralDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000400); + bilateralDocflow_ = null; + if (bilateralDocflowBuilder_ != null) { + bilateralDocflowBuilder_.dispose(); + bilateralDocflowBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
        * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; */ public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.Builder getBilateralDocflowBuilder() { bitField0_ |= 0x00000400; @@ -3377,25 +3651,26 @@ public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.Builder return getBilateralDocflowFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
        * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; */ public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflowOrBuilder getBilateralDocflowOrBuilder() { if (bilateralDocflowBuilder_ != null) { return bilateralDocflowBuilder_.getMessageOrBuilder(); } else { - return bilateralDocflow_; + return bilateralDocflow_ == null ? + Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.getDefaultInstance() : bilateralDocflow_; } } /** - * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; - * *
        * for Nonformalized, Torg12, AcceptanceCertificate, TrustConnectionRequest, PriceList, PriceListAgreement, CertificateRegistry, ReconciliationAct, Contract, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BilateralDocflow BilateralDocflow = 11; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow, Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflow.Builder, Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflowOrBuilder> @@ -3411,39 +3686,41 @@ public Diadoc.Api.Proto.Docflow.BilateralDocflowProtos.BilateralDocflowOrBuilder return bilateralDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow unilateralDocflow_ = Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow unilateralDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow, Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.Builder, Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflowOrBuilder> unilateralDocflowBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
        * for ProformaInvoice, ServiceDetails
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; + * @return Whether the unilateralDocflow field is set. */ public boolean hasUnilateralDocflow() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
        * for ProformaInvoice, ServiceDetails
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; + * @return The unilateralDocflow. */ public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow getUnilateralDocflow() { if (unilateralDocflowBuilder_ == null) { - return unilateralDocflow_; + return unilateralDocflow_ == null ? Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance() : unilateralDocflow_; } else { return unilateralDocflowBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
        * for ProformaInvoice, ServiceDetails
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; */ public Builder setUnilateralDocflow(Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow value) { if (unilateralDocflowBuilder_ == null) { @@ -3451,77 +3728,79 @@ public Builder setUnilateralDocflow(Diadoc.Api.Proto.Docflow.UnilateralDocflowPr throw new NullPointerException(); } unilateralDocflow_ = value; - onChanged(); } else { unilateralDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000800; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
        * for ProformaInvoice, ServiceDetails
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; */ public Builder setUnilateralDocflow( Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.Builder builderForValue) { if (unilateralDocflowBuilder_ == null) { unilateralDocflow_ = builderForValue.build(); - onChanged(); } else { unilateralDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
        * for ProformaInvoice, ServiceDetails
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; */ public Builder mergeUnilateralDocflow(Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow value) { if (unilateralDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800) && - unilateralDocflow_ != Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance()) { - unilateralDocflow_ = - Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.newBuilder(unilateralDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) && + unilateralDocflow_ != null && + unilateralDocflow_ != Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance()) { + getUnilateralDocflowBuilder().mergeFrom(value); } else { unilateralDocflow_ = value; } - onChanged(); } else { unilateralDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000800; + if (unilateralDocflow_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
        * for ProformaInvoice, ServiceDetails
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; */ public Builder clearUnilateralDocflow() { - if (unilateralDocflowBuilder_ == null) { - unilateralDocflow_ = Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance(); - onChanged(); - } else { - unilateralDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000800); + unilateralDocflow_ = null; + if (unilateralDocflowBuilder_ != null) { + unilateralDocflowBuilder_.dispose(); + unilateralDocflowBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
        * for ProformaInvoice, ServiceDetails
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; */ public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.Builder getUnilateralDocflowBuilder() { bitField0_ |= 0x00000800; @@ -3529,25 +3808,26 @@ public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.Builde return getUnilateralDocflowFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
        * for ProformaInvoice, ServiceDetails
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; */ public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflowOrBuilder getUnilateralDocflowOrBuilder() { if (unilateralDocflowBuilder_ != null) { return unilateralDocflowBuilder_.getMessageOrBuilder(); } else { - return unilateralDocflow_; + return unilateralDocflow_ == null ? + Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance() : unilateralDocflow_; } } /** - * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; - * *
        * for ProformaInvoice, ServiceDetails
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UnilateralDocflow UnilateralDocflow = 12; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow, Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.Builder, Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflowOrBuilder> @@ -3563,21 +3843,23 @@ public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflowOrBuild return unilateralDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow revocationDocflow_ = Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow revocationDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow, Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.Builder, Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflowOrBuilder> revocationDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflow RevocationDocflow = 13; + * @return Whether the revocationDocflow field is set. */ public boolean hasRevocationDocflow() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflow RevocationDocflow = 13; + * @return The revocationDocflow. */ public Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow getRevocationDocflow() { if (revocationDocflowBuilder_ == null) { - return revocationDocflow_; + return revocationDocflow_ == null ? Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance() : revocationDocflow_; } else { return revocationDocflowBuilder_.getMessage(); } @@ -3591,11 +3873,11 @@ public Builder setRevocationDocflow(Diadoc.Api.Proto.Docflow.RevocationDocflowPr throw new NullPointerException(); } revocationDocflow_ = value; - onChanged(); } else { revocationDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3605,11 +3887,11 @@ public Builder setRevocationDocflow( Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.Builder builderForValue) { if (revocationDocflowBuilder_ == null) { revocationDocflow_ = builderForValue.build(); - onChanged(); } else { revocationDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3617,31 +3899,33 @@ public Builder setRevocationDocflow( */ public Builder mergeRevocationDocflow(Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow value) { if (revocationDocflowBuilder_ == null) { - if (((bitField0_ & 0x00001000) == 0x00001000) && - revocationDocflow_ != Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance()) { - revocationDocflow_ = - Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.newBuilder(revocationDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00001000) != 0) && + revocationDocflow_ != null && + revocationDocflow_ != Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance()) { + getRevocationDocflowBuilder().mergeFrom(value); } else { revocationDocflow_ = value; } - onChanged(); } else { revocationDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00001000; + if (revocationDocflow_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflow RevocationDocflow = 13; */ public Builder clearRevocationDocflow() { - if (revocationDocflowBuilder_ == null) { - revocationDocflow_ = Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance(); - onChanged(); - } else { - revocationDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00001000); + revocationDocflow_ = null; + if (revocationDocflowBuilder_ != null) { + revocationDocflowBuilder_.dispose(); + revocationDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -3659,7 +3943,8 @@ public Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflowOrBuild if (revocationDocflowBuilder_ != null) { return revocationDocflowBuilder_.getMessageOrBuilder(); } else { - return revocationDocflow_; + return revocationDocflow_ == null ? + Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance() : revocationDocflow_; } } /** @@ -3679,21 +3964,23 @@ public Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflowOrBuild return revocationDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow resolutionDocflow_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow resolutionDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow, Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.Builder, Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflowOrBuilder> resolutionDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflow ResolutionDocflow = 14; + * @return Whether the resolutionDocflow field is set. */ public boolean hasResolutionDocflow() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflow ResolutionDocflow = 14; + * @return The resolutionDocflow. */ public Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow getResolutionDocflow() { if (resolutionDocflowBuilder_ == null) { - return resolutionDocflow_; + return resolutionDocflow_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance() : resolutionDocflow_; } else { return resolutionDocflowBuilder_.getMessage(); } @@ -3707,11 +3994,11 @@ public Builder setResolutionDocflow(Diadoc.Api.Proto.Docflow.ResolutionDocflowPr throw new NullPointerException(); } resolutionDocflow_ = value; - onChanged(); } else { resolutionDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3721,11 +4008,11 @@ public Builder setResolutionDocflow( Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.Builder builderForValue) { if (resolutionDocflowBuilder_ == null) { resolutionDocflow_ = builderForValue.build(); - onChanged(); } else { resolutionDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3733,31 +4020,33 @@ public Builder setResolutionDocflow( */ public Builder mergeResolutionDocflow(Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow value) { if (resolutionDocflowBuilder_ == null) { - if (((bitField0_ & 0x00002000) == 0x00002000) && - resolutionDocflow_ != Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance()) { - resolutionDocflow_ = - Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.newBuilder(resolutionDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00002000) != 0) && + resolutionDocflow_ != null && + resolutionDocflow_ != Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance()) { + getResolutionDocflowBuilder().mergeFrom(value); } else { resolutionDocflow_ = value; } - onChanged(); } else { resolutionDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00002000; + if (resolutionDocflow_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflow ResolutionDocflow = 14; */ public Builder clearResolutionDocflow() { - if (resolutionDocflowBuilder_ == null) { - resolutionDocflow_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance(); - onChanged(); - } else { - resolutionDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00002000); + resolutionDocflow_ = null; + if (resolutionDocflowBuilder_ != null) { + resolutionDocflowBuilder_.dispose(); + resolutionDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -3775,7 +4064,8 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflowOrBuild if (resolutionDocflowBuilder_ != null) { return resolutionDocflowBuilder_.getMessageOrBuilder(); } else { - return resolutionDocflow_; + return resolutionDocflow_ == null ? + Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance() : resolutionDocflow_; } } /** @@ -3798,27 +4088,35 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflowOrBuild private boolean canDocumentBeRevokedUnilaterallyBySender_ ; /** * optional bool CanDocumentBeRevokedUnilaterallyBySender = 15; + * @return Whether the canDocumentBeRevokedUnilaterallyBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeRevokedUnilaterallyBySender() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional bool CanDocumentBeRevokedUnilaterallyBySender = 15; + * @return The canDocumentBeRevokedUnilaterallyBySender. */ + @java.lang.Override public boolean getCanDocumentBeRevokedUnilaterallyBySender() { return canDocumentBeRevokedUnilaterallyBySender_; } /** * optional bool CanDocumentBeRevokedUnilaterallyBySender = 15; + * @param value The canDocumentBeRevokedUnilaterallyBySender to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeRevokedUnilaterallyBySender(boolean value) { - bitField0_ |= 0x00004000; + canDocumentBeRevokedUnilaterallyBySender_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } /** * optional bool CanDocumentBeRevokedUnilaterallyBySender = 15; + * @return This builder for chaining. */ public Builder clearCanDocumentBeRevokedUnilaterallyBySender() { bitField0_ = (bitField0_ & ~0x00004000); @@ -3830,12 +4128,14 @@ public Builder clearCanDocumentBeRevokedUnilaterallyBySender() { private java.lang.Object packetId_ = ""; /** * optional string PacketId = 16; + * @return Whether the packetId field is set. */ public boolean hasPacketId() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional string PacketId = 16; + * @return The packetId. */ public java.lang.String getPacketId() { java.lang.Object ref = packetId_; @@ -3853,6 +4153,7 @@ public java.lang.String getPacketId() { } /** * optional string PacketId = 16; + * @return The bytes for packetId. */ public com.google.protobuf.ByteString getPacketIdBytes() { @@ -3869,36 +4170,37 @@ public java.lang.String getPacketId() { } /** * optional string PacketId = 16; + * @param value The packetId to set. + * @return This builder for chaining. */ public Builder setPacketId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + if (value == null) { throw new NullPointerException(); } packetId_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } /** * optional string PacketId = 16; + * @return This builder for chaining. */ public Builder clearPacketId() { - bitField0_ = (bitField0_ & ~0x00008000); packetId_ = getDefaultInstance().getPacketId(); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } /** * optional string PacketId = 16; + * @param value The bytes for packetId to set. + * @return This builder for chaining. */ public Builder setPacketIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + if (value == null) { throw new NullPointerException(); } packetId_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3906,7 +4208,7 @@ public Builder setPacketIdBytes( private java.util.List customData_ = java.util.Collections.emptyList(); private void ensureCustomDataIsMutable() { - if (!((bitField0_ & 0x00010000) == 0x00010000)) { + if (!((bitField0_ & 0x00010000) != 0)) { customData_ = new java.util.ArrayList(customData_); bitField0_ |= 0x00010000; } @@ -4135,7 +4437,7 @@ public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.Builder addCustomDat customDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem, Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.Builder, Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder>( customData_, - ((bitField0_ & 0x00010000) == 0x00010000), + ((bitField0_ & 0x00010000) != 0), getParentForChildren(), isClean()); customData_ = null; @@ -4143,39 +4445,41 @@ public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.Builder addCustomDat return customDataBuilder_; } - private Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow inboundUniversalTransferDocumentDocflow_ = Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow inboundUniversalTransferDocumentDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow, Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.Builder, Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflowOrBuilder> inboundUniversalTransferDocumentDocflowBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; + * @return Whether the inboundUniversalTransferDocumentDocflow field is set. */ public boolean hasInboundUniversalTransferDocumentDocflow() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00020000) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; + * @return The inboundUniversalTransferDocumentDocflow. */ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow getInboundUniversalTransferDocumentDocflow() { if (inboundUniversalTransferDocumentDocflowBuilder_ == null) { - return inboundUniversalTransferDocumentDocflow_; + return inboundUniversalTransferDocumentDocflow_ == null ? Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance() : inboundUniversalTransferDocumentDocflow_; } else { return inboundUniversalTransferDocumentDocflowBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; */ public Builder setInboundUniversalTransferDocumentDocflow(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow value) { if (inboundUniversalTransferDocumentDocflowBuilder_ == null) { @@ -4183,77 +4487,79 @@ public Builder setInboundUniversalTransferDocumentDocflow(Diadoc.Api.Proto.Docfl throw new NullPointerException(); } inboundUniversalTransferDocumentDocflow_ = value; - onChanged(); } else { inboundUniversalTransferDocumentDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00020000; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; */ public Builder setInboundUniversalTransferDocumentDocflow( Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.Builder builderForValue) { if (inboundUniversalTransferDocumentDocflowBuilder_ == null) { inboundUniversalTransferDocumentDocflow_ = builderForValue.build(); - onChanged(); } else { inboundUniversalTransferDocumentDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; */ public Builder mergeInboundUniversalTransferDocumentDocflow(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow value) { if (inboundUniversalTransferDocumentDocflowBuilder_ == null) { - if (((bitField0_ & 0x00020000) == 0x00020000) && - inboundUniversalTransferDocumentDocflow_ != Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance()) { - inboundUniversalTransferDocumentDocflow_ = - Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.newBuilder(inboundUniversalTransferDocumentDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00020000) != 0) && + inboundUniversalTransferDocumentDocflow_ != null && + inboundUniversalTransferDocumentDocflow_ != Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance()) { + getInboundUniversalTransferDocumentDocflowBuilder().mergeFrom(value); } else { inboundUniversalTransferDocumentDocflow_ = value; } - onChanged(); } else { inboundUniversalTransferDocumentDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00020000; + if (inboundUniversalTransferDocumentDocflow_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; */ public Builder clearInboundUniversalTransferDocumentDocflow() { - if (inboundUniversalTransferDocumentDocflowBuilder_ == null) { - inboundUniversalTransferDocumentDocflow_ = Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance(); - onChanged(); - } else { - inboundUniversalTransferDocumentDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00020000); + inboundUniversalTransferDocumentDocflow_ = null; + if (inboundUniversalTransferDocumentDocflowBuilder_ != null) { + inboundUniversalTransferDocumentDocflowBuilder_.dispose(); + inboundUniversalTransferDocumentDocflowBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; */ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.Builder getInboundUniversalTransferDocumentDocflowBuilder() { bitField0_ |= 0x00020000; @@ -4261,25 +4567,26 @@ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUn return getInboundUniversalTransferDocumentDocflowFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; */ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflowOrBuilder getInboundUniversalTransferDocumentDocflowOrBuilder() { if (inboundUniversalTransferDocumentDocflowBuilder_ != null) { return inboundUniversalTransferDocumentDocflowBuilder_.getMessageOrBuilder(); } else { - return inboundUniversalTransferDocumentDocflow_; + return inboundUniversalTransferDocumentDocflow_ == null ? + Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance() : inboundUniversalTransferDocumentDocflow_; } } /** - * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow InboundUniversalTransferDocumentDocflow = 18; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow, Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.Builder, Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflowOrBuilder> @@ -4295,39 +4602,41 @@ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUn return inboundUniversalTransferDocumentDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow outboundUniversalTransferDocumentDocflow_ = Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow outboundUniversalTransferDocumentDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow, Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.Builder, Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflowOrBuilder> outboundUniversalTransferDocumentDocflowBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; + * @return Whether the outboundUniversalTransferDocumentDocflow field is set. */ public boolean hasOutboundUniversalTransferDocumentDocflow() { - return ((bitField0_ & 0x00040000) == 0x00040000); + return ((bitField0_ & 0x00040000) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; + * @return The outboundUniversalTransferDocumentDocflow. */ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow getOutboundUniversalTransferDocumentDocflow() { if (outboundUniversalTransferDocumentDocflowBuilder_ == null) { - return outboundUniversalTransferDocumentDocflow_; + return outboundUniversalTransferDocumentDocflow_ == null ? Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance() : outboundUniversalTransferDocumentDocflow_; } else { return outboundUniversalTransferDocumentDocflowBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; */ public Builder setOutboundUniversalTransferDocumentDocflow(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow value) { if (outboundUniversalTransferDocumentDocflowBuilder_ == null) { @@ -4335,77 +4644,79 @@ public Builder setOutboundUniversalTransferDocumentDocflow(Diadoc.Api.Proto.Docf throw new NullPointerException(); } outboundUniversalTransferDocumentDocflow_ = value; - onChanged(); } else { outboundUniversalTransferDocumentDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00040000; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; */ public Builder setOutboundUniversalTransferDocumentDocflow( Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.Builder builderForValue) { if (outboundUniversalTransferDocumentDocflowBuilder_ == null) { outboundUniversalTransferDocumentDocflow_ = builderForValue.build(); - onChanged(); } else { outboundUniversalTransferDocumentDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; */ public Builder mergeOutboundUniversalTransferDocumentDocflow(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow value) { if (outboundUniversalTransferDocumentDocflowBuilder_ == null) { - if (((bitField0_ & 0x00040000) == 0x00040000) && - outboundUniversalTransferDocumentDocflow_ != Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance()) { - outboundUniversalTransferDocumentDocflow_ = - Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.newBuilder(outboundUniversalTransferDocumentDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00040000) != 0) && + outboundUniversalTransferDocumentDocflow_ != null && + outboundUniversalTransferDocumentDocflow_ != Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance()) { + getOutboundUniversalTransferDocumentDocflowBuilder().mergeFrom(value); } else { outboundUniversalTransferDocumentDocflow_ = value; } - onChanged(); } else { outboundUniversalTransferDocumentDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00040000; + if (outboundUniversalTransferDocumentDocflow_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; */ public Builder clearOutboundUniversalTransferDocumentDocflow() { - if (outboundUniversalTransferDocumentDocflowBuilder_ == null) { - outboundUniversalTransferDocumentDocflow_ = Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance(); - onChanged(); - } else { - outboundUniversalTransferDocumentDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00040000); + outboundUniversalTransferDocumentDocflow_ = null; + if (outboundUniversalTransferDocumentDocflowBuilder_ != null) { + outboundUniversalTransferDocumentDocflowBuilder_.dispose(); + outboundUniversalTransferDocumentDocflowBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; */ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.Builder getOutboundUniversalTransferDocumentDocflowBuilder() { bitField0_ |= 0x00040000; @@ -4413,25 +4724,26 @@ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundU return getOutboundUniversalTransferDocumentDocflowFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; */ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflowOrBuilder getOutboundUniversalTransferDocumentDocflowOrBuilder() { if (outboundUniversalTransferDocumentDocflowBuilder_ != null) { return outboundUniversalTransferDocumentDocflowBuilder_.getMessageOrBuilder(); } else { - return outboundUniversalTransferDocumentDocflow_; + return outboundUniversalTransferDocumentDocflow_ == null ? + Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance() : outboundUniversalTransferDocumentDocflow_; } } /** - * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision, UniversalCorrectionDocument
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow OutboundUniversalTransferDocumentDocflow = 19; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow, Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.Builder, Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflowOrBuilder> @@ -4447,21 +4759,23 @@ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundU return outboundUniversalTransferDocumentDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification roamingNotification_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification, Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.Builder, Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrBuilder> roamingNotificationBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 20; + * @return Whether the roamingNotification field is set. */ public boolean hasRoamingNotification() { - return ((bitField0_ & 0x00080000) == 0x00080000); + return ((bitField0_ & 0x00080000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 20; + * @return The roamingNotification. */ public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getRoamingNotification() { if (roamingNotificationBuilder_ == null) { - return roamingNotification_; + return roamingNotification_ == null ? Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } else { return roamingNotificationBuilder_.getMessage(); } @@ -4475,11 +4789,11 @@ public Builder setRoamingNotification(Diadoc.Api.Proto.Docflow.RoamingNotificati throw new NullPointerException(); } roamingNotification_ = value; - onChanged(); } else { roamingNotificationBuilder_.setMessage(value); } bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -4489,11 +4803,11 @@ public Builder setRoamingNotification( Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.Builder builderForValue) { if (roamingNotificationBuilder_ == null) { roamingNotification_ = builderForValue.build(); - onChanged(); } else { roamingNotificationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -4501,31 +4815,33 @@ public Builder setRoamingNotification( */ public Builder mergeRoamingNotification(Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification value) { if (roamingNotificationBuilder_ == null) { - if (((bitField0_ & 0x00080000) == 0x00080000) && - roamingNotification_ != Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance()) { - roamingNotification_ = - Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.newBuilder(roamingNotification_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00080000) != 0) && + roamingNotification_ != null && + roamingNotification_ != Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance()) { + getRoamingNotificationBuilder().mergeFrom(value); } else { roamingNotification_ = value; } - onChanged(); } else { roamingNotificationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00080000; + if (roamingNotification_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 20; */ public Builder clearRoamingNotification() { - if (roamingNotificationBuilder_ == null) { - roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); - onChanged(); - } else { - roamingNotificationBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00080000); + roamingNotification_ = null; + if (roamingNotificationBuilder_ != null) { + roamingNotificationBuilder_.dispose(); + roamingNotificationBuilder_ = null; + } + onChanged(); return this; } /** @@ -4543,7 +4859,8 @@ public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrB if (roamingNotificationBuilder_ != null) { return roamingNotificationBuilder_.getMessageOrBuilder(); } else { - return roamingNotification_; + return roamingNotification_ == null ? + Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } } /** @@ -4566,24 +4883,66 @@ public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrB // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.Docflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.Docflow) + private static final Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow DEFAULT_INSTANCE; static { - defaultInstance = new Docflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Docflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.Docflow) } - public interface DocflowStatusOrBuilder extends + @java.lang.Deprecated public interface DocflowStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.DocflowStatus) com.google.protobuf.MessageOrBuilder { /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel PrimaryStatus = 1; + * @return Whether the primaryStatus field is set. */ boolean hasPrimaryStatus(); /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel PrimaryStatus = 1; + * @return The primaryStatus. */ Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel getPrimaryStatus(); /** @@ -4593,10 +4952,12 @@ public interface DocflowStatusOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel SecondaryStatus = 2; + * @return Whether the secondaryStatus field is set. */ boolean hasSecondaryStatus(); /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel SecondaryStatus = 2; + * @return The secondaryStatus. */ Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel getSecondaryStatus(); /** @@ -4607,98 +4968,33 @@ public interface DocflowStatusOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.DocflowStatus} */ - public static final class DocflowStatus extends + @java.lang.Deprecated public static final class DocflowStatus extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocflowStatus) DocflowStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowStatus.class.getName()); + } // Use DocflowStatus.newBuilder() to construct. private DocflowStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocflowStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocflowStatus defaultInstance; - public static DocflowStatus getDefaultInstance() { - return defaultInstance; } - - public DocflowStatus getDefaultInstanceForType() { - return defaultInstance; + private DocflowStatus() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocflowStatus( - 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: { - Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = primaryStatus_.toBuilder(); - } - primaryStatus_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(primaryStatus_); - primaryStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = secondaryStatus_.toBuilder(); - } - secondaryStatus_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secondaryStatus_); - secondaryStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowStatus_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowStatus_fieldAccessorTable @@ -4706,69 +5002,61 @@ private DocflowStatus( Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.class, Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocflowStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocflowStatus(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PRIMARYSTATUS_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel primaryStatus_; /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel PrimaryStatus = 1; + * @return Whether the primaryStatus field is set. */ + @java.lang.Override public boolean hasPrimaryStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel PrimaryStatus = 1; + * @return The primaryStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel getPrimaryStatus() { - return primaryStatus_; + return primaryStatus_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance() : primaryStatus_; } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel PrimaryStatus = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModelOrBuilder getPrimaryStatusOrBuilder() { - return primaryStatus_; + return primaryStatus_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance() : primaryStatus_; } public static final int SECONDARYSTATUS_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel secondaryStatus_; /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel SecondaryStatus = 2; + * @return Whether the secondaryStatus field is set. */ + @java.lang.Override public boolean hasSecondaryStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel SecondaryStatus = 2; + * @return The secondaryStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel getSecondaryStatus() { - return secondaryStatus_; + return secondaryStatus_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance() : secondaryStatus_; } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel SecondaryStatus = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModelOrBuilder getSecondaryStatusOrBuilder() { - return secondaryStatus_; + return secondaryStatus_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance() : secondaryStatus_; } - private void initFields() { - primaryStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance(); - secondaryStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4778,44 +5066,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, primaryStatus_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPrimaryStatus()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, secondaryStatus_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSecondaryStatus()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, primaryStatus_); + .computeMessageSize(1, getPrimaryStatus()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, secondaryStatus_); + .computeMessageSize(2, getSecondaryStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus other = (Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus) obj; + + if (hasPrimaryStatus() != other.hasPrimaryStatus()) return false; + if (hasPrimaryStatus()) { + if (!getPrimaryStatus() + .equals(other.getPrimaryStatus())) return false; + } + if (hasSecondaryStatus() != other.hasSecondaryStatus()) return false; + if (hasSecondaryStatus()) { + if (!getSecondaryStatus() + .equals(other.getSecondaryStatus())) return false; } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - private static final long serialVersionUID = 0L; @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrimaryStatus()) { + hash = (37 * hash) + PRIMARYSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryStatus().hashCode(); + } + if (hasSecondaryStatus()) { + hash = (37 * hash) + SECONDARYSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4839,42 +5175,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parseFrom( } public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4894,6 +5245,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowStatus_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowStatus_fieldAccessorTable @@ -4912,45 +5264,41 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getPrimaryStatusFieldBuilder(); getSecondaryStatusFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (primaryStatusBuilder_ == null) { - primaryStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance(); - } else { - primaryStatusBuilder_.clear(); + bitField0_ = 0; + primaryStatus_ = null; + if (primaryStatusBuilder_ != null) { + primaryStatusBuilder_.dispose(); + primaryStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (secondaryStatusBuilder_ == null) { - secondaryStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance(); - } else { - secondaryStatusBuilder_.clear(); + secondaryStatus_ = null; + if (secondaryStatusBuilder_ != null) { + secondaryStatusBuilder_.dispose(); + secondaryStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowStatus_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus build() { Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus result = buildPartial(); if (!result.isInitialized()) { @@ -4959,31 +5307,33 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus buildPartial() { Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus result = new Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.primaryStatus_ = primaryStatusBuilder_ == null + ? primaryStatus_ + : primaryStatusBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (primaryStatusBuilder_ == null) { - result.primaryStatus_ = primaryStatus_; - } else { - result.primaryStatus_ = primaryStatusBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.secondaryStatus_ = secondaryStatusBuilder_ == null + ? secondaryStatus_ + : secondaryStatusBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (secondaryStatusBuilder_ == null) { - result.secondaryStatus_ = secondaryStatus_; - } else { - result.secondaryStatus_ = secondaryStatusBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus)other); @@ -5002,47 +5352,79 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus ot mergeSecondaryStatus(other.getSecondaryStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPrimaryStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSecondaryStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel primaryStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel primaryStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel, Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.Builder, Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModelOrBuilder> primaryStatusBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel PrimaryStatus = 1; + * @return Whether the primaryStatus field is set. */ public boolean hasPrimaryStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel PrimaryStatus = 1; + * @return The primaryStatus. */ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel getPrimaryStatus() { if (primaryStatusBuilder_ == null) { - return primaryStatus_; + return primaryStatus_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance() : primaryStatus_; } else { return primaryStatusBuilder_.getMessage(); } @@ -5056,11 +5438,11 @@ public Builder setPrimaryStatus(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowSt throw new NullPointerException(); } primaryStatus_ = value; - onChanged(); } else { primaryStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5070,11 +5452,11 @@ public Builder setPrimaryStatus( Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.Builder builderForValue) { if (primaryStatusBuilder_ == null) { primaryStatus_ = builderForValue.build(); - onChanged(); } else { primaryStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5082,31 +5464,33 @@ public Builder setPrimaryStatus( */ public Builder mergePrimaryStatus(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel value) { if (primaryStatusBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - primaryStatus_ != Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance()) { - primaryStatus_ = - Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.newBuilder(primaryStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + primaryStatus_ != null && + primaryStatus_ != Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance()) { + getPrimaryStatusBuilder().mergeFrom(value); } else { primaryStatus_ = value; } - onChanged(); } else { primaryStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (primaryStatus_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel PrimaryStatus = 1; */ public Builder clearPrimaryStatus() { - if (primaryStatusBuilder_ == null) { - primaryStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance(); - onChanged(); - } else { - primaryStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + primaryStatus_ = null; + if (primaryStatusBuilder_ != null) { + primaryStatusBuilder_.dispose(); + primaryStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -5124,7 +5508,8 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModelOrBuilder getPri if (primaryStatusBuilder_ != null) { return primaryStatusBuilder_.getMessageOrBuilder(); } else { - return primaryStatus_; + return primaryStatus_ == null ? + Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance() : primaryStatus_; } } /** @@ -5144,21 +5529,23 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModelOrBuilder getPri return primaryStatusBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel secondaryStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel secondaryStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel, Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.Builder, Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModelOrBuilder> secondaryStatusBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel SecondaryStatus = 2; + * @return Whether the secondaryStatus field is set. */ public boolean hasSecondaryStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel SecondaryStatus = 2; + * @return The secondaryStatus. */ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel getSecondaryStatus() { if (secondaryStatusBuilder_ == null) { - return secondaryStatus_; + return secondaryStatus_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance() : secondaryStatus_; } else { return secondaryStatusBuilder_.getMessage(); } @@ -5172,11 +5559,11 @@ public Builder setSecondaryStatus(Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow throw new NullPointerException(); } secondaryStatus_ = value; - onChanged(); } else { secondaryStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5186,11 +5573,11 @@ public Builder setSecondaryStatus( Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.Builder builderForValue) { if (secondaryStatusBuilder_ == null) { secondaryStatus_ = builderForValue.build(); - onChanged(); } else { secondaryStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5198,31 +5585,33 @@ public Builder setSecondaryStatus( */ public Builder mergeSecondaryStatus(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel value) { if (secondaryStatusBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - secondaryStatus_ != Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance()) { - secondaryStatus_ = - Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.newBuilder(secondaryStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + secondaryStatus_ != null && + secondaryStatus_ != Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance()) { + getSecondaryStatusBuilder().mergeFrom(value); } else { secondaryStatus_ = value; } - onChanged(); } else { secondaryStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (secondaryStatus_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusModel SecondaryStatus = 2; */ public Builder clearSecondaryStatus() { - if (secondaryStatusBuilder_ == null) { - secondaryStatus_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance(); - onChanged(); - } else { - secondaryStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + secondaryStatus_ = null; + if (secondaryStatusBuilder_ != null) { + secondaryStatusBuilder_.dispose(); + secondaryStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -5240,7 +5629,8 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModelOrBuilder getSec if (secondaryStatusBuilder_ != null) { return secondaryStatusBuilder_.getMessageOrBuilder(); } else { - return secondaryStatus_; + return secondaryStatus_ == null ? + Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance() : secondaryStatus_; } } /** @@ -5263,51 +5653,99 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModelOrBuilder getSec // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocflowStatus) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocflowStatus) + private static final Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus DEFAULT_INSTANCE; static { - defaultInstance = new DocflowStatus(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocflowStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocflowStatus) } - public interface DocflowStatusModelOrBuilder extends + @java.lang.Deprecated public interface DocflowStatusModelOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.DocflowStatusModel) com.google.protobuf.MessageOrBuilder { /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusSeverity Severity = 1 [default = UnknownDocflowStatusSeverity]; + * @return Whether the severity field is set. */ boolean hasSeverity(); /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusSeverity Severity = 1 [default = UnknownDocflowStatusSeverity]; + * @return The severity. */ Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity getSeverity(); /** * optional string StatusText = 2; + * @return Whether the statusText field is set. */ boolean hasStatusText(); /** * optional string StatusText = 2; + * @return The statusText. */ java.lang.String getStatusText(); /** * optional string StatusText = 2; + * @return The bytes for statusText. */ com.google.protobuf.ByteString getStatusTextBytes(); /** * optional string StatusHint = 3; + * @return Whether the statusHint field is set. */ boolean hasStatusHint(); /** * optional string StatusHint = 3; + * @return The statusHint. */ java.lang.String getStatusHint(); /** * optional string StatusHint = 3; + * @return The bytes for statusHint. */ com.google.protobuf.ByteString getStatusHintBytes(); @@ -5315,95 +5753,36 @@ public interface DocflowStatusModelOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.DocflowStatusModel} */ - public static final class DocflowStatusModel extends + @java.lang.Deprecated public static final class DocflowStatusModel extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocflowStatusModel) DocflowStatusModelOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowStatusModel.class.getName()); + } // Use DocflowStatusModel.newBuilder() to construct. private DocflowStatusModel(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocflowStatusModel(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocflowStatusModel defaultInstance; - public static DocflowStatusModel getDefaultInstance() { - return defaultInstance; } - - public DocflowStatusModel getDefaultInstanceForType() { - return defaultInstance; + private DocflowStatusModel() { + severity_ = 0; + statusText_ = ""; + statusHint_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocflowStatusModel( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity value = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - severity_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - statusText_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - statusHint_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowStatusModel_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowStatusModel_fieldAccessorTable @@ -5411,48 +5790,41 @@ private DocflowStatusModel( Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.class, Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocflowStatusModel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocflowStatusModel(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int SEVERITY_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity severity_; + private int severity_ = 0; /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusSeverity Severity = 1 [default = UnknownDocflowStatusSeverity]; + * @return Whether the severity field is set. */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasSeverity() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusSeverity Severity = 1 [default = UnknownDocflowStatusSeverity]; + * @return The severity. */ - public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity getSeverity() { - return severity_; + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity getSeverity() { + Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity result = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity.forNumber(severity_); + return result == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity.UnknownDocflowStatusSeverity : result; } public static final int STATUSTEXT_FIELD_NUMBER = 2; - private java.lang.Object statusText_; + @SuppressWarnings("serial") + private volatile java.lang.Object statusText_ = ""; /** * optional string StatusText = 2; + * @return Whether the statusText field is set. */ + @java.lang.Override public boolean hasStatusText() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string StatusText = 2; + * @return The statusText. */ + @java.lang.Override public java.lang.String getStatusText() { java.lang.Object ref = statusText_; if (ref instanceof java.lang.String) { @@ -5469,7 +5841,9 @@ public java.lang.String getStatusText() { } /** * optional string StatusText = 2; + * @return The bytes for statusText. */ + @java.lang.Override public com.google.protobuf.ByteString getStatusTextBytes() { java.lang.Object ref = statusText_; @@ -5485,16 +5859,21 @@ public java.lang.String getStatusText() { } public static final int STATUSHINT_FIELD_NUMBER = 3; - private java.lang.Object statusHint_; + @SuppressWarnings("serial") + private volatile java.lang.Object statusHint_ = ""; /** * optional string StatusHint = 3; + * @return Whether the statusHint field is set. */ + @java.lang.Override public boolean hasStatusHint() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string StatusHint = 3; + * @return The statusHint. */ + @java.lang.Override public java.lang.String getStatusHint() { java.lang.Object ref = statusHint_; if (ref instanceof java.lang.String) { @@ -5511,7 +5890,9 @@ public java.lang.String getStatusHint() { } /** * optional string StatusHint = 3; + * @return The bytes for statusHint. */ + @java.lang.Override public com.google.protobuf.ByteString getStatusHintBytes() { java.lang.Object ref = statusHint_; @@ -5526,12 +5907,8 @@ public java.lang.String getStatusHint() { } } - private void initFields() { - severity_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity.UnknownDocflowStatusSeverity; - statusText_ = ""; - statusHint_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5541,51 +5918,105 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, severity_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, severity_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getStatusTextBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, statusText_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getStatusHintBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, statusHint_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, severity_.getNumber()); + .computeEnumSize(1, severity_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getStatusTextBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, statusText_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getStatusHintBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, statusHint_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel other = (Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel) obj; + + if (hasSeverity() != other.hasSeverity()) return false; + if (hasSeverity()) { + if (severity_ != other.severity_) return false; + } + if (hasStatusText() != other.hasStatusText()) return false; + if (hasStatusText()) { + if (!getStatusText() + .equals(other.getStatusText())) return false; + } + if (hasStatusHint() != other.hasStatusHint()) return false; + if (hasStatusHint()) { + if (!getStatusHint() + .equals(other.getStatusHint())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSeverity()) { + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + } + if (hasStatusText()) { + hash = (37 * hash) + STATUSTEXT_FIELD_NUMBER; + hash = (53 * hash) + getStatusText().hashCode(); + } + if (hasStatusHint()) { + hash = (37 * hash) + STATUSHINT_FIELD_NUMBER; + hash = (53 * hash) + getStatusHint().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5609,42 +6040,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parseFro } public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5664,6 +6110,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowStatusModel_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowStatusModel_fieldAccessorTable @@ -5673,46 +6120,36 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - severity_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity.UnknownDocflowStatusSeverity; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + severity_ = 0; statusText_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); statusHint_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocflowStatusModel_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel build() { Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel result = buildPartial(); if (!result.isInitialized()) { @@ -5721,27 +6158,33 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel buildPartial() { Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel result = new Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.severity_ = severity_; to_bitField0_ |= 0x00000001; } - result.severity_ = severity_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.statusText_ = statusText_; to_bitField0_ |= 0x00000002; } - result.statusText_ = statusText_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.statusHint_ = statusHint_; to_bitField0_ |= 0x00000004; } - result.statusHint_ = statusHint_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel)other); @@ -5757,73 +6200,118 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusMod setSeverity(other.getSeverity()); } if (other.hasStatusText()) { - bitField0_ |= 0x00000002; statusText_ = other.statusText_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasStatusHint()) { - bitField0_ |= 0x00000004; statusHint_ = other.statusHint_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity tmpValue = + Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + severity_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + statusText_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + statusHint_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity severity_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity.UnknownDocflowStatusSeverity; + private int severity_ = 0; /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusSeverity Severity = 1 [default = UnknownDocflowStatusSeverity]; + * @return Whether the severity field is set. */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasSeverity() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusSeverity Severity = 1 [default = UnknownDocflowStatusSeverity]; + * @return The severity. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity getSeverity() { - return severity_; + Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity result = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity.forNumber(severity_); + return result == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity.UnknownDocflowStatusSeverity : result; } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusSeverity Severity = 1 [default = UnknownDocflowStatusSeverity]; + * @param value The severity to set. + * @return This builder for chaining. */ public Builder setSeverity(Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - severity_ = value; + severity_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocflowStatusSeverity Severity = 1 [default = UnknownDocflowStatusSeverity]; + * @return This builder for chaining. */ public Builder clearSeverity() { bitField0_ = (bitField0_ & ~0x00000001); - severity_ = Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusSeverity.UnknownDocflowStatusSeverity; + severity_ = 0; onChanged(); return this; } @@ -5831,12 +6319,14 @@ public Builder clearSeverity() { private java.lang.Object statusText_ = ""; /** * optional string StatusText = 2; + * @return Whether the statusText field is set. */ public boolean hasStatusText() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string StatusText = 2; + * @return The statusText. */ public java.lang.String getStatusText() { java.lang.Object ref = statusText_; @@ -5854,6 +6344,7 @@ public java.lang.String getStatusText() { } /** * optional string StatusText = 2; + * @return The bytes for statusText. */ public com.google.protobuf.ByteString getStatusTextBytes() { @@ -5870,36 +6361,37 @@ public java.lang.String getStatusText() { } /** * optional string StatusText = 2; + * @param value The statusText to set. + * @return This builder for chaining. */ public Builder setStatusText( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } statusText_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string StatusText = 2; + * @return This builder for chaining. */ public Builder clearStatusText() { - bitField0_ = (bitField0_ & ~0x00000002); statusText_ = getDefaultInstance().getStatusText(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string StatusText = 2; + * @param value The bytes for statusText to set. + * @return This builder for chaining. */ public Builder setStatusTextBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } statusText_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5907,12 +6399,14 @@ public Builder setStatusTextBytes( private java.lang.Object statusHint_ = ""; /** * optional string StatusHint = 3; + * @return Whether the statusHint field is set. */ public boolean hasStatusHint() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string StatusHint = 3; + * @return The statusHint. */ public java.lang.String getStatusHint() { java.lang.Object ref = statusHint_; @@ -5930,6 +6424,7 @@ public java.lang.String getStatusHint() { } /** * optional string StatusHint = 3; + * @return The bytes for statusHint. */ public com.google.protobuf.ByteString getStatusHintBytes() { @@ -5946,36 +6441,37 @@ public java.lang.String getStatusHint() { } /** * optional string StatusHint = 3; + * @param value The statusHint to set. + * @return This builder for chaining. */ public Builder setStatusHint( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } statusHint_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string StatusHint = 3; + * @return This builder for chaining. */ public Builder clearStatusHint() { - bitField0_ = (bitField0_ & ~0x00000004); statusHint_ = getDefaultInstance().getStatusHint(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string StatusHint = 3; + * @param value The bytes for statusHint to set. + * @return This builder for chaining. */ public Builder setStatusHintBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } statusHint_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -5983,27 +6479,67 @@ public Builder setStatusHintBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocflowStatusModel) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocflowStatusModel) + private static final Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel DEFAULT_INSTANCE; static { - defaultInstance = new DocflowStatusModel(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocflowStatusModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowStatusModel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocflowStatusModel) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_Docflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_Docflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocflowStatus_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocflowStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocflowStatusModel_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocflowStatusModel_fieldAccessorTable; @@ -6011,7 +6547,7 @@ public Builder setStatusHintBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -6024,7 +6560,7 @@ public Builder setStatusHintBytes( "roto\032\037Docflow/RevocationDocflow.proto\032\037D" + "ocflow/ResolutionDocflow.proto\032.Docflow/" + "UniversalTransferDocumentDocflow.proto\032!" + - "Docflow/RoamingNotification.proto\"\376\t\n\007Do", + "Docflow/RoamingNotification.proto\"\202\n\n\007Do" + "cflow\022\022\n\nIsFinished\030\001 \001(\010\022F\n\022DocumentAtt" + "achment\030\002 \001(\0132*.Diadoc.Api.Proto.Docflow" + ".SignedAttachment\022\024\n\014DepartmentId\030\003 \001(\t\022" + @@ -6034,7 +6570,7 @@ public Builder setStatusHintBytes( "oc.Api.Proto.Timestamp\0226\n\021DeliveryTimest" + "amp\030\007 \001(\0132\033.Diadoc.Api.Proto.Timestamp\022N" + "\n\025InboundInvoiceDocflow\030\010 \001(\0132/.Diadoc.A" + - "pi.Proto.Docflow.InboundInvoiceDocflow\022P", + "pi.Proto.Docflow.InboundInvoiceDocflow\022P" + "\n\026OutboundInvoiceDocflow\030\t \001(\01320.Diadoc." + "Api.Proto.Docflow.OutboundInvoiceDocflow" + "\022J\n\023XmlBilateralDocflow\030\n \001(\0132-.Diadoc.A" + @@ -6044,7 +6580,7 @@ public Builder setStatusHintBytes( "Docflow\030\014 \001(\0132+.Diadoc.Api.Proto.Docflow" + ".UnilateralDocflow\022F\n\021RevocationDocflow\030" + "\r \001(\0132+.Diadoc.Api.Proto.Docflow.Revocat" + - "ionDocflow\022F\n\021ResolutionDocflow\030\016 \001(\0132+.", + "ionDocflow\022F\n\021ResolutionDocflow\030\016 \001(\0132+." + "Diadoc.Api.Proto.Docflow.ResolutionDocfl" + "ow\0220\n(CanDocumentBeRevokedUnilaterallyBy" + "Sender\030\017 \001(\010\022\020\n\010PacketId\030\020 \001(\t\0224\n\nCustom" + @@ -6054,30 +6590,23 @@ public Builder setStatusHintBytes( ".InboundUniversalTransferDocumentDocflow" + "\022t\n(OutboundUniversalTransferDocumentDoc" + "flow\030\023 \001(\0132B.Diadoc.Api.Proto.Docflow.Ou" + - "tboundUniversalTransferDocumentDocflow\022J", + "tboundUniversalTransferDocumentDocflow\022J" + "\n\023RoamingNotification\030\024 \001(\0132-.Diadoc.Api" + - ".Proto.Docflow.RoamingNotification\"\233\001\n\rD" + - "ocflowStatus\022C\n\rPrimaryStatus\030\001 \001(\0132,.Di" + - "adoc.Api.Proto.Docflow.DocflowStatusMode" + - "l\022E\n\017SecondaryStatus\030\002 \001(\0132,.Diadoc.Api." + - "Proto.Docflow.DocflowStatusModel\"\235\001\n\022Doc" + - "flowStatusModel\022_\n\010Severity\030\001 \001(\0162/.Diad" + - "oc.Api.Proto.Docflow.DocflowStatusSeveri" + - "ty:\034UnknownDocflowStatusSeverity\022\022\n\nStat" + - "usText\030\002 \001(\t\022\022\n\nStatusHint\030\003 \001(\t*h\n\025Docf", - "lowStatusSeverity\022 \n\034UnknownDocflowStatu" + - "sSeverity\020\000\022\010\n\004Info\020\001\022\013\n\007Success\020\002\022\013\n\007Wa" + - "rning\020\003\022\t\n\005Error\020\004B\017B\rDocflowProtos" + ".Proto.Docflow.RoamingNotification:\002\030\001\"\237" + + "\001\n\rDocflowStatus\022C\n\rPrimaryStatus\030\001 \001(\0132" + + ",.Diadoc.Api.Proto.Docflow.DocflowStatus" + + "Model\022E\n\017SecondaryStatus\030\002 \001(\0132,.Diadoc." + + "Api.Proto.Docflow.DocflowStatusModel:\002\030\001" + + "\"\241\001\n\022DocflowStatusModel\022_\n\010Severity\030\001 \001(" + + "\0162/.Diadoc.Api.Proto.Docflow.DocflowStat" + + "usSeverity:\034UnknownDocflowStatusSeverity" + + "\022\022\n\nStatusText\030\002 \001(\t\022\022\n\nStatusHint\030\003 \001(\t" + + ":\002\030\001*h\n\025DocflowStatusSeverity\022 \n\034Unknown" + + "DocflowStatusSeverity\020\000\022\010\n\004Info\020\001\022\013\n\007Suc" + + "cess\020\002\022\013\n\007Warning\020\003\022\t\n\005Error\020\004B\017B\rDocflo" + + "wProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), @@ -6091,7 +6620,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_Docflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_Docflow_fieldAccessorTable = new @@ -6110,6 +6639,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_DocflowStatusModel_descriptor, new java.lang.String[] { "Severity", "StatusText", "StatusHint", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.CustomDataItemProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/DocflowV3Protos.java b/src/main/java/Diadoc/Api/Proto/Docflow/DocflowV3Protos.java index c04da517..d225f5a5 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/DocflowV3Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/DocflowV3Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/DocflowV3.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class DocflowV3Protos { private DocflowV3Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowV3Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DocflowV3OrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.DocflowV3) @@ -14,10 +31,12 @@ public interface DocflowV3OrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.SenderTitleDocflow SenderTitle = 1; + * @return Whether the senderTitle field is set. */ boolean hasSenderTitle(); /** * required .Diadoc.Api.Proto.Docflow.SenderTitleDocflow SenderTitle = 1; + * @return The senderTitle. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow getSenderTitle(); /** @@ -27,10 +46,12 @@ public interface DocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 2; + * @return Whether the confirmation field is set. */ boolean hasConfirmation(); /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 2; + * @return The confirmation. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmation(); /** @@ -40,10 +61,12 @@ public interface DocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow ProxyResponse = 11; + * @return Whether the proxyResponse field is set. */ boolean hasProxyResponse(); /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow ProxyResponse = 11; + * @return The proxyResponse. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow getProxyResponse(); /** @@ -53,10 +76,12 @@ public interface DocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 RecipientReceipt = 4; + * @return Whether the recipientReceipt field is set. */ boolean hasRecipientReceipt(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 RecipientReceipt = 4; + * @return The recipientReceipt. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getRecipientReceipt(); /** @@ -66,10 +91,12 @@ public interface DocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow RecipientResponse = 5; + * @return Whether the recipientResponse field is set. */ boolean hasRecipientResponse(); /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow RecipientResponse = 5; + * @return The recipientResponse. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow getRecipientResponse(); /** @@ -79,10 +106,12 @@ public interface DocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow AmendmentRequest = 6; + * @return Whether the amendmentRequest field is set. */ boolean hasAmendmentRequest(); /** * optional .Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow AmendmentRequest = 6; + * @return The amendmentRequest. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow getAmendmentRequest(); /** @@ -92,10 +121,12 @@ public interface DocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflowV3 Revocation = 7; + * @return Whether the revocation field is set. */ boolean hasRevocation(); /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflowV3 Revocation = 7; + * @return The revocation. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 getRevocation(); /** @@ -105,10 +136,12 @@ public interface DocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 SenderReceipt = 8; + * @return Whether the senderReceipt field is set. */ boolean hasSenderReceipt(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 SenderReceipt = 8; + * @return The senderReceipt. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getSenderReceipt(); /** @@ -118,10 +151,12 @@ public interface DocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflowV3 Resolution = 9; + * @return Whether the resolution field is set. */ boolean hasResolution(); /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflowV3 Resolution = 9; + * @return The resolution. */ Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 getResolution(); /** @@ -131,10 +166,12 @@ public interface DocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 10; + * @return Whether the resolutionEntities field is set. */ boolean hasResolutionEntities(); /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 10; + * @return The resolutionEntities. */ Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 getResolutionEntities(); /** @@ -192,10 +229,12 @@ Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntitiesOrBuilder getOuterD /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 14; + * @return Whether the docflowStatus field is set. */ boolean hasDocflowStatus(); /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 14; + * @return The docflowStatus. */ Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 getDocflowStatus(); /** @@ -210,233 +249,31 @@ public static final class DocflowV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocflowV3) DocflowV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowV3.class.getName()); + } // Use DocflowV3.newBuilder() to construct. private DocflowV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocflowV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocflowV3 defaultInstance; - public static DocflowV3 getDefaultInstance() { - return defaultInstance; } - - public DocflowV3 getDefaultInstanceForType() { - return defaultInstance; + private DocflowV3() { + outerDocflows_ = java.util.Collections.emptyList(); + outerDocflowEntities_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocflowV3( - 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: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = senderTitle_.toBuilder(); - } - senderTitle_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(senderTitle_); - senderTitle_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = confirmation_.toBuilder(); - } - confirmation_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmation_); - confirmation_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = recipientReceipt_.toBuilder(); - } - recipientReceipt_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientReceipt_); - recipientReceipt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = recipientResponse_.toBuilder(); - } - recipientResponse_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientResponse_); - recipientResponse_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = amendmentRequest_.toBuilder(); - } - amendmentRequest_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(amendmentRequest_); - amendmentRequest_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 58: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = revocation_.toBuilder(); - } - revocation_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revocation_); - revocation_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 66: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = senderReceipt_.toBuilder(); - } - senderReceipt_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(senderReceipt_); - senderReceipt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - case 74: { - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = resolution_.toBuilder(); - } - resolution_ = input.readMessage(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resolution_); - resolution_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 82: { - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) == 0x00000200)) { - subBuilder = resolutionEntities_.toBuilder(); - } - resolutionEntities_ = input.readMessage(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resolutionEntities_); - resolutionEntities_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - break; - } - case 90: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = proxyResponse_.toBuilder(); - } - proxyResponse_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proxyResponse_); - proxyResponse_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - outerDocflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000400; - } - outerDocflows_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow.PARSER, extensionRegistry)); - break; - } - case 106: { - if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { - outerDocflowEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000800; - } - outerDocflowEntities_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.PARSER, extensionRegistry)); - break; - } - case 114: { - Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000400) == 0x00000400)) { - subBuilder = docflowStatus_.toBuilder(); - } - docflowStatus_ = input.readMessage(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(docflowStatus_); - docflowStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000400; - 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_ & 0x00000400) == 0x00000400)) { - outerDocflows_ = java.util.Collections.unmodifiableList(outerDocflows_); - } - if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { - outerDocflowEntities_ = java.util.Collections.unmodifiableList(outerDocflowEntities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocflowV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocflowV3_fieldAccessorTable @@ -444,243 +281,281 @@ private DocflowV3( Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocflowV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocflowV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int SENDERTITLE_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow senderTitle_; /** * required .Diadoc.Api.Proto.Docflow.SenderTitleDocflow SenderTitle = 1; + * @return Whether the senderTitle field is set. */ + @java.lang.Override public boolean hasSenderTitle() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SenderTitleDocflow SenderTitle = 1; + * @return The senderTitle. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow getSenderTitle() { - return senderTitle_; + return senderTitle_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance() : senderTitle_; } /** * required .Diadoc.Api.Proto.Docflow.SenderTitleDocflow SenderTitle = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflowOrBuilder getSenderTitleOrBuilder() { - return senderTitle_; + return senderTitle_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance() : senderTitle_; } public static final int CONFIRMATION_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmation_; /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 2; + * @return Whether the confirmation field is set. */ + @java.lang.Override public boolean hasConfirmation() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 2; + * @return The confirmation. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmation() { - return confirmation_; + return confirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder getConfirmationOrBuilder() { - return confirmation_; + return confirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } public static final int PROXYRESPONSE_FIELD_NUMBER = 11; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow proxyResponse_; /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow ProxyResponse = 11; + * @return Whether the proxyResponse field is set. */ + @java.lang.Override public boolean hasProxyResponse() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow ProxyResponse = 11; + * @return The proxyResponse. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow getProxyResponse() { - return proxyResponse_; + return proxyResponse_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance() : proxyResponse_; } /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow ProxyResponse = 11; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflowOrBuilder getProxyResponseOrBuilder() { - return proxyResponse_; + return proxyResponse_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance() : proxyResponse_; } public static final int RECIPIENTRECEIPT_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 recipientReceipt_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 RecipientReceipt = 4; + * @return Whether the recipientReceipt field is set. */ + @java.lang.Override public boolean hasRecipientReceipt() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 RecipientReceipt = 4; + * @return The recipientReceipt. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getRecipientReceipt() { - return recipientReceipt_; + return recipientReceipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : recipientReceipt_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 RecipientReceipt = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getRecipientReceiptOrBuilder() { - return recipientReceipt_; + return recipientReceipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : recipientReceipt_; } public static final int RECIPIENTRESPONSE_FIELD_NUMBER = 5; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow recipientResponse_; /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow RecipientResponse = 5; + * @return Whether the recipientResponse field is set. */ + @java.lang.Override public boolean hasRecipientResponse() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow RecipientResponse = 5; + * @return The recipientResponse. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow getRecipientResponse() { - return recipientResponse_; + return recipientResponse_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance() : recipientResponse_; } /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow RecipientResponse = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflowOrBuilder getRecipientResponseOrBuilder() { - return recipientResponse_; + return recipientResponse_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance() : recipientResponse_; } public static final int AMENDMENTREQUEST_FIELD_NUMBER = 6; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow amendmentRequest_; /** * optional .Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow AmendmentRequest = 6; + * @return Whether the amendmentRequest field is set. */ + @java.lang.Override public boolean hasAmendmentRequest() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow AmendmentRequest = 6; + * @return The amendmentRequest. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow getAmendmentRequest() { - return amendmentRequest_; + return amendmentRequest_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance() : amendmentRequest_; } /** * optional .Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow AmendmentRequest = 6; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflowOrBuilder getAmendmentRequestOrBuilder() { - return amendmentRequest_; + return amendmentRequest_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance() : amendmentRequest_; } public static final int REVOCATION_FIELD_NUMBER = 7; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 revocation_; /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflowV3 Revocation = 7; + * @return Whether the revocation field is set. */ + @java.lang.Override public boolean hasRevocation() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflowV3 Revocation = 7; + * @return The revocation. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 getRevocation() { - return revocation_; + return revocation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance() : revocation_; } /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflowV3 Revocation = 7; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3OrBuilder getRevocationOrBuilder() { - return revocation_; + return revocation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance() : revocation_; } public static final int SENDERRECEIPT_FIELD_NUMBER = 8; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 senderReceipt_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 SenderReceipt = 8; + * @return Whether the senderReceipt field is set. */ + @java.lang.Override public boolean hasSenderReceipt() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 SenderReceipt = 8; + * @return The senderReceipt. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getSenderReceipt() { - return senderReceipt_; + return senderReceipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : senderReceipt_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 SenderReceipt = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getSenderReceiptOrBuilder() { - return senderReceipt_; + return senderReceipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : senderReceipt_; } public static final int RESOLUTION_FIELD_NUMBER = 9; private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 resolution_; /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflowV3 Resolution = 9; + * @return Whether the resolution field is set. */ + @java.lang.Override public boolean hasResolution() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflowV3 Resolution = 9; + * @return The resolution. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 getResolution() { - return resolution_; + return resolution_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance() : resolution_; } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflowV3 Resolution = 9; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3OrBuilder getResolutionOrBuilder() { - return resolution_; + return resolution_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance() : resolution_; } public static final int RESOLUTIONENTITIES_FIELD_NUMBER = 10; private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 resolutionEntities_; /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 10; + * @return Whether the resolutionEntities field is set. */ + @java.lang.Override public boolean hasResolutionEntities() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 10; + * @return The resolutionEntities. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 getResolutionEntities() { - return resolutionEntities_; + return resolutionEntities_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance() : resolutionEntities_; } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 10; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3OrBuilder getResolutionEntitiesOrBuilder() { - return resolutionEntities_; + return resolutionEntities_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance() : resolutionEntities_; } public static final int OUTERDOCFLOWS_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private java.util.List outerDocflows_; /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflow OuterDocflows = 12; */ + @java.lang.Override public java.util.List getOuterDocflowsList() { return outerDocflows_; } /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflow OuterDocflows = 12; */ + @java.lang.Override public java.util.List getOuterDocflowsOrBuilderList() { return outerDocflows_; @@ -688,34 +563,40 @@ public java.util.List get /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflow OuterDocflows = 12; */ + @java.lang.Override public int getOuterDocflowsCount() { return outerDocflows_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflow OuterDocflows = 12; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow getOuterDocflows(int index) { return outerDocflows_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflow OuterDocflows = 12; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowOrBuilder getOuterDocflowsOrBuilder( int index) { return outerDocflows_.get(index); } public static final int OUTERDOCFLOWENTITIES_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private java.util.List outerDocflowEntities_; /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflowEntities OuterDocflowEntities = 13; */ + @java.lang.Override public java.util.List getOuterDocflowEntitiesList() { return outerDocflowEntities_; } /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflowEntities OuterDocflowEntities = 13; */ + @java.lang.Override public java.util.List getOuterDocflowEntitiesOrBuilderList() { return outerDocflowEntities_; @@ -723,18 +604,21 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.OuterDocflowEntities OuterDocflowEntities = 13; */ + @java.lang.Override public int getOuterDocflowEntitiesCount() { return outerDocflowEntities_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflowEntities OuterDocflowEntities = 13; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities getOuterDocflowEntities(int index) { return outerDocflowEntities_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflowEntities OuterDocflowEntities = 13; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntitiesOrBuilder getOuterDocflowEntitiesOrBuilder( int index) { return outerDocflowEntities_.get(index); @@ -744,39 +628,30 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntitiesOrBuilder ge private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 docflowStatus_; /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 14; + * @return Whether the docflowStatus field is set. */ + @java.lang.Override public boolean hasDocflowStatus() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 14; + * @return The docflowStatus. */ + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 getDocflowStatus() { - return docflowStatus_; + return docflowStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance() : docflowStatus_; } /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 14; */ + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3OrBuilder getDocflowStatusOrBuilder() { - return docflowStatus_; - } - - private void initFields() { - senderTitle_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance(); - confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - proxyResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance(); - recipientReceipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - recipientResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance(); - amendmentRequest_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance(); - revocation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance(); - senderReceipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - resolution_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance(); - resolutionEntities_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance(); - outerDocflows_ = java.util.Collections.emptyList(); - outerDocflowEntities_ = java.util.Collections.emptyList(); - docflowStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance(); + return docflowStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance() : docflowStatus_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -868,38 +743,38 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, senderTitle_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSenderTitle()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, confirmation_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getConfirmation()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, recipientReceipt_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getRecipientReceipt()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, recipientResponse_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getRecipientResponse()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, amendmentRequest_); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getAmendmentRequest()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, revocation_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getRevocation()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, senderReceipt_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getSenderReceipt()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, resolution_); + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getResolution()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(10, resolutionEntities_); + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(10, getResolutionEntities()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(11, proxyResponse_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getProxyResponse()); } for (int i = 0; i < outerDocflows_.size(); i++) { output.writeMessage(12, outerDocflows_.get(i)); @@ -907,57 +782,57 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < outerDocflowEntities_.size(); i++) { output.writeMessage(13, outerDocflowEntities_.get(i)); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(14, docflowStatus_); + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(14, getDocflowStatus()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, senderTitle_); + .computeMessageSize(1, getSenderTitle()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, confirmation_); + .computeMessageSize(2, getConfirmation()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, recipientReceipt_); + .computeMessageSize(4, getRecipientReceipt()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, recipientResponse_); + .computeMessageSize(5, getRecipientResponse()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, amendmentRequest_); + .computeMessageSize(6, getAmendmentRequest()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, revocation_); + .computeMessageSize(7, getRevocation()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, senderReceipt_); + .computeMessageSize(8, getSenderReceipt()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, resolution_); + .computeMessageSize(9, getResolution()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, resolutionEntities_); + .computeMessageSize(10, getResolutionEntities()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, proxyResponse_); + .computeMessageSize(11, getProxyResponse()); } for (int i = 0; i < outerDocflows_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -967,22 +842,163 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, outerDocflowEntities_.get(i)); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, docflowStatus_); + .computeMessageSize(14, getDocflowStatus()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3) obj; + + if (hasSenderTitle() != other.hasSenderTitle()) return false; + if (hasSenderTitle()) { + if (!getSenderTitle() + .equals(other.getSenderTitle())) return false; + } + if (hasConfirmation() != other.hasConfirmation()) return false; + if (hasConfirmation()) { + if (!getConfirmation() + .equals(other.getConfirmation())) return false; + } + if (hasProxyResponse() != other.hasProxyResponse()) return false; + if (hasProxyResponse()) { + if (!getProxyResponse() + .equals(other.getProxyResponse())) return false; + } + if (hasRecipientReceipt() != other.hasRecipientReceipt()) return false; + if (hasRecipientReceipt()) { + if (!getRecipientReceipt() + .equals(other.getRecipientReceipt())) return false; + } + if (hasRecipientResponse() != other.hasRecipientResponse()) return false; + if (hasRecipientResponse()) { + if (!getRecipientResponse() + .equals(other.getRecipientResponse())) return false; + } + if (hasAmendmentRequest() != other.hasAmendmentRequest()) return false; + if (hasAmendmentRequest()) { + if (!getAmendmentRequest() + .equals(other.getAmendmentRequest())) return false; + } + if (hasRevocation() != other.hasRevocation()) return false; + if (hasRevocation()) { + if (!getRevocation() + .equals(other.getRevocation())) return false; + } + if (hasSenderReceipt() != other.hasSenderReceipt()) return false; + if (hasSenderReceipt()) { + if (!getSenderReceipt() + .equals(other.getSenderReceipt())) return false; + } + if (hasResolution() != other.hasResolution()) return false; + if (hasResolution()) { + if (!getResolution() + .equals(other.getResolution())) return false; + } + if (hasResolutionEntities() != other.hasResolutionEntities()) return false; + if (hasResolutionEntities()) { + if (!getResolutionEntities() + .equals(other.getResolutionEntities())) return false; + } + if (!getOuterDocflowsList() + .equals(other.getOuterDocflowsList())) return false; + if (!getOuterDocflowEntitiesList() + .equals(other.getOuterDocflowEntitiesList())) return false; + if (hasDocflowStatus() != other.hasDocflowStatus()) return false; + if (hasDocflowStatus()) { + if (!getDocflowStatus() + .equals(other.getDocflowStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSenderTitle()) { + hash = (37 * hash) + SENDERTITLE_FIELD_NUMBER; + hash = (53 * hash) + getSenderTitle().hashCode(); + } + if (hasConfirmation()) { + hash = (37 * hash) + CONFIRMATION_FIELD_NUMBER; + hash = (53 * hash) + getConfirmation().hashCode(); + } + if (hasProxyResponse()) { + hash = (37 * hash) + PROXYRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getProxyResponse().hashCode(); + } + if (hasRecipientReceipt()) { + hash = (37 * hash) + RECIPIENTRECEIPT_FIELD_NUMBER; + hash = (53 * hash) + getRecipientReceipt().hashCode(); + } + if (hasRecipientResponse()) { + hash = (37 * hash) + RECIPIENTRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getRecipientResponse().hashCode(); + } + if (hasAmendmentRequest()) { + hash = (37 * hash) + AMENDMENTREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getAmendmentRequest().hashCode(); + } + if (hasRevocation()) { + hash = (37 * hash) + REVOCATION_FIELD_NUMBER; + hash = (53 * hash) + getRevocation().hashCode(); + } + if (hasSenderReceipt()) { + hash = (37 * hash) + SENDERRECEIPT_FIELD_NUMBER; + hash = (53 * hash) + getSenderReceipt().hashCode(); + } + if (hasResolution()) { + hash = (37 * hash) + RESOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getResolution().hashCode(); + } + if (hasResolutionEntities()) { + hash = (37 * hash) + RESOLUTIONENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getResolutionEntities().hashCode(); + } + if (getOuterDocflowsCount() > 0) { + hash = (37 * hash) + OUTERDOCFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getOuterDocflowsList().hashCode(); + } + if (getOuterDocflowEntitiesCount() > 0) { + hash = (37 * hash) + OUTERDOCFLOWENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getOuterDocflowEntitiesList().hashCode(); + } + if (hasDocflowStatus()) { + hash = (37 * hash) + DOCFLOWSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getDocflowStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1006,42 +1022,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parseFrom( } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1061,6 +1092,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocflowV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocflowV3_fieldAccessorTable @@ -1079,7 +1111,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getSenderTitleFieldBuilder(); getConfirmationFieldBuilder(); getProxyResponseFieldBuilder(); @@ -1095,106 +1128,94 @@ private void maybeForceBuilderInitialization() { getDocflowStatusFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (senderTitleBuilder_ == null) { - senderTitle_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance(); - } else { - senderTitleBuilder_.clear(); + bitField0_ = 0; + senderTitle_ = null; + if (senderTitleBuilder_ != null) { + senderTitleBuilder_.dispose(); + senderTitleBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (confirmationBuilder_ == null) { - confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - } else { - confirmationBuilder_.clear(); + confirmation_ = null; + if (confirmationBuilder_ != null) { + confirmationBuilder_.dispose(); + confirmationBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (proxyResponseBuilder_ == null) { - proxyResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance(); - } else { - proxyResponseBuilder_.clear(); + proxyResponse_ = null; + if (proxyResponseBuilder_ != null) { + proxyResponseBuilder_.dispose(); + proxyResponseBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (recipientReceiptBuilder_ == null) { - recipientReceipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - } else { - recipientReceiptBuilder_.clear(); + recipientReceipt_ = null; + if (recipientReceiptBuilder_ != null) { + recipientReceiptBuilder_.dispose(); + recipientReceiptBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (recipientResponseBuilder_ == null) { - recipientResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance(); - } else { - recipientResponseBuilder_.clear(); + recipientResponse_ = null; + if (recipientResponseBuilder_ != null) { + recipientResponseBuilder_.dispose(); + recipientResponseBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); - if (amendmentRequestBuilder_ == null) { - amendmentRequest_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance(); - } else { - amendmentRequestBuilder_.clear(); + amendmentRequest_ = null; + if (amendmentRequestBuilder_ != null) { + amendmentRequestBuilder_.dispose(); + amendmentRequestBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); - if (revocationBuilder_ == null) { - revocation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance(); - } else { - revocationBuilder_.clear(); + revocation_ = null; + if (revocationBuilder_ != null) { + revocationBuilder_.dispose(); + revocationBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000040); - if (senderReceiptBuilder_ == null) { - senderReceipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - } else { - senderReceiptBuilder_.clear(); + senderReceipt_ = null; + if (senderReceiptBuilder_ != null) { + senderReceiptBuilder_.dispose(); + senderReceiptBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000080); - if (resolutionBuilder_ == null) { - resolution_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance(); - } else { - resolutionBuilder_.clear(); + resolution_ = null; + if (resolutionBuilder_ != null) { + resolutionBuilder_.dispose(); + resolutionBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000100); - if (resolutionEntitiesBuilder_ == null) { - resolutionEntities_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance(); - } else { - resolutionEntitiesBuilder_.clear(); + resolutionEntities_ = null; + if (resolutionEntitiesBuilder_ != null) { + resolutionEntitiesBuilder_.dispose(); + resolutionEntitiesBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000200); if (outerDocflowsBuilder_ == null) { outerDocflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); } else { + outerDocflows_ = null; outerDocflowsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000400); if (outerDocflowEntitiesBuilder_ == null) { outerDocflowEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); } else { + outerDocflowEntities_ = null; outerDocflowEntitiesBuilder_.clear(); } - if (docflowStatusBuilder_ == null) { - docflowStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance(); - } else { - docflowStatusBuilder_.clear(); + bitField0_ = (bitField0_ & ~0x00000800); + docflowStatus_ = null; + if (docflowStatusBuilder_ != null) { + docflowStatusBuilder_.dispose(); + docflowStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00001000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocflowV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 result = buildPartial(); if (!result.isInitialized()) { @@ -1203,121 +1224,109 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 result) { + if (outerDocflowsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + outerDocflows_ = java.util.Collections.unmodifiableList(outerDocflows_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.outerDocflows_ = outerDocflows_; + } else { + result.outerDocflows_ = outerDocflowsBuilder_.build(); + } + if (outerDocflowEntitiesBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + outerDocflowEntities_ = java.util.Collections.unmodifiableList(outerDocflowEntities_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.outerDocflowEntities_ = outerDocflowEntities_; + } else { + result.outerDocflowEntities_ = outerDocflowEntitiesBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.senderTitle_ = senderTitleBuilder_ == null + ? senderTitle_ + : senderTitleBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (senderTitleBuilder_ == null) { - result.senderTitle_ = senderTitle_; - } else { - result.senderTitle_ = senderTitleBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmation_ = confirmationBuilder_ == null + ? confirmation_ + : confirmationBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (confirmationBuilder_ == null) { - result.confirmation_ = confirmation_; - } else { - result.confirmation_ = confirmationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.proxyResponse_ = proxyResponseBuilder_ == null + ? proxyResponse_ + : proxyResponseBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (proxyResponseBuilder_ == null) { - result.proxyResponse_ = proxyResponse_; - } else { - result.proxyResponse_ = proxyResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.recipientReceipt_ = recipientReceiptBuilder_ == null + ? recipientReceipt_ + : recipientReceiptBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (recipientReceiptBuilder_ == null) { - result.recipientReceipt_ = recipientReceipt_; - } else { - result.recipientReceipt_ = recipientReceiptBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.recipientResponse_ = recipientResponseBuilder_ == null + ? recipientResponse_ + : recipientResponseBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (recipientResponseBuilder_ == null) { - result.recipientResponse_ = recipientResponse_; - } else { - result.recipientResponse_ = recipientResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.amendmentRequest_ = amendmentRequestBuilder_ == null + ? amendmentRequest_ + : amendmentRequestBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (amendmentRequestBuilder_ == null) { - result.amendmentRequest_ = amendmentRequest_; - } else { - result.amendmentRequest_ = amendmentRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.revocation_ = revocationBuilder_ == null + ? revocation_ + : revocationBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (revocationBuilder_ == null) { - result.revocation_ = revocation_; - } else { - result.revocation_ = revocationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - if (senderReceiptBuilder_ == null) { - result.senderReceipt_ = senderReceipt_; - } else { - result.senderReceipt_ = senderReceiptBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - if (resolutionBuilder_ == null) { - result.resolution_ = resolution_; - } else { - result.resolution_ = resolutionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - if (resolutionEntitiesBuilder_ == null) { - result.resolutionEntities_ = resolutionEntities_; - } else { - result.resolutionEntities_ = resolutionEntitiesBuilder_.build(); - } - if (outerDocflowsBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400)) { - outerDocflows_ = java.util.Collections.unmodifiableList(outerDocflows_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.outerDocflows_ = outerDocflows_; - } else { - result.outerDocflows_ = outerDocflowsBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.senderReceipt_ = senderReceiptBuilder_ == null + ? senderReceipt_ + : senderReceiptBuilder_.build(); + to_bitField0_ |= 0x00000080; } - if (outerDocflowEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800)) { - outerDocflowEntities_ = java.util.Collections.unmodifiableList(outerDocflowEntities_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.outerDocflowEntities_ = outerDocflowEntities_; - } else { - result.outerDocflowEntities_ = outerDocflowEntitiesBuilder_.build(); + if (((from_bitField0_ & 0x00000100) != 0)) { + result.resolution_ = resolutionBuilder_ == null + ? resolution_ + : resolutionBuilder_.build(); + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00000400; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.resolutionEntities_ = resolutionEntitiesBuilder_ == null + ? resolutionEntities_ + : resolutionEntitiesBuilder_.build(); + to_bitField0_ |= 0x00000200; } - if (docflowStatusBuilder_ == null) { - result.docflowStatus_ = docflowStatus_; - } else { - result.docflowStatus_ = docflowStatusBuilder_.build(); + if (((from_bitField0_ & 0x00001000) != 0)) { + result.docflowStatus_ = docflowStatusBuilder_ == null + ? docflowStatus_ + : docflowStatusBuilder_.build(); + to_bitField0_ |= 0x00000400; } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3)other); @@ -1415,129 +1424,235 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 othe mergeDocflowStatus(other.getDocflowStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasSenderTitle()) { - return false; } if (!hasDocflowStatus()) { - return false; } if (!getSenderTitle().isInitialized()) { - return false; } if (hasConfirmation()) { if (!getConfirmation().isInitialized()) { - return false; } } if (hasProxyResponse()) { if (!getProxyResponse().isInitialized()) { - return false; } } if (hasRecipientReceipt()) { if (!getRecipientReceipt().isInitialized()) { - return false; } } if (hasRecipientResponse()) { if (!getRecipientResponse().isInitialized()) { - return false; } } if (hasAmendmentRequest()) { if (!getAmendmentRequest().isInitialized()) { - return false; } } if (hasRevocation()) { if (!getRevocation().isInitialized()) { - return false; } } if (hasSenderReceipt()) { if (!getSenderReceipt().isInitialized()) { - return false; } } if (hasResolution()) { if (!getResolution().isInitialized()) { - return false; } } if (hasResolutionEntities()) { if (!getResolutionEntities().isInitialized()) { - return false; } } for (int i = 0; i < getOuterDocflowsCount(); i++) { if (!getOuterDocflows(i).isInitialized()) { - return false; } } for (int i = 0; i < getOuterDocflowEntitiesCount(); i++) { if (!getOuterDocflowEntities(i).isInitialized()) { - return false; } } if (!getDocflowStatus().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSenderTitleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getConfirmationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + input.readMessage( + getRecipientReceiptFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getRecipientResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getAmendmentRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getRevocationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getSenderReceiptFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage( + getResolutionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getResolutionEntitiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + input.readMessage( + getProxyResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 90 + case 98: { + Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow.parser(), + extensionRegistry); + if (outerDocflowsBuilder_ == null) { + ensureOuterDocflowsIsMutable(); + outerDocflows_.add(m); + } else { + outerDocflowsBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: { + Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.parser(), + extensionRegistry); + if (outerDocflowEntitiesBuilder_ == null) { + ensureOuterDocflowEntitiesIsMutable(); + outerDocflowEntities_.add(m); + } else { + outerDocflowEntitiesBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: { + input.readMessage( + getDocflowStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow senderTitle_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow senderTitle_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflowOrBuilder> senderTitleBuilder_; /** * required .Diadoc.Api.Proto.Docflow.SenderTitleDocflow SenderTitle = 1; + * @return Whether the senderTitle field is set. */ public boolean hasSenderTitle() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SenderTitleDocflow SenderTitle = 1; + * @return The senderTitle. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow getSenderTitle() { if (senderTitleBuilder_ == null) { - return senderTitle_; + return senderTitle_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance() : senderTitle_; } else { return senderTitleBuilder_.getMessage(); } @@ -1551,11 +1666,11 @@ public Builder setSenderTitle(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTit throw new NullPointerException(); } senderTitle_ = value; - onChanged(); } else { senderTitleBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1565,11 +1680,11 @@ public Builder setSenderTitle( Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.Builder builderForValue) { if (senderTitleBuilder_ == null) { senderTitle_ = builderForValue.build(); - onChanged(); } else { senderTitleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1577,31 +1692,33 @@ public Builder setSenderTitle( */ public Builder mergeSenderTitle(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow value) { if (senderTitleBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - senderTitle_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance()) { - senderTitle_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.newBuilder(senderTitle_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + senderTitle_ != null && + senderTitle_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance()) { + getSenderTitleBuilder().mergeFrom(value); } else { senderTitle_ = value; } - onChanged(); } else { senderTitleBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (senderTitle_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.SenderTitleDocflow SenderTitle = 1; */ public Builder clearSenderTitle() { - if (senderTitleBuilder_ == null) { - senderTitle_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance(); - onChanged(); - } else { - senderTitleBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + senderTitle_ = null; + if (senderTitleBuilder_ != null) { + senderTitleBuilder_.dispose(); + senderTitleBuilder_ = null; + } + onChanged(); return this; } /** @@ -1619,7 +1736,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflowOrBuilder getS if (senderTitleBuilder_ != null) { return senderTitleBuilder_.getMessageOrBuilder(); } else { - return senderTitle_; + return senderTitle_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance() : senderTitle_; } } /** @@ -1639,21 +1757,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflowOrBuilder getS return senderTitleBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmation_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder> confirmationBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 2; + * @return Whether the confirmation field is set. */ public boolean hasConfirmation() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 2; + * @return The confirmation. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmation() { if (confirmationBuilder_ == null) { - return confirmation_; + return confirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } else { return confirmationBuilder_.getMessage(); } @@ -1667,11 +1787,11 @@ public Builder setConfirmation(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Confirma throw new NullPointerException(); } confirmation_ = value; - onChanged(); } else { confirmationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1681,11 +1801,11 @@ public Builder setConfirmation( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder builderForValue) { if (confirmationBuilder_ == null) { confirmation_ = builderForValue.build(); - onChanged(); } else { confirmationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1693,31 +1813,33 @@ public Builder setConfirmation( */ public Builder mergeConfirmation(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow value) { if (confirmationBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - confirmation_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance()) { - confirmation_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.newBuilder(confirmation_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + confirmation_ != null && + confirmation_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance()) { + getConfirmationBuilder().mergeFrom(value); } else { confirmation_ = value; } - onChanged(); } else { confirmationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (confirmation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 2; */ public Builder clearConfirmation() { - if (confirmationBuilder_ == null) { - confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - onChanged(); - } else { - confirmationBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + confirmation_ = null; + if (confirmationBuilder_ != null) { + confirmationBuilder_.dispose(); + confirmationBuilder_ = null; + } + onChanged(); return this; } /** @@ -1735,7 +1857,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder get if (confirmationBuilder_ != null) { return confirmationBuilder_.getMessageOrBuilder(); } else { - return confirmation_; + return confirmation_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } } /** @@ -1755,21 +1878,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder get return confirmationBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow proxyResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow proxyResponse_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflowOrBuilder> proxyResponseBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow ProxyResponse = 11; + * @return Whether the proxyResponse field is set. */ public boolean hasProxyResponse() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow ProxyResponse = 11; + * @return The proxyResponse. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow getProxyResponse() { if (proxyResponseBuilder_ == null) { - return proxyResponse_; + return proxyResponse_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance() : proxyResponse_; } else { return proxyResponseBuilder_.getMessage(); } @@ -1783,11 +1908,11 @@ public Builder setProxyResponse(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Partici throw new NullPointerException(); } proxyResponse_ = value; - onChanged(); } else { proxyResponseBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1797,11 +1922,11 @@ public Builder setProxyResponse( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.Builder builderForValue) { if (proxyResponseBuilder_ == null) { proxyResponse_ = builderForValue.build(); - onChanged(); } else { proxyResponseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1809,31 +1934,33 @@ public Builder setProxyResponse( */ public Builder mergeProxyResponse(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow value) { if (proxyResponseBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - proxyResponse_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance()) { - proxyResponse_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.newBuilder(proxyResponse_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + proxyResponse_ != null && + proxyResponse_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance()) { + getProxyResponseBuilder().mergeFrom(value); } else { proxyResponse_ = value; } - onChanged(); } else { proxyResponseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (proxyResponse_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow ProxyResponse = 11; */ public Builder clearProxyResponse() { - if (proxyResponseBuilder_ == null) { - proxyResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance(); - onChanged(); - } else { - proxyResponseBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + proxyResponse_ = null; + if (proxyResponseBuilder_ != null) { + proxyResponseBuilder_.dispose(); + proxyResponseBuilder_ = null; + } + onChanged(); return this; } /** @@ -1851,7 +1978,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflowOrBuil if (proxyResponseBuilder_ != null) { return proxyResponseBuilder_.getMessageOrBuilder(); } else { - return proxyResponse_; + return proxyResponse_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance() : proxyResponse_; } } /** @@ -1871,21 +1999,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflowOrBuil return proxyResponseBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 recipientReceipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 recipientReceipt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder> recipientReceiptBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 RecipientReceipt = 4; + * @return Whether the recipientReceipt field is set. */ public boolean hasRecipientReceipt() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 RecipientReceipt = 4; + * @return The recipientReceipt. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getRecipientReceipt() { if (recipientReceiptBuilder_ == null) { - return recipientReceipt_; + return recipientReceipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : recipientReceipt_; } else { return recipientReceiptBuilder_.getMessage(); } @@ -1899,11 +2029,11 @@ public Builder setRecipientReceipt(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Rece throw new NullPointerException(); } recipientReceipt_ = value; - onChanged(); } else { recipientReceiptBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1913,11 +2043,11 @@ public Builder setRecipientReceipt( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder builderForValue) { if (recipientReceiptBuilder_ == null) { recipientReceipt_ = builderForValue.build(); - onChanged(); } else { recipientReceiptBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1925,31 +2055,33 @@ public Builder setRecipientReceipt( */ public Builder mergeRecipientReceipt(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 value) { if (recipientReceiptBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - recipientReceipt_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance()) { - recipientReceipt_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.newBuilder(recipientReceipt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + recipientReceipt_ != null && + recipientReceipt_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance()) { + getRecipientReceiptBuilder().mergeFrom(value); } else { recipientReceipt_ = value; } - onChanged(); } else { recipientReceiptBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (recipientReceipt_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 RecipientReceipt = 4; */ public Builder clearRecipientReceipt() { - if (recipientReceiptBuilder_ == null) { - recipientReceipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - onChanged(); - } else { - recipientReceiptBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + recipientReceipt_ = null; + if (recipientReceiptBuilder_ != null) { + recipientReceiptBuilder_.dispose(); + recipientReceiptBuilder_ = null; + } + onChanged(); return this; } /** @@ -1967,7 +2099,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getRec if (recipientReceiptBuilder_ != null) { return recipientReceiptBuilder_.getMessageOrBuilder(); } else { - return recipientReceipt_; + return recipientReceipt_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : recipientReceipt_; } } /** @@ -1987,21 +2120,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getRec return recipientReceiptBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow recipientResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow recipientResponse_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflowOrBuilder> recipientResponseBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow RecipientResponse = 5; + * @return Whether the recipientResponse field is set. */ public boolean hasRecipientResponse() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow RecipientResponse = 5; + * @return The recipientResponse. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow getRecipientResponse() { if (recipientResponseBuilder_ == null) { - return recipientResponse_; + return recipientResponse_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance() : recipientResponse_; } else { return recipientResponseBuilder_.getMessage(); } @@ -2015,11 +2150,11 @@ public Builder setRecipientResponse(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Par throw new NullPointerException(); } recipientResponse_ = value; - onChanged(); } else { recipientResponseBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2029,11 +2164,11 @@ public Builder setRecipientResponse( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.Builder builderForValue) { if (recipientResponseBuilder_ == null) { recipientResponse_ = builderForValue.build(); - onChanged(); } else { recipientResponseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2041,31 +2176,33 @@ public Builder setRecipientResponse( */ public Builder mergeRecipientResponse(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow value) { if (recipientResponseBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - recipientResponse_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance()) { - recipientResponse_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.newBuilder(recipientResponse_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + recipientResponse_ != null && + recipientResponse_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance()) { + getRecipientResponseBuilder().mergeFrom(value); } else { recipientResponse_ = value; } - onChanged(); } else { recipientResponseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (recipientResponse_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow RecipientResponse = 5; */ public Builder clearRecipientResponse() { - if (recipientResponseBuilder_ == null) { - recipientResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance(); - onChanged(); - } else { - recipientResponseBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + recipientResponse_ = null; + if (recipientResponseBuilder_ != null) { + recipientResponseBuilder_.dispose(); + recipientResponseBuilder_ = null; + } + onChanged(); return this; } /** @@ -2083,7 +2220,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflowOrBuil if (recipientResponseBuilder_ != null) { return recipientResponseBuilder_.getMessageOrBuilder(); } else { - return recipientResponse_; + return recipientResponse_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance() : recipientResponse_; } } /** @@ -2103,21 +2241,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflowOrBuil return recipientResponseBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow amendmentRequest_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow amendmentRequest_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflowOrBuilder> amendmentRequestBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow AmendmentRequest = 6; + * @return Whether the amendmentRequest field is set. */ public boolean hasAmendmentRequest() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow AmendmentRequest = 6; + * @return The amendmentRequest. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow getAmendmentRequest() { if (amendmentRequestBuilder_ == null) { - return amendmentRequest_; + return amendmentRequest_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance() : amendmentRequest_; } else { return amendmentRequestBuilder_.getMessage(); } @@ -2131,11 +2271,11 @@ public Builder setAmendmentRequest(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Amen throw new NullPointerException(); } amendmentRequest_ = value; - onChanged(); } else { amendmentRequestBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2145,11 +2285,11 @@ public Builder setAmendmentRequest( Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.Builder builderForValue) { if (amendmentRequestBuilder_ == null) { amendmentRequest_ = builderForValue.build(); - onChanged(); } else { amendmentRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2157,31 +2297,33 @@ public Builder setAmendmentRequest( */ public Builder mergeAmendmentRequest(Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow value) { if (amendmentRequestBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - amendmentRequest_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance()) { - amendmentRequest_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.newBuilder(amendmentRequest_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + amendmentRequest_ != null && + amendmentRequest_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance()) { + getAmendmentRequestBuilder().mergeFrom(value); } else { amendmentRequest_ = value; } - onChanged(); } else { amendmentRequestBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (amendmentRequest_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow AmendmentRequest = 6; */ public Builder clearAmendmentRequest() { - if (amendmentRequestBuilder_ == null) { - amendmentRequest_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance(); - onChanged(); - } else { - amendmentRequestBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + amendmentRequest_ = null; + if (amendmentRequestBuilder_ != null) { + amendmentRequestBuilder_.dispose(); + amendmentRequestBuilder_ = null; + } + onChanged(); return this; } /** @@ -2199,7 +2341,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflowOrBuilder if (amendmentRequestBuilder_ != null) { return amendmentRequestBuilder_.getMessageOrBuilder(); } else { - return amendmentRequest_; + return amendmentRequest_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance() : amendmentRequest_; } } /** @@ -2219,21 +2362,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflowOrBuilder return amendmentRequestBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 revocation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 revocation_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3, Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3OrBuilder> revocationBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflowV3 Revocation = 7; + * @return Whether the revocation field is set. */ public boolean hasRevocation() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflowV3 Revocation = 7; + * @return The revocation. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 getRevocation() { if (revocationBuilder_ == null) { - return revocation_; + return revocation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance() : revocation_; } else { return revocationBuilder_.getMessage(); } @@ -2247,11 +2392,11 @@ public Builder setRevocation(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Revocation throw new NullPointerException(); } revocation_ = value; - onChanged(); } else { revocationBuilder_.setMessage(value); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2261,11 +2406,11 @@ public Builder setRevocation( Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.Builder builderForValue) { if (revocationBuilder_ == null) { revocation_ = builderForValue.build(); - onChanged(); } else { revocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2273,31 +2418,33 @@ public Builder setRevocation( */ public Builder mergeRevocation(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 value) { if (revocationBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - revocation_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance()) { - revocation_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.newBuilder(revocation_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) && + revocation_ != null && + revocation_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance()) { + getRevocationBuilder().mergeFrom(value); } else { revocation_ = value; } - onChanged(); } else { revocationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + if (revocation_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RevocationDocflowV3 Revocation = 7; */ public Builder clearRevocation() { - if (revocationBuilder_ == null) { - revocation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance(); - onChanged(); - } else { - revocationBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000040); + revocation_ = null; + if (revocationBuilder_ != null) { + revocationBuilder_.dispose(); + revocationBuilder_ = null; + } + onChanged(); return this; } /** @@ -2315,7 +2462,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3OrBuilder get if (revocationBuilder_ != null) { return revocationBuilder_.getMessageOrBuilder(); } else { - return revocation_; + return revocation_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance() : revocation_; } } /** @@ -2335,21 +2483,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3OrBuilder get return revocationBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 senderReceipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 senderReceipt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder> senderReceiptBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 SenderReceipt = 8; + * @return Whether the senderReceipt field is set. */ public boolean hasSenderReceipt() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 SenderReceipt = 8; + * @return The senderReceipt. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getSenderReceipt() { if (senderReceiptBuilder_ == null) { - return senderReceipt_; + return senderReceipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : senderReceipt_; } else { return senderReceiptBuilder_.getMessage(); } @@ -2363,11 +2513,11 @@ public Builder setSenderReceipt(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Receipt throw new NullPointerException(); } senderReceipt_ = value; - onChanged(); } else { senderReceiptBuilder_.setMessage(value); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2377,11 +2527,11 @@ public Builder setSenderReceipt( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder builderForValue) { if (senderReceiptBuilder_ == null) { senderReceipt_ = builderForValue.build(); - onChanged(); } else { senderReceiptBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2389,31 +2539,33 @@ public Builder setSenderReceipt( */ public Builder mergeSenderReceipt(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 value) { if (senderReceiptBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - senderReceipt_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance()) { - senderReceipt_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.newBuilder(senderReceipt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + senderReceipt_ != null && + senderReceipt_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance()) { + getSenderReceiptBuilder().mergeFrom(value); } else { senderReceipt_ = value; } - onChanged(); } else { senderReceiptBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + if (senderReceipt_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 SenderReceipt = 8; */ public Builder clearSenderReceipt() { - if (senderReceiptBuilder_ == null) { - senderReceipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - onChanged(); - } else { - senderReceiptBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000080); + senderReceipt_ = null; + if (senderReceiptBuilder_ != null) { + senderReceiptBuilder_.dispose(); + senderReceiptBuilder_ = null; + } + onChanged(); return this; } /** @@ -2431,7 +2583,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getSen if (senderReceiptBuilder_ != null) { return senderReceiptBuilder_.getMessageOrBuilder(); } else { - return senderReceipt_; + return senderReceipt_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : senderReceipt_; } } /** @@ -2451,21 +2604,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getSen return senderReceiptBuilder_; } - private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 resolution_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 resolution_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.Builder, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3OrBuilder> resolutionBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflowV3 Resolution = 9; + * @return Whether the resolution field is set. */ public boolean hasResolution() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflowV3 Resolution = 9; + * @return The resolution. */ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 getResolution() { if (resolutionBuilder_ == null) { - return resolution_; + return resolution_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance() : resolution_; } else { return resolutionBuilder_.getMessage(); } @@ -2479,11 +2634,11 @@ public Builder setResolution(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos. throw new NullPointerException(); } resolution_ = value; - onChanged(); } else { resolutionBuilder_.setMessage(value); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -2493,11 +2648,11 @@ public Builder setResolution( Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.Builder builderForValue) { if (resolutionBuilder_ == null) { resolution_ = builderForValue.build(); - onChanged(); } else { resolutionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -2505,31 +2660,33 @@ public Builder setResolution( */ public Builder mergeResolution(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 value) { if (resolutionBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - resolution_ != Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance()) { - resolution_ = - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.newBuilder(resolution_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) && + resolution_ != null && + resolution_ != Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance()) { + getResolutionBuilder().mergeFrom(value); } else { resolution_ = value; } - onChanged(); } else { resolutionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + if (resolution_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionDocflowV3 Resolution = 9; */ public Builder clearResolution() { - if (resolutionBuilder_ == null) { - resolution_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance(); - onChanged(); - } else { - resolutionBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000100); + resolution_ = null; + if (resolutionBuilder_ != null) { + resolutionBuilder_.dispose(); + resolutionBuilder_ = null; + } + onChanged(); return this; } /** @@ -2547,7 +2704,8 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3OrB if (resolutionBuilder_ != null) { return resolutionBuilder_.getMessageOrBuilder(); } else { - return resolution_; + return resolution_ == null ? + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance() : resolution_; } } /** @@ -2567,21 +2725,23 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3OrB return resolutionBuilder_; } - private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 resolutionEntities_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 resolutionEntities_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.Builder, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3OrBuilder> resolutionEntitiesBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 10; + * @return Whether the resolutionEntities field is set. */ public boolean hasResolutionEntities() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 10; + * @return The resolutionEntities. */ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 getResolutionEntities() { if (resolutionEntitiesBuilder_ == null) { - return resolutionEntities_; + return resolutionEntities_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance() : resolutionEntities_; } else { return resolutionEntitiesBuilder_.getMessage(); } @@ -2595,11 +2755,11 @@ public Builder setResolutionEntities(Diadoc.Api.Proto.Docflow.ResolutionDocflowV throw new NullPointerException(); } resolutionEntities_ = value; - onChanged(); } else { resolutionEntitiesBuilder_.setMessage(value); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2609,11 +2769,11 @@ public Builder setResolutionEntities( Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.Builder builderForValue) { if (resolutionEntitiesBuilder_ == null) { resolutionEntities_ = builderForValue.build(); - onChanged(); } else { resolutionEntitiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2621,31 +2781,33 @@ public Builder setResolutionEntities( */ public Builder mergeResolutionEntities(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 value) { if (resolutionEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - resolutionEntities_ != Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance()) { - resolutionEntities_ = - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.newBuilder(resolutionEntities_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) && + resolutionEntities_ != null && + resolutionEntities_ != Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance()) { + getResolutionEntitiesBuilder().mergeFrom(value); } else { resolutionEntities_ = value; } - onChanged(); } else { resolutionEntitiesBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; + if (resolutionEntities_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 10; */ public Builder clearResolutionEntities() { - if (resolutionEntitiesBuilder_ == null) { - resolutionEntities_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance(); - onChanged(); - } else { - resolutionEntitiesBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000200); + resolutionEntities_ = null; + if (resolutionEntitiesBuilder_ != null) { + resolutionEntitiesBuilder_.dispose(); + resolutionEntitiesBuilder_ = null; + } + onChanged(); return this; } /** @@ -2663,7 +2825,8 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3Or if (resolutionEntitiesBuilder_ != null) { return resolutionEntitiesBuilder_.getMessageOrBuilder(); } else { - return resolutionEntities_; + return resolutionEntities_ == null ? + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance() : resolutionEntities_; } } /** @@ -2686,7 +2849,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3Or private java.util.List outerDocflows_ = java.util.Collections.emptyList(); private void ensureOuterDocflowsIsMutable() { - if (!((bitField0_ & 0x00000400) == 0x00000400)) { + if (!((bitField0_ & 0x00000400) != 0)) { outerDocflows_ = new java.util.ArrayList(outerDocflows_); bitField0_ |= 0x00000400; } @@ -2915,7 +3078,7 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow.Builder addOuterDoc outerDocflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowOrBuilder>( outerDocflows_, - ((bitField0_ & 0x00000400) == 0x00000400), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); outerDocflows_ = null; @@ -2926,7 +3089,7 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow.Builder addOuterDoc private java.util.List outerDocflowEntities_ = java.util.Collections.emptyList(); private void ensureOuterDocflowEntitiesIsMutable() { - if (!((bitField0_ & 0x00000800) == 0x00000800)) { + if (!((bitField0_ & 0x00000800) != 0)) { outerDocflowEntities_ = new java.util.ArrayList(outerDocflowEntities_); bitField0_ |= 0x00000800; } @@ -3155,7 +3318,7 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.Builder add outerDocflowEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntitiesOrBuilder>( outerDocflowEntities_, - ((bitField0_ & 0x00000800) == 0x00000800), + ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); outerDocflowEntities_ = null; @@ -3163,21 +3326,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.Builder add return outerDocflowEntitiesBuilder_; } - private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 docflowStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance(); + private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 docflowStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3, Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.Builder, Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3OrBuilder> docflowStatusBuilder_; /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 14; + * @return Whether the docflowStatus field is set. */ public boolean hasDocflowStatus() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 14; + * @return The docflowStatus. */ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 getDocflowStatus() { if (docflowStatusBuilder_ == null) { - return docflowStatus_; + return docflowStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance() : docflowStatus_; } else { return docflowStatusBuilder_.getMessage(); } @@ -3191,11 +3356,11 @@ public Builder setDocflowStatus(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowSt throw new NullPointerException(); } docflowStatus_ = value; - onChanged(); } else { docflowStatusBuilder_.setMessage(value); } bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3205,11 +3370,11 @@ public Builder setDocflowStatus( Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.Builder builderForValue) { if (docflowStatusBuilder_ == null) { docflowStatus_ = builderForValue.build(); - onChanged(); } else { docflowStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3217,31 +3382,33 @@ public Builder setDocflowStatus( */ public Builder mergeDocflowStatus(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 value) { if (docflowStatusBuilder_ == null) { - if (((bitField0_ & 0x00001000) == 0x00001000) && - docflowStatus_ != Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance()) { - docflowStatus_ = - Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.newBuilder(docflowStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00001000) != 0) && + docflowStatus_ != null && + docflowStatus_ != Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance()) { + getDocflowStatusBuilder().mergeFrom(value); } else { docflowStatus_ = value; } - onChanged(); } else { docflowStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00001000; + if (docflowStatus_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 14; */ public Builder clearDocflowStatus() { - if (docflowStatusBuilder_ == null) { - docflowStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance(); - onChanged(); - } else { - docflowStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00001000); + docflowStatus_ = null; + if (docflowStatusBuilder_ != null) { + docflowStatusBuilder_.dispose(); + docflowStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -3259,7 +3426,8 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3OrBuilder getDocflo if (docflowStatusBuilder_ != null) { return docflowStatusBuilder_.getMessageOrBuilder(); } else { - return docflowStatus_; + return docflowStatus_ == null ? + Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance() : docflowStatus_; } } /** @@ -3282,12 +3450,52 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3OrBuilder getDocflo // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocflowV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocflowV3) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 DEFAULT_INSTANCE; static { - defaultInstance = new DocflowV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocflowV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocflowV3) } public interface SenderTitleDocflowOrBuilder extends @@ -3296,19 +3504,23 @@ public interface SenderTitleDocflowOrBuilder extends /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * required bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 2; + * @return Whether the attachment field is set. */ boolean hasAttachment(); /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 2; + * @return The attachment. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getAttachment(); /** @@ -3318,10 +3530,12 @@ public interface SenderTitleDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return Whether the sentAt field is set. */ boolean hasSentAt(); /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return The sentAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt(); /** @@ -3331,10 +3545,12 @@ public interface SenderTitleDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return Whether the deliveredAt field is set. */ boolean hasDeliveredAt(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return The deliveredAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt(); /** @@ -3344,10 +3560,12 @@ public interface SenderTitleDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 5; + * @return Whether the roamingNotification field is set. */ boolean hasRoamingNotification(); /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 5; + * @return The roamingNotification. */ Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getRoamingNotification(); /** @@ -3357,10 +3575,12 @@ public interface SenderTitleDocflowOrBuilder extends /** * required .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 6; + * @return Whether the senderSignatureStatus field is set. */ boolean hasSenderSignatureStatus(); /** * required .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 6; + * @return The senderSignatureStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus getSenderSignatureStatus(); } @@ -3369,138 +3589,32 @@ public interface SenderTitleDocflowOrBuilder extends */ public static final class SenderTitleDocflow extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SenderTitleDocflow) - SenderTitleDocflowOrBuilder { - // Use SenderTitleDocflow.newBuilder() to construct. - private SenderTitleDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SenderTitleDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SenderTitleDocflow defaultInstance; - public static SenderTitleDocflow getDefaultInstance() { - return defaultInstance; - } - - public SenderTitleDocflow getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SenderTitleDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = attachment_.toBuilder(); - } - attachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attachment_); - attachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = sentAt_.toBuilder(); - } - sentAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sentAt_); - sentAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = deliveredAt_.toBuilder(); - } - deliveredAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveredAt_); - deliveredAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = roamingNotification_.toBuilder(); - } - roamingNotification_ = input.readMessage(Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(roamingNotification_); - roamingNotification_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 48: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - bitField0_ |= 0x00000020; - senderSignatureStatus_ = value; - } - 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(); - } + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SenderTitleDocflow) + SenderTitleDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SenderTitleDocflow.class.getName()); + } + // Use SenderTitleDocflow.newBuilder() to construct. + private SenderTitleDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SenderTitleDocflow() { + senderSignatureStatus_ = 0; } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SenderTitleDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SenderTitleDocflow_fieldAccessorTable @@ -3508,33 +3622,22 @@ private SenderTitleDocflow( Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SenderTitleDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SenderTitleDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -3543,110 +3646,126 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 attachment_; /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 2; + * @return Whether the attachment field is set. */ + @java.lang.Override public boolean hasAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 2; + * @return The attachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getAttachment() { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : attachment_; } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder getAttachmentOrBuilder() { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : attachment_; } public static final int SENTAT_FIELD_NUMBER = 3; private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_; /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return Whether the sentAt field is set. */ + @java.lang.Override public boolean hasSentAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return The sentAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt() { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } public static final int DELIVEREDAT_FIELD_NUMBER = 4; private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return Whether the deliveredAt field is set. */ + @java.lang.Override public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return The deliveredAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuilder() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } public static final int ROAMINGNOTIFICATION_FIELD_NUMBER = 5; private Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification roamingNotification_; /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 5; + * @return Whether the roamingNotification field is set. */ + @java.lang.Override public boolean hasRoamingNotification() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 5; + * @return The roamingNotification. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getRoamingNotification() { - return roamingNotification_; + return roamingNotification_ == null ? Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrBuilder getRoamingNotificationOrBuilder() { - return roamingNotification_; + return roamingNotification_ == null ? Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } public static final int SENDERSIGNATURESTATUS_FIELD_NUMBER = 6; - private Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus senderSignatureStatus_; + private int senderSignatureStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 6; + * @return Whether the senderSignatureStatus field is set. */ - public boolean hasSenderSignatureStatus() { - return ((bitField0_ & 0x00000020) == 0x00000020); + @java.lang.Override public boolean hasSenderSignatureStatus() { + return ((bitField0_ & 0x00000020) != 0); } /** * required .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 6; + * @return The senderSignatureStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus getSenderSignatureStatus() { - return senderSignatureStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus getSenderSignatureStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.forNumber(senderSignatureStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus : result; } - private void initFields() { - isFinished_ = false; - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); - senderSignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3690,72 +3809,156 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, attachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, sentAt_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getSentAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, deliveredAt_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getDeliveredAt()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, roamingNotification_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getRoamingNotification()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeEnum(6, senderSignatureStatus_.getNumber()); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, senderSignatureStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attachment_); + .computeMessageSize(2, getAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, sentAt_); + .computeMessageSize(3, getSentAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, deliveredAt_); + .computeMessageSize(4, getDeliveredAt()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, roamingNotification_); + .computeMessageSize(5, getRoamingNotification()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, senderSignatureStatus_.getNumber()); + .computeEnumSize(6, senderSignatureStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasAttachment() != other.hasAttachment()) return false; + if (hasAttachment()) { + if (!getAttachment() + .equals(other.getAttachment())) return false; + } + if (hasSentAt() != other.hasSentAt()) return false; + if (hasSentAt()) { + if (!getSentAt() + .equals(other.getSentAt())) return false; + } + if (hasDeliveredAt() != other.hasDeliveredAt()) return false; + if (hasDeliveredAt()) { + if (!getDeliveredAt() + .equals(other.getDeliveredAt())) return false; + } + if (hasRoamingNotification() != other.hasRoamingNotification()) return false; + if (hasRoamingNotification()) { + if (!getRoamingNotification() + .equals(other.getRoamingNotification())) return false; + } + if (hasSenderSignatureStatus() != other.hasSenderSignatureStatus()) return false; + if (hasSenderSignatureStatus()) { + if (senderSignatureStatus_ != other.senderSignatureStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasAttachment()) { + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + } + if (hasSentAt()) { + hash = (37 * hash) + SENTAT_FIELD_NUMBER; + hash = (53 * hash) + getSentAt().hashCode(); + } + if (hasDeliveredAt()) { + hash = (37 * hash) + DELIVEREDAT_FIELD_NUMBER; + hash = (53 * hash) + getDeliveredAt().hashCode(); + } + if (hasRoamingNotification()) { + hash = (37 * hash) + ROAMINGNOTIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getRoamingNotification().hashCode(); + } + if (hasSenderSignatureStatus()) { + hash = (37 * hash) + SENDERSIGNATURESTATUS_FIELD_NUMBER; + hash = (53 * hash) + senderSignatureStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3779,42 +3982,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parseF } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3834,6 +4052,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SenderTitleDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SenderTitleDocflow_fieldAccessorTable @@ -3852,63 +4071,55 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getAttachmentFieldBuilder(); getSentAtFieldBuilder(); getDeliveredAtFieldBuilder(); getRoamingNotificationFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (attachmentBuilder_ == null) { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - } else { - attachmentBuilder_.clear(); + attachment_ = null; + if (attachmentBuilder_ != null) { + attachmentBuilder_.dispose(); + attachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (sentAtBuilder_ == null) { - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - sentAtBuilder_.clear(); + sentAt_ = null; + if (sentAtBuilder_ != null) { + sentAtBuilder_.dispose(); + sentAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveredAtBuilder_.clear(); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (roamingNotificationBuilder_ == null) { - roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); - } else { - roamingNotificationBuilder_.clear(); + roamingNotification_ = null; + if (roamingNotificationBuilder_ != null) { + roamingNotificationBuilder_.dispose(); + roamingNotificationBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); - senderSignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus; - bitField0_ = (bitField0_ & ~0x00000020); + senderSignatureStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SenderTitleDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -3917,55 +4128,53 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attachment_ = attachmentBuilder_ == null + ? attachment_ + : attachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (attachmentBuilder_ == null) { - result.attachment_ = attachment_; - } else { - result.attachment_ = attachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sentAt_ = sentAtBuilder_ == null + ? sentAt_ + : sentAtBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (sentAtBuilder_ == null) { - result.sentAt_ = sentAt_; - } else { - result.sentAt_ = sentAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deliveredAt_ = deliveredAtBuilder_ == null + ? deliveredAt_ + : deliveredAtBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (deliveredAtBuilder_ == null) { - result.deliveredAt_ = deliveredAt_; - } else { - result.deliveredAt_ = deliveredAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.roamingNotification_ = roamingNotificationBuilder_ == null + ? roamingNotification_ + : roamingNotificationBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (roamingNotificationBuilder_ == null) { - result.roamingNotification_ = roamingNotification_; - } else { - result.roamingNotification_ = roamingNotificationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.senderSignatureStatus_ = senderSignatureStatus_; to_bitField0_ |= 0x00000020; } - result.senderSignatureStatus_ = senderSignatureStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow)other); @@ -3996,62 +4205,116 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDoc setSenderSignatureStatus(other.getSenderSignatureStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsFinished()) { - return false; } if (!hasAttachment()) { - return false; } if (!hasSenderSignatureStatus()) { - return false; } if (!getAttachment().isInitialized()) { - return false; } if (hasSentAt()) { if (!getSentAt().isInitialized()) { - return false; } } if (hasDeliveredAt()) { if (!getDeliveredAt().isInitialized()) { - return false; } } if (hasRoamingNotification()) { if (!getRoamingNotification().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSentAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDeliveredAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getRoamingNotificationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + senderSignatureStatus_ = tmpRaw; + bitField0_ |= 0x00000020; + } + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -4059,27 +4322,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * required bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -4088,21 +4359,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 attachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 attachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder> attachmentBuilder_; /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 2; + * @return Whether the attachment field is set. */ public boolean hasAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 2; + * @return The attachment. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getAttachment() { if (attachmentBuilder_ == null) { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : attachment_; } else { return attachmentBuilder_.getMessage(); } @@ -4116,11 +4389,11 @@ public Builder setAttachment(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedA throw new NullPointerException(); } attachment_ = value; - onChanged(); } else { attachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4130,11 +4403,11 @@ public Builder setAttachment( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder builderForValue) { if (attachmentBuilder_ == null) { attachment_ = builderForValue.build(); - onChanged(); } else { attachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4142,31 +4415,33 @@ public Builder setAttachment( */ public Builder mergeAttachment(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 value) { if (attachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - attachment_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { - attachment_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.newBuilder(attachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + attachment_ != null && + attachment_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { + getAttachmentBuilder().mergeFrom(value); } else { attachment_ = value; } - onChanged(); } else { attachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (attachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 2; */ public Builder clearAttachment() { - if (attachmentBuilder_ == null) { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - onChanged(); - } else { - attachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + attachment_ = null; + if (attachmentBuilder_ != null) { + attachmentBuilder_.dispose(); + attachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -4184,7 +4459,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g if (attachmentBuilder_ != null) { return attachmentBuilder_.getMessageOrBuilder(); } else { - return attachment_; + return attachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : attachment_; } } /** @@ -4204,21 +4480,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g return attachmentBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> sentAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return Whether the sentAt field is set. */ public boolean hasSentAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return The sentAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt() { if (sentAtBuilder_ == null) { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } else { return sentAtBuilder_.getMessage(); } @@ -4232,11 +4510,11 @@ public Builder setSentAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { throw new NullPointerException(); } sentAt_ = value; - onChanged(); } else { sentAtBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4246,11 +4524,11 @@ public Builder setSentAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (sentAtBuilder_ == null) { sentAt_ = builderForValue.build(); - onChanged(); } else { sentAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4258,31 +4536,33 @@ public Builder setSentAt( */ public Builder mergeSentAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (sentAtBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - sentAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - sentAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(sentAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + sentAt_ != null && + sentAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getSentAtBuilder().mergeFrom(value); } else { sentAt_ = value; } - onChanged(); } else { sentAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (sentAt_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; */ public Builder clearSentAt() { - if (sentAtBuilder_ == null) { - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - sentAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + sentAt_ = null; + if (sentAtBuilder_ != null) { + sentAtBuilder_.dispose(); + sentAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -4300,7 +4580,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() if (sentAtBuilder_ != null) { return sentAtBuilder_.getMessageOrBuilder(); } else { - return sentAt_; + return sentAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } } /** @@ -4320,21 +4601,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() return sentAtBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveredAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return Whether the deliveredAt field is set. */ public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return The deliveredAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { if (deliveredAtBuilder_ == null) { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } else { return deliveredAtBuilder_.getMessage(); } @@ -4348,11 +4631,11 @@ public Builder setDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) throw new NullPointerException(); } deliveredAt_ = value; - onChanged(); } else { deliveredAtBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4362,11 +4645,11 @@ public Builder setDeliveredAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveredAtBuilder_ == null) { deliveredAt_ = builderForValue.build(); - onChanged(); } else { deliveredAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4374,31 +4657,33 @@ public Builder setDeliveredAt( */ public Builder mergeDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveredAtBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveredAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveredAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + deliveredAt_ != null && + deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveredAtBuilder().mergeFrom(value); } else { deliveredAt_ = value; } - onChanged(); } else { deliveredAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (deliveredAt_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; */ public Builder clearDeliveredAt() { - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveredAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -4416,7 +4701,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild if (deliveredAtBuilder_ != null) { return deliveredAtBuilder_.getMessageOrBuilder(); } else { - return deliveredAt_; + return deliveredAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } } /** @@ -4436,21 +4722,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild return deliveredAtBuilder_; } - private Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification roamingNotification_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification, Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.Builder, Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrBuilder> roamingNotificationBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 5; + * @return Whether the roamingNotification field is set. */ public boolean hasRoamingNotification() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 5; + * @return The roamingNotification. */ public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getRoamingNotification() { if (roamingNotificationBuilder_ == null) { - return roamingNotification_; + return roamingNotification_ == null ? Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } else { return roamingNotificationBuilder_.getMessage(); } @@ -4464,11 +4752,11 @@ public Builder setRoamingNotification(Diadoc.Api.Proto.Docflow.RoamingNotificati throw new NullPointerException(); } roamingNotification_ = value; - onChanged(); } else { roamingNotificationBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4478,11 +4766,11 @@ public Builder setRoamingNotification( Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.Builder builderForValue) { if (roamingNotificationBuilder_ == null) { roamingNotification_ = builderForValue.build(); - onChanged(); } else { roamingNotificationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4490,31 +4778,33 @@ public Builder setRoamingNotification( */ public Builder mergeRoamingNotification(Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification value) { if (roamingNotificationBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - roamingNotification_ != Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance()) { - roamingNotification_ = - Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.newBuilder(roamingNotification_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + roamingNotification_ != null && + roamingNotification_ != Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance()) { + getRoamingNotificationBuilder().mergeFrom(value); } else { roamingNotification_ = value; } - onChanged(); } else { roamingNotificationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (roamingNotification_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 5; */ public Builder clearRoamingNotification() { - if (roamingNotificationBuilder_ == null) { - roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); - onChanged(); - } else { - roamingNotificationBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + roamingNotification_ = null; + if (roamingNotificationBuilder_ != null) { + roamingNotificationBuilder_.dispose(); + roamingNotificationBuilder_ = null; + } + onChanged(); return this; } /** @@ -4532,7 +4822,8 @@ public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrB if (roamingNotificationBuilder_ != null) { return roamingNotificationBuilder_.getMessageOrBuilder(); } else { - return roamingNotification_; + return roamingNotification_ == null ? + Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } } /** @@ -4552,37 +4843,44 @@ public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrB return roamingNotificationBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus senderSignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus; + private int senderSignatureStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 6; + * @return Whether the senderSignatureStatus field is set. */ - public boolean hasSenderSignatureStatus() { - return ((bitField0_ & 0x00000020) == 0x00000020); + @java.lang.Override public boolean hasSenderSignatureStatus() { + return ((bitField0_ & 0x00000020) != 0); } /** * required .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 6; + * @return The senderSignatureStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus getSenderSignatureStatus() { - return senderSignatureStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.forNumber(senderSignatureStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus : result; } /** * required .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 6; + * @param value The senderSignatureStatus to set. + * @return This builder for chaining. */ public Builder setSenderSignatureStatus(Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; - senderSignatureStatus_ = value; + senderSignatureStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 6; + * @return This builder for chaining. */ public Builder clearSenderSignatureStatus() { bitField0_ = (bitField0_ & ~0x00000020); - senderSignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus; + senderSignatureStatus_ = 0; onChanged(); return this; } @@ -4590,12 +4888,52 @@ public Builder clearSenderSignatureStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SenderTitleDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SenderTitleDocflow) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow DEFAULT_INSTANCE; static { - defaultInstance = new SenderTitleDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SenderTitleDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SenderTitleDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SenderTitleDocflow) } public interface ConfirmationDocflowOrBuilder extends @@ -4604,19 +4942,23 @@ public interface ConfirmationDocflowOrBuilder extends /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * required bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 2; + * @return Whether the confirmationAttachment field is set. */ boolean hasConfirmationAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 2; + * @return The confirmationAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getConfirmationAttachment(); /** @@ -4626,10 +4968,12 @@ public interface ConfirmationDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 3; + * @return Whether the confirmedAt field is set. */ boolean hasConfirmedAt(); /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 3; + * @return The confirmedAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmedAt(); /** @@ -4639,10 +4983,12 @@ public interface ConfirmationDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 4; + * @return Whether the receipt field is set. */ boolean hasReceipt(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 4; + * @return The receipt. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getReceipt(); /** @@ -4652,10 +4998,12 @@ public interface ConfirmationDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow RoamingConfirmation = 5; + * @return Whether the roamingConfirmation field is set. */ boolean hasRoamingConfirmation(); /** * optional .Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow RoamingConfirmation = 5; + * @return The roamingConfirmation. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow getRoamingConfirmation(); /** @@ -4670,159 +5018,52 @@ public static final class ConfirmationDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ConfirmationDocflow) ConfirmationDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ConfirmationDocflow.class.getName()); + } // Use ConfirmationDocflow.newBuilder() to construct. private ConfirmationDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ConfirmationDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ConfirmationDocflow defaultInstance; - public static ConfirmationDocflow getDefaultInstance() { - return defaultInstance; } - - public ConfirmationDocflow getDefaultInstanceForType() { - return defaultInstance; + private ConfirmationDocflow() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConfirmationDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = confirmationAttachment_.toBuilder(); - } - confirmationAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationAttachment_); - confirmationAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = confirmedAt_.toBuilder(); - } - confirmedAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmedAt_); - confirmedAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = receipt_.toBuilder(); - } - receipt_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receipt_); - receipt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = roamingConfirmation_.toBuilder(); - } - roamingConfirmation_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(roamingConfirmation_); - roamingConfirmation_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - 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.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ConfirmationDocflow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ConfirmationDocflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ConfirmationDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfirmationDocflow(input, extensionRegistry); - } - }; + } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ConfirmationDocflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder.class); } private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -4831,94 +5072,108 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 confirmationAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 2; + * @return Whether the confirmationAttachment field is set. */ + @java.lang.Override public boolean hasConfirmationAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 2; + * @return The confirmationAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getConfirmationAttachment() { - return confirmationAttachment_; + return confirmationAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : confirmationAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder getConfirmationAttachmentOrBuilder() { - return confirmationAttachment_; + return confirmationAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : confirmationAttachment_; } public static final int CONFIRMEDAT_FIELD_NUMBER = 3; private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmedAt_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 3; + * @return Whether the confirmedAt field is set. */ + @java.lang.Override public boolean hasConfirmedAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 3; + * @return The confirmedAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmedAt() { - return confirmedAt_; + return confirmedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmedAt_; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmedAtOrBuilder() { - return confirmedAt_; + return confirmedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmedAt_; } public static final int RECEIPT_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 receipt_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 4; + * @return Whether the receipt field is set. */ + @java.lang.Override public boolean hasReceipt() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 4; + * @return The receipt. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getReceipt() { - return receipt_; + return receipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : receipt_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getReceiptOrBuilder() { - return receipt_; + return receipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : receipt_; } public static final int ROAMINGCONFIRMATION_FIELD_NUMBER = 5; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow roamingConfirmation_; /** * optional .Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow RoamingConfirmation = 5; + * @return Whether the roamingConfirmation field is set. */ + @java.lang.Override public boolean hasRoamingConfirmation() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow RoamingConfirmation = 5; + * @return The roamingConfirmation. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow getRoamingConfirmation() { - return roamingConfirmation_; + return roamingConfirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance() : roamingConfirmation_; } /** * optional .Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow RoamingConfirmation = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflowOrBuilder getRoamingConfirmationOrBuilder() { - return roamingConfirmation_; + return roamingConfirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance() : roamingConfirmation_; } - private void initFields() { - isFinished_ = false; - confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - confirmedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - receipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - roamingConfirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4956,65 +5211,141 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, confirmationAttachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getConfirmationAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, confirmedAt_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getConfirmedAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, receipt_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getReceipt()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, roamingConfirmation_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getRoamingConfirmation()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, confirmationAttachment_); + .computeMessageSize(2, getConfirmationAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, confirmedAt_); + .computeMessageSize(3, getConfirmedAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, receipt_); + .computeMessageSize(4, getReceipt()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, roamingConfirmation_); + .computeMessageSize(5, getRoamingConfirmation()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasConfirmationAttachment() != other.hasConfirmationAttachment()) return false; + if (hasConfirmationAttachment()) { + if (!getConfirmationAttachment() + .equals(other.getConfirmationAttachment())) return false; + } + if (hasConfirmedAt() != other.hasConfirmedAt()) return false; + if (hasConfirmedAt()) { + if (!getConfirmedAt() + .equals(other.getConfirmedAt())) return false; + } + if (hasReceipt() != other.hasReceipt()) return false; + if (hasReceipt()) { + if (!getReceipt() + .equals(other.getReceipt())) return false; + } + if (hasRoamingConfirmation() != other.hasRoamingConfirmation()) return false; + if (hasRoamingConfirmation()) { + if (!getRoamingConfirmation() + .equals(other.getRoamingConfirmation())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasConfirmationAttachment()) { + hash = (37 * hash) + CONFIRMATIONATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationAttachment().hashCode(); + } + if (hasConfirmedAt()) { + hash = (37 * hash) + CONFIRMEDAT_FIELD_NUMBER; + hash = (53 * hash) + getConfirmedAt().hashCode(); + } + if (hasReceipt()) { + hash = (37 * hash) + RECEIPT_FIELD_NUMBER; + hash = (53 * hash) + getReceipt().hashCode(); + } + if (hasRoamingConfirmation()) { + hash = (37 * hash) + ROAMINGCONFIRMATION_FIELD_NUMBER; + hash = (53 * hash) + getRoamingConfirmation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5038,42 +5369,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parse } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5093,6 +5439,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ConfirmationDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ConfirmationDocflow_fieldAccessorTable @@ -5111,61 +5458,54 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getConfirmationAttachmentFieldBuilder(); getConfirmedAtFieldBuilder(); getReceiptFieldBuilder(); getRoamingConfirmationFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (confirmationAttachmentBuilder_ == null) { - confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - } else { - confirmationAttachmentBuilder_.clear(); + confirmationAttachment_ = null; + if (confirmationAttachmentBuilder_ != null) { + confirmationAttachmentBuilder_.dispose(); + confirmationAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (confirmedAtBuilder_ == null) { - confirmedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - confirmedAtBuilder_.clear(); + confirmedAt_ = null; + if (confirmedAtBuilder_ != null) { + confirmedAtBuilder_.dispose(); + confirmedAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (receiptBuilder_ == null) { - receipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - } else { - receiptBuilder_.clear(); + receipt_ = null; + if (receiptBuilder_ != null) { + receiptBuilder_.dispose(); + receiptBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (roamingConfirmationBuilder_ == null) { - roamingConfirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance(); - } else { - roamingConfirmationBuilder_.clear(); + roamingConfirmation_ = null; + if (roamingConfirmationBuilder_ != null) { + roamingConfirmationBuilder_.dispose(); + roamingConfirmationBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ConfirmationDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -5174,51 +5514,49 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationAttachment_ = confirmationAttachmentBuilder_ == null + ? confirmationAttachment_ + : confirmationAttachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (confirmationAttachmentBuilder_ == null) { - result.confirmationAttachment_ = confirmationAttachment_; - } else { - result.confirmationAttachment_ = confirmationAttachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmedAt_ = confirmedAtBuilder_ == null + ? confirmedAt_ + : confirmedAtBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (confirmedAtBuilder_ == null) { - result.confirmedAt_ = confirmedAt_; - } else { - result.confirmedAt_ = confirmedAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.receipt_ = receiptBuilder_ == null + ? receipt_ + : receiptBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (receiptBuilder_ == null) { - result.receipt_ = receipt_; - } else { - result.receipt_ = receiptBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.roamingConfirmation_ = roamingConfirmationBuilder_ == null + ? roamingConfirmation_ + : roamingConfirmationBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (roamingConfirmationBuilder_ == null) { - result.roamingConfirmation_ = roamingConfirmation_; - } else { - result.roamingConfirmation_ = roamingConfirmationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow)other); @@ -5246,56 +5584,100 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDo mergeRoamingConfirmation(other.getRoamingConfirmation()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsFinished()) { - return false; } if (hasConfirmationAttachment()) { if (!getConfirmationAttachment().isInitialized()) { - return false; } } if (hasConfirmedAt()) { if (!getConfirmedAt().isInitialized()) { - return false; } } if (hasReceipt()) { if (!getReceipt().isInitialized()) { - return false; } } if (hasRoamingConfirmation()) { if (!getRoamingConfirmation().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getConfirmationAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getConfirmedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getReceiptFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getRoamingConfirmationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -5303,27 +5685,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * required bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -5332,21 +5722,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 confirmationAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder> confirmationAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 2; + * @return Whether the confirmationAttachment field is set. */ public boolean hasConfirmationAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 2; + * @return The confirmationAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getConfirmationAttachment() { if (confirmationAttachmentBuilder_ == null) { - return confirmationAttachment_; + return confirmationAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : confirmationAttachment_; } else { return confirmationAttachmentBuilder_.getMessage(); } @@ -5360,11 +5752,11 @@ public Builder setConfirmationAttachment(Diadoc.Api.Proto.Docflow.AttachmentV3Pr throw new NullPointerException(); } confirmationAttachment_ = value; - onChanged(); } else { confirmationAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5374,11 +5766,11 @@ public Builder setConfirmationAttachment( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder builderForValue) { if (confirmationAttachmentBuilder_ == null) { confirmationAttachment_ = builderForValue.build(); - onChanged(); } else { confirmationAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5386,31 +5778,33 @@ public Builder setConfirmationAttachment( */ public Builder mergeConfirmationAttachment(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 value) { if (confirmationAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - confirmationAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { - confirmationAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.newBuilder(confirmationAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + confirmationAttachment_ != null && + confirmationAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { + getConfirmationAttachmentBuilder().mergeFrom(value); } else { confirmationAttachment_ = value; } - onChanged(); } else { confirmationAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (confirmationAttachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 2; */ public Builder clearConfirmationAttachment() { - if (confirmationAttachmentBuilder_ == null) { - confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - onChanged(); - } else { - confirmationAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + confirmationAttachment_ = null; + if (confirmationAttachmentBuilder_ != null) { + confirmationAttachmentBuilder_.dispose(); + confirmationAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -5428,7 +5822,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g if (confirmationAttachmentBuilder_ != null) { return confirmationAttachmentBuilder_.getMessageOrBuilder(); } else { - return confirmationAttachment_; + return confirmationAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : confirmationAttachment_; } } /** @@ -5448,21 +5843,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g return confirmationAttachmentBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmedAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> confirmedAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 3; + * @return Whether the confirmedAt field is set. */ public boolean hasConfirmedAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 3; + * @return The confirmedAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmedAt() { if (confirmedAtBuilder_ == null) { - return confirmedAt_; + return confirmedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmedAt_; } else { return confirmedAtBuilder_.getMessage(); } @@ -5476,11 +5873,11 @@ public Builder setConfirmedAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) throw new NullPointerException(); } confirmedAt_ = value; - onChanged(); } else { confirmedAtBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5490,11 +5887,11 @@ public Builder setConfirmedAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (confirmedAtBuilder_ == null) { confirmedAt_ = builderForValue.build(); - onChanged(); } else { confirmedAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5502,31 +5899,33 @@ public Builder setConfirmedAt( */ public Builder mergeConfirmedAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (confirmedAtBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - confirmedAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - confirmedAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(confirmedAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + confirmedAt_ != null && + confirmedAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getConfirmedAtBuilder().mergeFrom(value); } else { confirmedAt_ = value; } - onChanged(); } else { confirmedAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (confirmedAt_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 3; */ public Builder clearConfirmedAt() { - if (confirmedAtBuilder_ == null) { - confirmedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - confirmedAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + confirmedAt_ = null; + if (confirmedAtBuilder_ != null) { + confirmedAtBuilder_.dispose(); + confirmedAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -5544,7 +5943,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmedAtOrBuild if (confirmedAtBuilder_ != null) { return confirmedAtBuilder_.getMessageOrBuilder(); } else { - return confirmedAt_; + return confirmedAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmedAt_; } } /** @@ -5564,21 +5964,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmedAtOrBuild return confirmedAtBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 receipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 receipt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder> receiptBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 4; + * @return Whether the receipt field is set. */ public boolean hasReceipt() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 4; + * @return The receipt. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getReceipt() { if (receiptBuilder_ == null) { - return receipt_; + return receipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : receipt_; } else { return receiptBuilder_.getMessage(); } @@ -5592,11 +5994,11 @@ public Builder setReceipt(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflo throw new NullPointerException(); } receipt_ = value; - onChanged(); } else { receiptBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5606,11 +6008,11 @@ public Builder setReceipt( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder builderForValue) { if (receiptBuilder_ == null) { receipt_ = builderForValue.build(); - onChanged(); } else { receiptBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5618,31 +6020,33 @@ public Builder setReceipt( */ public Builder mergeReceipt(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 value) { if (receiptBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - receipt_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance()) { - receipt_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.newBuilder(receipt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + receipt_ != null && + receipt_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance()) { + getReceiptBuilder().mergeFrom(value); } else { receipt_ = value; } - onChanged(); } else { receiptBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (receipt_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 4; */ public Builder clearReceipt() { - if (receiptBuilder_ == null) { - receipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - onChanged(); - } else { - receiptBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + receipt_ = null; + if (receiptBuilder_ != null) { + receiptBuilder_.dispose(); + receiptBuilder_ = null; + } + onChanged(); return this; } /** @@ -5660,7 +6064,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getRec if (receiptBuilder_ != null) { return receiptBuilder_.getMessageOrBuilder(); } else { - return receipt_; + return receipt_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : receipt_; } } /** @@ -5680,21 +6085,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getRec return receiptBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow roamingConfirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow roamingConfirmation_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflowOrBuilder> roamingConfirmationBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow RoamingConfirmation = 5; + * @return Whether the roamingConfirmation field is set. */ public boolean hasRoamingConfirmation() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow RoamingConfirmation = 5; + * @return The roamingConfirmation. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow getRoamingConfirmation() { if (roamingConfirmationBuilder_ == null) { - return roamingConfirmation_; + return roamingConfirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance() : roamingConfirmation_; } else { return roamingConfirmationBuilder_.getMessage(); } @@ -5708,11 +6115,11 @@ public Builder setRoamingConfirmation(Diadoc.Api.Proto.Docflow.DocflowV3Protos.O throw new NullPointerException(); } roamingConfirmation_ = value; - onChanged(); } else { roamingConfirmationBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5722,11 +6129,11 @@ public Builder setRoamingConfirmation( Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.Builder builderForValue) { if (roamingConfirmationBuilder_ == null) { roamingConfirmation_ = builderForValue.build(); - onChanged(); } else { roamingConfirmationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5734,31 +6141,33 @@ public Builder setRoamingConfirmation( */ public Builder mergeRoamingConfirmation(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow value) { if (roamingConfirmationBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - roamingConfirmation_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance()) { - roamingConfirmation_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.newBuilder(roamingConfirmation_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + roamingConfirmation_ != null && + roamingConfirmation_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance()) { + getRoamingConfirmationBuilder().mergeFrom(value); } else { roamingConfirmation_ = value; } - onChanged(); } else { roamingConfirmationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (roamingConfirmation_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow RoamingConfirmation = 5; */ public Builder clearRoamingConfirmation() { - if (roamingConfirmationBuilder_ == null) { - roamingConfirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance(); - onChanged(); - } else { - roamingConfirmationBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + roamingConfirmation_ = null; + if (roamingConfirmationBuilder_ != null) { + roamingConfirmationBuilder_.dispose(); + roamingConfirmationBuilder_ = null; + } + onChanged(); return this; } /** @@ -5776,7 +6185,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflowOrBui if (roamingConfirmationBuilder_ != null) { return roamingConfirmationBuilder_.getMessageOrBuilder(); } else { - return roamingConfirmation_; + return roamingConfirmation_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance() : roamingConfirmation_; } } /** @@ -5799,12 +6209,52 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflowOrBui // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ConfirmationDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ConfirmationDocflow) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow DEFAULT_INSTANCE; static { - defaultInstance = new ConfirmationDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfirmationDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ConfirmationDocflow) } public interface OperatorConfirmationDocflowOrBuilder extends @@ -5813,10 +6263,12 @@ public interface OperatorConfirmationDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 1; + * @return Whether the confirmationAttachment field is set. */ boolean hasConfirmationAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 1; + * @return The confirmationAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getConfirmationAttachment(); /** @@ -5826,10 +6278,12 @@ public interface OperatorConfirmationDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 2; + * @return Whether the confirmedAt field is set. */ boolean hasConfirmedAt(); /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 2; + * @return The confirmedAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmedAt(); /** @@ -5844,94 +6298,29 @@ public static final class OperatorConfirmationDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow) OperatorConfirmationDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + OperatorConfirmationDocflow.class.getName()); + } // Use OperatorConfirmationDocflow.newBuilder() to construct. private OperatorConfirmationDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private OperatorConfirmationDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final OperatorConfirmationDocflow defaultInstance; - public static OperatorConfirmationDocflow getDefaultInstance() { - return defaultInstance; } - - public OperatorConfirmationDocflow getDefaultInstanceForType() { - return defaultInstance; + private OperatorConfirmationDocflow() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OperatorConfirmationDocflow( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = confirmationAttachment_.toBuilder(); - } - confirmationAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationAttachment_); - confirmationAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = confirmedAt_.toBuilder(); - } - confirmedAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmedAt_); - confirmedAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OperatorConfirmationDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OperatorConfirmationDocflow_fieldAccessorTable @@ -5939,69 +6328,61 @@ private OperatorConfirmationDocflow( Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public OperatorConfirmationDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperatorConfirmationDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CONFIRMATIONATTACHMENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 confirmationAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 1; + * @return Whether the confirmationAttachment field is set. */ + @java.lang.Override public boolean hasConfirmationAttachment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 1; + * @return The confirmationAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getConfirmationAttachment() { - return confirmationAttachment_; + return confirmationAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : confirmationAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder getConfirmationAttachmentOrBuilder() { - return confirmationAttachment_; + return confirmationAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : confirmationAttachment_; } public static final int CONFIRMEDAT_FIELD_NUMBER = 2; private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmedAt_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 2; + * @return Whether the confirmedAt field is set. */ + @java.lang.Override public boolean hasConfirmedAt() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 2; + * @return The confirmedAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmedAt() { - return confirmedAt_; + return confirmedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmedAt_; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 2; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmedAtOrBuilder() { - return confirmedAt_; + return confirmedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmedAt_; } - private void initFields() { - confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - confirmedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -6023,44 +6404,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, confirmationAttachment_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfirmationAttachment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, confirmedAt_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getConfirmedAt()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfirmationAttachment()); + } + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, confirmationAttachment_); + .computeMessageSize(2, getConfirmedAt()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow) obj; + + if (hasConfirmationAttachment() != other.hasConfirmationAttachment()) return false; + if (hasConfirmationAttachment()) { + if (!getConfirmationAttachment() + .equals(other.getConfirmationAttachment())) return false; } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, confirmedAt_); + if (hasConfirmedAt() != other.hasConfirmedAt()) return false; + if (hasConfirmedAt()) { + if (!getConfirmedAt() + .equals(other.getConfirmedAt())) return false; } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - private static final long serialVersionUID = 0L; @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConfirmationAttachment()) { + hash = (37 * hash) + CONFIRMATIONATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationAttachment().hashCode(); + } + if (hasConfirmedAt()) { + hash = (37 * hash) + CONFIRMEDAT_FIELD_NUMBER; + hash = (53 * hash) + getConfirmedAt().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6084,42 +6513,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocfl } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -6139,6 +6583,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OperatorConfirmationDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OperatorConfirmationDocflow_fieldAccessorTable @@ -6157,45 +6602,41 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getConfirmationAttachmentFieldBuilder(); getConfirmedAtFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (confirmationAttachmentBuilder_ == null) { - confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - } else { - confirmationAttachmentBuilder_.clear(); + bitField0_ = 0; + confirmationAttachment_ = null; + if (confirmationAttachmentBuilder_ != null) { + confirmationAttachmentBuilder_.dispose(); + confirmationAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (confirmedAtBuilder_ == null) { - confirmedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - confirmedAtBuilder_.clear(); + confirmedAt_ = null; + if (confirmedAtBuilder_ != null) { + confirmedAtBuilder_.dispose(); + confirmedAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OperatorConfirmationDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -6204,31 +6645,33 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow buil return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confirmationAttachment_ = confirmationAttachmentBuilder_ == null + ? confirmationAttachment_ + : confirmationAttachmentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (confirmationAttachmentBuilder_ == null) { - result.confirmationAttachment_ = confirmationAttachment_; - } else { - result.confirmationAttachment_ = confirmationAttachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmedAt_ = confirmedAtBuilder_ == null + ? confirmedAt_ + : confirmedAtBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (confirmedAtBuilder_ == null) { - result.confirmedAt_ = confirmedAt_; - } else { - result.confirmedAt_ = confirmedAtBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow)other); @@ -6247,59 +6690,89 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfir mergeConfirmedAt(other.getConfirmedAt()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasConfirmationAttachment()) { if (!getConfirmationAttachment().isInitialized()) { - return false; } } if (hasConfirmedAt()) { if (!getConfirmedAt().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getConfirmationAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getConfirmedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 confirmationAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder> confirmationAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 1; + * @return Whether the confirmationAttachment field is set. */ public boolean hasConfirmationAttachment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 1; + * @return The confirmationAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getConfirmationAttachment() { if (confirmationAttachmentBuilder_ == null) { - return confirmationAttachment_; + return confirmationAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : confirmationAttachment_; } else { return confirmationAttachmentBuilder_.getMessage(); } @@ -6313,11 +6786,11 @@ public Builder setConfirmationAttachment(Diadoc.Api.Proto.Docflow.AttachmentV3Pr throw new NullPointerException(); } confirmationAttachment_ = value; - onChanged(); } else { confirmationAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -6327,11 +6800,11 @@ public Builder setConfirmationAttachment( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder builderForValue) { if (confirmationAttachmentBuilder_ == null) { confirmationAttachment_ = builderForValue.build(); - onChanged(); } else { confirmationAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -6339,31 +6812,33 @@ public Builder setConfirmationAttachment( */ public Builder mergeConfirmationAttachment(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 value) { if (confirmationAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - confirmationAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { - confirmationAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.newBuilder(confirmationAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + confirmationAttachment_ != null && + confirmationAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { + getConfirmationAttachmentBuilder().mergeFrom(value); } else { confirmationAttachment_ = value; } - onChanged(); } else { confirmationAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (confirmationAttachment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ConfirmationAttachment = 1; */ public Builder clearConfirmationAttachment() { - if (confirmationAttachmentBuilder_ == null) { - confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - onChanged(); - } else { - confirmationAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + confirmationAttachment_ = null; + if (confirmationAttachmentBuilder_ != null) { + confirmationAttachmentBuilder_.dispose(); + confirmationAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -6381,7 +6856,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g if (confirmationAttachmentBuilder_ != null) { return confirmationAttachmentBuilder_.getMessageOrBuilder(); } else { - return confirmationAttachment_; + return confirmationAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : confirmationAttachment_; } } /** @@ -6401,21 +6877,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g return confirmationAttachmentBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmedAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> confirmedAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 2; + * @return Whether the confirmedAt field is set. */ public boolean hasConfirmedAt() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 2; + * @return The confirmedAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmedAt() { if (confirmedAtBuilder_ == null) { - return confirmedAt_; + return confirmedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmedAt_; } else { return confirmedAtBuilder_.getMessage(); } @@ -6429,11 +6907,11 @@ public Builder setConfirmedAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) throw new NullPointerException(); } confirmedAt_ = value; - onChanged(); } else { confirmedAtBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -6443,11 +6921,11 @@ public Builder setConfirmedAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (confirmedAtBuilder_ == null) { confirmedAt_ = builderForValue.build(); - onChanged(); } else { confirmedAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -6455,31 +6933,33 @@ public Builder setConfirmedAt( */ public Builder mergeConfirmedAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (confirmedAtBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - confirmedAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - confirmedAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(confirmedAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + confirmedAt_ != null && + confirmedAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getConfirmedAtBuilder().mergeFrom(value); } else { confirmedAt_ = value; } - onChanged(); } else { confirmedAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (confirmedAt_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmedAt = 2; */ public Builder clearConfirmedAt() { - if (confirmedAtBuilder_ == null) { - confirmedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - confirmedAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + confirmedAt_ = null; + if (confirmedAtBuilder_ != null) { + confirmedAtBuilder_.dispose(); + confirmedAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -6497,7 +6977,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmedAtOrBuild if (confirmedAtBuilder_ != null) { return confirmedAtBuilder_.getMessageOrBuilder(); } else { - return confirmedAt_; + return confirmedAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmedAt_; } } /** @@ -6520,12 +7001,52 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmedAtOrBuild // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow DEFAULT_INSTANCE; static { - defaultInstance = new OperatorConfirmationDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatorConfirmationDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OperatorConfirmationDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.OperatorConfirmationDocflow) } public interface SignatureRejectionDocflowOrBuilder extends @@ -6534,10 +7055,12 @@ public interface SignatureRejectionDocflowOrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 SignatureRejection = 1; + * @return Whether the signatureRejection field is set. */ boolean hasSignatureRejection(); /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 SignatureRejection = 1; + * @return The signatureRejection. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getSignatureRejection(); /** @@ -6547,19 +7070,23 @@ public interface SignatureRejectionDocflowOrBuilder extends /** * required bool IsFormal = 2; + * @return Whether the isFormal field is set. */ boolean hasIsFormal(); /** * required bool IsFormal = 2; + * @return The isFormal. */ boolean getIsFormal(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return Whether the deliveredAt field is set. */ boolean hasDeliveredAt(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return The deliveredAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt(); /** @@ -6569,14 +7096,17 @@ public interface SignatureRejectionDocflowOrBuilder extends /** * optional string PlainText = 4; + * @return Whether the plainText field is set. */ boolean hasPlainText(); /** * optional string PlainText = 4; + * @return The plainText. */ java.lang.String getPlainText(); /** * optional string PlainText = 4; + * @return The bytes for plainText. */ com.google.protobuf.ByteString getPlainTextBytes(); @@ -6588,105 +7118,30 @@ public static final class SignatureRejectionDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow) SignatureRejectionDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SignatureRejectionDocflow.class.getName()); + } // Use SignatureRejectionDocflow.newBuilder() to construct. private SignatureRejectionDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private SignatureRejectionDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SignatureRejectionDocflow defaultInstance; - public static SignatureRejectionDocflow getDefaultInstance() { - return defaultInstance; - } - - public SignatureRejectionDocflow getDefaultInstanceForType() { - return defaultInstance; + private SignatureRejectionDocflow() { + plainText_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignatureRejectionDocflow( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = signatureRejection_.toBuilder(); - } - signatureRejection_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signatureRejection_); - signatureRejection_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: { - bitField0_ |= 0x00000002; - isFormal_ = input.readBool(); - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = deliveredAt_.toBuilder(); - } - deliveredAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveredAt_); - deliveredAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - plainText_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureRejectionDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureRejectionDocflow_fieldAccessorTable @@ -6694,54 +7149,48 @@ private SignatureRejectionDocflow( Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SignatureRejectionDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureRejectionDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int SIGNATUREREJECTION_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 signatureRejection_; /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 SignatureRejection = 1; + * @return Whether the signatureRejection field is set. */ + @java.lang.Override public boolean hasSignatureRejection() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 SignatureRejection = 1; + * @return The signatureRejection. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getSignatureRejection() { - return signatureRejection_; + return signatureRejection_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : signatureRejection_; } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 SignatureRejection = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder getSignatureRejectionOrBuilder() { - return signatureRejection_; + return signatureRejection_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : signatureRejection_; } public static final int ISFORMAL_FIELD_NUMBER = 2; - private boolean isFormal_; + private boolean isFormal_ = false; /** * required bool IsFormal = 2; + * @return Whether the isFormal field is set. */ + @java.lang.Override public boolean hasIsFormal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsFormal = 2; + * @return The isFormal. */ + @java.lang.Override public boolean getIsFormal() { return isFormal_; } @@ -6750,34 +7199,44 @@ public boolean getIsFormal() { private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return Whether the deliveredAt field is set. */ + @java.lang.Override public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return The deliveredAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuilder() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } public static final int PLAINTEXT_FIELD_NUMBER = 4; - private java.lang.Object plainText_; + @SuppressWarnings("serial") + private volatile java.lang.Object plainText_ = ""; /** * optional string PlainText = 4; + * @return Whether the plainText field is set. */ + @java.lang.Override public boolean hasPlainText() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string PlainText = 4; + * @return The plainText. */ + @java.lang.Override public java.lang.String getPlainText() { java.lang.Object ref = plainText_; if (ref instanceof java.lang.String) { @@ -6794,7 +7253,9 @@ public java.lang.String getPlainText() { } /** * optional string PlainText = 4; + * @return The bytes for plainText. */ + @java.lang.Override public com.google.protobuf.ByteString getPlainTextBytes() { java.lang.Object ref = plainText_; @@ -6809,13 +7270,8 @@ public java.lang.String getPlainText() { } } - private void initFields() { - signatureRejection_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - isFormal_ = false; - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - plainText_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -6843,58 +7299,124 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, signatureRejection_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSignatureRejection()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, isFormal_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, deliveredAt_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDeliveredAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getPlainTextBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, plainText_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, signatureRejection_); + .computeMessageSize(1, getSignatureRejection()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isFormal_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, deliveredAt_); + .computeMessageSize(3, getDeliveredAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getPlainTextBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, plainText_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow) obj; + + if (hasSignatureRejection() != other.hasSignatureRejection()) return false; + if (hasSignatureRejection()) { + if (!getSignatureRejection() + .equals(other.getSignatureRejection())) return false; + } + if (hasIsFormal() != other.hasIsFormal()) return false; + if (hasIsFormal()) { + if (getIsFormal() + != other.getIsFormal()) return false; + } + if (hasDeliveredAt() != other.hasDeliveredAt()) return false; + if (hasDeliveredAt()) { + if (!getDeliveredAt() + .equals(other.getDeliveredAt())) return false; + } + if (hasPlainText() != other.hasPlainText()) return false; + if (hasPlainText()) { + if (!getPlainText() + .equals(other.getPlainText())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSignatureRejection()) { + hash = (37 * hash) + SIGNATUREREJECTION_FIELD_NUMBER; + hash = (53 * hash) + getSignatureRejection().hashCode(); + } + if (hasIsFormal()) { + hash = (37 * hash) + ISFORMAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFormal()); + } + if (hasDeliveredAt()) { + hash = (37 * hash) + DELIVEREDAT_FIELD_NUMBER; + hash = (53 * hash) + getDeliveredAt().hashCode(); + } + if (hasPlainText()) { + hash = (37 * hash) + PLAINTEXT_FIELD_NUMBER; + hash = (53 * hash) + getPlainText().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6918,42 +7440,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -6973,6 +7510,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureRejectionDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureRejectionDocflow_fieldAccessorTable @@ -6991,49 +7529,43 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getSignatureRejectionFieldBuilder(); getDeliveredAtFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (signatureRejectionBuilder_ == null) { - signatureRejection_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - } else { - signatureRejectionBuilder_.clear(); + bitField0_ = 0; + signatureRejection_ = null; + if (signatureRejectionBuilder_ != null) { + signatureRejectionBuilder_.dispose(); + signatureRejectionBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); isFormal_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveredAtBuilder_.clear(); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); plainText_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureRejectionDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -7042,39 +7574,41 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.signatureRejection_ = signatureRejectionBuilder_ == null + ? signatureRejection_ + : signatureRejectionBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (signatureRejectionBuilder_ == null) { - result.signatureRejection_ = signatureRejection_; - } else { - result.signatureRejection_ = signatureRejectionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isFormal_ = isFormal_; to_bitField0_ |= 0x00000002; } - result.isFormal_ = isFormal_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deliveredAt_ = deliveredAtBuilder_ == null + ? deliveredAt_ + : deliveredAtBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (deliveredAtBuilder_ == null) { - result.deliveredAt_ = deliveredAt_; - } else { - result.deliveredAt_ = deliveredAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.plainText_ = plainText_; to_bitField0_ |= 0x00000008; } - result.plainText_ = plainText_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow)other); @@ -7096,70 +7630,108 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejec mergeDeliveredAt(other.getDeliveredAt()); } if (other.hasPlainText()) { - bitField0_ |= 0x00000008; plainText_ = other.plainText_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasSignatureRejection()) { - return false; } if (!hasIsFormal()) { - return false; } if (!getSignatureRejection().isInitialized()) { - return false; } if (hasDeliveredAt()) { if (!getDeliveredAt().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSignatureRejectionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isFormal_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getDeliveredAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + plainText_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 signatureRejection_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 signatureRejection_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder> signatureRejectionBuilder_; /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 SignatureRejection = 1; + * @return Whether the signatureRejection field is set. */ public boolean hasSignatureRejection() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 SignatureRejection = 1; + * @return The signatureRejection. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getSignatureRejection() { if (signatureRejectionBuilder_ == null) { - return signatureRejection_; + return signatureRejection_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : signatureRejection_; } else { return signatureRejectionBuilder_.getMessage(); } @@ -7173,11 +7745,11 @@ public Builder setSignatureRejection(Diadoc.Api.Proto.Docflow.AttachmentV3Protos throw new NullPointerException(); } signatureRejection_ = value; - onChanged(); } else { signatureRejectionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -7187,11 +7759,11 @@ public Builder setSignatureRejection( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder builderForValue) { if (signatureRejectionBuilder_ == null) { signatureRejection_ = builderForValue.build(); - onChanged(); } else { signatureRejectionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -7199,31 +7771,33 @@ public Builder setSignatureRejection( */ public Builder mergeSignatureRejection(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 value) { if (signatureRejectionBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - signatureRejection_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { - signatureRejection_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.newBuilder(signatureRejection_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + signatureRejection_ != null && + signatureRejection_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { + getSignatureRejectionBuilder().mergeFrom(value); } else { signatureRejection_ = value; } - onChanged(); } else { signatureRejectionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (signatureRejection_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 SignatureRejection = 1; */ public Builder clearSignatureRejection() { - if (signatureRejectionBuilder_ == null) { - signatureRejection_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - onChanged(); - } else { - signatureRejectionBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + signatureRejection_ = null; + if (signatureRejectionBuilder_ != null) { + signatureRejectionBuilder_.dispose(); + signatureRejectionBuilder_ = null; + } + onChanged(); return this; } /** @@ -7241,7 +7815,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g if (signatureRejectionBuilder_ != null) { return signatureRejectionBuilder_.getMessageOrBuilder(); } else { - return signatureRejection_; + return signatureRejection_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : signatureRejection_; } } /** @@ -7264,27 +7839,35 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g private boolean isFormal_ ; /** * required bool IsFormal = 2; + * @return Whether the isFormal field is set. */ + @java.lang.Override public boolean hasIsFormal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsFormal = 2; + * @return The isFormal. */ + @java.lang.Override public boolean getIsFormal() { return isFormal_; } /** * required bool IsFormal = 2; + * @param value The isFormal to set. + * @return This builder for chaining. */ public Builder setIsFormal(boolean value) { - bitField0_ |= 0x00000002; + isFormal_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool IsFormal = 2; + * @return This builder for chaining. */ public Builder clearIsFormal() { bitField0_ = (bitField0_ & ~0x00000002); @@ -7293,21 +7876,23 @@ public Builder clearIsFormal() { return this; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveredAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return Whether the deliveredAt field is set. */ public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return The deliveredAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { if (deliveredAtBuilder_ == null) { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } else { return deliveredAtBuilder_.getMessage(); } @@ -7321,11 +7906,11 @@ public Builder setDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) throw new NullPointerException(); } deliveredAt_ = value; - onChanged(); } else { deliveredAtBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -7335,11 +7920,11 @@ public Builder setDeliveredAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveredAtBuilder_ == null) { deliveredAt_ = builderForValue.build(); - onChanged(); } else { deliveredAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -7347,31 +7932,33 @@ public Builder setDeliveredAt( */ public Builder mergeDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveredAtBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveredAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveredAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + deliveredAt_ != null && + deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveredAtBuilder().mergeFrom(value); } else { deliveredAt_ = value; } - onChanged(); } else { deliveredAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (deliveredAt_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; */ public Builder clearDeliveredAt() { - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveredAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -7389,7 +7976,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild if (deliveredAtBuilder_ != null) { return deliveredAtBuilder_.getMessageOrBuilder(); } else { - return deliveredAt_; + return deliveredAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } } /** @@ -7412,12 +8000,14 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild private java.lang.Object plainText_ = ""; /** * optional string PlainText = 4; + * @return Whether the plainText field is set. */ public boolean hasPlainText() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string PlainText = 4; + * @return The plainText. */ public java.lang.String getPlainText() { java.lang.Object ref = plainText_; @@ -7435,6 +8025,7 @@ public java.lang.String getPlainText() { } /** * optional string PlainText = 4; + * @return The bytes for plainText. */ public com.google.protobuf.ByteString getPlainTextBytes() { @@ -7451,36 +8042,37 @@ public java.lang.String getPlainText() { } /** * optional string PlainText = 4; + * @param value The plainText to set. + * @return This builder for chaining. */ public Builder setPlainText( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } plainText_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string PlainText = 4; + * @return This builder for chaining. */ public Builder clearPlainText() { - bitField0_ = (bitField0_ & ~0x00000008); plainText_ = getDefaultInstance().getPlainText(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string PlainText = 4; + * @param value The bytes for plainText to set. + * @return This builder for chaining. */ public Builder setPlainTextBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } plainText_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7488,12 +8080,52 @@ public Builder setPlainTextBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow DEFAULT_INSTANCE; static { - defaultInstance = new SignatureRejectionDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignatureRejectionDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow) } public interface ParticipantResponseDocflowOrBuilder extends @@ -7502,19 +8134,23 @@ public interface ParticipantResponseDocflowOrBuilder extends /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * required bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return Whether the signature field is set. */ boolean hasSignature(); /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return The signature. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getSignature(); /** @@ -7524,10 +8160,12 @@ public interface ParticipantResponseDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Title = 3; + * @return Whether the title field is set. */ boolean hasTitle(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Title = 3; + * @return The title. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getTitle(); /** @@ -7537,10 +8175,12 @@ public interface ParticipantResponseDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow Rejection = 4; + * @return Whether the rejection field is set. */ boolean hasRejection(); /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow Rejection = 4; + * @return The rejection. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow getRejection(); /** @@ -7550,10 +8190,12 @@ public interface ParticipantResponseDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 5; + * @return Whether the sentAt field is set. */ boolean hasSentAt(); /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 5; + * @return The sentAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt(); /** @@ -7563,10 +8205,12 @@ public interface ParticipantResponseDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 6; + * @return Whether the deliveredAt field is set. */ boolean hasDeliveredAt(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 6; + * @return The deliveredAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt(); /** @@ -7576,19 +8220,23 @@ public interface ParticipantResponseDocflowOrBuilder extends /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus ResponseStatus = 7; + * @return Whether the responseStatus field is set. */ boolean hasResponseStatus(); /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus ResponseStatus = 7; + * @return The responseStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus getResponseStatus(); /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 8; + * @return Whether the confirmation field is set. */ boolean hasConfirmation(); /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 8; + * @return The confirmation. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmation(); /** @@ -7603,162 +8251,30 @@ public static final class ParticipantResponseDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow) ParticipantResponseDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ParticipantResponseDocflow.class.getName()); + } // Use ParticipantResponseDocflow.newBuilder() to construct. private ParticipantResponseDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private ParticipantResponseDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ParticipantResponseDocflow defaultInstance; - public static ParticipantResponseDocflow getDefaultInstance() { - return defaultInstance; - } - - public ParticipantResponseDocflow getDefaultInstanceForType() { - return defaultInstance; + private ParticipantResponseDocflow() { + responseStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParticipantResponseDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = signature_.toBuilder(); - } - signature_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signature_); - signature_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = title_.toBuilder(); - } - title_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(title_); - title_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = rejection_.toBuilder(); - } - rejection_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rejection_); - rejection_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = sentAt_.toBuilder(); - } - sentAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sentAt_); - sentAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = deliveredAt_.toBuilder(); - } - deliveredAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveredAt_); - deliveredAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 56: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(7, rawValue); - } else { - bitField0_ |= 0x00000040; - responseStatus_ = value; - } - break; - } - case 66: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = confirmation_.toBuilder(); - } - confirmation_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmation_); - confirmation_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - 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.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ParticipantResponseDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ParticipantResponseDocflow_fieldAccessorTable @@ -7766,33 +8282,22 @@ private ParticipantResponseDocflow( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ParticipantResponseDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParticipantResponseDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -7801,154 +8306,178 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 signature_; /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return Whether the signature field is set. */ + @java.lang.Override public boolean hasSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return The signature. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getSignature() { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getSignatureOrBuilder() { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } public static final int TITLE_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 title_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Title = 3; + * @return Whether the title field is set. */ + @java.lang.Override public boolean hasTitle() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Title = 3; + * @return The title. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getTitle() { - return title_; + return title_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : title_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Title = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder getTitleOrBuilder() { - return title_; + return title_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : title_; } public static final int REJECTION_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow rejection_; /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow Rejection = 4; + * @return Whether the rejection field is set. */ + @java.lang.Override public boolean hasRejection() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow Rejection = 4; + * @return The rejection. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow getRejection() { - return rejection_; + return rejection_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance() : rejection_; } /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow Rejection = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflowOrBuilder getRejectionOrBuilder() { - return rejection_; + return rejection_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance() : rejection_; } public static final int SENTAT_FIELD_NUMBER = 5; private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_; /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 5; + * @return Whether the sentAt field is set. */ + @java.lang.Override public boolean hasSentAt() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 5; + * @return The sentAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt() { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 5; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } public static final int DELIVEREDAT_FIELD_NUMBER = 6; private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 6; + * @return Whether the deliveredAt field is set. */ + @java.lang.Override public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 6; + * @return The deliveredAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 6; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuilder() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } public static final int RESPONSESTATUS_FIELD_NUMBER = 7; - private Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus responseStatus_; + private int responseStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus ResponseStatus = 7; + * @return Whether the responseStatus field is set. */ - public boolean hasResponseStatus() { - return ((bitField0_ & 0x00000040) == 0x00000040); + @java.lang.Override public boolean hasResponseStatus() { + return ((bitField0_ & 0x00000040) != 0); } /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus ResponseStatus = 7; + * @return The responseStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus getResponseStatus() { - return responseStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus getResponseStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.forNumber(responseStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown : result; } public static final int CONFIRMATION_FIELD_NUMBER = 8; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmation_; /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 8; + * @return Whether the confirmation field is set. */ + @java.lang.Override public boolean hasConfirmation() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 8; + * @return The confirmation. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmation() { - return confirmation_; + return confirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder getConfirmationOrBuilder() { - return confirmation_; + return confirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } - private void initFields() { - isFinished_ = false; - signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - title_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - rejection_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance(); - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - responseStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown; - confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -8002,86 +8531,188 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, signature_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSignature()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, title_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getTitle()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, rejection_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getRejection()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, sentAt_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getSentAt()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, deliveredAt_); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getDeliveredAt()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeEnum(7, responseStatus_.getNumber()); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(7, responseStatus_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, confirmation_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getConfirmation()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, signature_); + .computeMessageSize(2, getSignature()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, title_); + .computeMessageSize(3, getTitle()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, rejection_); + .computeMessageSize(4, getRejection()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, sentAt_); + .computeMessageSize(5, getSentAt()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, deliveredAt_); + .computeMessageSize(6, getDeliveredAt()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, responseStatus_.getNumber()); + .computeEnumSize(7, responseStatus_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, confirmation_); + .computeMessageSize(8, getConfirmation()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasSignature() != other.hasSignature()) return false; + if (hasSignature()) { + if (!getSignature() + .equals(other.getSignature())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle() + .equals(other.getTitle())) return false; + } + if (hasRejection() != other.hasRejection()) return false; + if (hasRejection()) { + if (!getRejection() + .equals(other.getRejection())) return false; + } + if (hasSentAt() != other.hasSentAt()) return false; + if (hasSentAt()) { + if (!getSentAt() + .equals(other.getSentAt())) return false; + } + if (hasDeliveredAt() != other.hasDeliveredAt()) return false; + if (hasDeliveredAt()) { + if (!getDeliveredAt() + .equals(other.getDeliveredAt())) return false; + } + if (hasResponseStatus() != other.hasResponseStatus()) return false; + if (hasResponseStatus()) { + if (responseStatus_ != other.responseStatus_) return false; + } + if (hasConfirmation() != other.hasConfirmation()) return false; + if (hasConfirmation()) { + if (!getConfirmation() + .equals(other.getConfirmation())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasRejection()) { + hash = (37 * hash) + REJECTION_FIELD_NUMBER; + hash = (53 * hash) + getRejection().hashCode(); + } + if (hasSentAt()) { + hash = (37 * hash) + SENTAT_FIELD_NUMBER; + hash = (53 * hash) + getSentAt().hashCode(); + } + if (hasDeliveredAt()) { + hash = (37 * hash) + DELIVEREDAT_FIELD_NUMBER; + hash = (53 * hash) + getDeliveredAt().hashCode(); + } + if (hasResponseStatus()) { + hash = (37 * hash) + RESPONSESTATUS_FIELD_NUMBER; + hash = (53 * hash) + responseStatus_; + } + if (hasConfirmation()) { + hash = (37 * hash) + CONFIRMATION_FIELD_NUMBER; + hash = (53 * hash) + getConfirmation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8105,42 +8736,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflo } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -8160,6 +8806,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ParticipantResponseDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ParticipantResponseDocflow_fieldAccessorTable @@ -8178,7 +8825,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getSignatureFieldBuilder(); getTitleFieldBuilder(); getRejectionFieldBuilder(); @@ -8187,68 +8835,57 @@ private void maybeForceBuilderInitialization() { getConfirmationFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (signatureBuilder_ == null) { - signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - } else { - signatureBuilder_.clear(); + signature_ = null; + if (signatureBuilder_ != null) { + signatureBuilder_.dispose(); + signatureBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (titleBuilder_ == null) { - title_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - } else { - titleBuilder_.clear(); + title_ = null; + if (titleBuilder_ != null) { + titleBuilder_.dispose(); + titleBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (rejectionBuilder_ == null) { - rejection_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance(); - } else { - rejectionBuilder_.clear(); + rejection_ = null; + if (rejectionBuilder_ != null) { + rejectionBuilder_.dispose(); + rejectionBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (sentAtBuilder_ == null) { - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - sentAtBuilder_.clear(); + sentAt_ = null; + if (sentAtBuilder_ != null) { + sentAtBuilder_.dispose(); + sentAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveredAtBuilder_.clear(); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); - responseStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown; - bitField0_ = (bitField0_ & ~0x00000040); - if (confirmationBuilder_ == null) { - confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - } else { - confirmationBuilder_.clear(); + responseStatus_ = 0; + confirmation_ = null; + if (confirmationBuilder_ != null) { + confirmationBuilder_.dispose(); + confirmationBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ParticipantResponseDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -8257,71 +8894,65 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow build return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.signature_ = signatureBuilder_ == null + ? signature_ + : signatureBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (signatureBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = signatureBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = titleBuilder_ == null + ? title_ + : titleBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (titleBuilder_ == null) { - result.title_ = title_; - } else { - result.title_ = titleBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.rejection_ = rejectionBuilder_ == null + ? rejection_ + : rejectionBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (rejectionBuilder_ == null) { - result.rejection_ = rejection_; - } else { - result.rejection_ = rejectionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sentAt_ = sentAtBuilder_ == null + ? sentAt_ + : sentAtBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (sentAtBuilder_ == null) { - result.sentAt_ = sentAt_; - } else { - result.sentAt_ = sentAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deliveredAt_ = deliveredAtBuilder_ == null + ? deliveredAt_ + : deliveredAtBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (deliveredAtBuilder_ == null) { - result.deliveredAt_ = deliveredAt_; - } else { - result.deliveredAt_ = deliveredAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.responseStatus_ = responseStatus_; to_bitField0_ |= 0x00000040; } - result.responseStatus_ = responseStatus_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.confirmation_ = confirmationBuilder_ == null + ? confirmation_ + : confirmationBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (confirmationBuilder_ == null) { - result.confirmation_ = confirmation_; - } else { - result.confirmation_ = confirmationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow)other); @@ -8358,72 +8989,139 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantRes mergeConfirmation(other.getConfirmation()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsFinished()) { - return false; } if (!hasResponseStatus()) { - return false; } if (hasSignature()) { if (!getSignature().isInitialized()) { - return false; } } if (hasTitle()) { if (!getTitle().isInitialized()) { - return false; } } if (hasRejection()) { if (!getRejection().isInitialized()) { - return false; } } if (hasSentAt()) { if (!getSentAt().isInitialized()) { - return false; } } if (hasDeliveredAt()) { if (!getDeliveredAt().isInitialized()) { - return false; } } if (hasConfirmation()) { if (!getConfirmation().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getSignatureFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getTitleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getRejectionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getSentAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getDeliveredAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(7, tmpRaw); + } else { + responseStatus_ = tmpRaw; + bitField0_ |= 0x00000040; + } + break; + } // case 56 + case 66: { + input.readMessage( + getConfirmationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -8431,27 +9129,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * required bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -8460,21 +9166,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 signature_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder> signatureBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return Whether the signature field is set. */ public boolean hasSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; + * @return The signature. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getSignature() { if (signatureBuilder_ == null) { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } else { return signatureBuilder_.getMessage(); } @@ -8488,11 +9196,11 @@ public Builder setSignature(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.Signatur throw new NullPointerException(); } signature_ = value; - onChanged(); } else { signatureBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -8502,11 +9210,11 @@ public Builder setSignature( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder builderForValue) { if (signatureBuilder_ == null) { signature_ = builderForValue.build(); - onChanged(); } else { signatureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -8514,31 +9222,33 @@ public Builder setSignature( */ public Builder mergeSignature(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 value) { if (signatureBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - signature_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance()) { - signature_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.newBuilder(signature_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + signature_ != null && + signature_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance()) { + getSignatureBuilder().mergeFrom(value); } else { signature_ = value; } - onChanged(); } else { signatureBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (signature_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 2; */ public Builder clearSignature() { - if (signatureBuilder_ == null) { - signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - onChanged(); - } else { - signatureBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + signature_ = null; + if (signatureBuilder_ != null) { + signatureBuilder_.dispose(); + signatureBuilder_ = null; + } + onChanged(); return this; } /** @@ -8556,7 +9266,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getSigna if (signatureBuilder_ != null) { return signatureBuilder_.getMessageOrBuilder(); } else { - return signature_; + return signature_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } } /** @@ -8576,21 +9287,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getSigna return signatureBuilder_; } - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 title_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 title_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder> titleBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Title = 3; + * @return Whether the title field is set. */ public boolean hasTitle() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Title = 3; + * @return The title. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getTitle() { if (titleBuilder_ == null) { - return title_; + return title_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : title_; } else { return titleBuilder_.getMessage(); } @@ -8604,11 +9317,11 @@ public Builder setTitle(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttach throw new NullPointerException(); } title_ = value; - onChanged(); } else { titleBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -8618,11 +9331,11 @@ public Builder setTitle( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder builderForValue) { if (titleBuilder_ == null) { title_ = builderForValue.build(); - onChanged(); } else { titleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -8630,31 +9343,33 @@ public Builder setTitle( */ public Builder mergeTitle(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 value) { if (titleBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - title_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { - title_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.newBuilder(title_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + title_ != null && + title_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { + getTitleBuilder().mergeFrom(value); } else { title_ = value; } - onChanged(); } else { titleBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (title_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Title = 3; - */ - public Builder clearTitle() { - if (titleBuilder_ == null) { - title_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - onChanged(); - } else { - titleBuilder_.clear(); - } + * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Title = 3; + */ + public Builder clearTitle() { bitField0_ = (bitField0_ & ~0x00000004); + title_ = null; + if (titleBuilder_ != null) { + titleBuilder_.dispose(); + titleBuilder_ = null; + } + onChanged(); return this; } /** @@ -8672,7 +9387,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g if (titleBuilder_ != null) { return titleBuilder_.getMessageOrBuilder(); } else { - return title_; + return title_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : title_; } } /** @@ -8692,21 +9408,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g return titleBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow rejection_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow rejection_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflowOrBuilder> rejectionBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow Rejection = 4; + * @return Whether the rejection field is set. */ public boolean hasRejection() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow Rejection = 4; + * @return The rejection. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow getRejection() { if (rejectionBuilder_ == null) { - return rejection_; + return rejection_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance() : rejection_; } else { return rejectionBuilder_.getMessage(); } @@ -8720,11 +9438,11 @@ public Builder setRejection(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRe throw new NullPointerException(); } rejection_ = value; - onChanged(); } else { rejectionBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -8734,11 +9452,11 @@ public Builder setRejection( Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.Builder builderForValue) { if (rejectionBuilder_ == null) { rejection_ = builderForValue.build(); - onChanged(); } else { rejectionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -8746,31 +9464,33 @@ public Builder setRejection( */ public Builder mergeRejection(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow value) { if (rejectionBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - rejection_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance()) { - rejection_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.newBuilder(rejection_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + rejection_ != null && + rejection_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance()) { + getRejectionBuilder().mergeFrom(value); } else { rejection_ = value; } - onChanged(); } else { rejectionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (rejection_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow Rejection = 4; */ public Builder clearRejection() { - if (rejectionBuilder_ == null) { - rejection_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance(); - onChanged(); - } else { - rejectionBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + rejection_ = null; + if (rejectionBuilder_ != null) { + rejectionBuilder_.dispose(); + rejectionBuilder_ = null; + } + onChanged(); return this; } /** @@ -8788,7 +9508,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflowOrBuild if (rejectionBuilder_ != null) { return rejectionBuilder_.getMessageOrBuilder(); } else { - return rejection_; + return rejection_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance() : rejection_; } } /** @@ -8808,21 +9529,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflowOrBuild return rejectionBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> sentAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 5; + * @return Whether the sentAt field is set. */ public boolean hasSentAt() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 5; + * @return The sentAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt() { if (sentAtBuilder_ == null) { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } else { return sentAtBuilder_.getMessage(); } @@ -8836,11 +9559,11 @@ public Builder setSentAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { throw new NullPointerException(); } sentAt_ = value; - onChanged(); } else { sentAtBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -8850,11 +9573,11 @@ public Builder setSentAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (sentAtBuilder_ == null) { sentAt_ = builderForValue.build(); - onChanged(); } else { sentAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -8862,31 +9585,33 @@ public Builder setSentAt( */ public Builder mergeSentAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (sentAtBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - sentAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - sentAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(sentAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + sentAt_ != null && + sentAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getSentAtBuilder().mergeFrom(value); } else { sentAt_ = value; } - onChanged(); } else { sentAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (sentAt_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 5; */ public Builder clearSentAt() { - if (sentAtBuilder_ == null) { - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - sentAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + sentAt_ = null; + if (sentAtBuilder_ != null) { + sentAtBuilder_.dispose(); + sentAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -8904,7 +9629,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() if (sentAtBuilder_ != null) { return sentAtBuilder_.getMessageOrBuilder(); } else { - return sentAt_; + return sentAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } } /** @@ -8924,21 +9650,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() return sentAtBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveredAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 6; + * @return Whether the deliveredAt field is set. */ public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 6; + * @return The deliveredAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { if (deliveredAtBuilder_ == null) { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } else { return deliveredAtBuilder_.getMessage(); } @@ -8952,11 +9680,11 @@ public Builder setDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) throw new NullPointerException(); } deliveredAt_ = value; - onChanged(); } else { deliveredAtBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -8966,11 +9694,11 @@ public Builder setDeliveredAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveredAtBuilder_ == null) { deliveredAt_ = builderForValue.build(); - onChanged(); } else { deliveredAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -8978,31 +9706,33 @@ public Builder setDeliveredAt( */ public Builder mergeDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveredAtBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveredAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveredAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + deliveredAt_ != null && + deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveredAtBuilder().mergeFrom(value); } else { deliveredAt_ = value; } - onChanged(); } else { deliveredAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (deliveredAt_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 6; */ public Builder clearDeliveredAt() { - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveredAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -9020,7 +9750,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild if (deliveredAtBuilder_ != null) { return deliveredAtBuilder_.getMessageOrBuilder(); } else { - return deliveredAt_; + return deliveredAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } } /** @@ -9040,56 +9771,65 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild return deliveredAtBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus responseStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown; + private int responseStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus ResponseStatus = 7; + * @return Whether the responseStatus field is set. */ - public boolean hasResponseStatus() { - return ((bitField0_ & 0x00000040) == 0x00000040); + @java.lang.Override public boolean hasResponseStatus() { + return ((bitField0_ & 0x00000040) != 0); } /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus ResponseStatus = 7; + * @return The responseStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus getResponseStatus() { - return responseStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.forNumber(responseStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown : result; } /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus ResponseStatus = 7; + * @param value The responseStatus to set. + * @return This builder for chaining. */ public Builder setResponseStatus(Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; - responseStatus_ = value; + responseStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus ResponseStatus = 7; + * @return This builder for chaining. */ public Builder clearResponseStatus() { bitField0_ = (bitField0_ & ~0x00000040); - responseStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown; + responseStatus_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmation_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder> confirmationBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 8; + * @return Whether the confirmation field is set. */ public boolean hasConfirmation() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 8; + * @return The confirmation. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmation() { if (confirmationBuilder_ == null) { - return confirmation_; + return confirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } else { return confirmationBuilder_.getMessage(); } @@ -9103,11 +9843,11 @@ public Builder setConfirmation(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Confirma throw new NullPointerException(); } confirmation_ = value; - onChanged(); } else { confirmationBuilder_.setMessage(value); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -9117,11 +9857,11 @@ public Builder setConfirmation( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder builderForValue) { if (confirmationBuilder_ == null) { confirmation_ = builderForValue.build(); - onChanged(); } else { confirmationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -9129,31 +9869,33 @@ public Builder setConfirmation( */ public Builder mergeConfirmation(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow value) { if (confirmationBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - confirmation_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance()) { - confirmation_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.newBuilder(confirmation_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + confirmation_ != null && + confirmation_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance()) { + getConfirmationBuilder().mergeFrom(value); } else { confirmation_ = value; } - onChanged(); } else { confirmationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + if (confirmation_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 8; */ public Builder clearConfirmation() { - if (confirmationBuilder_ == null) { - confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - onChanged(); - } else { - confirmationBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000080); + confirmation_ = null; + if (confirmationBuilder_ != null) { + confirmationBuilder_.dispose(); + confirmationBuilder_ = null; + } + onChanged(); return this; } /** @@ -9171,7 +9913,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder get if (confirmationBuilder_ != null) { return confirmationBuilder_.getMessageOrBuilder(); } else { - return confirmation_; + return confirmation_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } } /** @@ -9194,12 +9937,52 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder get // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow DEFAULT_INSTANCE; static { - defaultInstance = new ParticipantResponseDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParticipantResponseDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ParticipantResponseDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ParticipantResponseDocflow) } public interface AmendmentRequestDocflowOrBuilder extends @@ -9208,19 +9991,23 @@ public interface AmendmentRequestDocflowOrBuilder extends /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * required bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 AmendmentRequest = 2; + * @return Whether the amendmentRequest field is set. */ boolean hasAmendmentRequest(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 AmendmentRequest = 2; + * @return The amendmentRequest. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getAmendmentRequest(); /** @@ -9230,10 +10017,12 @@ public interface AmendmentRequestDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return Whether the sentAt field is set. */ boolean hasSentAt(); /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return The sentAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt(); /** @@ -9243,10 +10032,12 @@ public interface AmendmentRequestDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return Whether the deliveredAt field is set. */ boolean hasDeliveredAt(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return The deliveredAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt(); /** @@ -9256,10 +10047,12 @@ public interface AmendmentRequestDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 5; + * @return Whether the receipt field is set. */ boolean hasReceipt(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 5; + * @return The receipt. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getReceipt(); /** @@ -9269,33 +10062,40 @@ public interface AmendmentRequestDocflowOrBuilder extends /** * required int32 AmendmentFlags = 6; + * @return Whether the amendmentFlags field is set. */ boolean hasAmendmentFlags(); /** * required int32 AmendmentFlags = 6; + * @return The amendmentFlags. */ int getAmendmentFlags(); /** * optional string PlainText = 7; + * @return Whether the plainText field is set. */ boolean hasPlainText(); /** * optional string PlainText = 7; + * @return The plainText. */ java.lang.String getPlainText(); /** * optional string PlainText = 7; + * @return The bytes for plainText. */ com.google.protobuf.ByteString getPlainTextBytes(); /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow ConfirmationDocflow = 8; + * @return Whether the confirmationDocflow field is set. */ boolean hasConfirmationDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow ConfirmationDocflow = 8; + * @return The confirmationDocflow. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmationDocflow(); /** @@ -9310,149 +10110,30 @@ public static final class AmendmentRequestDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow) AmendmentRequestDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AmendmentRequestDocflow.class.getName()); + } // Use AmendmentRequestDocflow.newBuilder() to construct. private AmendmentRequestDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private AmendmentRequestDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AmendmentRequestDocflow defaultInstance; - public static AmendmentRequestDocflow getDefaultInstance() { - return defaultInstance; } - - public AmendmentRequestDocflow getDefaultInstanceForType() { - return defaultInstance; + private AmendmentRequestDocflow() { + plainText_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AmendmentRequestDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = amendmentRequest_.toBuilder(); - } - amendmentRequest_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(amendmentRequest_); - amendmentRequest_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = sentAt_.toBuilder(); - } - sentAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sentAt_); - sentAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = deliveredAt_.toBuilder(); - } - deliveredAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveredAt_); - deliveredAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = receipt_.toBuilder(); - } - receipt_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receipt_); - receipt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 48: { - bitField0_ |= 0x00000020; - amendmentFlags_ = input.readInt32(); - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - plainText_ = bs; - break; - } - case 66: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = confirmationDocflow_.toBuilder(); - } - confirmationDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationDocflow_); - confirmationDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - 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.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_AmendmentRequestDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_AmendmentRequestDocflow_fieldAccessorTable @@ -9460,33 +10141,22 @@ private AmendmentRequestDocflow( Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AmendmentRequestDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AmendmentRequestDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -9495,112 +10165,141 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 amendmentRequest_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 AmendmentRequest = 2; + * @return Whether the amendmentRequest field is set. */ + @java.lang.Override public boolean hasAmendmentRequest() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 AmendmentRequest = 2; + * @return The amendmentRequest. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getAmendmentRequest() { - return amendmentRequest_; + return amendmentRequest_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : amendmentRequest_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 AmendmentRequest = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder getAmendmentRequestOrBuilder() { - return amendmentRequest_; + return amendmentRequest_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : amendmentRequest_; } public static final int SENTAT_FIELD_NUMBER = 3; private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_; /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return Whether the sentAt field is set. */ + @java.lang.Override public boolean hasSentAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return The sentAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt() { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } public static final int DELIVEREDAT_FIELD_NUMBER = 4; private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return Whether the deliveredAt field is set. */ + @java.lang.Override public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return The deliveredAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuilder() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } public static final int RECEIPT_FIELD_NUMBER = 5; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 receipt_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 5; + * @return Whether the receipt field is set. */ + @java.lang.Override public boolean hasReceipt() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 5; + * @return The receipt. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getReceipt() { - return receipt_; + return receipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : receipt_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getReceiptOrBuilder() { - return receipt_; + return receipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : receipt_; } public static final int AMENDMENTFLAGS_FIELD_NUMBER = 6; - private int amendmentFlags_; + private int amendmentFlags_ = 0; /** * required int32 AmendmentFlags = 6; + * @return Whether the amendmentFlags field is set. */ + @java.lang.Override public boolean hasAmendmentFlags() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required int32 AmendmentFlags = 6; + * @return The amendmentFlags. */ + @java.lang.Override public int getAmendmentFlags() { return amendmentFlags_; } public static final int PLAINTEXT_FIELD_NUMBER = 7; - private java.lang.Object plainText_; + @SuppressWarnings("serial") + private volatile java.lang.Object plainText_ = ""; /** * optional string PlainText = 7; + * @return Whether the plainText field is set. */ + @java.lang.Override public boolean hasPlainText() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string PlainText = 7; + * @return The plainText. */ + @java.lang.Override public java.lang.String getPlainText() { java.lang.Object ref = plainText_; if (ref instanceof java.lang.String) { @@ -9617,7 +10316,9 @@ public java.lang.String getPlainText() { } /** * optional string PlainText = 7; + * @return The bytes for plainText. */ + @java.lang.Override public com.google.protobuf.ByteString getPlainTextBytes() { java.lang.Object ref = plainText_; @@ -9636,34 +10337,30 @@ public java.lang.String getPlainText() { private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmationDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow ConfirmationDocflow = 8; + * @return Whether the confirmationDocflow field is set. */ + @java.lang.Override public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow ConfirmationDocflow = 8; + * @return The confirmationDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmationDocflow() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow ConfirmationDocflow = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder getConfirmationDocflowOrBuilder() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } - private void initFields() { - isFinished_ = false; - amendmentRequest_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - receipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - amendmentFlags_ = 0; - plainText_ = ""; - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -9711,86 +10408,188 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, amendmentRequest_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAmendmentRequest()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, sentAt_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getSentAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, deliveredAt_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getDeliveredAt()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, receipt_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getReceipt()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(6, amendmentFlags_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getPlainTextBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, plainText_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, confirmationDocflow_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getConfirmationDocflow()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, amendmentRequest_); + .computeMessageSize(2, getAmendmentRequest()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, sentAt_); + .computeMessageSize(3, getSentAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, deliveredAt_); + .computeMessageSize(4, getDeliveredAt()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, receipt_); + .computeMessageSize(5, getReceipt()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, amendmentFlags_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getPlainTextBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, plainText_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, confirmationDocflow_); + .computeMessageSize(8, getConfirmationDocflow()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasAmendmentRequest() != other.hasAmendmentRequest()) return false; + if (hasAmendmentRequest()) { + if (!getAmendmentRequest() + .equals(other.getAmendmentRequest())) return false; + } + if (hasSentAt() != other.hasSentAt()) return false; + if (hasSentAt()) { + if (!getSentAt() + .equals(other.getSentAt())) return false; + } + if (hasDeliveredAt() != other.hasDeliveredAt()) return false; + if (hasDeliveredAt()) { + if (!getDeliveredAt() + .equals(other.getDeliveredAt())) return false; + } + if (hasReceipt() != other.hasReceipt()) return false; + if (hasReceipt()) { + if (!getReceipt() + .equals(other.getReceipt())) return false; + } + if (hasAmendmentFlags() != other.hasAmendmentFlags()) return false; + if (hasAmendmentFlags()) { + if (getAmendmentFlags() + != other.getAmendmentFlags()) return false; + } + if (hasPlainText() != other.hasPlainText()) return false; + if (hasPlainText()) { + if (!getPlainText() + .equals(other.getPlainText())) return false; + } + if (hasConfirmationDocflow() != other.hasConfirmationDocflow()) return false; + if (hasConfirmationDocflow()) { + if (!getConfirmationDocflow() + .equals(other.getConfirmationDocflow())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasAmendmentRequest()) { + hash = (37 * hash) + AMENDMENTREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getAmendmentRequest().hashCode(); + } + if (hasSentAt()) { + hash = (37 * hash) + SENTAT_FIELD_NUMBER; + hash = (53 * hash) + getSentAt().hashCode(); + } + if (hasDeliveredAt()) { + hash = (37 * hash) + DELIVEREDAT_FIELD_NUMBER; + hash = (53 * hash) + getDeliveredAt().hashCode(); + } + if (hasReceipt()) { + hash = (37 * hash) + RECEIPT_FIELD_NUMBER; + hash = (53 * hash) + getReceipt().hashCode(); + } + if (hasAmendmentFlags()) { + hash = (37 * hash) + AMENDMENTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getAmendmentFlags(); + } + if (hasPlainText()) { + hash = (37 * hash) + PLAINTEXT_FIELD_NUMBER; + hash = (53 * hash) + getPlainText().hashCode(); + } + if (hasConfirmationDocflow()) { + hash = (37 * hash) + CONFIRMATIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationDocflow().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9814,42 +10613,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow p } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -9869,6 +10683,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_AmendmentRequestDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_AmendmentRequestDocflow_fieldAccessorTable @@ -9887,7 +10702,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getAmendmentRequestFieldBuilder(); getSentAtFieldBuilder(); getDeliveredAtFieldBuilder(); @@ -9895,64 +10711,53 @@ private void maybeForceBuilderInitialization() { getConfirmationDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (amendmentRequestBuilder_ == null) { - amendmentRequest_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - } else { - amendmentRequestBuilder_.clear(); + amendmentRequest_ = null; + if (amendmentRequestBuilder_ != null) { + amendmentRequestBuilder_.dispose(); + amendmentRequestBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (sentAtBuilder_ == null) { - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - sentAtBuilder_.clear(); + sentAt_ = null; + if (sentAtBuilder_ != null) { + sentAtBuilder_.dispose(); + sentAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveredAtBuilder_.clear(); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (receiptBuilder_ == null) { - receipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - } else { - receiptBuilder_.clear(); + receipt_ = null; + if (receiptBuilder_ != null) { + receiptBuilder_.dispose(); + receiptBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); amendmentFlags_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); plainText_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - } else { - confirmationDocflowBuilder_.clear(); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_AmendmentRequestDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -9961,67 +10766,63 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.amendmentRequest_ = amendmentRequestBuilder_ == null + ? amendmentRequest_ + : amendmentRequestBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (amendmentRequestBuilder_ == null) { - result.amendmentRequest_ = amendmentRequest_; - } else { - result.amendmentRequest_ = amendmentRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sentAt_ = sentAtBuilder_ == null + ? sentAt_ + : sentAtBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (sentAtBuilder_ == null) { - result.sentAt_ = sentAt_; - } else { - result.sentAt_ = sentAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deliveredAt_ = deliveredAtBuilder_ == null + ? deliveredAt_ + : deliveredAtBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (deliveredAtBuilder_ == null) { - result.deliveredAt_ = deliveredAt_; - } else { - result.deliveredAt_ = deliveredAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.receipt_ = receiptBuilder_ == null + ? receipt_ + : receiptBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (receiptBuilder_ == null) { - result.receipt_ = receipt_; - } else { - result.receipt_ = receiptBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.amendmentFlags_ = amendmentFlags_; to_bitField0_ |= 0x00000020; } - result.amendmentFlags_ = amendmentFlags_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.plainText_ = plainText_; to_bitField0_ |= 0x00000040; } - result.plainText_ = plainText_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - if (confirmationDocflowBuilder_ == null) { - result.confirmationDocflow_ = confirmationDocflow_; - } else { - result.confirmationDocflow_ = confirmationDocflowBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.confirmationDocflow_ = confirmationDocflowBuilder_ == null + ? confirmationDocflow_ + : confirmationDocflowBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow)other); @@ -10052,74 +10853,133 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentReque setAmendmentFlags(other.getAmendmentFlags()); } if (other.hasPlainText()) { - bitField0_ |= 0x00000040; plainText_ = other.plainText_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasConfirmationDocflow()) { mergeConfirmationDocflow(other.getConfirmationDocflow()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsFinished()) { - return false; } if (!hasAmendmentFlags()) { - return false; } if (hasAmendmentRequest()) { if (!getAmendmentRequest().isInitialized()) { - return false; } } if (hasSentAt()) { if (!getSentAt().isInitialized()) { - return false; } } if (hasDeliveredAt()) { if (!getDeliveredAt().isInitialized()) { - return false; } } if (hasReceipt()) { if (!getReceipt().isInitialized()) { - return false; } } if (hasConfirmationDocflow()) { if (!getConfirmationDocflow().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getAmendmentRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSentAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDeliveredAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getReceiptFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + amendmentFlags_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + plainText_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getConfirmationDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -10127,27 +10987,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * required bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -10156,21 +11024,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 amendmentRequest_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 amendmentRequest_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder> amendmentRequestBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 AmendmentRequest = 2; + * @return Whether the amendmentRequest field is set. */ public boolean hasAmendmentRequest() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 AmendmentRequest = 2; + * @return The amendmentRequest. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getAmendmentRequest() { if (amendmentRequestBuilder_ == null) { - return amendmentRequest_; + return amendmentRequest_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : amendmentRequest_; } else { return amendmentRequestBuilder_.getMessage(); } @@ -10184,11 +11054,11 @@ public Builder setAmendmentRequest(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.S throw new NullPointerException(); } amendmentRequest_ = value; - onChanged(); } else { amendmentRequestBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -10198,11 +11068,11 @@ public Builder setAmendmentRequest( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder builderForValue) { if (amendmentRequestBuilder_ == null) { amendmentRequest_ = builderForValue.build(); - onChanged(); } else { amendmentRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -10210,31 +11080,33 @@ public Builder setAmendmentRequest( */ public Builder mergeAmendmentRequest(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 value) { if (amendmentRequestBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - amendmentRequest_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { - amendmentRequest_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.newBuilder(amendmentRequest_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + amendmentRequest_ != null && + amendmentRequest_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { + getAmendmentRequestBuilder().mergeFrom(value); } else { amendmentRequest_ = value; } - onChanged(); } else { amendmentRequestBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (amendmentRequest_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 AmendmentRequest = 2; */ public Builder clearAmendmentRequest() { - if (amendmentRequestBuilder_ == null) { - amendmentRequest_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - onChanged(); - } else { - amendmentRequestBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + amendmentRequest_ = null; + if (amendmentRequestBuilder_ != null) { + amendmentRequestBuilder_.dispose(); + amendmentRequestBuilder_ = null; + } + onChanged(); return this; } /** @@ -10252,7 +11124,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g if (amendmentRequestBuilder_ != null) { return amendmentRequestBuilder_.getMessageOrBuilder(); } else { - return amendmentRequest_; + return amendmentRequest_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : amendmentRequest_; } } /** @@ -10272,21 +11145,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g return amendmentRequestBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> sentAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return Whether the sentAt field is set. */ public boolean hasSentAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return The sentAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt() { if (sentAtBuilder_ == null) { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } else { return sentAtBuilder_.getMessage(); } @@ -10300,11 +11175,11 @@ public Builder setSentAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { throw new NullPointerException(); } sentAt_ = value; - onChanged(); } else { sentAtBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -10314,11 +11189,11 @@ public Builder setSentAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (sentAtBuilder_ == null) { sentAt_ = builderForValue.build(); - onChanged(); } else { sentAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -10326,31 +11201,33 @@ public Builder setSentAt( */ public Builder mergeSentAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (sentAtBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - sentAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - sentAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(sentAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + sentAt_ != null && + sentAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getSentAtBuilder().mergeFrom(value); } else { sentAt_ = value; } - onChanged(); } else { sentAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (sentAt_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; */ public Builder clearSentAt() { - if (sentAtBuilder_ == null) { - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - sentAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + sentAt_ = null; + if (sentAtBuilder_ != null) { + sentAtBuilder_.dispose(); + sentAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -10368,7 +11245,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() if (sentAtBuilder_ != null) { return sentAtBuilder_.getMessageOrBuilder(); } else { - return sentAt_; + return sentAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } } /** @@ -10388,21 +11266,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() return sentAtBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveredAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return Whether the deliveredAt field is set. */ public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return The deliveredAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { if (deliveredAtBuilder_ == null) { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } else { return deliveredAtBuilder_.getMessage(); } @@ -10416,11 +11296,11 @@ public Builder setDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) throw new NullPointerException(); } deliveredAt_ = value; - onChanged(); } else { deliveredAtBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10430,11 +11310,11 @@ public Builder setDeliveredAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveredAtBuilder_ == null) { deliveredAt_ = builderForValue.build(); - onChanged(); } else { deliveredAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10442,31 +11322,33 @@ public Builder setDeliveredAt( */ public Builder mergeDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveredAtBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveredAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveredAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + deliveredAt_ != null && + deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveredAtBuilder().mergeFrom(value); } else { deliveredAt_ = value; } - onChanged(); } else { deliveredAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (deliveredAt_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; */ public Builder clearDeliveredAt() { - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveredAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -10484,7 +11366,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild if (deliveredAtBuilder_ != null) { return deliveredAtBuilder_.getMessageOrBuilder(); } else { - return deliveredAt_; + return deliveredAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } } /** @@ -10504,21 +11387,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild return deliveredAtBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 receipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 receipt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder> receiptBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 5; + * @return Whether the receipt field is set. */ public boolean hasReceipt() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 5; + * @return The receipt. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getReceipt() { if (receiptBuilder_ == null) { - return receipt_; + return receipt_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : receipt_; } else { return receiptBuilder_.getMessage(); } @@ -10532,11 +11417,11 @@ public Builder setReceipt(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflo throw new NullPointerException(); } receipt_ = value; - onChanged(); } else { receiptBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -10546,11 +11431,11 @@ public Builder setReceipt( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder builderForValue) { if (receiptBuilder_ == null) { receipt_ = builderForValue.build(); - onChanged(); } else { receiptBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -10558,31 +11443,33 @@ public Builder setReceipt( */ public Builder mergeReceipt(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 value) { if (receiptBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - receipt_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance()) { - receipt_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.newBuilder(receipt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + receipt_ != null && + receipt_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance()) { + getReceiptBuilder().mergeFrom(value); } else { receipt_ = value; } - onChanged(); } else { receiptBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (receipt_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflowV3 Receipt = 5; */ public Builder clearReceipt() { - if (receiptBuilder_ == null) { - receipt_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); - onChanged(); - } else { - receiptBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + receipt_ = null; + if (receiptBuilder_ != null) { + receiptBuilder_.dispose(); + receiptBuilder_ = null; + } + onChanged(); return this; } /** @@ -10600,7 +11487,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getRec if (receiptBuilder_ != null) { return receiptBuilder_.getMessageOrBuilder(); } else { - return receipt_; + return receipt_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance() : receipt_; } } /** @@ -10623,27 +11511,35 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3OrBuilder getRec private int amendmentFlags_ ; /** * required int32 AmendmentFlags = 6; + * @return Whether the amendmentFlags field is set. */ + @java.lang.Override public boolean hasAmendmentFlags() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required int32 AmendmentFlags = 6; + * @return The amendmentFlags. */ + @java.lang.Override public int getAmendmentFlags() { return amendmentFlags_; } /** * required int32 AmendmentFlags = 6; + * @param value The amendmentFlags to set. + * @return This builder for chaining. */ public Builder setAmendmentFlags(int value) { - bitField0_ |= 0x00000020; + amendmentFlags_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * required int32 AmendmentFlags = 6; + * @return This builder for chaining. */ public Builder clearAmendmentFlags() { bitField0_ = (bitField0_ & ~0x00000020); @@ -10655,12 +11551,14 @@ public Builder clearAmendmentFlags() { private java.lang.Object plainText_ = ""; /** * optional string PlainText = 7; + * @return Whether the plainText field is set. */ public boolean hasPlainText() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string PlainText = 7; + * @return The plainText. */ public java.lang.String getPlainText() { java.lang.Object ref = plainText_; @@ -10678,6 +11576,7 @@ public java.lang.String getPlainText() { } /** * optional string PlainText = 7; + * @return The bytes for plainText. */ public com.google.protobuf.ByteString getPlainTextBytes() { @@ -10694,55 +11593,58 @@ public java.lang.String getPlainText() { } /** * optional string PlainText = 7; + * @param value The plainText to set. + * @return This builder for chaining. */ public Builder setPlainText( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } plainText_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional string PlainText = 7; + * @return This builder for chaining. */ public Builder clearPlainText() { - bitField0_ = (bitField0_ & ~0x00000040); plainText_ = getDefaultInstance().getPlainText(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * optional string PlainText = 7; + * @param value The bytes for plainText to set. + * @return This builder for chaining. */ public Builder setPlainTextBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } plainText_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmationDocflow_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmationDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder> confirmationDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow ConfirmationDocflow = 8; + * @return Whether the confirmationDocflow field is set. */ public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow ConfirmationDocflow = 8; + * @return The confirmationDocflow. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmationDocflow() { if (confirmationDocflowBuilder_ == null) { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } else { return confirmationDocflowBuilder_.getMessage(); } @@ -10756,11 +11658,11 @@ public Builder setConfirmationDocflow(Diadoc.Api.Proto.Docflow.DocflowV3Protos.C throw new NullPointerException(); } confirmationDocflow_ = value; - onChanged(); } else { confirmationDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -10770,11 +11672,11 @@ public Builder setConfirmationDocflow( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder builderForValue) { if (confirmationDocflowBuilder_ == null) { confirmationDocflow_ = builderForValue.build(); - onChanged(); } else { confirmationDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -10782,31 +11684,33 @@ public Builder setConfirmationDocflow( */ public Builder mergeConfirmationDocflow(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow value) { if (confirmationDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - confirmationDocflow_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance()) { - confirmationDocflow_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.newBuilder(confirmationDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + confirmationDocflow_ != null && + confirmationDocflow_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance()) { + getConfirmationDocflowBuilder().mergeFrom(value); } else { confirmationDocflow_ = value; } - onChanged(); } else { confirmationDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + if (confirmationDocflow_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow ConfirmationDocflow = 8; */ public Builder clearConfirmationDocflow() { - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - onChanged(); - } else { - confirmationDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000080); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -10824,7 +11728,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder get if (confirmationDocflowBuilder_ != null) { return confirmationDocflowBuilder_.getMessageOrBuilder(); } else { - return confirmationDocflow_; + return confirmationDocflow_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } } /** @@ -10847,12 +11752,52 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder get // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow DEFAULT_INSTANCE; static { - defaultInstance = new AmendmentRequestDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AmendmentRequestDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.AmendmentRequestDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.AmendmentRequestDocflow) } public interface RevocationDocflowV3OrBuilder extends @@ -10861,19 +11806,23 @@ public interface RevocationDocflowV3OrBuilder extends /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * required bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * required .Diadoc.Api.Proto.Docflow.RevocationRequestDocflow RevocationRequest = 2; + * @return Whether the revocationRequest field is set. */ boolean hasRevocationRequest(); /** * required .Diadoc.Api.Proto.Docflow.RevocationRequestDocflow RevocationRequest = 2; + * @return The revocationRequest. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow getRevocationRequest(); /** @@ -10883,10 +11832,12 @@ public interface RevocationDocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RevocationResponseDocflow RevocationResponse = 3; + * @return Whether the revocationResponse field is set. */ boolean hasRevocationResponse(); /** * optional .Diadoc.Api.Proto.Docflow.RevocationResponseDocflow RevocationResponse = 3; + * @return The revocationResponse. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow getRevocationResponse(); /** @@ -10896,33 +11847,40 @@ public interface RevocationDocflowV3OrBuilder extends /** * required string InitiatorBoxId = 4; + * @return Whether the initiatorBoxId field is set. */ boolean hasInitiatorBoxId(); /** * required string InitiatorBoxId = 4; + * @return The initiatorBoxId. */ java.lang.String getInitiatorBoxId(); /** * required string InitiatorBoxId = 4; + * @return The bytes for initiatorBoxId. */ com.google.protobuf.ByteString getInitiatorBoxIdBytes(); /** * required .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 5; + * @return Whether the revocationStatus field is set. */ boolean hasRevocationStatus(); /** * required .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 5; + * @return The revocationStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus getRevocationStatus(); /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 6; + * @return Whether the resolutionEntities field is set. */ boolean hasResolutionEntities(); /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 6; + * @return The resolutionEntities. */ Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 getResolutionEntities(); /** @@ -10961,140 +11919,32 @@ public static final class RevocationDocflowV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.RevocationDocflowV3) RevocationDocflowV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RevocationDocflowV3.class.getName()); + } // Use RevocationDocflowV3.newBuilder() to construct. private RevocationDocflowV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private RevocationDocflowV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RevocationDocflowV3 defaultInstance; - public static RevocationDocflowV3 getDefaultInstance() { - return defaultInstance; } - - public RevocationDocflowV3 getDefaultInstanceForType() { - return defaultInstance; + private RevocationDocflowV3() { + initiatorBoxId_ = ""; + revocationStatus_ = 0; + outerDocflowEntities_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RevocationDocflowV3( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = revocationRequest_.toBuilder(); - } - revocationRequest_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revocationRequest_); - revocationRequest_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = revocationResponse_.toBuilder(); - } - revocationResponse_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revocationResponse_); - revocationResponse_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - initiatorBoxId_ = bs; - break; - } - case 40: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - revocationStatus_ = value; - } - break; - } - case 50: { - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = resolutionEntities_.toBuilder(); - } - resolutionEntities_ = input.readMessage(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resolutionEntities_); - resolutionEntities_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - outerDocflowEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - outerDocflowEntities_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.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_ & 0x00000040) == 0x00000040)) { - outerDocflowEntities_ = java.util.Collections.unmodifiableList(outerDocflowEntities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflowV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflowV3_fieldAccessorTable @@ -11102,33 +11952,22 @@ private RevocationDocflowV3( Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RevocationDocflowV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevocationDocflowV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -11137,55 +11976,70 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow revocationRequest_; /** * required .Diadoc.Api.Proto.Docflow.RevocationRequestDocflow RevocationRequest = 2; + * @return Whether the revocationRequest field is set. */ + @java.lang.Override public boolean hasRevocationRequest() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Docflow.RevocationRequestDocflow RevocationRequest = 2; + * @return The revocationRequest. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow getRevocationRequest() { - return revocationRequest_; + return revocationRequest_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance() : revocationRequest_; } /** * required .Diadoc.Api.Proto.Docflow.RevocationRequestDocflow RevocationRequest = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflowOrBuilder getRevocationRequestOrBuilder() { - return revocationRequest_; + return revocationRequest_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance() : revocationRequest_; } public static final int REVOCATIONRESPONSE_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow revocationResponse_; /** * optional .Diadoc.Api.Proto.Docflow.RevocationResponseDocflow RevocationResponse = 3; + * @return Whether the revocationResponse field is set. */ + @java.lang.Override public boolean hasRevocationResponse() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RevocationResponseDocflow RevocationResponse = 3; + * @return The revocationResponse. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow getRevocationResponse() { - return revocationResponse_; + return revocationResponse_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance() : revocationResponse_; } /** * optional .Diadoc.Api.Proto.Docflow.RevocationResponseDocflow RevocationResponse = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflowOrBuilder getRevocationResponseOrBuilder() { - return revocationResponse_; + return revocationResponse_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance() : revocationResponse_; } public static final int INITIATORBOXID_FIELD_NUMBER = 4; - private java.lang.Object initiatorBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object initiatorBoxId_ = ""; /** * required string InitiatorBoxId = 4; + * @return Whether the initiatorBoxId field is set. */ + @java.lang.Override public boolean hasInitiatorBoxId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string InitiatorBoxId = 4; + * @return The initiatorBoxId. */ + @java.lang.Override public java.lang.String getInitiatorBoxId() { java.lang.Object ref = initiatorBoxId_; if (ref instanceof java.lang.String) { @@ -11202,7 +12056,9 @@ public java.lang.String getInitiatorBoxId() { } /** * required string InitiatorBoxId = 4; + * @return The bytes for initiatorBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getInitiatorBoxIdBytes() { java.lang.Object ref = initiatorBoxId_; @@ -11218,52 +12074,63 @@ public java.lang.String getInitiatorBoxId() { } public static final int REVOCATIONSTATUS_FIELD_NUMBER = 5; - private Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus revocationStatus_; + private int revocationStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 5; + * @return Whether the revocationStatus field is set. */ - public boolean hasRevocationStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasRevocationStatus() { + return ((bitField0_ & 0x00000010) != 0); } /** * required .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 5; + * @return The revocationStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus getRevocationStatus() { - return revocationStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus getRevocationStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.forNumber(revocationStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus : result; } public static final int RESOLUTIONENTITIES_FIELD_NUMBER = 6; private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 resolutionEntities_; /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 6; + * @return Whether the resolutionEntities field is set. */ + @java.lang.Override public boolean hasResolutionEntities() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 6; + * @return The resolutionEntities. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 getResolutionEntities() { - return resolutionEntities_; + return resolutionEntities_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance() : resolutionEntities_; } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 6; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3OrBuilder getResolutionEntitiesOrBuilder() { - return resolutionEntities_; + return resolutionEntities_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance() : resolutionEntities_; } public static final int OUTERDOCFLOWENTITIES_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private java.util.List outerDocflowEntities_; /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflowEntities OuterDocflowEntities = 7; */ + @java.lang.Override public java.util.List getOuterDocflowEntitiesList() { return outerDocflowEntities_; } /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflowEntities OuterDocflowEntities = 7; */ + @java.lang.Override public java.util.List getOuterDocflowEntitiesOrBuilderList() { return outerDocflowEntities_; @@ -11271,33 +12138,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.OuterDocflowEntities OuterDocflowEntities = 7; */ + @java.lang.Override public int getOuterDocflowEntitiesCount() { return outerDocflowEntities_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflowEntities OuterDocflowEntities = 7; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities getOuterDocflowEntities(int index) { return outerDocflowEntities_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.OuterDocflowEntities OuterDocflowEntities = 7; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntitiesOrBuilder getOuterDocflowEntitiesOrBuilder( int index) { return outerDocflowEntities_.get(index); } - private void initFields() { - isFinished_ = false; - revocationRequest_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance(); - revocationResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance(); - initiatorBoxId_ = ""; - revocationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus; - resolutionEntities_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance(); - outerDocflowEntities_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -11345,26 +12207,26 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, revocationRequest_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRevocationRequest()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, revocationResponse_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getRevocationResponse()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getInitiatorBoxIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, initiatorBoxId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, revocationStatus_.getNumber()); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, revocationStatus_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, resolutionEntities_); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getResolutionEntities()); } for (int i = 0; i < outerDocflowEntities_.size(); i++) { output.writeMessage(7, outerDocflowEntities_.get(i)); @@ -11372,52 +12234,141 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, revocationRequest_); + .computeMessageSize(2, getRevocationRequest()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, revocationResponse_); + .computeMessageSize(3, getRevocationResponse()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getInitiatorBoxIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, initiatorBoxId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, revocationStatus_.getNumber()); + .computeEnumSize(5, revocationStatus_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, resolutionEntities_); + .computeMessageSize(6, getResolutionEntities()); } for (int i = 0; i < outerDocflowEntities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, outerDocflowEntities_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasRevocationRequest() != other.hasRevocationRequest()) return false; + if (hasRevocationRequest()) { + if (!getRevocationRequest() + .equals(other.getRevocationRequest())) return false; + } + if (hasRevocationResponse() != other.hasRevocationResponse()) return false; + if (hasRevocationResponse()) { + if (!getRevocationResponse() + .equals(other.getRevocationResponse())) return false; + } + if (hasInitiatorBoxId() != other.hasInitiatorBoxId()) return false; + if (hasInitiatorBoxId()) { + if (!getInitiatorBoxId() + .equals(other.getInitiatorBoxId())) return false; + } + if (hasRevocationStatus() != other.hasRevocationStatus()) return false; + if (hasRevocationStatus()) { + if (revocationStatus_ != other.revocationStatus_) return false; + } + if (hasResolutionEntities() != other.hasResolutionEntities()) return false; + if (hasResolutionEntities()) { + if (!getResolutionEntities() + .equals(other.getResolutionEntities())) return false; + } + if (!getOuterDocflowEntitiesList() + .equals(other.getOuterDocflowEntitiesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasRevocationRequest()) { + hash = (37 * hash) + REVOCATIONREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRevocationRequest().hashCode(); + } + if (hasRevocationResponse()) { + hash = (37 * hash) + REVOCATIONRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getRevocationResponse().hashCode(); + } + if (hasInitiatorBoxId()) { + hash = (37 * hash) + INITIATORBOXID_FIELD_NUMBER; + hash = (53 * hash) + getInitiatorBoxId().hashCode(); + } + if (hasRevocationStatus()) { + hash = (37 * hash) + REVOCATIONSTATUS_FIELD_NUMBER; + hash = (53 * hash) + revocationStatus_; + } + if (hasResolutionEntities()) { + hash = (37 * hash) + RESOLUTIONENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getResolutionEntities().hashCode(); + } + if (getOuterDocflowEntitiesCount() > 0) { + hash = (37 * hash) + OUTERDOCFLOWENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getOuterDocflowEntitiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -11441,42 +12392,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parse } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -11496,6 +12462,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflowV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflowV3_fieldAccessorTable @@ -11514,65 +12481,58 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getRevocationRequestFieldBuilder(); getRevocationResponseFieldBuilder(); getResolutionEntitiesFieldBuilder(); getOuterDocflowEntitiesFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (revocationRequestBuilder_ == null) { - revocationRequest_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance(); - } else { - revocationRequestBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (revocationResponseBuilder_ == null) { - revocationResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance(); - } else { - revocationResponseBuilder_.clear(); + revocationRequest_ = null; + if (revocationRequestBuilder_ != null) { + revocationRequestBuilder_.dispose(); + revocationRequestBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - initiatorBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - revocationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus; - bitField0_ = (bitField0_ & ~0x00000010); - if (resolutionEntitiesBuilder_ == null) { - resolutionEntities_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance(); - } else { - resolutionEntitiesBuilder_.clear(); + revocationResponse_ = null; + if (revocationResponseBuilder_ != null) { + revocationResponseBuilder_.dispose(); + revocationResponseBuilder_ = null; + } + initiatorBoxId_ = ""; + revocationStatus_ = 0; + resolutionEntities_ = null; + if (resolutionEntitiesBuilder_ != null) { + resolutionEntitiesBuilder_.dispose(); + resolutionEntitiesBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); if (outerDocflowEntitiesBuilder_ == null) { outerDocflowEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); } else { + outerDocflowEntities_ = null; outerDocflowEntitiesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000040); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflowV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 result = buildPartial(); if (!result.isInitialized()) { @@ -11581,60 +12541,64 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 result) { + if (outerDocflowEntitiesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + outerDocflowEntities_ = java.util.Collections.unmodifiableList(outerDocflowEntities_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.outerDocflowEntities_ = outerDocflowEntities_; + } else { + result.outerDocflowEntities_ = outerDocflowEntitiesBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revocationRequest_ = revocationRequestBuilder_ == null + ? revocationRequest_ + : revocationRequestBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (revocationRequestBuilder_ == null) { - result.revocationRequest_ = revocationRequest_; - } else { - result.revocationRequest_ = revocationRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.revocationResponse_ = revocationResponseBuilder_ == null + ? revocationResponse_ + : revocationResponseBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (revocationResponseBuilder_ == null) { - result.revocationResponse_ = revocationResponse_; - } else { - result.revocationResponse_ = revocationResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.initiatorBoxId_ = initiatorBoxId_; to_bitField0_ |= 0x00000008; } - result.initiatorBoxId_ = initiatorBoxId_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.revocationStatus_ = revocationStatus_; to_bitField0_ |= 0x00000010; } - result.revocationStatus_ = revocationStatus_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resolutionEntities_ = resolutionEntitiesBuilder_ == null + ? resolutionEntities_ + : resolutionEntitiesBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (resolutionEntitiesBuilder_ == null) { - result.resolutionEntities_ = resolutionEntities_; - } else { - result.resolutionEntities_ = resolutionEntitiesBuilder_.build(); - } - if (outerDocflowEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { - outerDocflowEntities_ = java.util.Collections.unmodifiableList(outerDocflowEntities_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.outerDocflowEntities_ = outerDocflowEntities_; - } else { - result.outerDocflowEntities_ = outerDocflowEntitiesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3)other); @@ -11656,8 +12620,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocf mergeRevocationResponse(other.getRevocationResponse()); } if (other.hasInitiatorBoxId()) { - bitField0_ |= 0x00000008; initiatorBoxId_ = other.initiatorBoxId_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasRevocationStatus()) { @@ -11693,66 +12657,130 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocf } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsFinished()) { - return false; } if (!hasRevocationRequest()) { - return false; } if (!hasInitiatorBoxId()) { - return false; } if (!hasRevocationStatus()) { - return false; } if (!getRevocationRequest().isInitialized()) { - return false; } if (hasRevocationResponse()) { if (!getRevocationResponse().isInitialized()) { - return false; } } if (hasResolutionEntities()) { if (!getResolutionEntities().isInitialized()) { - return false; } } for (int i = 0; i < getOuterDocflowEntitiesCount(); i++) { if (!getOuterDocflowEntities(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getRevocationRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRevocationResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + initiatorBoxId_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + revocationStatus_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + case 50: { + input.readMessage( + getResolutionEntitiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.parser(), + extensionRegistry); + if (outerDocflowEntitiesBuilder_ == null) { + ensureOuterDocflowEntitiesIsMutable(); + outerDocflowEntities_.add(m); + } else { + outerDocflowEntitiesBuilder_.addMessage(m); + } + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -11760,27 +12788,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * required bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -11789,21 +12825,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow revocationRequest_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow revocationRequest_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflowOrBuilder> revocationRequestBuilder_; /** * required .Diadoc.Api.Proto.Docflow.RevocationRequestDocflow RevocationRequest = 2; + * @return Whether the revocationRequest field is set. */ public boolean hasRevocationRequest() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Docflow.RevocationRequestDocflow RevocationRequest = 2; + * @return The revocationRequest. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow getRevocationRequest() { if (revocationRequestBuilder_ == null) { - return revocationRequest_; + return revocationRequest_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance() : revocationRequest_; } else { return revocationRequestBuilder_.getMessage(); } @@ -11817,11 +12855,11 @@ public Builder setRevocationRequest(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Rev throw new NullPointerException(); } revocationRequest_ = value; - onChanged(); } else { revocationRequestBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -11831,11 +12869,11 @@ public Builder setRevocationRequest( Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.Builder builderForValue) { if (revocationRequestBuilder_ == null) { revocationRequest_ = builderForValue.build(); - onChanged(); } else { revocationRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -11843,31 +12881,33 @@ public Builder setRevocationRequest( */ public Builder mergeRevocationRequest(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow value) { if (revocationRequestBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - revocationRequest_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance()) { - revocationRequest_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.newBuilder(revocationRequest_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + revocationRequest_ != null && + revocationRequest_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance()) { + getRevocationRequestBuilder().mergeFrom(value); } else { revocationRequest_ = value; } - onChanged(); } else { revocationRequestBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (revocationRequest_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.RevocationRequestDocflow RevocationRequest = 2; */ public Builder clearRevocationRequest() { - if (revocationRequestBuilder_ == null) { - revocationRequest_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance(); - onChanged(); - } else { - revocationRequestBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + revocationRequest_ = null; + if (revocationRequestBuilder_ != null) { + revocationRequestBuilder_.dispose(); + revocationRequestBuilder_ = null; + } + onChanged(); return this; } /** @@ -11885,7 +12925,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflowOrBuilde if (revocationRequestBuilder_ != null) { return revocationRequestBuilder_.getMessageOrBuilder(); } else { - return revocationRequest_; + return revocationRequest_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance() : revocationRequest_; } } /** @@ -11905,21 +12946,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflowOrBuilde return revocationRequestBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow revocationResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow revocationResponse_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflowOrBuilder> revocationResponseBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RevocationResponseDocflow RevocationResponse = 3; + * @return Whether the revocationResponse field is set. */ public boolean hasRevocationResponse() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RevocationResponseDocflow RevocationResponse = 3; + * @return The revocationResponse. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow getRevocationResponse() { if (revocationResponseBuilder_ == null) { - return revocationResponse_; + return revocationResponse_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance() : revocationResponse_; } else { return revocationResponseBuilder_.getMessage(); } @@ -11933,11 +12976,11 @@ public Builder setRevocationResponse(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Re throw new NullPointerException(); } revocationResponse_ = value; - onChanged(); } else { revocationResponseBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -11947,11 +12990,11 @@ public Builder setRevocationResponse( Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.Builder builderForValue) { if (revocationResponseBuilder_ == null) { revocationResponse_ = builderForValue.build(); - onChanged(); } else { revocationResponseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -11959,31 +13002,33 @@ public Builder setRevocationResponse( */ public Builder mergeRevocationResponse(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow value) { if (revocationResponseBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - revocationResponse_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance()) { - revocationResponse_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.newBuilder(revocationResponse_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + revocationResponse_ != null && + revocationResponse_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance()) { + getRevocationResponseBuilder().mergeFrom(value); } else { revocationResponse_ = value; } - onChanged(); } else { revocationResponseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (revocationResponse_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RevocationResponseDocflow RevocationResponse = 3; */ public Builder clearRevocationResponse() { - if (revocationResponseBuilder_ == null) { - revocationResponse_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance(); - onChanged(); - } else { - revocationResponseBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + revocationResponse_ = null; + if (revocationResponseBuilder_ != null) { + revocationResponseBuilder_.dispose(); + revocationResponseBuilder_ = null; + } + onChanged(); return this; } /** @@ -12001,7 +13046,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflowOrBuild if (revocationResponseBuilder_ != null) { return revocationResponseBuilder_.getMessageOrBuilder(); } else { - return revocationResponse_; + return revocationResponse_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance() : revocationResponse_; } } /** @@ -12024,12 +13070,14 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflowOrBuild private java.lang.Object initiatorBoxId_ = ""; /** * required string InitiatorBoxId = 4; + * @return Whether the initiatorBoxId field is set. */ public boolean hasInitiatorBoxId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string InitiatorBoxId = 4; + * @return The initiatorBoxId. */ public java.lang.String getInitiatorBoxId() { java.lang.Object ref = initiatorBoxId_; @@ -12047,6 +13095,7 @@ public java.lang.String getInitiatorBoxId() { } /** * required string InitiatorBoxId = 4; + * @return The bytes for initiatorBoxId. */ public com.google.protobuf.ByteString getInitiatorBoxIdBytes() { @@ -12063,90 +13112,100 @@ public java.lang.String getInitiatorBoxId() { } /** * required string InitiatorBoxId = 4; + * @param value The initiatorBoxId to set. + * @return This builder for chaining. */ public Builder setInitiatorBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } initiatorBoxId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required string InitiatorBoxId = 4; + * @return This builder for chaining. */ public Builder clearInitiatorBoxId() { - bitField0_ = (bitField0_ & ~0x00000008); initiatorBoxId_ = getDefaultInstance().getInitiatorBoxId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * required string InitiatorBoxId = 4; + * @param value The bytes for initiatorBoxId to set. + * @return This builder for chaining. */ public Builder setInitiatorBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } initiatorBoxId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus revocationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus; + private int revocationStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 5; + * @return Whether the revocationStatus field is set. */ - public boolean hasRevocationStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasRevocationStatus() { + return ((bitField0_ & 0x00000010) != 0); } /** * required .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 5; + * @return The revocationStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus getRevocationStatus() { - return revocationStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.forNumber(revocationStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus : result; } /** * required .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 5; + * @param value The revocationStatus to set. + * @return This builder for chaining. */ public Builder setRevocationStatus(Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; - revocationStatus_ = value; + revocationStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 5; + * @return This builder for chaining. */ public Builder clearRevocationStatus() { bitField0_ = (bitField0_ & ~0x00000010); - revocationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus; + revocationStatus_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 resolutionEntities_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 resolutionEntities_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.Builder, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3OrBuilder> resolutionEntitiesBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 6; + * @return Whether the resolutionEntities field is set. */ public boolean hasResolutionEntities() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 6; + * @return The resolutionEntities. */ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 getResolutionEntities() { if (resolutionEntitiesBuilder_ == null) { - return resolutionEntities_; + return resolutionEntities_ == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance() : resolutionEntities_; } else { return resolutionEntitiesBuilder_.getMessage(); } @@ -12160,11 +13219,11 @@ public Builder setResolutionEntities(Diadoc.Api.Proto.Docflow.ResolutionDocflowV throw new NullPointerException(); } resolutionEntities_ = value; - onChanged(); } else { resolutionEntitiesBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -12174,11 +13233,11 @@ public Builder setResolutionEntities( Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.Builder builderForValue) { if (resolutionEntitiesBuilder_ == null) { resolutionEntities_ = builderForValue.build(); - onChanged(); } else { resolutionEntitiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -12186,31 +13245,33 @@ public Builder setResolutionEntities( */ public Builder mergeResolutionEntities(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 value) { if (resolutionEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - resolutionEntities_ != Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance()) { - resolutionEntities_ = - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.newBuilder(resolutionEntities_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + resolutionEntities_ != null && + resolutionEntities_ != Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance()) { + getResolutionEntitiesBuilder().mergeFrom(value); } else { resolutionEntities_ = value; } - onChanged(); } else { resolutionEntitiesBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (resolutionEntities_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3 ResolutionEntities = 6; */ public Builder clearResolutionEntities() { - if (resolutionEntitiesBuilder_ == null) { - resolutionEntities_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance(); - onChanged(); - } else { - resolutionEntitiesBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + resolutionEntities_ = null; + if (resolutionEntitiesBuilder_ != null) { + resolutionEntitiesBuilder_.dispose(); + resolutionEntitiesBuilder_ = null; + } + onChanged(); return this; } /** @@ -12228,7 +13289,8 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3Or if (resolutionEntitiesBuilder_ != null) { return resolutionEntitiesBuilder_.getMessageOrBuilder(); } else { - return resolutionEntities_; + return resolutionEntities_ == null ? + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance() : resolutionEntities_; } } /** @@ -12251,7 +13313,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3Or private java.util.List outerDocflowEntities_ = java.util.Collections.emptyList(); private void ensureOuterDocflowEntitiesIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { + if (!((bitField0_ & 0x00000040) != 0)) { outerDocflowEntities_ = new java.util.ArrayList(outerDocflowEntities_); bitField0_ |= 0x00000040; } @@ -12480,7 +13542,7 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.Builder add outerDocflowEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntitiesOrBuilder>( outerDocflowEntities_, - ((bitField0_ & 0x00000040) == 0x00000040), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); outerDocflowEntities_ = null; @@ -12491,12 +13553,52 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.Builder add // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.RevocationDocflowV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RevocationDocflowV3) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 DEFAULT_INSTANCE; static { - defaultInstance = new RevocationDocflowV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevocationDocflowV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationDocflowV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RevocationDocflowV3) } public interface RevocationRequestDocflowOrBuilder extends @@ -12505,10 +13607,12 @@ public interface RevocationRequestDocflowOrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 RevocationRequest = 1; + * @return Whether the revocationRequest field is set. */ boolean hasRevocationRequest(); /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 RevocationRequest = 1; + * @return The revocationRequest. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getRevocationRequest(); /** @@ -12518,10 +13622,12 @@ public interface RevocationRequestDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 2; + * @return Whether the sentAt field is set. */ boolean hasSentAt(); /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 2; + * @return The sentAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt(); /** @@ -12531,10 +13637,12 @@ public interface RevocationRequestDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return Whether the deliveredAt field is set. */ boolean hasDeliveredAt(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return The deliveredAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt(); /** @@ -12544,10 +13652,12 @@ public interface RevocationRequestDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 4; + * @return Whether the roamingNotification field is set. */ boolean hasRoamingNotification(); /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 4; + * @return The roamingNotification. */ Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getRoamingNotification(); /** @@ -12557,14 +13667,17 @@ public interface RevocationRequestDocflowOrBuilder extends /** * optional string PlainText = 5; + * @return Whether the plainText field is set. */ boolean hasPlainText(); /** * optional string PlainText = 5; + * @return The plainText. */ java.lang.String getPlainText(); /** * optional string PlainText = 5; + * @return The bytes for plainText. */ com.google.protobuf.ByteString getPlainTextBytes(); @@ -12576,126 +13689,30 @@ public static final class RevocationRequestDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.RevocationRequestDocflow) RevocationRequestDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RevocationRequestDocflow.class.getName()); + } // Use RevocationRequestDocflow.newBuilder() to construct. private RevocationRequestDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private RevocationRequestDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RevocationRequestDocflow defaultInstance; - public static RevocationRequestDocflow getDefaultInstance() { - return defaultInstance; - } - - public RevocationRequestDocflow getDefaultInstanceForType() { - return defaultInstance; + private RevocationRequestDocflow() { + plainText_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RevocationRequestDocflow( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = revocationRequest_.toBuilder(); - } - revocationRequest_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revocationRequest_); - revocationRequest_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = sentAt_.toBuilder(); - } - sentAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sentAt_); - sentAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = deliveredAt_.toBuilder(); - } - deliveredAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveredAt_); - deliveredAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = roamingNotification_.toBuilder(); - } - roamingNotification_ = input.readMessage(Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(roamingNotification_); - roamingNotification_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - plainText_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationRequestDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationRequestDocflow_fieldAccessorTable @@ -12703,117 +13720,127 @@ private RevocationRequestDocflow( Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RevocationRequestDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevocationRequestDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int REVOCATIONREQUEST_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 revocationRequest_; /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 RevocationRequest = 1; + * @return Whether the revocationRequest field is set. */ + @java.lang.Override public boolean hasRevocationRequest() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 RevocationRequest = 1; + * @return The revocationRequest. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getRevocationRequest() { - return revocationRequest_; + return revocationRequest_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : revocationRequest_; } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 RevocationRequest = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder getRevocationRequestOrBuilder() { - return revocationRequest_; + return revocationRequest_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : revocationRequest_; } public static final int SENTAT_FIELD_NUMBER = 2; private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_; /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 2; + * @return Whether the sentAt field is set. */ + @java.lang.Override public boolean hasSentAt() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 2; + * @return The sentAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt() { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 2; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } public static final int DELIVEREDAT_FIELD_NUMBER = 3; private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return Whether the deliveredAt field is set. */ + @java.lang.Override public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return The deliveredAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuilder() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } public static final int ROAMINGNOTIFICATION_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification roamingNotification_; /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 4; + * @return Whether the roamingNotification field is set. */ + @java.lang.Override public boolean hasRoamingNotification() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 4; + * @return The roamingNotification. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getRoamingNotification() { - return roamingNotification_; + return roamingNotification_ == null ? Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrBuilder getRoamingNotificationOrBuilder() { - return roamingNotification_; + return roamingNotification_ == null ? Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } public static final int PLAINTEXT_FIELD_NUMBER = 5; - private java.lang.Object plainText_; + @SuppressWarnings("serial") + private volatile java.lang.Object plainText_ = ""; /** * optional string PlainText = 5; + * @return Whether the plainText field is set. */ + @java.lang.Override public boolean hasPlainText() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string PlainText = 5; + * @return The plainText. */ + @java.lang.Override public java.lang.String getPlainText() { java.lang.Object ref = plainText_; if (ref instanceof java.lang.String) { @@ -12830,7 +13857,9 @@ public java.lang.String getPlainText() { } /** * optional string PlainText = 5; + * @return The bytes for plainText. */ + @java.lang.Override public com.google.protobuf.ByteString getPlainTextBytes() { java.lang.Object ref = plainText_; @@ -12845,14 +13874,8 @@ public java.lang.String getPlainText() { } } - private void initFields() { - revocationRequest_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); - plainText_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -12888,65 +13911,139 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, revocationRequest_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRevocationRequest()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, sentAt_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSentAt()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, deliveredAt_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDeliveredAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, roamingNotification_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getRoamingNotification()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getPlainTextBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, plainText_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, revocationRequest_); + .computeMessageSize(1, getRevocationRequest()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, sentAt_); + .computeMessageSize(2, getSentAt()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, deliveredAt_); + .computeMessageSize(3, getDeliveredAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, roamingNotification_); + .computeMessageSize(4, getRoamingNotification()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getPlainTextBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, plainText_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow) obj; + + if (hasRevocationRequest() != other.hasRevocationRequest()) return false; + if (hasRevocationRequest()) { + if (!getRevocationRequest() + .equals(other.getRevocationRequest())) return false; + } + if (hasSentAt() != other.hasSentAt()) return false; + if (hasSentAt()) { + if (!getSentAt() + .equals(other.getSentAt())) return false; + } + if (hasDeliveredAt() != other.hasDeliveredAt()) return false; + if (hasDeliveredAt()) { + if (!getDeliveredAt() + .equals(other.getDeliveredAt())) return false; + } + if (hasRoamingNotification() != other.hasRoamingNotification()) return false; + if (hasRoamingNotification()) { + if (!getRoamingNotification() + .equals(other.getRoamingNotification())) return false; + } + if (hasPlainText() != other.hasPlainText()) return false; + if (hasPlainText()) { + if (!getPlainText() + .equals(other.getPlainText())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRevocationRequest()) { + hash = (37 * hash) + REVOCATIONREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRevocationRequest().hashCode(); + } + if (hasSentAt()) { + hash = (37 * hash) + SENTAT_FIELD_NUMBER; + hash = (53 * hash) + getSentAt().hashCode(); + } + if (hasDeliveredAt()) { + hash = (37 * hash) + DELIVEREDAT_FIELD_NUMBER; + hash = (53 * hash) + getDeliveredAt().hashCode(); + } + if (hasRoamingNotification()) { + hash = (37 * hash) + ROAMINGNOTIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getRoamingNotification().hashCode(); + } + if (hasPlainText()) { + hash = (37 * hash) + PLAINTEXT_FIELD_NUMBER; + hash = (53 * hash) + getPlainText().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -12970,42 +14067,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -13025,6 +14137,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationRequestDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationRequestDocflow_fieldAccessorTable @@ -13043,61 +14156,54 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getRevocationRequestFieldBuilder(); getSentAtFieldBuilder(); getDeliveredAtFieldBuilder(); getRoamingNotificationFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (revocationRequestBuilder_ == null) { - revocationRequest_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - } else { - revocationRequestBuilder_.clear(); + bitField0_ = 0; + revocationRequest_ = null; + if (revocationRequestBuilder_ != null) { + revocationRequestBuilder_.dispose(); + revocationRequestBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (sentAtBuilder_ == null) { - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - sentAtBuilder_.clear(); + sentAt_ = null; + if (sentAtBuilder_ != null) { + sentAtBuilder_.dispose(); + sentAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveredAtBuilder_.clear(); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (roamingNotificationBuilder_ == null) { - roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); - } else { - roamingNotificationBuilder_.clear(); + roamingNotification_ = null; + if (roamingNotificationBuilder_ != null) { + roamingNotificationBuilder_.dispose(); + roamingNotificationBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); plainText_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationRequestDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -13106,51 +14212,49 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow build() return result; } - public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow buildPartial() { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow(this); + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow buildPartial() { + Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.revocationRequest_ = revocationRequestBuilder_ == null + ? revocationRequest_ + : revocationRequestBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (revocationRequestBuilder_ == null) { - result.revocationRequest_ = revocationRequest_; - } else { - result.revocationRequest_ = revocationRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sentAt_ = sentAtBuilder_ == null + ? sentAt_ + : sentAtBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (sentAtBuilder_ == null) { - result.sentAt_ = sentAt_; - } else { - result.sentAt_ = sentAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deliveredAt_ = deliveredAtBuilder_ == null + ? deliveredAt_ + : deliveredAtBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (deliveredAtBuilder_ == null) { - result.deliveredAt_ = deliveredAt_; - } else { - result.deliveredAt_ = deliveredAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.roamingNotification_ = roamingNotificationBuilder_ == null + ? roamingNotification_ + : roamingNotificationBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (roamingNotificationBuilder_ == null) { - result.roamingNotification_ = roamingNotification_; - } else { - result.roamingNotification_ = roamingNotificationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.plainText_ = plainText_; to_bitField0_ |= 0x00000010; } - result.plainText_ = plainText_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow)other); @@ -13175,78 +14279,124 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequ mergeRoamingNotification(other.getRoamingNotification()); } if (other.hasPlainText()) { - bitField0_ |= 0x00000010; plainText_ = other.plainText_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasRevocationRequest()) { - return false; } if (!getRevocationRequest().isInitialized()) { - return false; } if (hasSentAt()) { if (!getSentAt().isInitialized()) { - return false; } } if (hasDeliveredAt()) { if (!getDeliveredAt().isInitialized()) { - return false; } } if (hasRoamingNotification()) { if (!getRoamingNotification().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getRevocationRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSentAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDeliveredAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getRoamingNotificationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + plainText_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 revocationRequest_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 revocationRequest_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder> revocationRequestBuilder_; /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 RevocationRequest = 1; + * @return Whether the revocationRequest field is set. */ public boolean hasRevocationRequest() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 RevocationRequest = 1; + * @return The revocationRequest. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getRevocationRequest() { if (revocationRequestBuilder_ == null) { - return revocationRequest_; + return revocationRequest_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : revocationRequest_; } else { return revocationRequestBuilder_.getMessage(); } @@ -13260,11 +14410,11 @@ public Builder setRevocationRequest(Diadoc.Api.Proto.Docflow.AttachmentV3Protos. throw new NullPointerException(); } revocationRequest_ = value; - onChanged(); } else { revocationRequestBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -13274,11 +14424,11 @@ public Builder setRevocationRequest( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder builderForValue) { if (revocationRequestBuilder_ == null) { revocationRequest_ = builderForValue.build(); - onChanged(); } else { revocationRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -13286,31 +14436,33 @@ public Builder setRevocationRequest( */ public Builder mergeRevocationRequest(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 value) { if (revocationRequestBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - revocationRequest_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { - revocationRequest_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.newBuilder(revocationRequest_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + revocationRequest_ != null && + revocationRequest_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { + getRevocationRequestBuilder().mergeFrom(value); } else { revocationRequest_ = value; } - onChanged(); } else { revocationRequestBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (revocationRequest_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 RevocationRequest = 1; */ public Builder clearRevocationRequest() { - if (revocationRequestBuilder_ == null) { - revocationRequest_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - onChanged(); - } else { - revocationRequestBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + revocationRequest_ = null; + if (revocationRequestBuilder_ != null) { + revocationRequestBuilder_.dispose(); + revocationRequestBuilder_ = null; + } + onChanged(); return this; } /** @@ -13328,7 +14480,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g if (revocationRequestBuilder_ != null) { return revocationRequestBuilder_.getMessageOrBuilder(); } else { - return revocationRequest_; + return revocationRequest_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : revocationRequest_; } } /** @@ -13348,21 +14501,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g return revocationRequestBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> sentAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 2; + * @return Whether the sentAt field is set. */ public boolean hasSentAt() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 2; + * @return The sentAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt() { if (sentAtBuilder_ == null) { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } else { return sentAtBuilder_.getMessage(); } @@ -13376,11 +14531,11 @@ public Builder setSentAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { throw new NullPointerException(); } sentAt_ = value; - onChanged(); } else { sentAtBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -13390,11 +14545,11 @@ public Builder setSentAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (sentAtBuilder_ == null) { sentAt_ = builderForValue.build(); - onChanged(); } else { sentAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -13402,31 +14557,33 @@ public Builder setSentAt( */ public Builder mergeSentAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (sentAtBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - sentAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - sentAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(sentAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + sentAt_ != null && + sentAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getSentAtBuilder().mergeFrom(value); } else { sentAt_ = value; } - onChanged(); } else { sentAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (sentAt_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 2; */ public Builder clearSentAt() { - if (sentAtBuilder_ == null) { - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - sentAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + sentAt_ = null; + if (sentAtBuilder_ != null) { + sentAtBuilder_.dispose(); + sentAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -13444,7 +14601,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() if (sentAtBuilder_ != null) { return sentAtBuilder_.getMessageOrBuilder(); } else { - return sentAt_; + return sentAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } } /** @@ -13464,21 +14622,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() return sentAtBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveredAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return Whether the deliveredAt field is set. */ public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; + * @return The deliveredAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { if (deliveredAtBuilder_ == null) { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } else { return deliveredAtBuilder_.getMessage(); } @@ -13492,11 +14652,11 @@ public Builder setDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) throw new NullPointerException(); } deliveredAt_ = value; - onChanged(); } else { deliveredAtBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -13506,11 +14666,11 @@ public Builder setDeliveredAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveredAtBuilder_ == null) { deliveredAt_ = builderForValue.build(); - onChanged(); } else { deliveredAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -13518,31 +14678,33 @@ public Builder setDeliveredAt( */ public Builder mergeDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveredAtBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveredAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveredAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + deliveredAt_ != null && + deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveredAtBuilder().mergeFrom(value); } else { deliveredAt_ = value; } - onChanged(); } else { deliveredAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (deliveredAt_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 3; */ public Builder clearDeliveredAt() { - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveredAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -13560,7 +14722,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild if (deliveredAtBuilder_ != null) { return deliveredAtBuilder_.getMessageOrBuilder(); } else { - return deliveredAt_; + return deliveredAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } } /** @@ -13580,21 +14743,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild return deliveredAtBuilder_; } - private Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification roamingNotification_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification, Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.Builder, Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrBuilder> roamingNotificationBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 4; + * @return Whether the roamingNotification field is set. */ public boolean hasRoamingNotification() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 4; + * @return The roamingNotification. */ public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getRoamingNotification() { if (roamingNotificationBuilder_ == null) { - return roamingNotification_; + return roamingNotification_ == null ? Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } else { return roamingNotificationBuilder_.getMessage(); } @@ -13608,11 +14773,11 @@ public Builder setRoamingNotification(Diadoc.Api.Proto.Docflow.RoamingNotificati throw new NullPointerException(); } roamingNotification_ = value; - onChanged(); } else { roamingNotificationBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -13622,11 +14787,11 @@ public Builder setRoamingNotification( Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.Builder builderForValue) { if (roamingNotificationBuilder_ == null) { roamingNotification_ = builderForValue.build(); - onChanged(); } else { roamingNotificationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -13634,31 +14799,33 @@ public Builder setRoamingNotification( */ public Builder mergeRoamingNotification(Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification value) { if (roamingNotificationBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - roamingNotification_ != Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance()) { - roamingNotification_ = - Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.newBuilder(roamingNotification_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + roamingNotification_ != null && + roamingNotification_ != Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance()) { + getRoamingNotificationBuilder().mergeFrom(value); } else { roamingNotification_ = value; } - onChanged(); } else { roamingNotificationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (roamingNotification_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RoamingNotification RoamingNotification = 4; */ public Builder clearRoamingNotification() { - if (roamingNotificationBuilder_ == null) { - roamingNotification_ = Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); - onChanged(); - } else { - roamingNotificationBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + roamingNotification_ = null; + if (roamingNotificationBuilder_ != null) { + roamingNotificationBuilder_.dispose(); + roamingNotificationBuilder_ = null; + } + onChanged(); return this; } /** @@ -13676,7 +14843,8 @@ public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrB if (roamingNotificationBuilder_ != null) { return roamingNotificationBuilder_.getMessageOrBuilder(); } else { - return roamingNotification_; + return roamingNotification_ == null ? + Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance() : roamingNotification_; } } /** @@ -13699,12 +14867,14 @@ public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotificationOrB private java.lang.Object plainText_ = ""; /** * optional string PlainText = 5; + * @return Whether the plainText field is set. */ public boolean hasPlainText() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string PlainText = 5; + * @return The plainText. */ public java.lang.String getPlainText() { java.lang.Object ref = plainText_; @@ -13722,6 +14892,7 @@ public java.lang.String getPlainText() { } /** * optional string PlainText = 5; + * @return The bytes for plainText. */ public com.google.protobuf.ByteString getPlainTextBytes() { @@ -13738,36 +14909,37 @@ public java.lang.String getPlainText() { } /** * optional string PlainText = 5; + * @param value The plainText to set. + * @return This builder for chaining. */ public Builder setPlainText( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } plainText_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string PlainText = 5; + * @return This builder for chaining. */ public Builder clearPlainText() { - bitField0_ = (bitField0_ & ~0x00000010); plainText_ = getDefaultInstance().getPlainText(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string PlainText = 5; + * @param value The bytes for plainText to set. + * @return This builder for chaining. */ public Builder setPlainTextBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } plainText_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -13775,12 +14947,52 @@ public Builder setPlainTextBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.RevocationRequestDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RevocationRequestDocflow) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow DEFAULT_INSTANCE; static { - defaultInstance = new RevocationRequestDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevocationRequestDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationRequestDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RevocationRequestDocflow) } public interface RevocationResponseDocflowOrBuilder extends @@ -13789,10 +15001,12 @@ public interface RevocationResponseDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 RecipientSignature = 1; + * @return Whether the recipientSignature field is set. */ boolean hasRecipientSignature(); /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 RecipientSignature = 1; + * @return The recipientSignature. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getRecipientSignature(); /** @@ -13802,10 +15016,12 @@ public interface RevocationResponseDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow SignatureRejection = 2; + * @return Whether the signatureRejection field is set. */ boolean hasSignatureRejection(); /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow SignatureRejection = 2; + * @return The signatureRejection. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow getSignatureRejection(); /** @@ -13820,94 +15036,29 @@ public static final class RevocationResponseDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.RevocationResponseDocflow) RevocationResponseDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RevocationResponseDocflow.class.getName()); + } // Use RevocationResponseDocflow.newBuilder() to construct. private RevocationResponseDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private RevocationResponseDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RevocationResponseDocflow defaultInstance; - public static RevocationResponseDocflow getDefaultInstance() { - return defaultInstance; - } - - public RevocationResponseDocflow getDefaultInstanceForType() { - return defaultInstance; + private RevocationResponseDocflow() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RevocationResponseDocflow( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = recipientSignature_.toBuilder(); - } - recipientSignature_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientSignature_); - recipientSignature_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = signatureRejection_.toBuilder(); - } - signatureRejection_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signatureRejection_); - signatureRejection_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationResponseDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationResponseDocflow_fieldAccessorTable @@ -13915,69 +15066,61 @@ private RevocationResponseDocflow( Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RevocationResponseDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevocationResponseDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int RECIPIENTSIGNATURE_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 recipientSignature_; /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 RecipientSignature = 1; + * @return Whether the recipientSignature field is set. */ + @java.lang.Override public boolean hasRecipientSignature() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 RecipientSignature = 1; + * @return The recipientSignature. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getRecipientSignature() { - return recipientSignature_; + return recipientSignature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : recipientSignature_; } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 RecipientSignature = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getRecipientSignatureOrBuilder() { - return recipientSignature_; + return recipientSignature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : recipientSignature_; } public static final int SIGNATUREREJECTION_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow signatureRejection_; /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow SignatureRejection = 2; + * @return Whether the signatureRejection field is set. */ + @java.lang.Override public boolean hasSignatureRejection() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow SignatureRejection = 2; + * @return The signatureRejection. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow getSignatureRejection() { - return signatureRejection_; + return signatureRejection_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance() : signatureRejection_; } /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow SignatureRejection = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflowOrBuilder getSignatureRejectionOrBuilder() { - return signatureRejection_; + return signatureRejection_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance() : signatureRejection_; } - private void initFields() { - recipientSignature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - signatureRejection_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -13999,44 +15142,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, recipientSignature_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRecipientSignature()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, signatureRejection_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSignatureRejection()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, recipientSignature_); + .computeMessageSize(1, getRecipientSignature()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, signatureRejection_); + .computeMessageSize(2, getSignatureRejection()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow) obj; + + if (hasRecipientSignature() != other.hasRecipientSignature()) return false; + if (hasRecipientSignature()) { + if (!getRecipientSignature() + .equals(other.getRecipientSignature())) return false; + } + if (hasSignatureRejection() != other.hasSignatureRejection()) return false; + if (hasSignatureRejection()) { + if (!getSignatureRejection() + .equals(other.getSignatureRejection())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRecipientSignature()) { + hash = (37 * hash) + RECIPIENTSIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getRecipientSignature().hashCode(); + } + if (hasSignatureRejection()) { + hash = (37 * hash) + SIGNATUREREJECTION_FIELD_NUMBER; + hash = (53 * hash) + getSignatureRejection().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -14060,42 +15251,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -14115,6 +15321,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationResponseDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationResponseDocflow_fieldAccessorTable @@ -14133,45 +15340,41 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getRecipientSignatureFieldBuilder(); getSignatureRejectionFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (recipientSignatureBuilder_ == null) { - recipientSignature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - } else { - recipientSignatureBuilder_.clear(); + bitField0_ = 0; + recipientSignature_ = null; + if (recipientSignatureBuilder_ != null) { + recipientSignatureBuilder_.dispose(); + recipientSignatureBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (signatureRejectionBuilder_ == null) { - signatureRejection_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance(); - } else { - signatureRejectionBuilder_.clear(); + signatureRejection_ = null; + if (signatureRejectionBuilder_ != null) { + signatureRejectionBuilder_.dispose(); + signatureRejectionBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_RevocationResponseDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -14180,31 +15383,33 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recipientSignature_ = recipientSignatureBuilder_ == null + ? recipientSignature_ + : recipientSignatureBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (recipientSignatureBuilder_ == null) { - result.recipientSignature_ = recipientSignature_; - } else { - result.recipientSignature_ = recipientSignatureBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.signatureRejection_ = signatureRejectionBuilder_ == null + ? signatureRejection_ + : signatureRejectionBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (signatureRejectionBuilder_ == null) { - result.signatureRejection_ = signatureRejection_; - } else { - result.signatureRejection_ = signatureRejectionBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow)other); @@ -14223,59 +15428,89 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResp mergeSignatureRejection(other.getSignatureRejection()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasRecipientSignature()) { if (!getRecipientSignature().isInitialized()) { - return false; } } if (hasSignatureRejection()) { if (!getSignatureRejection().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getRecipientSignatureFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSignatureRejectionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 recipientSignature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 recipientSignature_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder> recipientSignatureBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 RecipientSignature = 1; + * @return Whether the recipientSignature field is set. */ public boolean hasRecipientSignature() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 RecipientSignature = 1; + * @return The recipientSignature. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getRecipientSignature() { if (recipientSignatureBuilder_ == null) { - return recipientSignature_; + return recipientSignature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : recipientSignature_; } else { return recipientSignatureBuilder_.getMessage(); } @@ -14289,11 +15524,11 @@ public Builder setRecipientSignature(Diadoc.Api.Proto.Docflow.AttachmentV3Protos throw new NullPointerException(); } recipientSignature_ = value; - onChanged(); } else { recipientSignatureBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -14303,11 +15538,11 @@ public Builder setRecipientSignature( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder builderForValue) { if (recipientSignatureBuilder_ == null) { recipientSignature_ = builderForValue.build(); - onChanged(); } else { recipientSignatureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -14315,31 +15550,33 @@ public Builder setRecipientSignature( */ public Builder mergeRecipientSignature(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 value) { if (recipientSignatureBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - recipientSignature_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance()) { - recipientSignature_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.newBuilder(recipientSignature_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + recipientSignature_ != null && + recipientSignature_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance()) { + getRecipientSignatureBuilder().mergeFrom(value); } else { recipientSignature_ = value; } - onChanged(); } else { recipientSignatureBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (recipientSignature_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignatureV3 RecipientSignature = 1; */ public Builder clearRecipientSignature() { - if (recipientSignatureBuilder_ == null) { - recipientSignature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - onChanged(); - } else { - recipientSignatureBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + recipientSignature_ = null; + if (recipientSignatureBuilder_ != null) { + recipientSignatureBuilder_.dispose(); + recipientSignatureBuilder_ = null; + } + onChanged(); return this; } /** @@ -14357,7 +15594,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getRecip if (recipientSignatureBuilder_ != null) { return recipientSignatureBuilder_.getMessageOrBuilder(); } else { - return recipientSignature_; + return recipientSignature_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : recipientSignature_; } } /** @@ -14377,21 +15615,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getRecip return recipientSignatureBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow signatureRejection_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow signatureRejection_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflowOrBuilder> signatureRejectionBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow SignatureRejection = 2; + * @return Whether the signatureRejection field is set. */ public boolean hasSignatureRejection() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow SignatureRejection = 2; + * @return The signatureRejection. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow getSignatureRejection() { if (signatureRejectionBuilder_ == null) { - return signatureRejection_; + return signatureRejection_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance() : signatureRejection_; } else { return signatureRejectionBuilder_.getMessage(); } @@ -14405,11 +15645,11 @@ public Builder setSignatureRejection(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Si throw new NullPointerException(); } signatureRejection_ = value; - onChanged(); } else { signatureRejectionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -14419,11 +15659,11 @@ public Builder setSignatureRejection( Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.Builder builderForValue) { if (signatureRejectionBuilder_ == null) { signatureRejection_ = builderForValue.build(); - onChanged(); } else { signatureRejectionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -14431,31 +15671,33 @@ public Builder setSignatureRejection( */ public Builder mergeSignatureRejection(Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow value) { if (signatureRejectionBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - signatureRejection_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance()) { - signatureRejection_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.newBuilder(signatureRejection_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + signatureRejection_ != null && + signatureRejection_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance()) { + getSignatureRejectionBuilder().mergeFrom(value); } else { signatureRejection_ = value; } - onChanged(); } else { signatureRejectionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (signatureRejection_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow SignatureRejection = 2; - */ - public Builder clearSignatureRejection() { - if (signatureRejectionBuilder_ == null) { - signatureRejection_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance(); - onChanged(); - } else { - signatureRejectionBuilder_.clear(); - } + * optional .Diadoc.Api.Proto.Docflow.SignatureRejectionDocflow SignatureRejection = 2; + */ + public Builder clearSignatureRejection() { bitField0_ = (bitField0_ & ~0x00000002); + signatureRejection_ = null; + if (signatureRejectionBuilder_ != null) { + signatureRejectionBuilder_.dispose(); + signatureRejectionBuilder_ = null; + } + onChanged(); return this; } /** @@ -14473,7 +15715,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflowOrBuild if (signatureRejectionBuilder_ != null) { return signatureRejectionBuilder_.getMessageOrBuilder(); } else { - return signatureRejection_; + return signatureRejection_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflow.getDefaultInstance() : signatureRejection_; } } /** @@ -14496,12 +15739,52 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.SignatureRejectionDocflowOrBuild // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.RevocationResponseDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RevocationResponseDocflow) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow DEFAULT_INSTANCE; static { - defaultInstance = new RevocationResponseDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevocationResponseDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.RevocationResponseDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RevocationResponseDocflow) } public interface ReceiptDocflowV3OrBuilder extends @@ -14510,19 +15793,23 @@ public interface ReceiptDocflowV3OrBuilder extends /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * required bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ReceiptAttachment = 2; + * @return Whether the receiptAttachment field is set. */ boolean hasReceiptAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ReceiptAttachment = 2; + * @return The receiptAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getReceiptAttachment(); /** @@ -14532,10 +15819,12 @@ public interface ReceiptDocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return Whether the sentAt field is set. */ boolean hasSentAt(); /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return The sentAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt(); /** @@ -14545,10 +15834,12 @@ public interface ReceiptDocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return Whether the deliveredAt field is set. */ boolean hasDeliveredAt(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return The deliveredAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt(); /** @@ -14558,10 +15849,12 @@ public interface ReceiptDocflowV3OrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 5; + * @return Whether the confirmation field is set. */ boolean hasConfirmation(); /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 5; + * @return The confirmation. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmation(); /** @@ -14571,10 +15864,12 @@ public interface ReceiptDocflowV3OrBuilder extends /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus Status = 6; + * @return Whether the status field is set. */ boolean hasStatus(); /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus Status = 6; + * @return The status. */ Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getStatus(); } @@ -14585,136 +15880,30 @@ public static final class ReceiptDocflowV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ReceiptDocflowV3) ReceiptDocflowV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ReceiptDocflowV3.class.getName()); + } // Use ReceiptDocflowV3.newBuilder() to construct. private ReceiptDocflowV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ReceiptDocflowV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ReceiptDocflowV3 defaultInstance; - public static ReceiptDocflowV3 getDefaultInstance() { - return defaultInstance; } - - public ReceiptDocflowV3 getDefaultInstanceForType() { - return defaultInstance; + private ReceiptDocflowV3() { + status_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptDocflowV3( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = receiptAttachment_.toBuilder(); - } - receiptAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptAttachment_); - receiptAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = sentAt_.toBuilder(); - } - sentAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sentAt_); - sentAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = deliveredAt_.toBuilder(); - } - deliveredAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveredAt_); - deliveredAt_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = confirmation_.toBuilder(); - } - confirmation_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmation_); - confirmation_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 48: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - bitField0_ |= 0x00000020; - status_ = value; - } - 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.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflowV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflowV3_fieldAccessorTable @@ -14722,33 +15911,22 @@ private ReceiptDocflowV3( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ReceiptDocflowV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptDocflowV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -14757,110 +15935,126 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 receiptAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ReceiptAttachment = 2; + * @return Whether the receiptAttachment field is set. */ + @java.lang.Override public boolean hasReceiptAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ReceiptAttachment = 2; + * @return The receiptAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getReceiptAttachment() { - return receiptAttachment_; + return receiptAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : receiptAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ReceiptAttachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder getReceiptAttachmentOrBuilder() { - return receiptAttachment_; + return receiptAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : receiptAttachment_; } public static final int SENTAT_FIELD_NUMBER = 3; private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_; /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return Whether the sentAt field is set. */ + @java.lang.Override public boolean hasSentAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return The sentAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt() { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } public static final int DELIVEREDAT_FIELD_NUMBER = 4; private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return Whether the deliveredAt field is set. */ + @java.lang.Override public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return The deliveredAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuilder() { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } public static final int CONFIRMATION_FIELD_NUMBER = 5; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmation_; /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 5; + * @return Whether the confirmation field is set. */ + @java.lang.Override public boolean hasConfirmation() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 5; + * @return The confirmation. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmation() { - return confirmation_; + return confirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder getConfirmationOrBuilder() { - return confirmation_; + return confirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } public static final int STATUS_FIELD_NUMBER = 6; - private Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus status_; + private int status_ = 0; /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus Status = 6; + * @return Whether the status field is set. */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000020) == 0x00000020); + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000020) != 0); } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus Status = 6; + * @return The status. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getStatus() { - return status_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(status_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown : result; } - private void initFields() { - isFinished_ = false; - receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - status_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -14902,72 +16096,156 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, receiptAttachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReceiptAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, sentAt_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getSentAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, deliveredAt_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getDeliveredAt()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, confirmation_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getConfirmation()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeEnum(6, status_.getNumber()); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, status_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receiptAttachment_); + .computeMessageSize(2, getReceiptAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, sentAt_); + .computeMessageSize(3, getSentAt()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, deliveredAt_); + .computeMessageSize(4, getDeliveredAt()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, confirmation_); + .computeMessageSize(5, getConfirmation()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, status_.getNumber()); + .computeEnumSize(6, status_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasReceiptAttachment() != other.hasReceiptAttachment()) return false; + if (hasReceiptAttachment()) { + if (!getReceiptAttachment() + .equals(other.getReceiptAttachment())) return false; + } + if (hasSentAt() != other.hasSentAt()) return false; + if (hasSentAt()) { + if (!getSentAt() + .equals(other.getSentAt())) return false; + } + if (hasDeliveredAt() != other.hasDeliveredAt()) return false; + if (hasDeliveredAt()) { + if (!getDeliveredAt() + .equals(other.getDeliveredAt())) return false; + } + if (hasConfirmation() != other.hasConfirmation()) return false; + if (hasConfirmation()) { + if (!getConfirmation() + .equals(other.getConfirmation())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasReceiptAttachment()) { + hash = (37 * hash) + RECEIPTATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptAttachment().hashCode(); + } + if (hasSentAt()) { + hash = (37 * hash) + SENTAT_FIELD_NUMBER; + hash = (53 * hash) + getSentAt().hashCode(); + } + if (hasDeliveredAt()) { + hash = (37 * hash) + DELIVEREDAT_FIELD_NUMBER; + hash = (53 * hash) + getDeliveredAt().hashCode(); + } + if (hasConfirmation()) { + hash = (37 * hash) + CONFIRMATION_FIELD_NUMBER; + hash = (53 * hash) + getConfirmation().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -14991,42 +16269,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parseFro } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -15046,6 +16339,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflowV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflowV3_fieldAccessorTable @@ -15064,63 +16358,55 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getReceiptAttachmentFieldBuilder(); getSentAtFieldBuilder(); getDeliveredAtFieldBuilder(); getConfirmationFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (receiptAttachmentBuilder_ == null) { - receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - } else { - receiptAttachmentBuilder_.clear(); + receiptAttachment_ = null; + if (receiptAttachmentBuilder_ != null) { + receiptAttachmentBuilder_.dispose(); + receiptAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (sentAtBuilder_ == null) { - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - sentAtBuilder_.clear(); + sentAt_ = null; + if (sentAtBuilder_ != null) { + sentAtBuilder_.dispose(); + sentAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveredAtBuilder_.clear(); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (confirmationBuilder_ == null) { - confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - } else { - confirmationBuilder_.clear(); + confirmation_ = null; + if (confirmationBuilder_ != null) { + confirmationBuilder_.dispose(); + confirmationBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); - status_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; - bitField0_ = (bitField0_ & ~0x00000020); + status_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflowV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 result = buildPartial(); if (!result.isInitialized()) { @@ -15129,55 +16415,53 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptAttachment_ = receiptAttachmentBuilder_ == null + ? receiptAttachment_ + : receiptAttachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (receiptAttachmentBuilder_ == null) { - result.receiptAttachment_ = receiptAttachment_; - } else { - result.receiptAttachment_ = receiptAttachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sentAt_ = sentAtBuilder_ == null + ? sentAt_ + : sentAtBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (sentAtBuilder_ == null) { - result.sentAt_ = sentAt_; - } else { - result.sentAt_ = sentAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deliveredAt_ = deliveredAtBuilder_ == null + ? deliveredAt_ + : deliveredAtBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (deliveredAtBuilder_ == null) { - result.deliveredAt_ = deliveredAt_; - } else { - result.deliveredAt_ = deliveredAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confirmation_ = confirmationBuilder_ == null + ? confirmation_ + : confirmationBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (confirmationBuilder_ == null) { - result.confirmation_ = confirmation_; - } else { - result.confirmation_ = confirmationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.status_ = status_; to_bitField0_ |= 0x00000020; } - result.status_ = status_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3)other); @@ -15208,60 +16492,115 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflow setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsFinished()) { - return false; } if (!hasStatus()) { - return false; } if (hasReceiptAttachment()) { if (!getReceiptAttachment().isInitialized()) { - return false; } } if (hasSentAt()) { if (!getSentAt().isInitialized()) { - return false; } } if (hasDeliveredAt()) { if (!getDeliveredAt().isInitialized()) { - return false; } } if (hasConfirmation()) { if (!getConfirmation().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getReceiptAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSentAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDeliveredAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getConfirmationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + status_ = tmpRaw; + bitField0_ |= 0x00000020; + } + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -15269,27 +16608,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * required bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -15298,21 +16645,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 receiptAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder> receiptAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ReceiptAttachment = 2; + * @return Whether the receiptAttachment field is set. */ public boolean hasReceiptAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ReceiptAttachment = 2; + * @return The receiptAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getReceiptAttachment() { if (receiptAttachmentBuilder_ == null) { - return receiptAttachment_; + return receiptAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : receiptAttachment_; } else { return receiptAttachmentBuilder_.getMessage(); } @@ -15326,11 +16675,11 @@ public Builder setReceiptAttachment(Diadoc.Api.Proto.Docflow.AttachmentV3Protos. throw new NullPointerException(); } receiptAttachment_ = value; - onChanged(); } else { receiptAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -15340,11 +16689,11 @@ public Builder setReceiptAttachment( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder builderForValue) { if (receiptAttachmentBuilder_ == null) { receiptAttachment_ = builderForValue.build(); - onChanged(); } else { receiptAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -15352,31 +16701,33 @@ public Builder setReceiptAttachment( */ public Builder mergeReceiptAttachment(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 value) { if (receiptAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - receiptAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { - receiptAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.newBuilder(receiptAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + receiptAttachment_ != null && + receiptAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { + getReceiptAttachmentBuilder().mergeFrom(value); } else { receiptAttachment_ = value; } - onChanged(); } else { receiptAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (receiptAttachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 ReceiptAttachment = 2; */ public Builder clearReceiptAttachment() { - if (receiptAttachmentBuilder_ == null) { - receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - onChanged(); - } else { - receiptAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + receiptAttachment_ = null; + if (receiptAttachmentBuilder_ != null) { + receiptAttachmentBuilder_.dispose(); + receiptAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -15394,7 +16745,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g if (receiptAttachmentBuilder_ != null) { return receiptAttachmentBuilder_.getMessageOrBuilder(); } else { - return receiptAttachment_; + return receiptAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : receiptAttachment_; } } /** @@ -15414,21 +16766,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g return receiptAttachmentBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp sentAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> sentAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return Whether the sentAt field is set. */ public boolean hasSentAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; + * @return The sentAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getSentAt() { if (sentAtBuilder_ == null) { - return sentAt_; + return sentAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } else { return sentAtBuilder_.getMessage(); } @@ -15442,11 +16796,11 @@ public Builder setSentAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { throw new NullPointerException(); } sentAt_ = value; - onChanged(); } else { sentAtBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -15456,11 +16810,11 @@ public Builder setSentAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (sentAtBuilder_ == null) { sentAt_ = builderForValue.build(); - onChanged(); } else { sentAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -15468,31 +16822,33 @@ public Builder setSentAt( */ public Builder mergeSentAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (sentAtBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - sentAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - sentAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(sentAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + sentAt_ != null && + sentAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getSentAtBuilder().mergeFrom(value); } else { sentAt_ = value; } - onChanged(); } else { sentAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (sentAt_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp SentAt = 3; */ public Builder clearSentAt() { - if (sentAtBuilder_ == null) { - sentAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - sentAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + sentAt_ = null; + if (sentAtBuilder_ != null) { + sentAtBuilder_.dispose(); + sentAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -15510,7 +16866,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() if (sentAtBuilder_ != null) { return sentAtBuilder_.getMessageOrBuilder(); } else { - return sentAt_; + return sentAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sentAt_; } } /** @@ -15530,21 +16887,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSentAtOrBuilder() return sentAtBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveredAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveredAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return Whether the deliveredAt field is set. */ public boolean hasDeliveredAt() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; + * @return The deliveredAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveredAt() { if (deliveredAtBuilder_ == null) { - return deliveredAt_; + return deliveredAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } else { return deliveredAtBuilder_.getMessage(); } @@ -15558,11 +16917,11 @@ public Builder setDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) throw new NullPointerException(); } deliveredAt_ = value; - onChanged(); } else { deliveredAtBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -15572,11 +16931,11 @@ public Builder setDeliveredAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveredAtBuilder_ == null) { deliveredAt_ = builderForValue.build(); - onChanged(); } else { deliveredAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -15584,31 +16943,33 @@ public Builder setDeliveredAt( */ public Builder mergeDeliveredAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveredAtBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveredAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveredAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + deliveredAt_ != null && + deliveredAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveredAtBuilder().mergeFrom(value); } else { deliveredAt_ = value; } - onChanged(); } else { deliveredAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (deliveredAt_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveredAt = 4; */ public Builder clearDeliveredAt() { - if (deliveredAtBuilder_ == null) { - deliveredAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveredAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + deliveredAt_ = null; + if (deliveredAtBuilder_ != null) { + deliveredAtBuilder_.dispose(); + deliveredAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -15626,7 +16987,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild if (deliveredAtBuilder_ != null) { return deliveredAtBuilder_.getMessageOrBuilder(); } else { - return deliveredAt_; + return deliveredAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveredAt_; } } /** @@ -15646,21 +17008,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveredAtOrBuild return deliveredAtBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow confirmation_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder> confirmationBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 5; + * @return Whether the confirmation field is set. */ public boolean hasConfirmation() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 5; + * @return The confirmation. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow getConfirmation() { if (confirmationBuilder_ == null) { - return confirmation_; + return confirmation_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } else { return confirmationBuilder_.getMessage(); } @@ -15674,11 +17038,11 @@ public Builder setConfirmation(Diadoc.Api.Proto.Docflow.DocflowV3Protos.Confirma throw new NullPointerException(); } confirmation_ = value; - onChanged(); } else { confirmationBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -15688,11 +17052,11 @@ public Builder setConfirmation( Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.Builder builderForValue) { if (confirmationBuilder_ == null) { confirmation_ = builderForValue.build(); - onChanged(); } else { confirmationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -15700,31 +17064,33 @@ public Builder setConfirmation( */ public Builder mergeConfirmation(Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow value) { if (confirmationBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - confirmation_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance()) { - confirmation_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.newBuilder(confirmation_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + confirmation_ != null && + confirmation_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance()) { + getConfirmationBuilder().mergeFrom(value); } else { confirmation_ = value; } - onChanged(); } else { confirmationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (confirmation_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ConfirmationDocflow Confirmation = 5; */ public Builder clearConfirmation() { - if (confirmationBuilder_ == null) { - confirmation_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance(); - onChanged(); - } else { - confirmationBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + confirmation_ = null; + if (confirmationBuilder_ != null) { + confirmationBuilder_.dispose(); + confirmationBuilder_ = null; + } + onChanged(); return this; } /** @@ -15742,7 +17108,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder get if (confirmationBuilder_ != null) { return confirmationBuilder_.getMessageOrBuilder(); } else { - return confirmation_; + return confirmation_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflow.getDefaultInstance() : confirmation_; } } /** @@ -15762,50 +17129,97 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ConfirmationDocflowOrBuilder get return confirmationBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus status_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; + private int status_ = 0; /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus Status = 6; + * @return Whether the status field is set. */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000020) == 0x00000020); + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000020) != 0); } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus Status = 6; + * @return The status. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getStatus() { - return status_; + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(status_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown : result; } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus Status = 6; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; - status_ = value; + status_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus Status = 6; + * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000020); - status_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; + status_ = 0; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ReceiptDocflowV3) + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ReceiptDocflowV3) + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ReceiptDocflowV3) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptDocflowV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - static { - defaultInstance = new ReceiptDocflowV3(true); - defaultInstance.initFields(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.ReceiptDocflowV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ReceiptDocflowV3) } public interface OuterDocflowOrBuilder extends @@ -15814,42 +17228,51 @@ public interface OuterDocflowOrBuilder extends /** * required string DocflowNamedId = 1; + * @return Whether the docflowNamedId field is set. */ boolean hasDocflowNamedId(); /** * required string DocflowNamedId = 1; + * @return The docflowNamedId. */ java.lang.String getDocflowNamedId(); /** * required string DocflowNamedId = 1; + * @return The bytes for docflowNamedId. */ com.google.protobuf.ByteString getDocflowNamedIdBytes(); /** * required string ParentEntityId = 2; + * @return Whether the parentEntityId field is set. */ boolean hasParentEntityId(); /** * required string ParentEntityId = 2; + * @return The parentEntityId. */ java.lang.String getParentEntityId(); /** * required string ParentEntityId = 2; + * @return The bytes for parentEntityId. */ com.google.protobuf.ByteString getParentEntityIdBytes(); /** * required string OuterDocflowEntityId = 3; + * @return Whether the outerDocflowEntityId field is set. */ boolean hasOuterDocflowEntityId(); /** * required string OuterDocflowEntityId = 3; + * @return The outerDocflowEntityId. */ java.lang.String getOuterDocflowEntityId(); /** * required string OuterDocflowEntityId = 3; + * @return The bytes for outerDocflowEntityId. */ com.google.protobuf.ByteString getOuterDocflowEntityIdBytes(); @@ -15861,86 +17284,32 @@ public static final class OuterDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.OuterDocflow) OuterDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + OuterDocflow.class.getName()); + } // Use OuterDocflow.newBuilder() to construct. private OuterDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private OuterDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final OuterDocflow defaultInstance; - public static OuterDocflow getDefaultInstance() { - return defaultInstance; - } - - public OuterDocflow getDefaultInstanceForType() { - return defaultInstance; + private OuterDocflow() { + docflowNamedId_ = ""; + parentEntityId_ = ""; + outerDocflowEntityId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OuterDocflow( - 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; - docflowNamedId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - parentEntityId_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - outerDocflowEntityId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OuterDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OuterDocflow_fieldAccessorTable @@ -15948,33 +17317,23 @@ private OuterDocflow( Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public OuterDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OuterDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCFLOWNAMEDID_FIELD_NUMBER = 1; - private java.lang.Object docflowNamedId_; + @SuppressWarnings("serial") + private volatile java.lang.Object docflowNamedId_ = ""; /** * required string DocflowNamedId = 1; + * @return Whether the docflowNamedId field is set. */ + @java.lang.Override public boolean hasDocflowNamedId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string DocflowNamedId = 1; + * @return The docflowNamedId. */ + @java.lang.Override public java.lang.String getDocflowNamedId() { java.lang.Object ref = docflowNamedId_; if (ref instanceof java.lang.String) { @@ -15991,7 +17350,9 @@ public java.lang.String getDocflowNamedId() { } /** * required string DocflowNamedId = 1; + * @return The bytes for docflowNamedId. */ + @java.lang.Override public com.google.protobuf.ByteString getDocflowNamedIdBytes() { java.lang.Object ref = docflowNamedId_; @@ -16007,16 +17368,21 @@ public java.lang.String getDocflowNamedId() { } public static final int PARENTENTITYID_FIELD_NUMBER = 2; - private java.lang.Object parentEntityId_; + @SuppressWarnings("serial") + private volatile java.lang.Object parentEntityId_ = ""; /** * required string ParentEntityId = 2; + * @return Whether the parentEntityId field is set. */ + @java.lang.Override public boolean hasParentEntityId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string ParentEntityId = 2; + * @return The parentEntityId. */ + @java.lang.Override public java.lang.String getParentEntityId() { java.lang.Object ref = parentEntityId_; if (ref instanceof java.lang.String) { @@ -16033,7 +17399,9 @@ public java.lang.String getParentEntityId() { } /** * required string ParentEntityId = 2; + * @return The bytes for parentEntityId. */ + @java.lang.Override public com.google.protobuf.ByteString getParentEntityIdBytes() { java.lang.Object ref = parentEntityId_; @@ -16049,16 +17417,21 @@ public java.lang.String getParentEntityId() { } public static final int OUTERDOCFLOWENTITYID_FIELD_NUMBER = 3; - private java.lang.Object outerDocflowEntityId_; + @SuppressWarnings("serial") + private volatile java.lang.Object outerDocflowEntityId_ = ""; /** * required string OuterDocflowEntityId = 3; + * @return Whether the outerDocflowEntityId field is set. */ + @java.lang.Override public boolean hasOuterDocflowEntityId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string OuterDocflowEntityId = 3; + * @return The outerDocflowEntityId. */ + @java.lang.Override public java.lang.String getOuterDocflowEntityId() { java.lang.Object ref = outerDocflowEntityId_; if (ref instanceof java.lang.String) { @@ -16075,7 +17448,9 @@ public java.lang.String getOuterDocflowEntityId() { } /** * required string OuterDocflowEntityId = 3; + * @return The bytes for outerDocflowEntityId. */ + @java.lang.Override public com.google.protobuf.ByteString getOuterDocflowEntityIdBytes() { java.lang.Object ref = outerDocflowEntityId_; @@ -16090,12 +17465,8 @@ public java.lang.String getOuterDocflowEntityId() { } } - private void initFields() { - docflowNamedId_ = ""; - parentEntityId_ = ""; - outerDocflowEntityId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -16117,51 +17488,105 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getDocflowNamedIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, docflowNamedId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getParentEntityIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, parentEntityId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getOuterDocflowEntityIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, outerDocflowEntityId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getDocflowNamedIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, docflowNamedId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getParentEntityIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, parentEntityId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getOuterDocflowEntityIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, outerDocflowEntityId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow) obj; + + if (hasDocflowNamedId() != other.hasDocflowNamedId()) return false; + if (hasDocflowNamedId()) { + if (!getDocflowNamedId() + .equals(other.getDocflowNamedId())) return false; + } + if (hasParentEntityId() != other.hasParentEntityId()) return false; + if (hasParentEntityId()) { + if (!getParentEntityId() + .equals(other.getParentEntityId())) return false; + } + if (hasOuterDocflowEntityId() != other.hasOuterDocflowEntityId()) return false; + if (hasOuterDocflowEntityId()) { + if (!getOuterDocflowEntityId() + .equals(other.getOuterDocflowEntityId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocflowNamedId()) { + hash = (37 * hash) + DOCFLOWNAMEDID_FIELD_NUMBER; + hash = (53 * hash) + getDocflowNamedId().hashCode(); + } + if (hasParentEntityId()) { + hash = (37 * hash) + PARENTENTITYID_FIELD_NUMBER; + hash = (53 * hash) + getParentEntityId().hashCode(); + } + if (hasOuterDocflowEntityId()) { + hash = (37 * hash) + OUTERDOCFLOWENTITYID_FIELD_NUMBER; + hash = (53 * hash) + getOuterDocflowEntityId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -16185,42 +17610,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parseFrom( } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -16240,6 +17680,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OuterDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OuterDocflow_fieldAccessorTable @@ -16249,46 +17690,36 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; docflowNamedId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); parentEntityId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); outerDocflowEntityId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OuterDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -16297,27 +17728,33 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.docflowNamedId_ = docflowNamedId_; to_bitField0_ |= 0x00000001; } - result.docflowNamedId_ = docflowNamedId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parentEntityId_ = parentEntityId_; to_bitField0_ |= 0x00000002; } - result.parentEntityId_ = parentEntityId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outerDocflowEntityId_ = outerDocflowEntityId_; to_bitField0_ |= 0x00000004; } - result.outerDocflowEntityId_ = outerDocflowEntityId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow)other); @@ -16330,55 +17767,83 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow other) { if (other == Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow.getDefaultInstance()) return this; if (other.hasDocflowNamedId()) { - bitField0_ |= 0x00000001; docflowNamedId_ = other.docflowNamedId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasParentEntityId()) { - bitField0_ |= 0x00000002; parentEntityId_ = other.parentEntityId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasOuterDocflowEntityId()) { - bitField0_ |= 0x00000004; outerDocflowEntityId_ = other.outerDocflowEntityId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocflowNamedId()) { - return false; } if (!hasParentEntityId()) { - return false; } if (!hasOuterDocflowEntityId()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + docflowNamedId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + parentEntityId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + outerDocflowEntityId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -16386,12 +17851,14 @@ public Builder mergeFrom( private java.lang.Object docflowNamedId_ = ""; /** * required string DocflowNamedId = 1; + * @return Whether the docflowNamedId field is set. */ public boolean hasDocflowNamedId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string DocflowNamedId = 1; + * @return The docflowNamedId. */ public java.lang.String getDocflowNamedId() { java.lang.Object ref = docflowNamedId_; @@ -16409,6 +17876,7 @@ public java.lang.String getDocflowNamedId() { } /** * required string DocflowNamedId = 1; + * @return The bytes for docflowNamedId. */ public com.google.protobuf.ByteString getDocflowNamedIdBytes() { @@ -16425,36 +17893,37 @@ public java.lang.String getDocflowNamedId() { } /** * required string DocflowNamedId = 1; + * @param value The docflowNamedId to set. + * @return This builder for chaining. */ public Builder setDocflowNamedId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } docflowNamedId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string DocflowNamedId = 1; + * @return This builder for chaining. */ public Builder clearDocflowNamedId() { - bitField0_ = (bitField0_ & ~0x00000001); docflowNamedId_ = getDefaultInstance().getDocflowNamedId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string DocflowNamedId = 1; + * @param value The bytes for docflowNamedId to set. + * @return This builder for chaining. */ public Builder setDocflowNamedIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } docflowNamedId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -16462,12 +17931,14 @@ public Builder setDocflowNamedIdBytes( private java.lang.Object parentEntityId_ = ""; /** * required string ParentEntityId = 2; + * @return Whether the parentEntityId field is set. */ public boolean hasParentEntityId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string ParentEntityId = 2; + * @return The parentEntityId. */ public java.lang.String getParentEntityId() { java.lang.Object ref = parentEntityId_; @@ -16485,6 +17956,7 @@ public java.lang.String getParentEntityId() { } /** * required string ParentEntityId = 2; + * @return The bytes for parentEntityId. */ public com.google.protobuf.ByteString getParentEntityIdBytes() { @@ -16501,36 +17973,37 @@ public java.lang.String getParentEntityId() { } /** * required string ParentEntityId = 2; + * @param value The parentEntityId to set. + * @return This builder for chaining. */ public Builder setParentEntityId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } parentEntityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string ParentEntityId = 2; + * @return This builder for chaining. */ public Builder clearParentEntityId() { - bitField0_ = (bitField0_ & ~0x00000002); parentEntityId_ = getDefaultInstance().getParentEntityId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string ParentEntityId = 2; + * @param value The bytes for parentEntityId to set. + * @return This builder for chaining. */ public Builder setParentEntityIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } parentEntityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -16538,12 +18011,14 @@ public Builder setParentEntityIdBytes( private java.lang.Object outerDocflowEntityId_ = ""; /** * required string OuterDocflowEntityId = 3; + * @return Whether the outerDocflowEntityId field is set. */ public boolean hasOuterDocflowEntityId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string OuterDocflowEntityId = 3; + * @return The outerDocflowEntityId. */ public java.lang.String getOuterDocflowEntityId() { java.lang.Object ref = outerDocflowEntityId_; @@ -16561,6 +18036,7 @@ public java.lang.String getOuterDocflowEntityId() { } /** * required string OuterDocflowEntityId = 3; + * @return The bytes for outerDocflowEntityId. */ public com.google.protobuf.ByteString getOuterDocflowEntityIdBytes() { @@ -16577,36 +18053,37 @@ public java.lang.String getOuterDocflowEntityId() { } /** * required string OuterDocflowEntityId = 3; + * @param value The outerDocflowEntityId to set. + * @return This builder for chaining. */ public Builder setOuterDocflowEntityId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } outerDocflowEntityId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string OuterDocflowEntityId = 3; + * @return This builder for chaining. */ public Builder clearOuterDocflowEntityId() { - bitField0_ = (bitField0_ & ~0x00000004); outerDocflowEntityId_ = getDefaultInstance().getOuterDocflowEntityId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string OuterDocflowEntityId = 3; + * @param value The bytes for outerDocflowEntityId to set. + * @return This builder for chaining. */ public Builder setOuterDocflowEntityIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } outerDocflowEntityId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -16614,12 +18091,52 @@ public Builder setOuterDocflowEntityIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.OuterDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.OuterDocflow) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow DEFAULT_INSTANCE; static { - defaultInstance = new OuterDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OuterDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.OuterDocflow) } public interface OuterDocflowEntitiesOrBuilder extends @@ -16628,28 +18145,34 @@ public interface OuterDocflowEntitiesOrBuilder extends /** * required string DocflowNamedId = 1; + * @return Whether the docflowNamedId field is set. */ boolean hasDocflowNamedId(); /** * required string DocflowNamedId = 1; + * @return The docflowNamedId. */ java.lang.String getDocflowNamedId(); /** * required string DocflowNamedId = 1; + * @return The bytes for docflowNamedId. */ com.google.protobuf.ByteString getDocflowNamedIdBytes(); /** * required string DocflowFriendlyName = 2; + * @return Whether the docflowFriendlyName field is set. */ boolean hasDocflowFriendlyName(); /** * required string DocflowFriendlyName = 2; + * @return The docflowFriendlyName. */ java.lang.String getDocflowFriendlyName(); /** * required string DocflowFriendlyName = 2; + * @return The bytes for docflowFriendlyName. */ com.google.protobuf.ByteString getDocflowFriendlyNameBytes(); @@ -16685,91 +18208,32 @@ public static final class OuterDocflowEntities extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.OuterDocflowEntities) OuterDocflowEntitiesOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + OuterDocflowEntities.class.getName()); + } // Use OuterDocflowEntities.newBuilder() to construct. private OuterDocflowEntities(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private OuterDocflowEntities(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final OuterDocflowEntities defaultInstance; - public static OuterDocflowEntities getDefaultInstance() { - return defaultInstance; - } - - public OuterDocflowEntities getDefaultInstanceForType() { - return defaultInstance; + private OuterDocflowEntities() { + docflowNamedId_ = ""; + docflowFriendlyName_ = ""; + statusEntities_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OuterDocflowEntities( - 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; - docflowNamedId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - docflowFriendlyName_ = bs; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - statusEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - statusEntities_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity.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_ & 0x00000004) == 0x00000004)) { - statusEntities_ = java.util.Collections.unmodifiableList(statusEntities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OuterDocflowEntities_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OuterDocflowEntities_fieldAccessorTable @@ -16777,33 +18241,23 @@ private OuterDocflowEntities( Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public OuterDocflowEntities parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OuterDocflowEntities(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCFLOWNAMEDID_FIELD_NUMBER = 1; - private java.lang.Object docflowNamedId_; + @SuppressWarnings("serial") + private volatile java.lang.Object docflowNamedId_ = ""; /** * required string DocflowNamedId = 1; + * @return Whether the docflowNamedId field is set. */ + @java.lang.Override public boolean hasDocflowNamedId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string DocflowNamedId = 1; + * @return The docflowNamedId. */ + @java.lang.Override public java.lang.String getDocflowNamedId() { java.lang.Object ref = docflowNamedId_; if (ref instanceof java.lang.String) { @@ -16820,7 +18274,9 @@ public java.lang.String getDocflowNamedId() { } /** * required string DocflowNamedId = 1; + * @return The bytes for docflowNamedId. */ + @java.lang.Override public com.google.protobuf.ByteString getDocflowNamedIdBytes() { java.lang.Object ref = docflowNamedId_; @@ -16836,16 +18292,21 @@ public java.lang.String getDocflowNamedId() { } public static final int DOCFLOWFRIENDLYNAME_FIELD_NUMBER = 2; - private java.lang.Object docflowFriendlyName_; + @SuppressWarnings("serial") + private volatile java.lang.Object docflowFriendlyName_ = ""; /** * required string DocflowFriendlyName = 2; + * @return Whether the docflowFriendlyName field is set. */ + @java.lang.Override public boolean hasDocflowFriendlyName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string DocflowFriendlyName = 2; + * @return The docflowFriendlyName. */ + @java.lang.Override public java.lang.String getDocflowFriendlyName() { java.lang.Object ref = docflowFriendlyName_; if (ref instanceof java.lang.String) { @@ -16862,7 +18323,9 @@ public java.lang.String getDocflowFriendlyName() { } /** * required string DocflowFriendlyName = 2; + * @return The bytes for docflowFriendlyName. */ + @java.lang.Override public com.google.protobuf.ByteString getDocflowFriendlyNameBytes() { java.lang.Object ref = docflowFriendlyName_; @@ -16878,16 +18341,19 @@ public java.lang.String getDocflowFriendlyName() { } public static final int STATUSENTITIES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List statusEntities_; /** * repeated .Diadoc.Api.Proto.Docflow.StatusEntity StatusEntities = 3; */ + @java.lang.Override public java.util.List getStatusEntitiesList() { return statusEntities_; } /** * repeated .Diadoc.Api.Proto.Docflow.StatusEntity StatusEntities = 3; */ + @java.lang.Override public java.util.List getStatusEntitiesOrBuilderList() { return statusEntities_; @@ -16895,29 +18361,28 @@ public java.util.List get /** * repeated .Diadoc.Api.Proto.Docflow.StatusEntity StatusEntities = 3; */ + @java.lang.Override public int getStatusEntitiesCount() { return statusEntities_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.StatusEntity StatusEntities = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity getStatusEntities(int index) { return statusEntities_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.StatusEntity StatusEntities = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntityOrBuilder getStatusEntitiesOrBuilder( int index) { return statusEntities_.get(index); } - private void initFields() { - docflowNamedId_ = ""; - docflowFriendlyName_ = ""; - statusEntities_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -16941,14 +18406,14 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getDocflowNamedIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, docflowNamedId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getDocflowFriendlyNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, docflowFriendlyName_); } for (int i = 0; i < statusEntities_.size(); i++) { output.writeMessage(3, statusEntities_.get(i)); @@ -16956,36 +18421,88 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getDocflowNamedIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, docflowNamedId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getDocflowFriendlyNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docflowFriendlyName_); } for (int i = 0; i < statusEntities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, statusEntities_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities) obj; + + if (hasDocflowNamedId() != other.hasDocflowNamedId()) return false; + if (hasDocflowNamedId()) { + if (!getDocflowNamedId() + .equals(other.getDocflowNamedId())) return false; + } + if (hasDocflowFriendlyName() != other.hasDocflowFriendlyName()) return false; + if (hasDocflowFriendlyName()) { + if (!getDocflowFriendlyName() + .equals(other.getDocflowFriendlyName())) return false; + } + if (!getStatusEntitiesList() + .equals(other.getStatusEntitiesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocflowNamedId()) { + hash = (37 * hash) + DOCFLOWNAMEDID_FIELD_NUMBER; + hash = (53 * hash) + getDocflowNamedId().hashCode(); + } + if (hasDocflowFriendlyName()) { + hash = (37 * hash) + DOCFLOWFRIENDLYNAME_FIELD_NUMBER; + hash = (53 * hash) + getDocflowFriendlyName().hashCode(); + } + if (getStatusEntitiesCount() > 0) { + hash = (37 * hash) + STATUSENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getStatusEntitiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -17009,42 +18526,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities pars } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -17064,6 +18596,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OuterDocflowEntities_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OuterDocflowEntities_fieldAccessorTable @@ -17073,51 +18606,42 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getStatusEntitiesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; docflowNamedId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); docflowFriendlyName_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); if (statusEntitiesBuilder_ == null) { statusEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + statusEntities_ = null; statusEntitiesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_OuterDocflowEntities_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities result = buildPartial(); if (!result.isInitialized()) { @@ -17126,20 +18650,18 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.docflowNamedId_ = docflowNamedId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.docflowFriendlyName_ = docflowFriendlyName_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities result) { if (statusEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { statusEntities_ = java.util.Collections.unmodifiableList(statusEntities_); bitField0_ = (bitField0_ & ~0x00000004); } @@ -17147,11 +18669,23 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities buildPartia } else { result.statusEntities_ = statusEntitiesBuilder_.build(); } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.docflowNamedId_ = docflowNamedId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.docflowFriendlyName_ = docflowFriendlyName_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities)other); @@ -17164,13 +18698,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities other) { if (other == Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities.getDefaultInstance()) return this; if (other.hasDocflowNamedId()) { - bitField0_ |= 0x00000001; docflowNamedId_ = other.docflowNamedId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDocflowFriendlyName()) { - bitField0_ |= 0x00000002; docflowFriendlyName_ = other.docflowFriendlyName_; + bitField0_ |= 0x00000002; onChanged(); } if (statusEntitiesBuilder_ == null) { @@ -17200,42 +18734,78 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEn } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocflowNamedId()) { - return false; } if (!hasDocflowFriendlyName()) { - return false; } for (int i = 0; i < getStatusEntitiesCount(); i++) { if (!getStatusEntities(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + docflowNamedId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + docflowFriendlyName_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity.parser(), + extensionRegistry); + if (statusEntitiesBuilder_ == null) { + ensureStatusEntitiesIsMutable(); + statusEntities_.add(m); + } else { + statusEntitiesBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -17243,12 +18813,14 @@ public Builder mergeFrom( private java.lang.Object docflowNamedId_ = ""; /** * required string DocflowNamedId = 1; + * @return Whether the docflowNamedId field is set. */ public boolean hasDocflowNamedId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string DocflowNamedId = 1; + * @return The docflowNamedId. */ public java.lang.String getDocflowNamedId() { java.lang.Object ref = docflowNamedId_; @@ -17266,6 +18838,7 @@ public java.lang.String getDocflowNamedId() { } /** * required string DocflowNamedId = 1; + * @return The bytes for docflowNamedId. */ public com.google.protobuf.ByteString getDocflowNamedIdBytes() { @@ -17282,36 +18855,37 @@ public java.lang.String getDocflowNamedId() { } /** * required string DocflowNamedId = 1; + * @param value The docflowNamedId to set. + * @return This builder for chaining. */ public Builder setDocflowNamedId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } docflowNamedId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string DocflowNamedId = 1; + * @return This builder for chaining. */ public Builder clearDocflowNamedId() { - bitField0_ = (bitField0_ & ~0x00000001); docflowNamedId_ = getDefaultInstance().getDocflowNamedId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string DocflowNamedId = 1; + * @param value The bytes for docflowNamedId to set. + * @return This builder for chaining. */ public Builder setDocflowNamedIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } docflowNamedId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -17319,12 +18893,14 @@ public Builder setDocflowNamedIdBytes( private java.lang.Object docflowFriendlyName_ = ""; /** * required string DocflowFriendlyName = 2; + * @return Whether the docflowFriendlyName field is set. */ public boolean hasDocflowFriendlyName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string DocflowFriendlyName = 2; + * @return The docflowFriendlyName. */ public java.lang.String getDocflowFriendlyName() { java.lang.Object ref = docflowFriendlyName_; @@ -17342,6 +18918,7 @@ public java.lang.String getDocflowFriendlyName() { } /** * required string DocflowFriendlyName = 2; + * @return The bytes for docflowFriendlyName. */ public com.google.protobuf.ByteString getDocflowFriendlyNameBytes() { @@ -17358,36 +18935,37 @@ public java.lang.String getDocflowFriendlyName() { } /** * required string DocflowFriendlyName = 2; + * @param value The docflowFriendlyName to set. + * @return This builder for chaining. */ public Builder setDocflowFriendlyName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } docflowFriendlyName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string DocflowFriendlyName = 2; + * @return This builder for chaining. */ public Builder clearDocflowFriendlyName() { - bitField0_ = (bitField0_ & ~0x00000002); docflowFriendlyName_ = getDefaultInstance().getDocflowFriendlyName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string DocflowFriendlyName = 2; + * @param value The bytes for docflowFriendlyName to set. + * @return This builder for chaining. */ public Builder setDocflowFriendlyNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } docflowFriendlyName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -17395,7 +18973,7 @@ public Builder setDocflowFriendlyNameBytes( private java.util.List statusEntities_ = java.util.Collections.emptyList(); private void ensureStatusEntitiesIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000004) != 0)) { statusEntities_ = new java.util.ArrayList(statusEntities_); bitField0_ |= 0x00000004; } @@ -17624,7 +19202,7 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity.Builder addStatusEn statusEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity, Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntityOrBuilder>( statusEntities_, - ((bitField0_ & 0x00000004) == 0x00000004), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); statusEntities_ = null; @@ -17635,12 +19213,52 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity.Builder addStatusEn // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.OuterDocflowEntities) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.OuterDocflowEntities) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities DEFAULT_INSTANCE; static { - defaultInstance = new OuterDocflowEntities(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OuterDocflowEntities parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.OuterDocflowEntities getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.OuterDocflowEntities) } public interface StatusEntityOrBuilder extends @@ -17649,10 +19267,12 @@ public interface StatusEntityOrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 1; + * @return Whether the attachment field is set. */ boolean hasAttachment(); /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 1; + * @return The attachment. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getAttachment(); /** @@ -17662,10 +19282,12 @@ public interface StatusEntityOrBuilder extends /** * required .Diadoc.Api.Proto.OuterDocflows.Status Status = 2; + * @return Whether the status field is set. */ boolean hasStatus(); /** * required .Diadoc.Api.Proto.OuterDocflows.Status Status = 2; + * @return The status. */ Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status getStatus(); /** @@ -17680,94 +19302,29 @@ public static final class StatusEntity extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.StatusEntity) StatusEntityOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + StatusEntity.class.getName()); + } // Use StatusEntity.newBuilder() to construct. private StatusEntity(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private StatusEntity(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final StatusEntity defaultInstance; - public static StatusEntity getDefaultInstance() { - return defaultInstance; } - - public StatusEntity getDefaultInstanceForType() { - return defaultInstance; + private StatusEntity() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StatusEntity( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = attachment_.toBuilder(); - } - attachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attachment_); - attachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_StatusEntity_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_StatusEntity_fieldAccessorTable @@ -17775,69 +19332,61 @@ private StatusEntity( Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity.class, Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public StatusEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StatusEntity(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ATTACHMENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 attachment_; /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 1; + * @return Whether the attachment field is set. */ + @java.lang.Override public boolean hasAttachment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 1; + * @return The attachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getAttachment() { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : attachment_; } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder getAttachmentOrBuilder() { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : attachment_; } public static final int STATUS_FIELD_NUMBER = 2; private Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status status_; /** * required .Diadoc.Api.Proto.OuterDocflows.Status Status = 2; + * @return Whether the status field is set. */ + @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.OuterDocflows.Status Status = 2; + * @return The status. */ + @java.lang.Override public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status getStatus() { - return status_; + return status_ == null ? Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.getDefaultInstance() : status_; } /** * required .Diadoc.Api.Proto.OuterDocflows.Status Status = 2; */ + @java.lang.Override public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder getStatusOrBuilder() { - return status_; + return status_ == null ? Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.getDefaultInstance() : status_; } - private void initFields() { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - status_ = Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -17863,44 +19412,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, attachment_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAttachment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, status_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getStatus()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, attachment_); + .computeMessageSize(1, getAttachment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, status_); + .computeMessageSize(2, getStatus()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity other = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity) obj; + + if (hasAttachment() != other.hasAttachment()) return false; + if (hasAttachment()) { + if (!getAttachment() + .equals(other.getAttachment())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAttachment()) { + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -17924,42 +19521,57 @@ public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parseFrom( } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -17979,6 +19591,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_StatusEntity_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_StatusEntity_fieldAccessorTable @@ -17997,45 +19610,41 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getAttachmentFieldBuilder(); getStatusFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (attachmentBuilder_ == null) { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - } else { - attachmentBuilder_.clear(); + bitField0_ = 0; + attachment_ = null; + if (attachmentBuilder_ != null) { + attachmentBuilder_.dispose(); + attachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (statusBuilder_ == null) { - status_ = Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.getDefaultInstance(); - } else { - statusBuilder_.clear(); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_StatusEntity_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity build() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity result = buildPartial(); if (!result.isInitialized()) { @@ -18044,31 +19653,33 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity buildPartial() { Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity result = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attachment_ = attachmentBuilder_ == null + ? attachment_ + : attachmentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (attachmentBuilder_ == null) { - result.attachment_ = attachment_; - } else { - result.attachment_ = attachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity)other); @@ -18087,63 +19698,91 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity o mergeStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasAttachment()) { - return false; } if (!hasStatus()) { - return false; } if (!getAttachment().isInitialized()) { - return false; } if (!getStatus().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 attachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 attachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder> attachmentBuilder_; /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 1; + * @return Whether the attachment field is set. */ public boolean hasAttachment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 1; + * @return The attachment. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 getAttachment() { if (attachmentBuilder_ == null) { - return attachment_; + return attachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : attachment_; } else { return attachmentBuilder_.getMessage(); } @@ -18157,11 +19796,11 @@ public Builder setAttachment(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedA throw new NullPointerException(); } attachment_ = value; - onChanged(); } else { attachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -18171,11 +19810,11 @@ public Builder setAttachment( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.Builder builderForValue) { if (attachmentBuilder_ == null) { attachment_ = builderForValue.build(); - onChanged(); } else { attachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -18183,31 +19822,33 @@ public Builder setAttachment( */ public Builder mergeAttachment(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3 value) { if (attachmentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - attachment_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { - attachment_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.newBuilder(attachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + attachment_ != null && + attachment_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance()) { + getAttachmentBuilder().mergeFrom(value); } else { attachment_ = value; } - onChanged(); } else { attachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (attachment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.SignedAttachmentV3 Attachment = 1; */ public Builder clearAttachment() { - if (attachmentBuilder_ == null) { - attachment_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance(); - onChanged(); - } else { - attachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + attachment_ = null; + if (attachmentBuilder_ != null) { + attachmentBuilder_.dispose(); + attachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -18225,7 +19866,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g if (attachmentBuilder_ != null) { return attachmentBuilder_.getMessageOrBuilder(); } else { - return attachment_; + return attachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3.getDefaultInstance() : attachment_; } } /** @@ -18245,21 +19887,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignedAttachmentV3OrBuilder g return attachmentBuilder_; } - private Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status status_ = Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.getDefaultInstance(); + private Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status status_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status, Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.Builder, Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder> statusBuilder_; /** * required .Diadoc.Api.Proto.OuterDocflows.Status Status = 2; + * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.OuterDocflows.Status Status = 2; + * @return The status. */ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status getStatus() { if (statusBuilder_ == null) { - return status_; + return status_ == null ? Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } @@ -18273,11 +19917,11 @@ public Builder setStatus(Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos throw new NullPointerException(); } status_ = value; - onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -18287,11 +19931,11 @@ public Builder setStatus( Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); - onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -18299,31 +19943,33 @@ public Builder setStatus( */ public Builder mergeStatus(Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - status_ != Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.getDefaultInstance()) { - status_ = - Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + status_ != null && + status_ != Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); } else { status_ = value; } - onChanged(); } else { statusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (status_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.OuterDocflows.Status Status = 2; */ public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.getDefaultInstance(); - onChanged(); - } else { - statusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); return this; } /** @@ -18341,7 +19987,8 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_; + return status_ == null ? + Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.Status.getDefaultInstance() : status_; } } /** @@ -18364,82 +20011,122 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.StatusEntity) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.StatusEntity) + private static final Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity DEFAULT_INSTANCE; static { - defaultInstance = new StatusEntity(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity(); + } + + public static Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocflowV3Protos.StatusEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.StatusEntity) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocflowV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocflowV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SenderTitleDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SenderTitleDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ConfirmationDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ConfirmationDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_OperatorConfirmationDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_OperatorConfirmationDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SignatureRejectionDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SignatureRejectionDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ParticipantResponseDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ParticipantResponseDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_AmendmentRequestDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_AmendmentRequestDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflowV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflowV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_RevocationRequestDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_RevocationRequestDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_RevocationResponseDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_RevocationResponseDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflowV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflowV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_OuterDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_OuterDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_OuterDocflowEntities_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_OuterDocflowEntities_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_StatusEntity_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_StatusEntity_fieldAccessorTable; @@ -18447,7 +20134,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -18460,7 +20147,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "wStatusV3.proto\"\240\007\n\tDocflowV3\022A\n\013SenderT" + "itle\030\001 \002(\0132,.Diadoc.Api.Proto.Docflow.Se" + "nderTitleDocflow\022C\n\014Confirmation\030\002 \001(\0132-" + - ".Diadoc.Api.Proto.Docflow.ConfirmationDo", + ".Diadoc.Api.Proto.Docflow.ConfirmationDo" + "cflow\022K\n\rProxyResponse\030\013 \001(\01324.Diadoc.Ap" + "i.Proto.Docflow.ParticipantResponseDocfl" + "ow\022D\n\020RecipientReceipt\030\004 \001(\0132*.Diadoc.Ap" + @@ -18470,7 +20157,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "ndmentRequest\030\006 \001(\01321.Diadoc.Api.Proto.D" + "ocflow.AmendmentRequestDocflow\022A\n\nRevoca" + "tion\030\007 \001(\0132-.Diadoc.Api.Proto.Docflow.Re" + - "vocationDocflowV3\022A\n\rSenderReceipt\030\010 \001(\013", + "vocationDocflowV3\022A\n\rSenderReceipt\030\010 \001(\013" + "2*.Diadoc.Api.Proto.Docflow.ReceiptDocfl" + "owV3\022A\n\nResolution\030\t \001(\0132-.Diadoc.Api.Pr" + "oto.Docflow.ResolutionDocflowV3\022J\n\022Resol" + @@ -18480,7 +20167,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "terDocflow\022L\n\024OuterDocflowEntities\030\r \003(\013" + "2..Diadoc.Api.Proto.Docflow.OuterDocflow" + "Entities\0228\n\rDocflowStatus\030\016 \002(\0132!.Diadoc" + - ".Api.Proto.DocflowStatusV3\"\347\002\n\022SenderTit", + ".Api.Proto.DocflowStatusV3\"\347\002\n\022SenderTit" + "leDocflow\022\022\n\nIsFinished\030\001 \002(\010\022@\n\nAttachm" + "ent\030\002 \002(\0132,.Diadoc.Api.Proto.Docflow.Sig" + "nedAttachmentV3\022+\n\006SentAt\030\003 \001(\0132\033.Diadoc" + @@ -18490,7 +20177,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "ocflow.RoamingNotification\022P\n\025SenderSign" + "atureStatus\030\006 \002(\01621.Diadoc.Api.Proto.Doc" + "uments.SenderSignatureStatus\"\272\002\n\023Confirm" + - "ationDocflow\022\022\n\nIsFinished\030\001 \002(\010\022L\n\026Conf", + "ationDocflow\022\022\n\nIsFinished\030\001 \002(\010\022L\n\026Conf" + "irmationAttachment\030\002 \001(\0132,.Diadoc.Api.Pr" + "oto.Docflow.SignedAttachmentV3\0220\n\013Confir" + "medAt\030\003 \001(\0132\033.Diadoc.Api.Proto.Timestamp" + @@ -18500,7 +20187,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "eratorConfirmationDocflow\"\235\001\n\033OperatorCo" + "nfirmationDocflow\022L\n\026ConfirmationAttachm" + "ent\030\001 \001(\0132,.Diadoc.Api.Proto.Docflow.Sig" + - "nedAttachmentV3\0220\n\013ConfirmedAt\030\002 \001(\0132\033.D", + "nedAttachmentV3\0220\n\013ConfirmedAt\030\002 \001(\0132\033.D" + "iadoc.Api.Proto.Timestamp\"\274\001\n\031SignatureR" + "ejectionDocflow\022H\n\022SignatureRejection\030\001 " + "\002(\0132,.Diadoc.Api.Proto.Docflow.SignedAtt" + @@ -18510,7 +20197,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "Docflow\022\022\n\nIsFinished\030\001 \002(\010\0228\n\tSignature" + "\030\002 \001(\0132%.Diadoc.Api.Proto.Docflow.Signat" + "ureV3\022;\n\005Title\030\003 \001(\0132,.Diadoc.Api.Proto." + - "Docflow.SignedAttachmentV3\022F\n\tRejection\030", + "Docflow.SignedAttachmentV3\022F\n\tRejection\030" + "\004 \001(\01323.Diadoc.Api.Proto.Docflow.Signatu" + "reRejectionDocflow\022+\n\006SentAt\030\005 \001(\0132\033.Dia" + "doc.Api.Proto.Timestamp\0220\n\013DeliveredAt\030\006" + @@ -18520,7 +20207,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "mation\030\010 \001(\0132-.Diadoc.Api.Proto.Docflow." + "ConfirmationDocflow\"\210\003\n\027AmendmentRequest" + "Docflow\022\022\n\nIsFinished\030\001 \002(\010\022F\n\020Amendment" + - "Request\030\002 \001(\0132,.Diadoc.Api.Proto.Docflow", + "Request\030\002 \001(\0132,.Diadoc.Api.Proto.Docflow" + ".SignedAttachmentV3\022+\n\006SentAt\030\003 \001(\0132\033.Di" + "adoc.Api.Proto.Timestamp\0220\n\013DeliveredAt\030" + "\004 \001(\0132\033.Diadoc.Api.Proto.Timestamp\022;\n\007Re" + @@ -18530,7 +20217,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "w\030\010 \001(\0132-.Diadoc.Api.Proto.Docflow.Confi" + "rmationDocflow\"\303\003\n\023RevocationDocflowV3\022\022" + "\n\nIsFinished\030\001 \002(\010\022M\n\021RevocationRequest\030" + - "\002 \002(\01322.Diadoc.Api.Proto.Docflow.Revocat", + "\002 \002(\01322.Diadoc.Api.Proto.Docflow.Revocat" + "ionRequestDocflow\022O\n\022RevocationResponse\030" + "\003 \001(\01323.Diadoc.Api.Proto.Docflow.Revocat" + "ionResponseDocflow\022\026\n\016InitiatorBoxId\030\004 \002" + @@ -18540,7 +20227,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "o.Docflow.ResolutionEntitiesV3\022L\n\024OuterD" + "ocflowEntities\030\007 \003(\0132..Diadoc.Api.Proto." + "Docflow.OuterDocflowEntities\"\241\002\n\030Revocat" + - "ionRequestDocflow\022G\n\021RevocationRequest\030\001", + "ionRequestDocflow\022G\n\021RevocationRequest\030\001" + " \002(\0132,.Diadoc.Api.Proto.Docflow.SignedAt" + "tachmentV3\022+\n\006SentAt\030\002 \001(\0132\033.Diadoc.Api." + "Proto.Timestamp\0220\n\013DeliveredAt\030\003 \001(\0132\033.D" + @@ -18550,7 +20237,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "\"\257\001\n\031RevocationResponseDocflow\022A\n\022Recipi" + "entSignature\030\001 \001(\0132%.Diadoc.Api.Proto.Do" + "cflow.SignatureV3\022O\n\022SignatureRejection\030" + - "\002 \001(\01323.Diadoc.Api.Proto.Docflow.Signatu", + "\002 \001(\01323.Diadoc.Api.Proto.Docflow.Signatu" + "reRejectionDocflow\"\325\002\n\020ReceiptDocflowV3\022" + "\022\n\nIsFinished\030\001 \002(\010\022G\n\021ReceiptAttachment" + "\030\002 \001(\0132,.Diadoc.Api.Proto.Docflow.Signed" + @@ -18560,7 +20247,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "ion\030\005 \001(\0132-.Diadoc.Api.Proto.Docflow.Con" + "firmationDocflow\022@\n\006Status\030\006 \002(\01620.Diado" + "c.Api.Proto.Documents.GeneralReceiptStat" + - "us\"\\\n\014OuterDocflow\022\026\n\016DocflowNamedId\030\001 \002", + "us\"\\\n\014OuterDocflow\022\026\n\016DocflowNamedId\030\001 \002" + "(\t\022\026\n\016ParentEntityId\030\002 \002(\t\022\034\n\024OuterDocfl" + "owEntityId\030\003 \002(\t\"\213\001\n\024OuterDocflowEntitie" + "s\022\026\n\016DocflowNamedId\030\001 \002(\t\022\033\n\023DocflowFrie" + @@ -18571,15 +20258,7 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.StatusOrBuilder g "3\0226\n\006Status\030\002 \002(\0132&.Diadoc.Api.Proto.Out" + "erDocflows.StatusB\021B\017DocflowV3Protos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), @@ -18589,7 +20268,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.getDescriptor(), Diadoc.Api.Proto.OuterDocflows.OuterDocflowStatusProtos.getDescriptor(), Diadoc.Api.Proto.DocflowStatusV3Protos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_DocflowV3_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_DocflowV3_fieldAccessorTable = new @@ -18674,6 +20353,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_StatusEntity_descriptor, new java.lang.String[] { "Attachment", "Status", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.Documents.DocumentProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.AttachmentV3Protos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoProtos.java index d397818a..a8067fea 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoProtos.java @@ -1,106 +1,143 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/DocumentInfo.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class DocumentInfoProtos { private DocumentInfoProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentInfoProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface DocumentInfoOrBuilder extends + @java.lang.Deprecated public interface DocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.DocumentInfo) com.google.protobuf.MessageOrBuilder { /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 1 [default = UnknownDocumentType]; + * @return Whether the documentType field is set. */ boolean hasDocumentType(); /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 1 [default = UnknownDocumentType]; + * @return The documentType. */ Diadoc.Api.Proto.DocumentTypeProtos.DocumentType getDocumentType(); /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 2 [default = UnknownDocumentDirection]; + * @return Whether the documentDirection field is set. */ boolean hasDocumentDirection(); /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 2 [default = UnknownDocumentDirection]; + * @return The documentDirection. */ Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection(); /** * optional bool IsTest = 3; + * @return Whether the isTest field is set. */ boolean hasIsTest(); /** * optional bool IsTest = 3; + * @return The isTest. */ boolean getIsTest(); /** * optional string CustomDocumentId = 4; + * @return Whether the customDocumentId field is set. */ boolean hasCustomDocumentId(); /** * optional string CustomDocumentId = 4; + * @return The customDocumentId. */ java.lang.String getCustomDocumentId(); /** * optional string CustomDocumentId = 4; + * @return The bytes for customDocumentId. */ com.google.protobuf.ByteString getCustomDocumentIdBytes(); /** * optional string FromDepartmentId = 5; + * @return Whether the fromDepartmentId field is set. */ boolean hasFromDepartmentId(); /** * optional string FromDepartmentId = 5; + * @return The fromDepartmentId. */ java.lang.String getFromDepartmentId(); /** * optional string FromDepartmentId = 5; + * @return The bytes for fromDepartmentId. */ com.google.protobuf.ByteString getFromDepartmentIdBytes(); /** * optional string ToDepartmentId = 6; + * @return Whether the toDepartmentId field is set. */ boolean hasToDepartmentId(); /** * optional string ToDepartmentId = 6; + * @return The toDepartmentId. */ java.lang.String getToDepartmentId(); /** * optional string ToDepartmentId = 6; + * @return The bytes for toDepartmentId. */ com.google.protobuf.ByteString getToDepartmentIdBytes(); /** * optional string CounteragentBoxId = 7; + * @return Whether the counteragentBoxId field is set. */ boolean hasCounteragentBoxId(); /** * optional string CounteragentBoxId = 7; + * @return The counteragentBoxId. */ java.lang.String getCounteragentBoxId(); /** * optional string CounteragentBoxId = 7; + * @return The bytes for counteragentBoxId. */ com.google.protobuf.ByteString getCounteragentBoxIdBytes(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 8; + * @return Whether the documentDateAndNumber field is set. */ boolean hasDocumentDateAndNumber(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 8; + * @return The documentDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getDocumentDateAndNumber(); /** @@ -109,86 +146,94 @@ public interface DocumentInfoOrBuilder extends Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getDocumentDateAndNumberOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
      * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; + * @return Whether the basicDocumentInfo field is set. */ boolean hasBasicDocumentInfo(); /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
      * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; + * @return The basicDocumentInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo getBasicDocumentInfo(); /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
      * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfoOrBuilder getBasicDocumentInfoOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
      * for Invoice, InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; + * @return Whether the invoiceInfo field is set. */ boolean hasInvoiceInfo(); /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
      * for Invoice, InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; + * @return The invoiceInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo getInvoiceInfo(); /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
      * for Invoice, InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfoOrBuilder getInvoiceInfoOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
      * for InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; + * @return Whether the invoiceCorrectionInfo field is set. */ boolean hasInvoiceCorrectionInfo(); /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
      * for InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; + * @return The invoiceCorrectionInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo getInvoiceCorrectionInfo(); /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
      * for InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfoOrBuilder getInvoiceCorrectionInfoOrBuilder(); /** * optional .Diadoc.Api.Proto.Docflow.PriceListDocumentInfo PriceListInfo = 12; + * @return Whether the priceListInfo field is set. */ boolean hasPriceListInfo(); /** * optional .Diadoc.Api.Proto.Docflow.PriceListDocumentInfo PriceListInfo = 12; + * @return The priceListInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo getPriceListInfo(); /** @@ -198,10 +243,12 @@ public interface DocumentInfoOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ContractDocumentInfo ContractInfo = 13; + * @return Whether the contractInfo field is set. */ boolean hasContractInfo(); /** * optional .Diadoc.Api.Proto.Docflow.ContractDocumentInfo ContractInfo = 13; + * @return The contractInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo getContractInfo(); /** @@ -211,10 +258,12 @@ public interface DocumentInfoOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo SupplementaryAgreementInfo = 14; + * @return Whether the supplementaryAgreementInfo field is set. */ boolean hasSupplementaryAgreementInfo(); /** * optional .Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo SupplementaryAgreementInfo = 14; + * @return The supplementaryAgreementInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo getSupplementaryAgreementInfo(); /** @@ -223,79 +272,89 @@ public interface DocumentInfoOrBuilder extends Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfoOrBuilder getSupplementaryAgreementInfoOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; + * @return Whether the universalTransferDocumentInfo field is set. */ boolean hasUniversalTransferDocumentInfo(); /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; + * @return The universalTransferDocumentInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo getUniversalTransferDocumentInfo(); /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfoOrBuilder getUniversalTransferDocumentInfoOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
      * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; + * @return Whether the universalCorrectionDocumentInfo field is set. */ boolean hasUniversalCorrectionDocumentInfo(); /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
      * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; + * @return The universalCorrectionDocumentInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo getUniversalCorrectionDocumentInfo(); /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
      * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfoOrBuilder getUniversalCorrectionDocumentInfoOrBuilder(); /** * optional string AttachmentVersion = 17; + * @return Whether the attachmentVersion field is set. */ boolean hasAttachmentVersion(); /** * optional string AttachmentVersion = 17; + * @return The attachmentVersion. */ java.lang.String getAttachmentVersion(); /** * optional string AttachmentVersion = 17; + * @return The bytes for attachmentVersion. */ com.google.protobuf.ByteString getAttachmentVersionBytes(); /** * required string Version = 18; + * @return Whether the version field is set. */ boolean hasVersion(); /** * required string Version = 18; + * @return The version. */ java.lang.String getVersion(); /** * required string Version = 18; + * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); @@ -303,252 +362,41 @@ public interface DocumentInfoOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.DocumentInfo} */ - public static final class DocumentInfo extends + @java.lang.Deprecated public static final class DocumentInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentInfo) DocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentInfo.class.getName()); + } // Use DocumentInfo.newBuilder() to construct. private DocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentInfo defaultInstance; - public static DocumentInfo getDefaultInstance() { - return defaultInstance; } - - public DocumentInfo getDefaultInstanceForType() { - return defaultInstance; + private DocumentInfo() { + documentType_ = -1; + documentDirection_ = 0; + customDocumentId_ = ""; + fromDepartmentId_ = ""; + toDepartmentId_ = ""; + counteragentBoxId_ = ""; + attachmentVersion_ = ""; + version_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.DocumentTypeProtos.DocumentType value = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentType_ = value; - } - break; - } - case 16: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection value = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - documentDirection_ = value; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - isTest_ = input.readBool(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - customDocumentId_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - fromDepartmentId_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - toDepartmentId_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - counteragentBoxId_ = bs; - break; - } - case 66: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = documentDateAndNumber_.toBuilder(); - } - documentDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentDateAndNumber_); - documentDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - case 74: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = basicDocumentInfo_.toBuilder(); - } - basicDocumentInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicDocumentInfo_); - basicDocumentInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 82: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) == 0x00000200)) { - subBuilder = invoiceInfo_.toBuilder(); - } - invoiceInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invoiceInfo_); - invoiceInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - break; - } - case 90: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000400) == 0x00000400)) { - subBuilder = invoiceCorrectionInfo_.toBuilder(); - } - invoiceCorrectionInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invoiceCorrectionInfo_); - invoiceCorrectionInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000400; - break; - } - case 98: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000800) == 0x00000800)) { - subBuilder = priceListInfo_.toBuilder(); - } - priceListInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(priceListInfo_); - priceListInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000800; - break; - } - case 106: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00001000) == 0x00001000)) { - subBuilder = contractInfo_.toBuilder(); - } - contractInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contractInfo_); - contractInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00001000; - break; - } - case 114: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00002000) == 0x00002000)) { - subBuilder = supplementaryAgreementInfo_.toBuilder(); - } - supplementaryAgreementInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(supplementaryAgreementInfo_); - supplementaryAgreementInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00002000; - break; - } - case 122: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00004000) == 0x00004000)) { - subBuilder = universalTransferDocumentInfo_.toBuilder(); - } - universalTransferDocumentInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(universalTransferDocumentInfo_); - universalTransferDocumentInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00004000; - break; - } - case 130: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00008000) == 0x00008000)) { - subBuilder = universalCorrectionDocumentInfo_.toBuilder(); - } - universalCorrectionDocumentInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(universalCorrectionDocumentInfo_); - universalCorrectionDocumentInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00008000; - break; - } - case 138: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00010000; - attachmentVersion_ = bs; - break; - } - case 146: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00020000; - version_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentInfo_fieldAccessorTable @@ -556,78 +404,78 @@ private DocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTTYPE_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.DocumentTypeProtos.DocumentType documentType_; + private int documentType_ = -1; /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 1 [default = UnknownDocumentType]; + * @return Whether the documentType field is set. */ - public boolean hasDocumentType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentType() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 1 [default = UnknownDocumentType]; + * @return The documentType. */ - public Diadoc.Api.Proto.DocumentTypeProtos.DocumentType getDocumentType() { - return documentType_; + @java.lang.Override public Diadoc.Api.Proto.DocumentTypeProtos.DocumentType getDocumentType() { + Diadoc.Api.Proto.DocumentTypeProtos.DocumentType result = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.forNumber(documentType_); + return result == null ? Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType : result; } public static final int DOCUMENTDIRECTION_FIELD_NUMBER = 2; - private Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection documentDirection_; + private int documentDirection_ = 0; /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 2 [default = UnknownDocumentDirection]; + * @return Whether the documentDirection field is set. */ - public boolean hasDocumentDirection() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasDocumentDirection() { + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 2 [default = UnknownDocumentDirection]; + * @return The documentDirection. */ - public Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection() { - return documentDirection_; + @java.lang.Override public Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection() { + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection result = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.forNumber(documentDirection_); + return result == null ? Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection : result; } public static final int ISTEST_FIELD_NUMBER = 3; - private boolean isTest_; + private boolean isTest_ = false; /** * optional bool IsTest = 3; + * @return Whether the isTest field is set. */ + @java.lang.Override public boolean hasIsTest() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool IsTest = 3; + * @return The isTest. */ + @java.lang.Override public boolean getIsTest() { return isTest_; } public static final int CUSTOMDOCUMENTID_FIELD_NUMBER = 4; - private java.lang.Object customDocumentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object customDocumentId_ = ""; /** * optional string CustomDocumentId = 4; + * @return Whether the customDocumentId field is set. */ + @java.lang.Override public boolean hasCustomDocumentId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string CustomDocumentId = 4; + * @return The customDocumentId. */ + @java.lang.Override public java.lang.String getCustomDocumentId() { java.lang.Object ref = customDocumentId_; if (ref instanceof java.lang.String) { @@ -644,7 +492,9 @@ public java.lang.String getCustomDocumentId() { } /** * optional string CustomDocumentId = 4; + * @return The bytes for customDocumentId. */ + @java.lang.Override public com.google.protobuf.ByteString getCustomDocumentIdBytes() { java.lang.Object ref = customDocumentId_; @@ -660,16 +510,21 @@ public java.lang.String getCustomDocumentId() { } public static final int FROMDEPARTMENTID_FIELD_NUMBER = 5; - private java.lang.Object fromDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object fromDepartmentId_ = ""; /** * optional string FromDepartmentId = 5; + * @return Whether the fromDepartmentId field is set. */ + @java.lang.Override public boolean hasFromDepartmentId() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string FromDepartmentId = 5; + * @return The fromDepartmentId. */ + @java.lang.Override public java.lang.String getFromDepartmentId() { java.lang.Object ref = fromDepartmentId_; if (ref instanceof java.lang.String) { @@ -686,7 +541,9 @@ public java.lang.String getFromDepartmentId() { } /** * optional string FromDepartmentId = 5; + * @return The bytes for fromDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getFromDepartmentIdBytes() { java.lang.Object ref = fromDepartmentId_; @@ -702,16 +559,21 @@ public java.lang.String getFromDepartmentId() { } public static final int TODEPARTMENTID_FIELD_NUMBER = 6; - private java.lang.Object toDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object toDepartmentId_ = ""; /** * optional string ToDepartmentId = 6; + * @return Whether the toDepartmentId field is set. */ + @java.lang.Override public boolean hasToDepartmentId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string ToDepartmentId = 6; + * @return The toDepartmentId. */ + @java.lang.Override public java.lang.String getToDepartmentId() { java.lang.Object ref = toDepartmentId_; if (ref instanceof java.lang.String) { @@ -728,7 +590,9 @@ public java.lang.String getToDepartmentId() { } /** * optional string ToDepartmentId = 6; + * @return The bytes for toDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getToDepartmentIdBytes() { java.lang.Object ref = toDepartmentId_; @@ -744,16 +608,21 @@ public java.lang.String getToDepartmentId() { } public static final int COUNTERAGENTBOXID_FIELD_NUMBER = 7; - private java.lang.Object counteragentBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object counteragentBoxId_ = ""; /** * optional string CounteragentBoxId = 7; + * @return Whether the counteragentBoxId field is set. */ + @java.lang.Override public boolean hasCounteragentBoxId() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string CounteragentBoxId = 7; + * @return The counteragentBoxId. */ + @java.lang.Override public java.lang.String getCounteragentBoxId() { java.lang.Object ref = counteragentBoxId_; if (ref instanceof java.lang.String) { @@ -770,7 +639,9 @@ public java.lang.String getCounteragentBoxId() { } /** * optional string CounteragentBoxId = 7; + * @return The bytes for counteragentBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getCounteragentBoxIdBytes() { java.lang.Object ref = counteragentBoxId_; @@ -789,262 +660,312 @@ public java.lang.String getCounteragentBoxId() { private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber documentDateAndNumber_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 8; + * @return Whether the documentDateAndNumber field is set. */ + @java.lang.Override public boolean hasDocumentDateAndNumber() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 8; + * @return The documentDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getDocumentDateAndNumber() { - return documentDateAndNumber_; + return documentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : documentDateAndNumber_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getDocumentDateAndNumberOrBuilder() { - return documentDateAndNumber_; + return documentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : documentDateAndNumber_; } public static final int BASICDOCUMENTINFO_FIELD_NUMBER = 9; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo basicDocumentInfo_; /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
      * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; + * @return Whether the basicDocumentInfo field is set. */ + @java.lang.Override public boolean hasBasicDocumentInfo() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
      * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; + * @return The basicDocumentInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo getBasicDocumentInfo() { - return basicDocumentInfo_; + return basicDocumentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance() : basicDocumentInfo_; } /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
      * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfoOrBuilder getBasicDocumentInfoOrBuilder() { - return basicDocumentInfo_; + return basicDocumentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance() : basicDocumentInfo_; } public static final int INVOICEINFO_FIELD_NUMBER = 10; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo invoiceInfo_; /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
      * for Invoice, InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; + * @return Whether the invoiceInfo field is set. */ + @java.lang.Override public boolean hasInvoiceInfo() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
      * for Invoice, InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; + * @return The invoiceInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo getInvoiceInfo() { - return invoiceInfo_; + return invoiceInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance() : invoiceInfo_; } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
      * for Invoice, InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfoOrBuilder getInvoiceInfoOrBuilder() { - return invoiceInfo_; + return invoiceInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance() : invoiceInfo_; } public static final int INVOICECORRECTIONINFO_FIELD_NUMBER = 11; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo invoiceCorrectionInfo_; /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
      * for InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; + * @return Whether the invoiceCorrectionInfo field is set. */ + @java.lang.Override public boolean hasInvoiceCorrectionInfo() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
      * for InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; + * @return The invoiceCorrectionInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo getInvoiceCorrectionInfo() { - return invoiceCorrectionInfo_; + return invoiceCorrectionInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance() : invoiceCorrectionInfo_; } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
      * for InvoiceCorrection, InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfoOrBuilder getInvoiceCorrectionInfoOrBuilder() { - return invoiceCorrectionInfo_; + return invoiceCorrectionInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance() : invoiceCorrectionInfo_; } public static final int PRICELISTINFO_FIELD_NUMBER = 12; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo priceListInfo_; /** * optional .Diadoc.Api.Proto.Docflow.PriceListDocumentInfo PriceListInfo = 12; + * @return Whether the priceListInfo field is set. */ + @java.lang.Override public boolean hasPriceListInfo() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.PriceListDocumentInfo PriceListInfo = 12; + * @return The priceListInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo getPriceListInfo() { - return priceListInfo_; + return priceListInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance() : priceListInfo_; } /** * optional .Diadoc.Api.Proto.Docflow.PriceListDocumentInfo PriceListInfo = 12; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfoOrBuilder getPriceListInfoOrBuilder() { - return priceListInfo_; + return priceListInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance() : priceListInfo_; } public static final int CONTRACTINFO_FIELD_NUMBER = 13; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo contractInfo_; /** * optional .Diadoc.Api.Proto.Docflow.ContractDocumentInfo ContractInfo = 13; + * @return Whether the contractInfo field is set. */ + @java.lang.Override public boolean hasContractInfo() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ContractDocumentInfo ContractInfo = 13; + * @return The contractInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo getContractInfo() { - return contractInfo_; + return contractInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance() : contractInfo_; } /** * optional .Diadoc.Api.Proto.Docflow.ContractDocumentInfo ContractInfo = 13; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfoOrBuilder getContractInfoOrBuilder() { - return contractInfo_; + return contractInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance() : contractInfo_; } public static final int SUPPLEMENTARYAGREEMENTINFO_FIELD_NUMBER = 14; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo supplementaryAgreementInfo_; /** * optional .Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo SupplementaryAgreementInfo = 14; + * @return Whether the supplementaryAgreementInfo field is set. */ + @java.lang.Override public boolean hasSupplementaryAgreementInfo() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo SupplementaryAgreementInfo = 14; + * @return The supplementaryAgreementInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo getSupplementaryAgreementInfo() { - return supplementaryAgreementInfo_; + return supplementaryAgreementInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance() : supplementaryAgreementInfo_; } /** * optional .Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo SupplementaryAgreementInfo = 14; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfoOrBuilder getSupplementaryAgreementInfoOrBuilder() { - return supplementaryAgreementInfo_; + return supplementaryAgreementInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance() : supplementaryAgreementInfo_; } public static final int UNIVERSALTRANSFERDOCUMENTINFO_FIELD_NUMBER = 15; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo universalTransferDocumentInfo_; /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; + * @return Whether the universalTransferDocumentInfo field is set. */ + @java.lang.Override public boolean hasUniversalTransferDocumentInfo() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; + * @return The universalTransferDocumentInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo getUniversalTransferDocumentInfo() { - return universalTransferDocumentInfo_; + return universalTransferDocumentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance() : universalTransferDocumentInfo_; } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
      * for UniversalTransferDocument, UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfoOrBuilder getUniversalTransferDocumentInfoOrBuilder() { - return universalTransferDocumentInfo_; + return universalTransferDocumentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance() : universalTransferDocumentInfo_; } public static final int UNIVERSALCORRECTIONDOCUMENTINFO_FIELD_NUMBER = 16; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo universalCorrectionDocumentInfo_; /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
      * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; + * @return Whether the universalCorrectionDocumentInfo field is set. */ + @java.lang.Override public boolean hasUniversalCorrectionDocumentInfo() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
      * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; + * @return The universalCorrectionDocumentInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo getUniversalCorrectionDocumentInfo() { - return universalCorrectionDocumentInfo_; + return universalCorrectionDocumentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance() : universalCorrectionDocumentInfo_; } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
      * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfoOrBuilder getUniversalCorrectionDocumentInfoOrBuilder() { - return universalCorrectionDocumentInfo_; + return universalCorrectionDocumentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance() : universalCorrectionDocumentInfo_; } public static final int ATTACHMENTVERSION_FIELD_NUMBER = 17; - private java.lang.Object attachmentVersion_; + @SuppressWarnings("serial") + private volatile java.lang.Object attachmentVersion_ = ""; /** * optional string AttachmentVersion = 17; + * @return Whether the attachmentVersion field is set. */ + @java.lang.Override public boolean hasAttachmentVersion() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional string AttachmentVersion = 17; + * @return The attachmentVersion. */ + @java.lang.Override public java.lang.String getAttachmentVersion() { java.lang.Object ref = attachmentVersion_; if (ref instanceof java.lang.String) { @@ -1061,7 +982,9 @@ public java.lang.String getAttachmentVersion() { } /** * optional string AttachmentVersion = 17; + * @return The bytes for attachmentVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getAttachmentVersionBytes() { java.lang.Object ref = attachmentVersion_; @@ -1077,16 +1000,21 @@ public java.lang.String getAttachmentVersion() { } public static final int VERSION_FIELD_NUMBER = 18; - private java.lang.Object version_; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * required string Version = 18; + * @return Whether the version field is set. */ + @java.lang.Override public boolean hasVersion() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00020000) != 0); } /** * required string Version = 18; + * @return The version. */ + @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { @@ -1103,7 +1031,9 @@ public java.lang.String getVersion() { } /** * required string Version = 18; + * @return The bytes for version. */ + @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -1118,27 +1048,8 @@ public java.lang.String getVersion() { } } - private void initFields() { - documentType_ = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType; - documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; - isTest_ = false; - customDocumentId_ = ""; - fromDepartmentId_ = ""; - toDepartmentId_ = ""; - counteragentBoxId_ = ""; - documentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - basicDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance(); - invoiceInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance(); - invoiceCorrectionInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance(); - priceListInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance(); - contractInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance(); - supplementaryAgreementInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance(); - universalTransferDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance(); - universalCorrectionDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance(); - attachmentVersion_ = ""; - version_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1170,215 +1081,415 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentType_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, documentDirection_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, documentDirection_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, isTest_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getCustomDocumentIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, customDocumentId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getFromDepartmentIdBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, fromDepartmentId_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getToDepartmentIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, toDepartmentId_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getCounteragentBoxIdBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, counteragentBoxId_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, documentDateAndNumber_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getDocumentDateAndNumber()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, basicDocumentInfo_); + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getBasicDocumentInfo()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(10, invoiceInfo_); + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(10, getInvoiceInfo()); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(11, invoiceCorrectionInfo_); + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(11, getInvoiceCorrectionInfo()); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(12, priceListInfo_); + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(12, getPriceListInfo()); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(13, contractInfo_); + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(13, getContractInfo()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(14, supplementaryAgreementInfo_); + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(14, getSupplementaryAgreementInfo()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(15, universalTransferDocumentInfo_); + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(15, getUniversalTransferDocumentInfo()); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeMessage(16, universalCorrectionDocumentInfo_); + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(16, getUniversalCorrectionDocumentInfo()); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeBytes(17, getAttachmentVersionBytes()); + if (((bitField0_ & 0x00010000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, attachmentVersion_); } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - output.writeBytes(18, getVersionBytes()); + if (((bitField0_ & 0x00020000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, version_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentType_.getNumber()); + .computeEnumSize(1, documentType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, documentDirection_.getNumber()); + .computeEnumSize(2, documentDirection_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isTest_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getCustomDocumentIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, customDocumentId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getFromDepartmentIdBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, fromDepartmentId_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getToDepartmentIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, toDepartmentId_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getCounteragentBoxIdBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, counteragentBoxId_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, documentDateAndNumber_); + .computeMessageSize(8, getDocumentDateAndNumber()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, basicDocumentInfo_); + .computeMessageSize(9, getBasicDocumentInfo()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, invoiceInfo_); + .computeMessageSize(10, getInvoiceInfo()); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, invoiceCorrectionInfo_); + .computeMessageSize(11, getInvoiceCorrectionInfo()); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, priceListInfo_); + .computeMessageSize(12, getPriceListInfo()); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, contractInfo_); + .computeMessageSize(13, getContractInfo()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, supplementaryAgreementInfo_); + .computeMessageSize(14, getSupplementaryAgreementInfo()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, universalTransferDocumentInfo_); + .computeMessageSize(15, getUniversalTransferDocumentInfo()); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, universalCorrectionDocumentInfo_); + .computeMessageSize(16, getUniversalCorrectionDocumentInfo()); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(17, getAttachmentVersionBytes()); + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(17, attachmentVersion_); } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(18, getVersionBytes()); + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(18, version_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo) obj; + + if (hasDocumentType() != other.hasDocumentType()) return false; + if (hasDocumentType()) { + if (documentType_ != other.documentType_) return false; + } + if (hasDocumentDirection() != other.hasDocumentDirection()) return false; + if (hasDocumentDirection()) { + if (documentDirection_ != other.documentDirection_) return false; + } + if (hasIsTest() != other.hasIsTest()) return false; + if (hasIsTest()) { + if (getIsTest() + != other.getIsTest()) return false; + } + if (hasCustomDocumentId() != other.hasCustomDocumentId()) return false; + if (hasCustomDocumentId()) { + if (!getCustomDocumentId() + .equals(other.getCustomDocumentId())) return false; + } + if (hasFromDepartmentId() != other.hasFromDepartmentId()) return false; + if (hasFromDepartmentId()) { + if (!getFromDepartmentId() + .equals(other.getFromDepartmentId())) return false; + } + if (hasToDepartmentId() != other.hasToDepartmentId()) return false; + if (hasToDepartmentId()) { + if (!getToDepartmentId() + .equals(other.getToDepartmentId())) return false; + } + if (hasCounteragentBoxId() != other.hasCounteragentBoxId()) return false; + if (hasCounteragentBoxId()) { + if (!getCounteragentBoxId() + .equals(other.getCounteragentBoxId())) return false; + } + if (hasDocumentDateAndNumber() != other.hasDocumentDateAndNumber()) return false; + if (hasDocumentDateAndNumber()) { + if (!getDocumentDateAndNumber() + .equals(other.getDocumentDateAndNumber())) return false; + } + if (hasBasicDocumentInfo() != other.hasBasicDocumentInfo()) return false; + if (hasBasicDocumentInfo()) { + if (!getBasicDocumentInfo() + .equals(other.getBasicDocumentInfo())) return false; + } + if (hasInvoiceInfo() != other.hasInvoiceInfo()) return false; + if (hasInvoiceInfo()) { + if (!getInvoiceInfo() + .equals(other.getInvoiceInfo())) return false; + } + if (hasInvoiceCorrectionInfo() != other.hasInvoiceCorrectionInfo()) return false; + if (hasInvoiceCorrectionInfo()) { + if (!getInvoiceCorrectionInfo() + .equals(other.getInvoiceCorrectionInfo())) return false; + } + if (hasPriceListInfo() != other.hasPriceListInfo()) return false; + if (hasPriceListInfo()) { + if (!getPriceListInfo() + .equals(other.getPriceListInfo())) return false; + } + if (hasContractInfo() != other.hasContractInfo()) return false; + if (hasContractInfo()) { + if (!getContractInfo() + .equals(other.getContractInfo())) return false; + } + if (hasSupplementaryAgreementInfo() != other.hasSupplementaryAgreementInfo()) return false; + if (hasSupplementaryAgreementInfo()) { + if (!getSupplementaryAgreementInfo() + .equals(other.getSupplementaryAgreementInfo())) return false; + } + if (hasUniversalTransferDocumentInfo() != other.hasUniversalTransferDocumentInfo()) return false; + if (hasUniversalTransferDocumentInfo()) { + if (!getUniversalTransferDocumentInfo() + .equals(other.getUniversalTransferDocumentInfo())) return false; + } + if (hasUniversalCorrectionDocumentInfo() != other.hasUniversalCorrectionDocumentInfo()) return false; + if (hasUniversalCorrectionDocumentInfo()) { + if (!getUniversalCorrectionDocumentInfo() + .equals(other.getUniversalCorrectionDocumentInfo())) return false; + } + if (hasAttachmentVersion() != other.hasAttachmentVersion()) return false; + if (hasAttachmentVersion()) { + if (!getAttachmentVersion() + .equals(other.getAttachmentVersion())) return false; + } + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion() + .equals(other.getVersion())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo 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.Docflow.DocumentInfoProtos.DocumentInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentType()) { + hash = (37 * hash) + DOCUMENTTYPE_FIELD_NUMBER; + hash = (53 * hash) + documentType_; + } + if (hasDocumentDirection()) { + hash = (37 * hash) + DOCUMENTDIRECTION_FIELD_NUMBER; + hash = (53 * hash) + documentDirection_; + } + if (hasIsTest()) { + hash = (37 * hash) + ISTEST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsTest()); + } + if (hasCustomDocumentId()) { + hash = (37 * hash) + CUSTOMDOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getCustomDocumentId().hashCode(); + } + if (hasFromDepartmentId()) { + hash = (37 * hash) + FROMDEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getFromDepartmentId().hashCode(); + } + if (hasToDepartmentId()) { + hash = (37 * hash) + TODEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getToDepartmentId().hashCode(); + } + if (hasCounteragentBoxId()) { + hash = (37 * hash) + COUNTERAGENTBOXID_FIELD_NUMBER; + hash = (53 * hash) + getCounteragentBoxId().hashCode(); + } + if (hasDocumentDateAndNumber()) { + hash = (37 * hash) + DOCUMENTDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getDocumentDateAndNumber().hashCode(); + } + if (hasBasicDocumentInfo()) { + hash = (37 * hash) + BASICDOCUMENTINFO_FIELD_NUMBER; + hash = (53 * hash) + getBasicDocumentInfo().hashCode(); + } + if (hasInvoiceInfo()) { + hash = (37 * hash) + INVOICEINFO_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceInfo().hashCode(); + } + if (hasInvoiceCorrectionInfo()) { + hash = (37 * hash) + INVOICECORRECTIONINFO_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceCorrectionInfo().hashCode(); + } + if (hasPriceListInfo()) { + hash = (37 * hash) + PRICELISTINFO_FIELD_NUMBER; + hash = (53 * hash) + getPriceListInfo().hashCode(); + } + if (hasContractInfo()) { + hash = (37 * hash) + CONTRACTINFO_FIELD_NUMBER; + hash = (53 * hash) + getContractInfo().hashCode(); + } + if (hasSupplementaryAgreementInfo()) { + hash = (37 * hash) + SUPPLEMENTARYAGREEMENTINFO_FIELD_NUMBER; + hash = (53 * hash) + getSupplementaryAgreementInfo().hashCode(); + } + if (hasUniversalTransferDocumentInfo()) { + hash = (37 * hash) + UNIVERSALTRANSFERDOCUMENTINFO_FIELD_NUMBER; + hash = (53 * hash) + getUniversalTransferDocumentInfo().hashCode(); + } + if (hasUniversalCorrectionDocumentInfo()) { + hash = (37 * hash) + UNIVERSALCORRECTIONDOCUMENTINFO_FIELD_NUMBER; + hash = (53 * hash) + getUniversalCorrectionDocumentInfo().hashCode(); + } + if (hasAttachmentVersion()) { + hash = (37 * hash) + ATTACHMENTVERSION_FIELD_NUMBER; + hash = (53 * hash) + getAttachmentVersion().hashCode(); + } + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo 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.Docflow.DocumentInfoProtos.DocumentInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1398,6 +1509,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentInfo_fieldAccessorTable @@ -1416,7 +1528,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDocumentDateAndNumberFieldBuilder(); getBasicDocumentInfoFieldBuilder(); getInvoiceInfoFieldBuilder(); @@ -1428,100 +1541,79 @@ private void maybeForceBuilderInitialization() { getUniversalCorrectionDocumentInfoFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - documentType_ = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType; - bitField0_ = (bitField0_ & ~0x00000001); - documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = 0; + documentType_ = -1; + documentDirection_ = 0; isTest_ = false; - bitField0_ = (bitField0_ & ~0x00000004); customDocumentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); fromDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); toDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); counteragentBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - if (documentDateAndNumberBuilder_ == null) { - documentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - documentDateAndNumberBuilder_.clear(); + documentDateAndNumber_ = null; + if (documentDateAndNumberBuilder_ != null) { + documentDateAndNumberBuilder_.dispose(); + documentDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000080); - if (basicDocumentInfoBuilder_ == null) { - basicDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance(); - } else { - basicDocumentInfoBuilder_.clear(); + basicDocumentInfo_ = null; + if (basicDocumentInfoBuilder_ != null) { + basicDocumentInfoBuilder_.dispose(); + basicDocumentInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000100); - if (invoiceInfoBuilder_ == null) { - invoiceInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance(); - } else { - invoiceInfoBuilder_.clear(); + invoiceInfo_ = null; + if (invoiceInfoBuilder_ != null) { + invoiceInfoBuilder_.dispose(); + invoiceInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000200); - if (invoiceCorrectionInfoBuilder_ == null) { - invoiceCorrectionInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance(); - } else { - invoiceCorrectionInfoBuilder_.clear(); + invoiceCorrectionInfo_ = null; + if (invoiceCorrectionInfoBuilder_ != null) { + invoiceCorrectionInfoBuilder_.dispose(); + invoiceCorrectionInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000400); - if (priceListInfoBuilder_ == null) { - priceListInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance(); - } else { - priceListInfoBuilder_.clear(); + priceListInfo_ = null; + if (priceListInfoBuilder_ != null) { + priceListInfoBuilder_.dispose(); + priceListInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000800); - if (contractInfoBuilder_ == null) { - contractInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance(); - } else { - contractInfoBuilder_.clear(); + contractInfo_ = null; + if (contractInfoBuilder_ != null) { + contractInfoBuilder_.dispose(); + contractInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00001000); - if (supplementaryAgreementInfoBuilder_ == null) { - supplementaryAgreementInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance(); - } else { - supplementaryAgreementInfoBuilder_.clear(); + supplementaryAgreementInfo_ = null; + if (supplementaryAgreementInfoBuilder_ != null) { + supplementaryAgreementInfoBuilder_.dispose(); + supplementaryAgreementInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00002000); - if (universalTransferDocumentInfoBuilder_ == null) { - universalTransferDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance(); - } else { - universalTransferDocumentInfoBuilder_.clear(); + universalTransferDocumentInfo_ = null; + if (universalTransferDocumentInfoBuilder_ != null) { + universalTransferDocumentInfoBuilder_.dispose(); + universalTransferDocumentInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00004000); - if (universalCorrectionDocumentInfoBuilder_ == null) { - universalCorrectionDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance(); - } else { - universalCorrectionDocumentInfoBuilder_.clear(); + universalCorrectionDocumentInfo_ = null; + if (universalCorrectionDocumentInfoBuilder_ != null) { + universalCorrectionDocumentInfoBuilder_.dispose(); + universalCorrectionDocumentInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00008000); attachmentVersion_ = ""; - bitField0_ = (bitField0_ & ~0x00010000); version_ = ""; - bitField0_ = (bitField0_ & ~0x00020000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo result = buildPartial(); if (!result.isInitialized()) { @@ -1530,123 +1622,111 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentType_ = documentType_; to_bitField0_ |= 0x00000001; } - result.documentType_ = documentType_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.documentDirection_ = documentDirection_; to_bitField0_ |= 0x00000002; } - result.documentDirection_ = documentDirection_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isTest_ = isTest_; to_bitField0_ |= 0x00000004; } - result.isTest_ = isTest_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.customDocumentId_ = customDocumentId_; to_bitField0_ |= 0x00000008; } - result.customDocumentId_ = customDocumentId_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fromDepartmentId_ = fromDepartmentId_; to_bitField0_ |= 0x00000010; } - result.fromDepartmentId_ = fromDepartmentId_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.toDepartmentId_ = toDepartmentId_; to_bitField0_ |= 0x00000020; } - result.toDepartmentId_ = toDepartmentId_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.counteragentBoxId_ = counteragentBoxId_; to_bitField0_ |= 0x00000040; } - result.counteragentBoxId_ = counteragentBoxId_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.documentDateAndNumber_ = documentDateAndNumberBuilder_ == null + ? documentDateAndNumber_ + : documentDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (documentDateAndNumberBuilder_ == null) { - result.documentDateAndNumber_ = documentDateAndNumber_; - } else { - result.documentDateAndNumber_ = documentDateAndNumberBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.basicDocumentInfo_ = basicDocumentInfoBuilder_ == null + ? basicDocumentInfo_ + : basicDocumentInfoBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (basicDocumentInfoBuilder_ == null) { - result.basicDocumentInfo_ = basicDocumentInfo_; - } else { - result.basicDocumentInfo_ = basicDocumentInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.invoiceInfo_ = invoiceInfoBuilder_ == null + ? invoiceInfo_ + : invoiceInfoBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (invoiceInfoBuilder_ == null) { - result.invoiceInfo_ = invoiceInfo_; - } else { - result.invoiceInfo_ = invoiceInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.invoiceCorrectionInfo_ = invoiceCorrectionInfoBuilder_ == null + ? invoiceCorrectionInfo_ + : invoiceCorrectionInfoBuilder_.build(); to_bitField0_ |= 0x00000400; } - if (invoiceCorrectionInfoBuilder_ == null) { - result.invoiceCorrectionInfo_ = invoiceCorrectionInfo_; - } else { - result.invoiceCorrectionInfo_ = invoiceCorrectionInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.priceListInfo_ = priceListInfoBuilder_ == null + ? priceListInfo_ + : priceListInfoBuilder_.build(); to_bitField0_ |= 0x00000800; } - if (priceListInfoBuilder_ == null) { - result.priceListInfo_ = priceListInfo_; - } else { - result.priceListInfo_ = priceListInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + if (((from_bitField0_ & 0x00001000) != 0)) { + result.contractInfo_ = contractInfoBuilder_ == null + ? contractInfo_ + : contractInfoBuilder_.build(); to_bitField0_ |= 0x00001000; } - if (contractInfoBuilder_ == null) { - result.contractInfo_ = contractInfo_; - } else { - result.contractInfo_ = contractInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.supplementaryAgreementInfo_ = supplementaryAgreementInfoBuilder_ == null + ? supplementaryAgreementInfo_ + : supplementaryAgreementInfoBuilder_.build(); to_bitField0_ |= 0x00002000; } - if (supplementaryAgreementInfoBuilder_ == null) { - result.supplementaryAgreementInfo_ = supplementaryAgreementInfo_; - } else { - result.supplementaryAgreementInfo_ = supplementaryAgreementInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + if (((from_bitField0_ & 0x00004000) != 0)) { + result.universalTransferDocumentInfo_ = universalTransferDocumentInfoBuilder_ == null + ? universalTransferDocumentInfo_ + : universalTransferDocumentInfoBuilder_.build(); to_bitField0_ |= 0x00004000; } - if (universalTransferDocumentInfoBuilder_ == null) { - result.universalTransferDocumentInfo_ = universalTransferDocumentInfo_; - } else { - result.universalTransferDocumentInfo_ = universalTransferDocumentInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00008000) != 0)) { + result.universalCorrectionDocumentInfo_ = universalCorrectionDocumentInfoBuilder_ == null + ? universalCorrectionDocumentInfo_ + : universalCorrectionDocumentInfoBuilder_.build(); to_bitField0_ |= 0x00008000; } - if (universalCorrectionDocumentInfoBuilder_ == null) { - result.universalCorrectionDocumentInfo_ = universalCorrectionDocumentInfo_; - } else { - result.universalCorrectionDocumentInfo_ = universalCorrectionDocumentInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { + if (((from_bitField0_ & 0x00010000) != 0)) { + result.attachmentVersion_ = attachmentVersion_; to_bitField0_ |= 0x00010000; } - result.attachmentVersion_ = attachmentVersion_; - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { + if (((from_bitField0_ & 0x00020000) != 0)) { + result.version_ = version_; to_bitField0_ |= 0x00020000; } - result.version_ = version_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo)other); @@ -1668,23 +1748,23 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInf setIsTest(other.getIsTest()); } if (other.hasCustomDocumentId()) { - bitField0_ |= 0x00000008; customDocumentId_ = other.customDocumentId_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasFromDepartmentId()) { - bitField0_ |= 0x00000010; fromDepartmentId_ = other.fromDepartmentId_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasToDepartmentId()) { - bitField0_ |= 0x00000020; toDepartmentId_ = other.toDepartmentId_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasCounteragentBoxId()) { - bitField0_ |= 0x00000040; counteragentBoxId_ = other.counteragentBoxId_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasDocumentDateAndNumber()) { @@ -1715,130 +1795,278 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInf mergeUniversalCorrectionDocumentInfo(other.getUniversalCorrectionDocumentInfo()); } if (other.hasAttachmentVersion()) { - bitField0_ |= 0x00010000; attachmentVersion_ = other.attachmentVersion_; + bitField0_ |= 0x00010000; onChanged(); } if (other.hasVersion()) { - bitField0_ |= 0x00020000; version_ = other.version_; + bitField0_ |= 0x00020000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasVersion()) { - return false; } if (hasSupplementaryAgreementInfo()) { if (!getSupplementaryAgreementInfo().isInitialized()) { - return false; } } if (hasUniversalTransferDocumentInfo()) { if (!getUniversalTransferDocumentInfo().isInitialized()) { - return false; } } if (hasUniversalCorrectionDocumentInfo()) { if (!getUniversalCorrectionDocumentInfo().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.DocumentTypeProtos.DocumentType tmpValue = + Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentType_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 16: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection tmpValue = + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + documentDirection_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + case 24: { + isTest_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + customDocumentId_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + fromDepartmentId_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + toDepartmentId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + counteragentBoxId_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getDocumentDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage( + getBasicDocumentInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getInvoiceInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + input.readMessage( + getInvoiceCorrectionInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + input.readMessage( + getPriceListInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + input.readMessage( + getContractInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + input.readMessage( + getSupplementaryAgreementInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + input.readMessage( + getUniversalTransferDocumentInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + input.readMessage( + getUniversalCorrectionDocumentInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: { + attachmentVersion_ = input.readBytes(); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 146: { + version_ = input.readBytes(); + bitField0_ |= 0x00020000; + break; + } // case 146 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.DocumentTypeProtos.DocumentType documentType_ = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType; + private int documentType_ = -1; /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 1 [default = UnknownDocumentType]; + * @return Whether the documentType field is set. */ - public boolean hasDocumentType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentType() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 1 [default = UnknownDocumentType]; + * @return The documentType. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentTypeProtos.DocumentType getDocumentType() { - return documentType_; + Diadoc.Api.Proto.DocumentTypeProtos.DocumentType result = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.forNumber(documentType_); + return result == null ? Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType : result; } /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 1 [default = UnknownDocumentType]; + * @param value The documentType to set. + * @return This builder for chaining. */ public Builder setDocumentType(Diadoc.Api.Proto.DocumentTypeProtos.DocumentType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentType_ = value; + documentType_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 1 [default = UnknownDocumentType]; + * @return This builder for chaining. */ public Builder clearDocumentType() { bitField0_ = (bitField0_ & ~0x00000001); - documentType_ = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType; + documentType_ = -1; onChanged(); return this; } - private Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; + private int documentDirection_ = 0; /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 2 [default = UnknownDocumentDirection]; + * @return Whether the documentDirection field is set. */ - public boolean hasDocumentDirection() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasDocumentDirection() { + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 2 [default = UnknownDocumentDirection]; + * @return The documentDirection. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection() { - return documentDirection_; + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection result = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.forNumber(documentDirection_); + return result == null ? Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection : result; } /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 2 [default = UnknownDocumentDirection]; + * @param value The documentDirection to set. + * @return This builder for chaining. */ public Builder setDocumentDirection(Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - documentDirection_ = value; + documentDirection_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 2 [default = UnknownDocumentDirection]; + * @return This builder for chaining. */ public Builder clearDocumentDirection() { bitField0_ = (bitField0_ & ~0x00000002); - documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; + documentDirection_ = 0; onChanged(); return this; } @@ -1846,27 +2074,35 @@ public Builder clearDocumentDirection() { private boolean isTest_ ; /** * optional bool IsTest = 3; + * @return Whether the isTest field is set. */ + @java.lang.Override public boolean hasIsTest() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool IsTest = 3; + * @return The isTest. */ + @java.lang.Override public boolean getIsTest() { return isTest_; } /** * optional bool IsTest = 3; + * @param value The isTest to set. + * @return This builder for chaining. */ public Builder setIsTest(boolean value) { - bitField0_ |= 0x00000004; + isTest_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional bool IsTest = 3; + * @return This builder for chaining. */ public Builder clearIsTest() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1878,12 +2114,14 @@ public Builder clearIsTest() { private java.lang.Object customDocumentId_ = ""; /** * optional string CustomDocumentId = 4; + * @return Whether the customDocumentId field is set. */ public boolean hasCustomDocumentId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string CustomDocumentId = 4; + * @return The customDocumentId. */ public java.lang.String getCustomDocumentId() { java.lang.Object ref = customDocumentId_; @@ -1901,6 +2139,7 @@ public java.lang.String getCustomDocumentId() { } /** * optional string CustomDocumentId = 4; + * @return The bytes for customDocumentId. */ public com.google.protobuf.ByteString getCustomDocumentIdBytes() { @@ -1917,36 +2156,37 @@ public java.lang.String getCustomDocumentId() { } /** * optional string CustomDocumentId = 4; + * @param value The customDocumentId to set. + * @return This builder for chaining. */ public Builder setCustomDocumentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } customDocumentId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string CustomDocumentId = 4; + * @return This builder for chaining. */ public Builder clearCustomDocumentId() { - bitField0_ = (bitField0_ & ~0x00000008); customDocumentId_ = getDefaultInstance().getCustomDocumentId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string CustomDocumentId = 4; + * @param value The bytes for customDocumentId to set. + * @return This builder for chaining. */ public Builder setCustomDocumentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } customDocumentId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1954,12 +2194,14 @@ public Builder setCustomDocumentIdBytes( private java.lang.Object fromDepartmentId_ = ""; /** * optional string FromDepartmentId = 5; + * @return Whether the fromDepartmentId field is set. */ public boolean hasFromDepartmentId() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string FromDepartmentId = 5; + * @return The fromDepartmentId. */ public java.lang.String getFromDepartmentId() { java.lang.Object ref = fromDepartmentId_; @@ -1977,6 +2219,7 @@ public java.lang.String getFromDepartmentId() { } /** * optional string FromDepartmentId = 5; + * @return The bytes for fromDepartmentId. */ public com.google.protobuf.ByteString getFromDepartmentIdBytes() { @@ -1993,36 +2236,37 @@ public java.lang.String getFromDepartmentId() { } /** * optional string FromDepartmentId = 5; + * @param value The fromDepartmentId to set. + * @return This builder for chaining. */ public Builder setFromDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } fromDepartmentId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string FromDepartmentId = 5; + * @return This builder for chaining. */ public Builder clearFromDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000010); fromDepartmentId_ = getDefaultInstance().getFromDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string FromDepartmentId = 5; + * @param value The bytes for fromDepartmentId to set. + * @return This builder for chaining. */ public Builder setFromDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } fromDepartmentId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2030,12 +2274,14 @@ public Builder setFromDepartmentIdBytes( private java.lang.Object toDepartmentId_ = ""; /** * optional string ToDepartmentId = 6; + * @return Whether the toDepartmentId field is set. */ public boolean hasToDepartmentId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string ToDepartmentId = 6; + * @return The toDepartmentId. */ public java.lang.String getToDepartmentId() { java.lang.Object ref = toDepartmentId_; @@ -2053,6 +2299,7 @@ public java.lang.String getToDepartmentId() { } /** * optional string ToDepartmentId = 6; + * @return The bytes for toDepartmentId. */ public com.google.protobuf.ByteString getToDepartmentIdBytes() { @@ -2069,36 +2316,37 @@ public java.lang.String getToDepartmentId() { } /** * optional string ToDepartmentId = 6; + * @param value The toDepartmentId to set. + * @return This builder for chaining. */ public Builder setToDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } toDepartmentId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional string ToDepartmentId = 6; + * @return This builder for chaining. */ public Builder clearToDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000020); toDepartmentId_ = getDefaultInstance().getToDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * optional string ToDepartmentId = 6; + * @param value The bytes for toDepartmentId to set. + * @return This builder for chaining. */ public Builder setToDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } toDepartmentId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2106,12 +2354,14 @@ public Builder setToDepartmentIdBytes( private java.lang.Object counteragentBoxId_ = ""; /** * optional string CounteragentBoxId = 7; + * @return Whether the counteragentBoxId field is set. */ public boolean hasCounteragentBoxId() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string CounteragentBoxId = 7; + * @return The counteragentBoxId. */ public java.lang.String getCounteragentBoxId() { java.lang.Object ref = counteragentBoxId_; @@ -2129,6 +2379,7 @@ public java.lang.String getCounteragentBoxId() { } /** * optional string CounteragentBoxId = 7; + * @return The bytes for counteragentBoxId. */ public com.google.protobuf.ByteString getCounteragentBoxIdBytes() { @@ -2145,55 +2396,58 @@ public java.lang.String getCounteragentBoxId() { } /** * optional string CounteragentBoxId = 7; + * @param value The counteragentBoxId to set. + * @return This builder for chaining. */ public Builder setCounteragentBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } counteragentBoxId_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional string CounteragentBoxId = 7; + * @return This builder for chaining. */ public Builder clearCounteragentBoxId() { - bitField0_ = (bitField0_ & ~0x00000040); counteragentBoxId_ = getDefaultInstance().getCounteragentBoxId(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * optional string CounteragentBoxId = 7; + * @param value The bytes for counteragentBoxId to set. + * @return This builder for chaining. */ public Builder setCounteragentBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } counteragentBoxId_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber documentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber documentDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> documentDateAndNumberBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 8; + * @return Whether the documentDateAndNumber field is set. */ public boolean hasDocumentDateAndNumber() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 8; + * @return The documentDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getDocumentDateAndNumber() { if (documentDateAndNumberBuilder_ == null) { - return documentDateAndNumber_; + return documentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : documentDateAndNumber_; } else { return documentDateAndNumberBuilder_.getMessage(); } @@ -2207,11 +2461,11 @@ public Builder setDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoPro throw new NullPointerException(); } documentDateAndNumber_ = value; - onChanged(); } else { documentDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2221,11 +2475,11 @@ public Builder setDocumentDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (documentDateAndNumberBuilder_ == null) { documentDateAndNumber_ = builderForValue.build(); - onChanged(); } else { documentDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2233,31 +2487,33 @@ public Builder setDocumentDateAndNumber( */ public Builder mergeDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (documentDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - documentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - documentDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(documentDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + documentDateAndNumber_ != null && + documentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getDocumentDateAndNumberBuilder().mergeFrom(value); } else { documentDateAndNumber_ = value; } - onChanged(); } else { documentDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + if (documentDateAndNumber_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 8; */ public Builder clearDocumentDateAndNumber() { - if (documentDateAndNumberBuilder_ == null) { - documentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - documentDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000080); + documentDateAndNumber_ = null; + if (documentDateAndNumberBuilder_ != null) { + documentDateAndNumberBuilder_.dispose(); + documentDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** @@ -2275,7 +2531,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde if (documentDateAndNumberBuilder_ != null) { return documentDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return documentDateAndNumber_; + return documentDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : documentDateAndNumber_; } } /** @@ -2295,39 +2552,41 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde return documentDateAndNumberBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo basicDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo basicDocumentInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfoOrBuilder> basicDocumentInfoBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
        * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; + * @return Whether the basicDocumentInfo field is set. */ public boolean hasBasicDocumentInfo() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
        * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; + * @return The basicDocumentInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo getBasicDocumentInfo() { if (basicDocumentInfoBuilder_ == null) { - return basicDocumentInfo_; + return basicDocumentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance() : basicDocumentInfo_; } else { return basicDocumentInfoBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
        * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; */ public Builder setBasicDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo value) { if (basicDocumentInfoBuilder_ == null) { @@ -2335,77 +2594,79 @@ public Builder setBasicDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos. throw new NullPointerException(); } basicDocumentInfo_ = value; - onChanged(); } else { basicDocumentInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
        * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; */ public Builder setBasicDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.Builder builderForValue) { if (basicDocumentInfoBuilder_ == null) { basicDocumentInfo_ = builderForValue.build(); - onChanged(); } else { basicDocumentInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
        * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; */ public Builder mergeBasicDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo value) { if (basicDocumentInfoBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - basicDocumentInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance()) { - basicDocumentInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.newBuilder(basicDocumentInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) && + basicDocumentInfo_ != null && + basicDocumentInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance()) { + getBasicDocumentInfoBuilder().mergeFrom(value); } else { basicDocumentInfo_ = value; } - onChanged(); } else { basicDocumentInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + if (basicDocumentInfo_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
        * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; */ public Builder clearBasicDocumentInfo() { - if (basicDocumentInfoBuilder_ == null) { - basicDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance(); - onChanged(); - } else { - basicDocumentInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000100); + basicDocumentInfo_ = null; + if (basicDocumentInfoBuilder_ != null) { + basicDocumentInfoBuilder_.dispose(); + basicDocumentInfoBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
        * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.Builder getBasicDocumentInfoBuilder() { bitField0_ |= 0x00000100; @@ -2413,25 +2674,26 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.Builder get return getBasicDocumentInfoFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
        * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfoOrBuilder getBasicDocumentInfoOrBuilder() { if (basicDocumentInfoBuilder_ != null) { return basicDocumentInfoBuilder_.getMessageOrBuilder(); } else { - return basicDocumentInfo_; + return basicDocumentInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance() : basicDocumentInfo_; } } /** - * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; - * *
        * for XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.BasicDocumentInfo BasicDocumentInfo = 9; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfoOrBuilder> @@ -2447,39 +2709,41 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfoOrBuilder ge return basicDocumentInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo invoiceInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo invoiceInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfoOrBuilder> invoiceInfoBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
        * for Invoice, InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; + * @return Whether the invoiceInfo field is set. */ public boolean hasInvoiceInfo() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
        * for Invoice, InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; + * @return The invoiceInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo getInvoiceInfo() { if (invoiceInfoBuilder_ == null) { - return invoiceInfo_; + return invoiceInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance() : invoiceInfo_; } else { return invoiceInfoBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
        * for Invoice, InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; */ public Builder setInvoiceInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo value) { if (invoiceInfoBuilder_ == null) { @@ -2487,77 +2751,79 @@ public Builder setInvoiceInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.Invoic throw new NullPointerException(); } invoiceInfo_ = value; - onChanged(); } else { invoiceInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
        * for Invoice, InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; */ public Builder setInvoiceInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.Builder builderForValue) { if (invoiceInfoBuilder_ == null) { invoiceInfo_ = builderForValue.build(); - onChanged(); } else { invoiceInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
        * for Invoice, InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; */ public Builder mergeInvoiceInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo value) { if (invoiceInfoBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - invoiceInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance()) { - invoiceInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.newBuilder(invoiceInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) && + invoiceInfo_ != null && + invoiceInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance()) { + getInvoiceInfoBuilder().mergeFrom(value); } else { invoiceInfo_ = value; } - onChanged(); } else { invoiceInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; + if (invoiceInfo_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
        * for Invoice, InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; */ public Builder clearInvoiceInfo() { - if (invoiceInfoBuilder_ == null) { - invoiceInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance(); - onChanged(); - } else { - invoiceInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000200); + invoiceInfo_ = null; + if (invoiceInfoBuilder_ != null) { + invoiceInfoBuilder_.dispose(); + invoiceInfoBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
        * for Invoice, InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.Builder getInvoiceInfoBuilder() { bitField0_ |= 0x00000200; @@ -2565,25 +2831,26 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.Builder g return getInvoiceInfoFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
        * for Invoice, InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfoOrBuilder getInvoiceInfoOrBuilder() { if (invoiceInfoBuilder_ != null) { return invoiceInfoBuilder_.getMessageOrBuilder(); } else { - return invoiceInfo_; + return invoiceInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance() : invoiceInfo_; } } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; - * *
        * for Invoice, InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo InvoiceInfo = 10; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfoOrBuilder> @@ -2599,39 +2866,41 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfoOrBuilder return invoiceInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo invoiceCorrectionInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo invoiceCorrectionInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfoOrBuilder> invoiceCorrectionInfoBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
        * for InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; + * @return Whether the invoiceCorrectionInfo field is set. */ public boolean hasInvoiceCorrectionInfo() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
        * for InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; + * @return The invoiceCorrectionInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo getInvoiceCorrectionInfo() { if (invoiceCorrectionInfoBuilder_ == null) { - return invoiceCorrectionInfo_; + return invoiceCorrectionInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance() : invoiceCorrectionInfo_; } else { return invoiceCorrectionInfoBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
        * for InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; */ public Builder setInvoiceCorrectionInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo value) { if (invoiceCorrectionInfoBuilder_ == null) { @@ -2639,77 +2908,79 @@ public Builder setInvoiceCorrectionInfo(Diadoc.Api.Proto.Docflow.DocumentInfoPro throw new NullPointerException(); } invoiceCorrectionInfo_ = value; - onChanged(); } else { invoiceCorrectionInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000400; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
        * for InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; */ public Builder setInvoiceCorrectionInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.Builder builderForValue) { if (invoiceCorrectionInfoBuilder_ == null) { invoiceCorrectionInfo_ = builderForValue.build(); - onChanged(); } else { invoiceCorrectionInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
        * for InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; */ public Builder mergeInvoiceCorrectionInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo value) { if (invoiceCorrectionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400) && - invoiceCorrectionInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance()) { - invoiceCorrectionInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.newBuilder(invoiceCorrectionInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) && + invoiceCorrectionInfo_ != null && + invoiceCorrectionInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance()) { + getInvoiceCorrectionInfoBuilder().mergeFrom(value); } else { invoiceCorrectionInfo_ = value; } - onChanged(); } else { invoiceCorrectionInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; + if (invoiceCorrectionInfo_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
        * for InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; */ public Builder clearInvoiceCorrectionInfo() { - if (invoiceCorrectionInfoBuilder_ == null) { - invoiceCorrectionInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance(); - onChanged(); - } else { - invoiceCorrectionInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000400); + invoiceCorrectionInfo_ = null; + if (invoiceCorrectionInfoBuilder_ != null) { + invoiceCorrectionInfoBuilder_.dispose(); + invoiceCorrectionInfoBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
        * for InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.Builder getInvoiceCorrectionInfoBuilder() { bitField0_ |= 0x00000400; @@ -2717,25 +2988,26 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo return getInvoiceCorrectionInfoFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
        * for InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfoOrBuilder getInvoiceCorrectionInfoOrBuilder() { if (invoiceCorrectionInfoBuilder_ != null) { return invoiceCorrectionInfoBuilder_.getMessageOrBuilder(); } else { - return invoiceCorrectionInfo_; + return invoiceCorrectionInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance() : invoiceCorrectionInfo_; } } /** - * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; - * *
        * for InvoiceCorrection, InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfoOrBuilder> @@ -2751,21 +3023,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo return invoiceCorrectionInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo priceListInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo priceListInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfoOrBuilder> priceListInfoBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.PriceListDocumentInfo PriceListInfo = 12; + * @return Whether the priceListInfo field is set. */ public boolean hasPriceListInfo() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.PriceListDocumentInfo PriceListInfo = 12; + * @return The priceListInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo getPriceListInfo() { if (priceListInfoBuilder_ == null) { - return priceListInfo_; + return priceListInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance() : priceListInfo_; } else { return priceListInfoBuilder_.getMessage(); } @@ -2779,11 +3053,11 @@ public Builder setPriceListInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.Pric throw new NullPointerException(); } priceListInfo_ = value; - onChanged(); } else { priceListInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -2793,11 +3067,11 @@ public Builder setPriceListInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.Builder builderForValue) { if (priceListInfoBuilder_ == null) { priceListInfo_ = builderForValue.build(); - onChanged(); } else { priceListInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -2805,31 +3079,33 @@ public Builder setPriceListInfo( */ public Builder mergePriceListInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo value) { if (priceListInfoBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800) && - priceListInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance()) { - priceListInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.newBuilder(priceListInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) && + priceListInfo_ != null && + priceListInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance()) { + getPriceListInfoBuilder().mergeFrom(value); } else { priceListInfo_ = value; } - onChanged(); } else { priceListInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000800; + if (priceListInfo_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.PriceListDocumentInfo PriceListInfo = 12; */ public Builder clearPriceListInfo() { - if (priceListInfoBuilder_ == null) { - priceListInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance(); - onChanged(); - } else { - priceListInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000800); + priceListInfo_ = null; + if (priceListInfoBuilder_ != null) { + priceListInfoBuilder_.dispose(); + priceListInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -2847,7 +3123,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfoOrBuilde if (priceListInfoBuilder_ != null) { return priceListInfoBuilder_.getMessageOrBuilder(); } else { - return priceListInfo_; + return priceListInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance() : priceListInfo_; } } /** @@ -2867,21 +3144,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfoOrBuilde return priceListInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo contractInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo contractInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfoOrBuilder> contractInfoBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ContractDocumentInfo ContractInfo = 13; + * @return Whether the contractInfo field is set. */ public boolean hasContractInfo() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ContractDocumentInfo ContractInfo = 13; + * @return The contractInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo getContractInfo() { if (contractInfoBuilder_ == null) { - return contractInfo_; + return contractInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance() : contractInfo_; } else { return contractInfoBuilder_.getMessage(); } @@ -2895,11 +3174,11 @@ public Builder setContractInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.Contr throw new NullPointerException(); } contractInfo_ = value; - onChanged(); } else { contractInfoBuilder_.setMessage(value); } bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -2909,11 +3188,11 @@ public Builder setContractInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.Builder builderForValue) { if (contractInfoBuilder_ == null) { contractInfo_ = builderForValue.build(); - onChanged(); } else { contractInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -2921,31 +3200,33 @@ public Builder setContractInfo( */ public Builder mergeContractInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo value) { if (contractInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) == 0x00001000) && - contractInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance()) { - contractInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.newBuilder(contractInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00001000) != 0) && + contractInfo_ != null && + contractInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance()) { + getContractInfoBuilder().mergeFrom(value); } else { contractInfo_ = value; } - onChanged(); } else { contractInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00001000; + if (contractInfo_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ContractDocumentInfo ContractInfo = 13; */ public Builder clearContractInfo() { - if (contractInfoBuilder_ == null) { - contractInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance(); - onChanged(); - } else { - contractInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00001000); + contractInfo_ = null; + if (contractInfoBuilder_ != null) { + contractInfoBuilder_.dispose(); + contractInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -2963,7 +3244,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfoOrBuilder if (contractInfoBuilder_ != null) { return contractInfoBuilder_.getMessageOrBuilder(); } else { - return contractInfo_; + return contractInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance() : contractInfo_; } } /** @@ -2983,21 +3265,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfoOrBuilder return contractInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo supplementaryAgreementInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo supplementaryAgreementInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfoOrBuilder> supplementaryAgreementInfoBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo SupplementaryAgreementInfo = 14; + * @return Whether the supplementaryAgreementInfo field is set. */ public boolean hasSupplementaryAgreementInfo() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo SupplementaryAgreementInfo = 14; + * @return The supplementaryAgreementInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo getSupplementaryAgreementInfo() { if (supplementaryAgreementInfoBuilder_ == null) { - return supplementaryAgreementInfo_; + return supplementaryAgreementInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance() : supplementaryAgreementInfo_; } else { return supplementaryAgreementInfoBuilder_.getMessage(); } @@ -3011,11 +3295,11 @@ public Builder setSupplementaryAgreementInfo(Diadoc.Api.Proto.Docflow.DocumentIn throw new NullPointerException(); } supplementaryAgreementInfo_ = value; - onChanged(); } else { supplementaryAgreementInfoBuilder_.setMessage(value); } bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3025,11 +3309,11 @@ public Builder setSupplementaryAgreementInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.Builder builderForValue) { if (supplementaryAgreementInfoBuilder_ == null) { supplementaryAgreementInfo_ = builderForValue.build(); - onChanged(); } else { supplementaryAgreementInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3037,31 +3321,33 @@ public Builder setSupplementaryAgreementInfo( */ public Builder mergeSupplementaryAgreementInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo value) { if (supplementaryAgreementInfoBuilder_ == null) { - if (((bitField0_ & 0x00002000) == 0x00002000) && - supplementaryAgreementInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance()) { - supplementaryAgreementInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.newBuilder(supplementaryAgreementInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00002000) != 0) && + supplementaryAgreementInfo_ != null && + supplementaryAgreementInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance()) { + getSupplementaryAgreementInfoBuilder().mergeFrom(value); } else { supplementaryAgreementInfo_ = value; } - onChanged(); } else { supplementaryAgreementInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00002000; + if (supplementaryAgreementInfo_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo SupplementaryAgreementInfo = 14; */ public Builder clearSupplementaryAgreementInfo() { - if (supplementaryAgreementInfoBuilder_ == null) { - supplementaryAgreementInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance(); - onChanged(); - } else { - supplementaryAgreementInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00002000); + supplementaryAgreementInfo_ = null; + if (supplementaryAgreementInfoBuilder_ != null) { + supplementaryAgreementInfoBuilder_.dispose(); + supplementaryAgreementInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -3079,7 +3365,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumen if (supplementaryAgreementInfoBuilder_ != null) { return supplementaryAgreementInfoBuilder_.getMessageOrBuilder(); } else { - return supplementaryAgreementInfo_; + return supplementaryAgreementInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance() : supplementaryAgreementInfo_; } } /** @@ -3099,39 +3386,41 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumen return supplementaryAgreementInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo universalTransferDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo universalTransferDocumentInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfoOrBuilder> universalTransferDocumentInfoBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; + * @return Whether the universalTransferDocumentInfo field is set. */ public boolean hasUniversalTransferDocumentInfo() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; + * @return The universalTransferDocumentInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo getUniversalTransferDocumentInfo() { if (universalTransferDocumentInfoBuilder_ == null) { - return universalTransferDocumentInfo_; + return universalTransferDocumentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance() : universalTransferDocumentInfo_; } else { return universalTransferDocumentInfoBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; */ public Builder setUniversalTransferDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo value) { if (universalTransferDocumentInfoBuilder_ == null) { @@ -3139,77 +3428,79 @@ public Builder setUniversalTransferDocumentInfo(Diadoc.Api.Proto.Docflow.Documen throw new NullPointerException(); } universalTransferDocumentInfo_ = value; - onChanged(); } else { universalTransferDocumentInfoBuilder_.setMessage(value); } bitField0_ |= 0x00004000; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; */ public Builder setUniversalTransferDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.Builder builderForValue) { if (universalTransferDocumentInfoBuilder_ == null) { universalTransferDocumentInfo_ = builderForValue.build(); - onChanged(); } else { universalTransferDocumentInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; */ public Builder mergeUniversalTransferDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo value) { if (universalTransferDocumentInfoBuilder_ == null) { - if (((bitField0_ & 0x00004000) == 0x00004000) && - universalTransferDocumentInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance()) { - universalTransferDocumentInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.newBuilder(universalTransferDocumentInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00004000) != 0) && + universalTransferDocumentInfo_ != null && + universalTransferDocumentInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance()) { + getUniversalTransferDocumentInfoBuilder().mergeFrom(value); } else { universalTransferDocumentInfo_ = value; } - onChanged(); } else { universalTransferDocumentInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00004000; + if (universalTransferDocumentInfo_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; */ public Builder clearUniversalTransferDocumentInfo() { - if (universalTransferDocumentInfoBuilder_ == null) { - universalTransferDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance(); - onChanged(); - } else { - universalTransferDocumentInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00004000); + universalTransferDocumentInfo_ = null; + if (universalTransferDocumentInfoBuilder_ != null) { + universalTransferDocumentInfoBuilder_.dispose(); + universalTransferDocumentInfoBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.Builder getUniversalTransferDocumentInfoBuilder() { bitField0_ |= 0x00004000; @@ -3217,25 +3508,26 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo return getUniversalTransferDocumentInfoFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfoOrBuilder getUniversalTransferDocumentInfoOrBuilder() { if (universalTransferDocumentInfoBuilder_ != null) { return universalTransferDocumentInfoBuilder_.getMessageOrBuilder(); } else { - return universalTransferDocumentInfo_; + return universalTransferDocumentInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance() : universalTransferDocumentInfo_; } } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; - * *
        * for UniversalTransferDocument, UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo UniversalTransferDocumentInfo = 15; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfoOrBuilder> @@ -3251,39 +3543,41 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo return universalTransferDocumentInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo universalCorrectionDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo universalCorrectionDocumentInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfoOrBuilder> universalCorrectionDocumentInfoBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
        * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; + * @return Whether the universalCorrectionDocumentInfo field is set. */ public boolean hasUniversalCorrectionDocumentInfo() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
        * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; + * @return The universalCorrectionDocumentInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo getUniversalCorrectionDocumentInfo() { if (universalCorrectionDocumentInfoBuilder_ == null) { - return universalCorrectionDocumentInfo_; + return universalCorrectionDocumentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance() : universalCorrectionDocumentInfo_; } else { return universalCorrectionDocumentInfoBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
        * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; */ public Builder setUniversalCorrectionDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo value) { if (universalCorrectionDocumentInfoBuilder_ == null) { @@ -3291,77 +3585,79 @@ public Builder setUniversalCorrectionDocumentInfo(Diadoc.Api.Proto.Docflow.Docum throw new NullPointerException(); } universalCorrectionDocumentInfo_ = value; - onChanged(); } else { universalCorrectionDocumentInfoBuilder_.setMessage(value); } bitField0_ |= 0x00008000; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
        * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; */ public Builder setUniversalCorrectionDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.Builder builderForValue) { if (universalCorrectionDocumentInfoBuilder_ == null) { universalCorrectionDocumentInfo_ = builderForValue.build(); - onChanged(); } else { universalCorrectionDocumentInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
        * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; */ public Builder mergeUniversalCorrectionDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo value) { if (universalCorrectionDocumentInfoBuilder_ == null) { - if (((bitField0_ & 0x00008000) == 0x00008000) && - universalCorrectionDocumentInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance()) { - universalCorrectionDocumentInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.newBuilder(universalCorrectionDocumentInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00008000) != 0) && + universalCorrectionDocumentInfo_ != null && + universalCorrectionDocumentInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance()) { + getUniversalCorrectionDocumentInfoBuilder().mergeFrom(value); } else { universalCorrectionDocumentInfo_ = value; } - onChanged(); } else { universalCorrectionDocumentInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00008000; + if (universalCorrectionDocumentInfo_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
        * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; */ public Builder clearUniversalCorrectionDocumentInfo() { - if (universalCorrectionDocumentInfoBuilder_ == null) { - universalCorrectionDocumentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance(); - onChanged(); - } else { - universalCorrectionDocumentInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00008000); + universalCorrectionDocumentInfo_ = null; + if (universalCorrectionDocumentInfoBuilder_ != null) { + universalCorrectionDocumentInfoBuilder_.dispose(); + universalCorrectionDocumentInfoBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
        * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.Builder getUniversalCorrectionDocumentInfoBuilder() { bitField0_ |= 0x00008000; @@ -3369,25 +3665,26 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentIn return getUniversalCorrectionDocumentInfoFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
        * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfoOrBuilder getUniversalCorrectionDocumentInfoOrBuilder() { if (universalCorrectionDocumentInfoBuilder_ != null) { return universalCorrectionDocumentInfoBuilder_.getMessageOrBuilder(); } else { - return universalCorrectionDocumentInfo_; + return universalCorrectionDocumentInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance() : universalCorrectionDocumentInfo_; } } /** - * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; - * *
        * for UniversalCorrectionDocument, UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo UniversalCorrectionDocumentInfo = 16; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfoOrBuilder> @@ -3406,12 +3703,14 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentIn private java.lang.Object attachmentVersion_ = ""; /** * optional string AttachmentVersion = 17; + * @return Whether the attachmentVersion field is set. */ public boolean hasAttachmentVersion() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional string AttachmentVersion = 17; + * @return The attachmentVersion. */ public java.lang.String getAttachmentVersion() { java.lang.Object ref = attachmentVersion_; @@ -3429,6 +3728,7 @@ public java.lang.String getAttachmentVersion() { } /** * optional string AttachmentVersion = 17; + * @return The bytes for attachmentVersion. */ public com.google.protobuf.ByteString getAttachmentVersionBytes() { @@ -3445,36 +3745,37 @@ public java.lang.String getAttachmentVersion() { } /** * optional string AttachmentVersion = 17; + * @param value The attachmentVersion to set. + * @return This builder for chaining. */ public Builder setAttachmentVersion( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; + if (value == null) { throw new NullPointerException(); } attachmentVersion_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } /** * optional string AttachmentVersion = 17; + * @return This builder for chaining. */ public Builder clearAttachmentVersion() { - bitField0_ = (bitField0_ & ~0x00010000); attachmentVersion_ = getDefaultInstance().getAttachmentVersion(); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } /** * optional string AttachmentVersion = 17; + * @param value The bytes for attachmentVersion to set. + * @return This builder for chaining. */ public Builder setAttachmentVersionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; + if (value == null) { throw new NullPointerException(); } attachmentVersion_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -3482,12 +3783,14 @@ public Builder setAttachmentVersionBytes( private java.lang.Object version_ = ""; /** * required string Version = 18; + * @return Whether the version field is set. */ public boolean hasVersion() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00020000) != 0); } /** * required string Version = 18; + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -3505,6 +3808,7 @@ public java.lang.String getVersion() { } /** * required string Version = 18; + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { @@ -3521,36 +3825,37 @@ public java.lang.String getVersion() { } /** * required string Version = 18; + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; + if (value == null) { throw new NullPointerException(); } version_ = value; + bitField0_ |= 0x00020000; onChanged(); return this; } /** * required string Version = 18; + * @return This builder for chaining. */ public Builder clearVersion() { - bitField0_ = (bitField0_ & ~0x00020000); version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } /** * required string Version = 18; + * @param value The bytes for version to set. + * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; + if (value == null) { throw new NullPointerException(); } version_ = value; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -3558,42 +3863,88 @@ public Builder setVersionBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo DEFAULT_INSTANCE; static { - defaultInstance = new DocumentInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentInfo) } - public interface DocumentDateAndNumberOrBuilder extends + @java.lang.Deprecated public interface DocumentDateAndNumberOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.DocumentDateAndNumber) com.google.protobuf.MessageOrBuilder { /** * optional string DocumentDate = 1; + * @return Whether the documentDate field is set. */ boolean hasDocumentDate(); /** * optional string DocumentDate = 1; + * @return The documentDate. */ java.lang.String getDocumentDate(); /** * optional string DocumentDate = 1; + * @return The bytes for documentDate. */ com.google.protobuf.ByteString getDocumentDateBytes(); /** * optional string DocumentNumber = 2; + * @return Whether the documentNumber field is set. */ boolean hasDocumentNumber(); /** * optional string DocumentNumber = 2; + * @return The documentNumber. */ java.lang.String getDocumentNumber(); /** * optional string DocumentNumber = 2; + * @return The bytes for documentNumber. */ com.google.protobuf.ByteString getDocumentNumberBytes(); @@ -3601,84 +3952,35 @@ public interface DocumentDateAndNumberOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.DocumentDateAndNumber} */ - public static final class DocumentDateAndNumber extends + @java.lang.Deprecated public static final class DocumentDateAndNumber extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentDateAndNumber) DocumentDateAndNumberOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentDateAndNumber.class.getName()); + } // Use DocumentDateAndNumber.newBuilder() to construct. private DocumentDateAndNumber(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentDateAndNumber(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentDateAndNumber defaultInstance; - public static DocumentDateAndNumber getDefaultInstance() { - return defaultInstance; } - - public DocumentDateAndNumber getDefaultInstanceForType() { - return defaultInstance; + private DocumentDateAndNumber() { + documentDate_ = ""; + documentNumber_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentDateAndNumber( - 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; - documentDate_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - documentNumber_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentDateAndNumber_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentDateAndNumber_fieldAccessorTable @@ -3686,33 +3988,23 @@ private DocumentDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.class, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentDateAndNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentDateAndNumber(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTDATE_FIELD_NUMBER = 1; - private java.lang.Object documentDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object documentDate_ = ""; /** * optional string DocumentDate = 1; + * @return Whether the documentDate field is set. */ + @java.lang.Override public boolean hasDocumentDate() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string DocumentDate = 1; + * @return The documentDate. */ + @java.lang.Override public java.lang.String getDocumentDate() { java.lang.Object ref = documentDate_; if (ref instanceof java.lang.String) { @@ -3729,7 +4021,9 @@ public java.lang.String getDocumentDate() { } /** * optional string DocumentDate = 1; + * @return The bytes for documentDate. */ + @java.lang.Override public com.google.protobuf.ByteString getDocumentDateBytes() { java.lang.Object ref = documentDate_; @@ -3745,16 +4039,21 @@ public java.lang.String getDocumentDate() { } public static final int DOCUMENTNUMBER_FIELD_NUMBER = 2; - private java.lang.Object documentNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object documentNumber_ = ""; /** * optional string DocumentNumber = 2; + * @return Whether the documentNumber field is set. */ + @java.lang.Override public boolean hasDocumentNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string DocumentNumber = 2; + * @return The documentNumber. */ + @java.lang.Override public java.lang.String getDocumentNumber() { java.lang.Object ref = documentNumber_; if (ref instanceof java.lang.String) { @@ -3771,7 +4070,9 @@ public java.lang.String getDocumentNumber() { } /** * optional string DocumentNumber = 2; + * @return The bytes for documentNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getDocumentNumberBytes() { java.lang.Object ref = documentNumber_; @@ -3786,11 +4087,8 @@ public java.lang.String getDocumentNumber() { } } - private void initFields() { - documentDate_ = ""; - documentNumber_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3800,44 +4098,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getDocumentDateBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, documentDate_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getDocumentNumberBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, documentNumber_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getDocumentDateBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, documentDate_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getDocumentNumberBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, documentNumber_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber other = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber) obj; + + if (hasDocumentDate() != other.hasDocumentDate()) return false; + if (hasDocumentDate()) { + if (!getDocumentDate() + .equals(other.getDocumentDate())) return false; + } + if (hasDocumentNumber() != other.hasDocumentNumber()) return false; + if (hasDocumentNumber()) { + if (!getDocumentNumber() + .equals(other.getDocumentNumber())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentDate()) { + hash = (37 * hash) + DOCUMENTDATE_FIELD_NUMBER; + hash = (53 * hash) + getDocumentDate().hashCode(); + } + if (hasDocumentNumber()) { + hash = (37 * hash) + DOCUMENTNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getDocumentNumber().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3861,42 +4205,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3916,6 +4275,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentDateAndNumber_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentDateAndNumber_fieldAccessorTable @@ -3925,44 +4285,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; documentDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); documentNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentDateAndNumber_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber build() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber result = buildPartial(); if (!result.isInitialized()) { @@ -3971,23 +4322,29 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber result = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentDate_ = documentDate_; to_bitField0_ |= 0x00000001; } - result.documentDate_ = documentDate_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.documentNumber_ = documentNumber_; to_bitField0_ |= 0x00000002; } - result.documentNumber_ = documentNumber_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber)other); @@ -4000,38 +4357,64 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) return this; if (other.hasDocumentDate()) { - bitField0_ |= 0x00000001; documentDate_ = other.documentDate_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDocumentNumber()) { - bitField0_ |= 0x00000002; documentNumber_ = other.documentNumber_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + documentDate_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + documentNumber_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -4039,12 +4422,14 @@ public Builder mergeFrom( private java.lang.Object documentDate_ = ""; /** * optional string DocumentDate = 1; + * @return Whether the documentDate field is set. */ public boolean hasDocumentDate() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string DocumentDate = 1; + * @return The documentDate. */ public java.lang.String getDocumentDate() { java.lang.Object ref = documentDate_; @@ -4062,6 +4447,7 @@ public java.lang.String getDocumentDate() { } /** * optional string DocumentDate = 1; + * @return The bytes for documentDate. */ public com.google.protobuf.ByteString getDocumentDateBytes() { @@ -4078,36 +4464,37 @@ public java.lang.String getDocumentDate() { } /** * optional string DocumentDate = 1; + * @param value The documentDate to set. + * @return This builder for chaining. */ public Builder setDocumentDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } documentDate_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string DocumentDate = 1; + * @return This builder for chaining. */ public Builder clearDocumentDate() { - bitField0_ = (bitField0_ & ~0x00000001); documentDate_ = getDefaultInstance().getDocumentDate(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string DocumentDate = 1; + * @param value The bytes for documentDate to set. + * @return This builder for chaining. */ public Builder setDocumentDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } documentDate_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4115,12 +4502,14 @@ public Builder setDocumentDateBytes( private java.lang.Object documentNumber_ = ""; /** * optional string DocumentNumber = 2; + * @return Whether the documentNumber field is set. */ public boolean hasDocumentNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string DocumentNumber = 2; + * @return The documentNumber. */ public java.lang.String getDocumentNumber() { java.lang.Object ref = documentNumber_; @@ -4138,6 +4527,7 @@ public java.lang.String getDocumentNumber() { } /** * optional string DocumentNumber = 2; + * @return The bytes for documentNumber. */ public com.google.protobuf.ByteString getDocumentNumberBytes() { @@ -4154,36 +4544,37 @@ public java.lang.String getDocumentNumber() { } /** * optional string DocumentNumber = 2; + * @param value The documentNumber to set. + * @return This builder for chaining. */ public Builder setDocumentNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } documentNumber_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string DocumentNumber = 2; + * @return This builder for chaining. */ public Builder clearDocumentNumber() { - bitField0_ = (bitField0_ & ~0x00000002); documentNumber_ = getDefaultInstance().getDocumentNumber(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string DocumentNumber = 2; + * @param value The bytes for documentNumber to set. + * @return This builder for chaining. */ public Builder setDocumentNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } documentNumber_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4191,75 +4582,128 @@ public Builder setDocumentNumberBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentDateAndNumber) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentDateAndNumber) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber DEFAULT_INSTANCE; static { - defaultInstance = new DocumentDateAndNumber(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentDateAndNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentDateAndNumber) } - public interface BasicDocumentInfoOrBuilder extends + @java.lang.Deprecated public interface BasicDocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.BasicDocumentInfo) com.google.protobuf.MessageOrBuilder { /** * optional string Total = 1; + * @return Whether the total field is set. */ boolean hasTotal(); /** * optional string Total = 1; + * @return The total. */ java.lang.String getTotal(); /** * optional string Total = 1; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** * optional bool NoVat = 2; + * @return Whether the noVat field is set. */ boolean hasNoVat(); /** * optional bool NoVat = 2; + * @return The noVat. */ boolean getNoVat(); /** * optional string Vat = 3; + * @return Whether the vat field is set. */ boolean hasVat(); /** * optional string Vat = 3; + * @return The vat. */ java.lang.String getVat(); /** * optional string Vat = 3; + * @return The bytes for vat. */ com.google.protobuf.ByteString getVatBytes(); /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ boolean hasGrounds(); /** * optional string Grounds = 4; + * @return The grounds. */ java.lang.String getGrounds(); /** * optional string Grounds = 4; + * @return The bytes for grounds. */ com.google.protobuf.ByteString getGroundsBytes(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber RevisionDateAndNumber = 5; + * @return Whether the revisionDateAndNumber field is set. */ boolean hasRevisionDateAndNumber(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber RevisionDateAndNumber = 5; + * @return The revisionDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getRevisionDateAndNumber(); /** @@ -4270,108 +4714,36 @@ public interface BasicDocumentInfoOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.BasicDocumentInfo} */ - public static final class BasicDocumentInfo extends + @java.lang.Deprecated public static final class BasicDocumentInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.BasicDocumentInfo) BasicDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BasicDocumentInfo.class.getName()); + } // Use BasicDocumentInfo.newBuilder() to construct. private BasicDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private BasicDocumentInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final BasicDocumentInfo defaultInstance; - public static BasicDocumentInfo getDefaultInstance() { - return defaultInstance; } - - public BasicDocumentInfo getDefaultInstanceForType() { - return defaultInstance; + private BasicDocumentInfo() { + total_ = ""; + vat_ = ""; + grounds_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BasicDocumentInfo( - 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; - total_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - noVat_ = input.readBool(); - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - vat_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - grounds_ = bs; - break; - } - case 42: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = revisionDateAndNumber_.toBuilder(); - } - revisionDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revisionDateAndNumber_); - revisionDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - 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.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_BasicDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_BasicDocumentInfo_fieldAccessorTable @@ -4379,33 +4751,23 @@ private BasicDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BasicDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BasicDocumentInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TOTAL_FIELD_NUMBER = 1; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** * optional string Total = 1; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Total = 1; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -4422,7 +4784,9 @@ public java.lang.String getTotal() { } /** * optional string Total = 1; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -4438,31 +4802,40 @@ public java.lang.String getTotal() { } public static final int NOVAT_FIELD_NUMBER = 2; - private boolean noVat_; + private boolean noVat_ = false; /** * optional bool NoVat = 2; + * @return Whether the noVat field is set. */ + @java.lang.Override public boolean hasNoVat() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bool NoVat = 2; + * @return The noVat. */ + @java.lang.Override public boolean getNoVat() { return noVat_; } public static final int VAT_FIELD_NUMBER = 3; - private java.lang.Object vat_; + @SuppressWarnings("serial") + private volatile java.lang.Object vat_ = ""; /** * optional string Vat = 3; + * @return Whether the vat field is set. */ + @java.lang.Override public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Vat = 3; + * @return The vat. */ + @java.lang.Override public java.lang.String getVat() { java.lang.Object ref = vat_; if (ref instanceof java.lang.String) { @@ -4479,7 +4852,9 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @return The bytes for vat. */ + @java.lang.Override public com.google.protobuf.ByteString getVatBytes() { java.lang.Object ref = vat_; @@ -4495,16 +4870,21 @@ public java.lang.String getVat() { } public static final int GROUNDS_FIELD_NUMBER = 4; - private java.lang.Object grounds_; + @SuppressWarnings("serial") + private volatile java.lang.Object grounds_ = ""; /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ + @java.lang.Override public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Grounds = 4; + * @return The grounds. */ + @java.lang.Override public java.lang.String getGrounds() { java.lang.Object ref = grounds_; if (ref instanceof java.lang.String) { @@ -4521,7 +4901,9 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @return The bytes for grounds. */ + @java.lang.Override public com.google.protobuf.ByteString getGroundsBytes() { java.lang.Object ref = grounds_; @@ -4540,31 +4922,30 @@ public java.lang.String getGrounds() { private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber revisionDateAndNumber_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber RevisionDateAndNumber = 5; + * @return Whether the revisionDateAndNumber field is set. */ + @java.lang.Override public boolean hasRevisionDateAndNumber() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber RevisionDateAndNumber = 5; + * @return The revisionDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getRevisionDateAndNumber() { - return revisionDateAndNumber_; + return revisionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : revisionDateAndNumber_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber RevisionDateAndNumber = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getRevisionDateAndNumberOrBuilder() { - return revisionDateAndNumber_; + return revisionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : revisionDateAndNumber_; } - private void initFields() { - total_ = ""; - noVat_ = false; - vat_ = ""; - grounds_ = ""; - revisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4574,65 +4955,138 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTotalBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, total_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, noVat_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, revisionDateAndNumber_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getRevisionDateAndNumber()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTotalBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, total_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, noVat_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, revisionDateAndNumber_); + .computeMessageSize(5, getRevisionDateAndNumber()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo) obj; + + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (hasNoVat() != other.hasNoVat()) return false; + if (hasNoVat()) { + if (getNoVat() + != other.getNoVat()) return false; + } + if (hasVat() != other.hasVat()) return false; + if (hasVat()) { + if (!getVat() + .equals(other.getVat())) return false; + } + if (hasGrounds() != other.hasGrounds()) return false; + if (hasGrounds()) { + if (!getGrounds() + .equals(other.getGrounds())) return false; + } + if (hasRevisionDateAndNumber() != other.hasRevisionDateAndNumber()) return false; + if (hasRevisionDateAndNumber()) { + if (!getRevisionDateAndNumber() + .equals(other.getRevisionDateAndNumber())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + if (hasNoVat()) { + hash = (37 * hash) + NOVAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNoVat()); + } + if (hasVat()) { + hash = (37 * hash) + VAT_FIELD_NUMBER; + hash = (53 * hash) + getVat().hashCode(); + } + if (hasGrounds()) { + hash = (37 * hash) + GROUNDS_FIELD_NUMBER; + hash = (53 * hash) + getGrounds().hashCode(); + } + if (hasRevisionDateAndNumber()) { + hash = (37 * hash) + REVISIONDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getRevisionDateAndNumber().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4656,42 +5110,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo pars } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4711,6 +5180,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_BasicDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_BasicDocumentInfo_fieldAccessorTable @@ -4729,46 +5199,39 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getRevisionDateAndNumberFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; total_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); noVat_ = false; - bitField0_ = (bitField0_ & ~0x00000002); vat_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); grounds_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (revisionDateAndNumberBuilder_ == null) { - revisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - revisionDateAndNumberBuilder_.clear(); + revisionDateAndNumber_ = null; + if (revisionDateAndNumberBuilder_ != null) { + revisionDateAndNumberBuilder_.dispose(); + revisionDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_BasicDocumentInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo result = buildPartial(); if (!result.isInitialized()) { @@ -4777,39 +5240,43 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000001; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.noVat_ = noVat_; to_bitField0_ |= 0x00000002; } - result.noVat_ = noVat_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vat_ = vat_; to_bitField0_ |= 0x00000004; } - result.vat_ = vat_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.grounds_ = grounds_; to_bitField0_ |= 0x00000008; } - result.grounds_ = grounds_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.revisionDateAndNumber_ = revisionDateAndNumberBuilder_ == null + ? revisionDateAndNumber_ + : revisionDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (revisionDateAndNumberBuilder_ == null) { - result.revisionDateAndNumber_ = revisionDateAndNumber_; - } else { - result.revisionDateAndNumber_ = revisionDateAndNumberBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo)other); @@ -4822,49 +5289,92 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo.getDefaultInstance()) return this; if (other.hasTotal()) { - bitField0_ |= 0x00000001; total_ = other.total_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasNoVat()) { setNoVat(other.getNoVat()); } if (other.hasVat()) { - bitField0_ |= 0x00000004; vat_ = other.vat_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasGrounds()) { - bitField0_ |= 0x00000008; grounds_ = other.grounds_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasRevisionDateAndNumber()) { mergeRevisionDateAndNumber(other.getRevisionDateAndNumber()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + total_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + noVat_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + vat_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + grounds_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getRevisionDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -4872,12 +5382,14 @@ public Builder mergeFrom( private java.lang.Object total_ = ""; /** * optional string Total = 1; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Total = 1; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -4895,6 +5407,7 @@ public java.lang.String getTotal() { } /** * optional string Total = 1; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -4911,36 +5424,37 @@ public java.lang.String getTotal() { } /** * optional string Total = 1; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string Total = 1; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000001); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string Total = 1; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4948,27 +5462,35 @@ public Builder setTotalBytes( private boolean noVat_ ; /** * optional bool NoVat = 2; + * @return Whether the noVat field is set. */ + @java.lang.Override public boolean hasNoVat() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bool NoVat = 2; + * @return The noVat. */ + @java.lang.Override public boolean getNoVat() { return noVat_; } /** * optional bool NoVat = 2; + * @param value The noVat to set. + * @return This builder for chaining. */ public Builder setNoVat(boolean value) { - bitField0_ |= 0x00000002; + noVat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional bool NoVat = 2; + * @return This builder for chaining. */ public Builder clearNoVat() { bitField0_ = (bitField0_ & ~0x00000002); @@ -4980,12 +5502,14 @@ public Builder clearNoVat() { private java.lang.Object vat_ = ""; /** * optional string Vat = 3; + * @return Whether the vat field is set. */ public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Vat = 3; + * @return The vat. */ public java.lang.String getVat() { java.lang.Object ref = vat_; @@ -5003,6 +5527,7 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @return The bytes for vat. */ public com.google.protobuf.ByteString getVatBytes() { @@ -5019,36 +5544,37 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @param value The vat to set. + * @return This builder for chaining. */ public Builder setVat( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string Vat = 3; + * @return This builder for chaining. */ public Builder clearVat() { - bitField0_ = (bitField0_ & ~0x00000004); vat_ = getDefaultInstance().getVat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string Vat = 3; + * @param value The bytes for vat to set. + * @return This builder for chaining. */ public Builder setVatBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -5056,12 +5582,14 @@ public Builder setVatBytes( private java.lang.Object grounds_ = ""; /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Grounds = 4; + * @return The grounds. */ public java.lang.String getGrounds() { java.lang.Object ref = grounds_; @@ -5079,6 +5607,7 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @return The bytes for grounds. */ public com.google.protobuf.ByteString getGroundsBytes() { @@ -5095,55 +5624,58 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @param value The grounds to set. + * @return This builder for chaining. */ public Builder setGrounds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string Grounds = 4; + * @return This builder for chaining. */ public Builder clearGrounds() { - bitField0_ = (bitField0_ & ~0x00000008); grounds_ = getDefaultInstance().getGrounds(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string Grounds = 4; + * @param value The bytes for grounds to set. + * @return This builder for chaining. */ public Builder setGroundsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber revisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber revisionDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> revisionDateAndNumberBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber RevisionDateAndNumber = 5; + * @return Whether the revisionDateAndNumber field is set. */ public boolean hasRevisionDateAndNumber() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber RevisionDateAndNumber = 5; + * @return The revisionDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getRevisionDateAndNumber() { if (revisionDateAndNumberBuilder_ == null) { - return revisionDateAndNumber_; + return revisionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : revisionDateAndNumber_; } else { return revisionDateAndNumberBuilder_.getMessage(); } @@ -5157,11 +5689,11 @@ public Builder setRevisionDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoPro throw new NullPointerException(); } revisionDateAndNumber_ = value; - onChanged(); } else { revisionDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5171,11 +5703,11 @@ public Builder setRevisionDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (revisionDateAndNumberBuilder_ == null) { revisionDateAndNumber_ = builderForValue.build(); - onChanged(); } else { revisionDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5183,31 +5715,33 @@ public Builder setRevisionDateAndNumber( */ public Builder mergeRevisionDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (revisionDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - revisionDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - revisionDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(revisionDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + revisionDateAndNumber_ != null && + revisionDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getRevisionDateAndNumberBuilder().mergeFrom(value); } else { revisionDateAndNumber_ = value; } - onChanged(); } else { revisionDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (revisionDateAndNumber_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber RevisionDateAndNumber = 5; */ public Builder clearRevisionDateAndNumber() { - if (revisionDateAndNumberBuilder_ == null) { - revisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - revisionDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + revisionDateAndNumber_ = null; + if (revisionDateAndNumberBuilder_ != null) { + revisionDateAndNumberBuilder_.dispose(); + revisionDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** @@ -5225,7 +5759,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde if (revisionDateAndNumberBuilder_ != null) { return revisionDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return revisionDateAndNumber_; + return revisionDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : revisionDateAndNumber_; } } /** @@ -5248,179 +5783,162 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.BasicDocumentInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.BasicDocumentInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo DEFAULT_INSTANCE; static { - defaultInstance = new BasicDocumentInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasicDocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.BasicDocumentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.BasicDocumentInfo) } - public interface InvoiceDocumentInfoOrBuilder extends + @java.lang.Deprecated public interface InvoiceDocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo) com.google.protobuf.MessageOrBuilder { /** * optional string Total = 1; + * @return Whether the total field is set. */ boolean hasTotal(); /** * optional string Total = 1; + * @return The total. */ java.lang.String getTotal(); /** * optional string Total = 1; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** * optional string Vat = 2; + * @return Whether the vat field is set. */ boolean hasVat(); /** * optional string Vat = 2; + * @return The vat. */ java.lang.String getVat(); /** * optional string Vat = 2; + * @return The bytes for vat. */ com.google.protobuf.ByteString getVatBytes(); /** * optional int32 CurrencyCode = 3; + * @return Whether the currencyCode field is set. */ boolean hasCurrencyCode(); /** * optional int32 CurrencyCode = 3; + * @return The currencyCode. */ int getCurrencyCode(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
      * for InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; + * @return Whether the originalInvoiceDateAndNumber field is set. */ boolean hasOriginalInvoiceDateAndNumber(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
      * for InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; + * @return The originalInvoiceDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceDateAndNumber(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
      * for InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalInvoiceDateAndNumberOrBuilder(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo} */ - public static final class InvoiceDocumentInfo extends + @java.lang.Deprecated public static final class InvoiceDocumentInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo) InvoiceDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceDocumentInfo.class.getName()); + } // Use InvoiceDocumentInfo.newBuilder() to construct. private InvoiceDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private InvoiceDocumentInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InvoiceDocumentInfo defaultInstance; - public static InvoiceDocumentInfo getDefaultInstance() { - return defaultInstance; } - - public InvoiceDocumentInfo getDefaultInstanceForType() { - return defaultInstance; + private InvoiceDocumentInfo() { + total_ = ""; + vat_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvoiceDocumentInfo( - 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; - total_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - vat_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - currencyCode_ = input.readInt32(); - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = originalInvoiceDateAndNumber_.toBuilder(); - } - originalInvoiceDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(originalInvoiceDateAndNumber_); - originalInvoiceDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - 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.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceDocumentInfo_fieldAccessorTable @@ -5428,33 +5946,23 @@ private InvoiceDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InvoiceDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvoiceDocumentInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TOTAL_FIELD_NUMBER = 1; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** * optional string Total = 1; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Total = 1; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -5471,7 +5979,9 @@ public java.lang.String getTotal() { } /** * optional string Total = 1; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -5487,16 +5997,21 @@ public java.lang.String getTotal() { } public static final int VAT_FIELD_NUMBER = 2; - private java.lang.Object vat_; + @SuppressWarnings("serial") + private volatile java.lang.Object vat_ = ""; /** * optional string Vat = 2; + * @return Whether the vat field is set. */ + @java.lang.Override public boolean hasVat() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Vat = 2; + * @return The vat. */ + @java.lang.Override public java.lang.String getVat() { java.lang.Object ref = vat_; if (ref instanceof java.lang.String) { @@ -5513,7 +6028,9 @@ public java.lang.String getVat() { } /** * optional string Vat = 2; + * @return The bytes for vat. */ + @java.lang.Override public com.google.protobuf.ByteString getVatBytes() { java.lang.Object ref = vat_; @@ -5529,16 +6046,20 @@ public java.lang.String getVat() { } public static final int CURRENCYCODE_FIELD_NUMBER = 3; - private int currencyCode_; + private int currencyCode_ = 0; /** * optional int32 CurrencyCode = 3; + * @return Whether the currencyCode field is set. */ + @java.lang.Override public boolean hasCurrencyCode() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 CurrencyCode = 3; + * @return The currencyCode. */ + @java.lang.Override public int getCurrencyCode() { return currencyCode_; } @@ -5546,43 +6067,43 @@ public int getCurrencyCode() { public static final int ORIGINALINVOICEDATEANDNUMBER_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceDateAndNumber_; /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
      * for InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; + * @return Whether the originalInvoiceDateAndNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceDateAndNumber() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
      * for InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; + * @return The originalInvoiceDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceDateAndNumber() { - return originalInvoiceDateAndNumber_; + return originalInvoiceDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceDateAndNumber_; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
      * for InvoiceRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalInvoiceDateAndNumberOrBuilder() { - return originalInvoiceDateAndNumber_; + return originalInvoiceDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceDateAndNumber_; } - private void initFields() { - total_ = ""; - vat_ = ""; - currencyCode_ = 0; - originalInvoiceDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5592,58 +6113,122 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTotalBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, total_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getVatBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, vat_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, currencyCode_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, originalInvoiceDateAndNumber_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getOriginalInvoiceDateAndNumber()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTotalBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, total_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getVatBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, vat_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, currencyCode_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, originalInvoiceDateAndNumber_); + .computeMessageSize(4, getOriginalInvoiceDateAndNumber()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo) obj; + + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (hasVat() != other.hasVat()) return false; + if (hasVat()) { + if (!getVat() + .equals(other.getVat())) return false; + } + if (hasCurrencyCode() != other.hasCurrencyCode()) return false; + if (hasCurrencyCode()) { + if (getCurrencyCode() + != other.getCurrencyCode()) return false; + } + if (hasOriginalInvoiceDateAndNumber() != other.hasOriginalInvoiceDateAndNumber()) return false; + if (hasOriginalInvoiceDateAndNumber()) { + if (!getOriginalInvoiceDateAndNumber() + .equals(other.getOriginalInvoiceDateAndNumber())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + if (hasVat()) { + hash = (37 * hash) + VAT_FIELD_NUMBER; + hash = (53 * hash) + getVat().hashCode(); + } + if (hasCurrencyCode()) { + hash = (37 * hash) + CURRENCYCODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode(); + } + if (hasOriginalInvoiceDateAndNumber()) { + hash = (37 * hash) + ORIGINALINVOICEDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceDateAndNumber().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5667,42 +6252,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo pa } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5722,6 +6322,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceDocumentInfo_fieldAccessorTable @@ -5740,44 +6341,38 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getOriginalInvoiceDateAndNumberFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; total_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); vat_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); currencyCode_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - if (originalInvoiceDateAndNumberBuilder_ == null) { - originalInvoiceDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - originalInvoiceDateAndNumberBuilder_.clear(); + originalInvoiceDateAndNumber_ = null; + if (originalInvoiceDateAndNumberBuilder_ != null) { + originalInvoiceDateAndNumberBuilder_.dispose(); + originalInvoiceDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceDocumentInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo result = buildPartial(); if (!result.isInitialized()) { @@ -5786,35 +6381,39 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000001; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vat_ = vat_; to_bitField0_ |= 0x00000002; } - result.vat_ = vat_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.currencyCode_ = currencyCode_; to_bitField0_ |= 0x00000004; } - result.currencyCode_ = currencyCode_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.originalInvoiceDateAndNumber_ = originalInvoiceDateAndNumberBuilder_ == null + ? originalInvoiceDateAndNumber_ + : originalInvoiceDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (originalInvoiceDateAndNumberBuilder_ == null) { - result.originalInvoiceDateAndNumber_ = originalInvoiceDateAndNumber_; - } else { - result.originalInvoiceDateAndNumber_ = originalInvoiceDateAndNumberBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo)other); @@ -5827,13 +6426,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo.getDefaultInstance()) return this; if (other.hasTotal()) { - bitField0_ |= 0x00000001; total_ = other.total_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasVat()) { - bitField0_ |= 0x00000002; vat_ = other.vat_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCurrencyCode()) { @@ -5843,28 +6442,66 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocu mergeOriginalInvoiceDateAndNumber(other.getOriginalInvoiceDateAndNumber()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + total_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + vat_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + currencyCode_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getOriginalInvoiceDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -5872,12 +6509,14 @@ public Builder mergeFrom( private java.lang.Object total_ = ""; /** * optional string Total = 1; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Total = 1; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -5895,6 +6534,7 @@ public java.lang.String getTotal() { } /** * optional string Total = 1; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -5911,36 +6551,37 @@ public java.lang.String getTotal() { } /** * optional string Total = 1; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string Total = 1; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000001); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string Total = 1; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5948,12 +6589,14 @@ public Builder setTotalBytes( private java.lang.Object vat_ = ""; /** * optional string Vat = 2; + * @return Whether the vat field is set. */ public boolean hasVat() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Vat = 2; + * @return The vat. */ public java.lang.String getVat() { java.lang.Object ref = vat_; @@ -5971,6 +6614,7 @@ public java.lang.String getVat() { } /** * optional string Vat = 2; + * @return The bytes for vat. */ public com.google.protobuf.ByteString getVatBytes() { @@ -5987,36 +6631,37 @@ public java.lang.String getVat() { } /** * optional string Vat = 2; + * @param value The vat to set. + * @return This builder for chaining. */ public Builder setVat( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string Vat = 2; + * @return This builder for chaining. */ public Builder clearVat() { - bitField0_ = (bitField0_ & ~0x00000002); vat_ = getDefaultInstance().getVat(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string Vat = 2; + * @param value The bytes for vat to set. + * @return This builder for chaining. */ public Builder setVatBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6024,27 +6669,35 @@ public Builder setVatBytes( private int currencyCode_ ; /** * optional int32 CurrencyCode = 3; + * @return Whether the currencyCode field is set. */ + @java.lang.Override public boolean hasCurrencyCode() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 CurrencyCode = 3; + * @return The currencyCode. */ + @java.lang.Override public int getCurrencyCode() { return currencyCode_; } /** * optional int32 CurrencyCode = 3; + * @param value The currencyCode to set. + * @return This builder for chaining. */ public Builder setCurrencyCode(int value) { - bitField0_ |= 0x00000004; + currencyCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional int32 CurrencyCode = 3; + * @return This builder for chaining. */ public Builder clearCurrencyCode() { bitField0_ = (bitField0_ & ~0x00000004); @@ -6053,39 +6706,41 @@ public Builder clearCurrencyCode() { return this; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> originalInvoiceDateAndNumberBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
        * for InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; + * @return Whether the originalInvoiceDateAndNumber field is set. */ public boolean hasOriginalInvoiceDateAndNumber() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
        * for InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; + * @return The originalInvoiceDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceDateAndNumber() { if (originalInvoiceDateAndNumberBuilder_ == null) { - return originalInvoiceDateAndNumber_; + return originalInvoiceDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceDateAndNumber_; } else { return originalInvoiceDateAndNumberBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
        * for InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; */ public Builder setOriginalInvoiceDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalInvoiceDateAndNumberBuilder_ == null) { @@ -6093,77 +6748,79 @@ public Builder setOriginalInvoiceDateAndNumber(Diadoc.Api.Proto.Docflow.Document throw new NullPointerException(); } originalInvoiceDateAndNumber_ = value; - onChanged(); } else { originalInvoiceDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
        * for InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; */ public Builder setOriginalInvoiceDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (originalInvoiceDateAndNumberBuilder_ == null) { originalInvoiceDateAndNumber_ = builderForValue.build(); - onChanged(); } else { originalInvoiceDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
        * for InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; */ public Builder mergeOriginalInvoiceDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalInvoiceDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - originalInvoiceDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - originalInvoiceDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(originalInvoiceDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + originalInvoiceDateAndNumber_ != null && + originalInvoiceDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getOriginalInvoiceDateAndNumberBuilder().mergeFrom(value); } else { originalInvoiceDateAndNumber_ = value; } - onChanged(); } else { originalInvoiceDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (originalInvoiceDateAndNumber_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
        * for InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; */ public Builder clearOriginalInvoiceDateAndNumber() { - if (originalInvoiceDateAndNumberBuilder_ == null) { - originalInvoiceDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - originalInvoiceDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + originalInvoiceDateAndNumber_ = null; + if (originalInvoiceDateAndNumberBuilder_ != null) { + originalInvoiceDateAndNumberBuilder_.dispose(); + originalInvoiceDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
        * for InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder getOriginalInvoiceDateAndNumberBuilder() { bitField0_ |= 0x00000008; @@ -6171,25 +6828,26 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder return getOriginalInvoiceDateAndNumberFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
        * for InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalInvoiceDateAndNumberOrBuilder() { if (originalInvoiceDateAndNumberBuilder_ != null) { return originalInvoiceDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return originalInvoiceDateAndNumber_; + return originalInvoiceDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceDateAndNumber_; } } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; - * *
        * for InvoiceRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 4; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> @@ -6208,89 +6866,145 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo DEFAULT_INSTANCE; static { - defaultInstance = new InvoiceDocumentInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvoiceDocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceDocumentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InvoiceDocumentInfo) } - public interface InvoiceCorrectionDocumentInfoOrBuilder extends + @java.lang.Deprecated public interface InvoiceCorrectionDocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo) com.google.protobuf.MessageOrBuilder { /** * optional string TotalInc = 1; + * @return Whether the totalInc field is set. */ boolean hasTotalInc(); /** * optional string TotalInc = 1; + * @return The totalInc. */ java.lang.String getTotalInc(); /** * optional string TotalInc = 1; + * @return The bytes for totalInc. */ com.google.protobuf.ByteString getTotalIncBytes(); /** * optional string TotalDec = 2; + * @return Whether the totalDec field is set. */ boolean hasTotalDec(); /** * optional string TotalDec = 2; + * @return The totalDec. */ java.lang.String getTotalDec(); /** * optional string TotalDec = 2; + * @return The bytes for totalDec. */ com.google.protobuf.ByteString getTotalDecBytes(); /** * optional string VatInc = 3; + * @return Whether the vatInc field is set. */ boolean hasVatInc(); /** * optional string VatInc = 3; + * @return The vatInc. */ java.lang.String getVatInc(); /** * optional string VatInc = 3; + * @return The bytes for vatInc. */ com.google.protobuf.ByteString getVatIncBytes(); /** * optional string VatDec = 4; + * @return Whether the vatDec field is set. */ boolean hasVatDec(); /** * optional string VatDec = 4; + * @return The vatDec. */ java.lang.String getVatDec(); /** * optional string VatDec = 4; + * @return The bytes for vatDec. */ com.google.protobuf.ByteString getVatDecBytes(); /** * optional int32 CurrencyCode = 5; + * @return Whether the currencyCode field is set. */ boolean hasCurrencyCode(); /** * optional int32 CurrencyCode = 5; + * @return The currencyCode. */ int getCurrencyCode(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 6; + * @return Whether the originalInvoiceDateAndNumber field is set. */ boolean hasOriginalInvoiceDateAndNumber(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 6; + * @return The originalInvoiceDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceDateAndNumber(); /** @@ -6300,10 +7014,12 @@ public interface InvoiceCorrectionDocumentInfoOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceRevisionDateAndNumber = 7; + * @return Whether the originalInvoiceRevisionDateAndNumber field is set. */ boolean hasOriginalInvoiceRevisionDateAndNumber(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceRevisionDateAndNumber = 7; + * @return The originalInvoiceRevisionDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceRevisionDateAndNumber(); /** @@ -6312,167 +7028,66 @@ public interface InvoiceCorrectionDocumentInfoOrBuilder extends Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalInvoiceRevisionDateAndNumberOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
      * for InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; + * @return Whether the originalInvoiceCorrectionDateAndNumber field is set. */ boolean hasOriginalInvoiceCorrectionDateAndNumber(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
      * for InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; + * @return The originalInvoiceCorrectionDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceCorrectionDateAndNumber(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
      * for InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalInvoiceCorrectionDateAndNumberOrBuilder(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo} */ - public static final class InvoiceCorrectionDocumentInfo extends + @java.lang.Deprecated public static final class InvoiceCorrectionDocumentInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo) InvoiceCorrectionDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceCorrectionDocumentInfo.class.getName()); + } // Use InvoiceCorrectionDocumentInfo.newBuilder() to construct. private InvoiceCorrectionDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private InvoiceCorrectionDocumentInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InvoiceCorrectionDocumentInfo defaultInstance; - public static InvoiceCorrectionDocumentInfo getDefaultInstance() { - return defaultInstance; } - - public InvoiceCorrectionDocumentInfo getDefaultInstanceForType() { - return defaultInstance; + private InvoiceCorrectionDocumentInfo() { + totalInc_ = ""; + totalDec_ = ""; + vatInc_ = ""; + vatDec_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvoiceCorrectionDocumentInfo( - 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; - totalInc_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - totalDec_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - vatInc_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - vatDec_ = bs; - break; - } - case 40: { - bitField0_ |= 0x00000010; - currencyCode_ = input.readInt32(); - break; - } - case 50: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = originalInvoiceDateAndNumber_.toBuilder(); - } - originalInvoiceDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(originalInvoiceDateAndNumber_); - originalInvoiceDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 58: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = originalInvoiceRevisionDateAndNumber_.toBuilder(); - } - originalInvoiceRevisionDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(originalInvoiceRevisionDateAndNumber_); - originalInvoiceRevisionDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 66: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = originalInvoiceCorrectionDateAndNumber_.toBuilder(); - } - originalInvoiceCorrectionDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(originalInvoiceCorrectionDateAndNumber_); - originalInvoiceCorrectionDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - 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.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionDocumentInfo_fieldAccessorTable @@ -6480,33 +7095,23 @@ private InvoiceCorrectionDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InvoiceCorrectionDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvoiceCorrectionDocumentInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TOTALINC_FIELD_NUMBER = 1; - private java.lang.Object totalInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalInc_ = ""; /** * optional string TotalInc = 1; + * @return Whether the totalInc field is set. */ + @java.lang.Override public boolean hasTotalInc() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string TotalInc = 1; + * @return The totalInc. */ + @java.lang.Override public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; if (ref instanceof java.lang.String) { @@ -6523,7 +7128,9 @@ public java.lang.String getTotalInc() { } /** * optional string TotalInc = 1; + * @return The bytes for totalInc. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalIncBytes() { java.lang.Object ref = totalInc_; @@ -6539,16 +7146,21 @@ public java.lang.String getTotalInc() { } public static final int TOTALDEC_FIELD_NUMBER = 2; - private java.lang.Object totalDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalDec_ = ""; /** * optional string TotalDec = 2; + * @return Whether the totalDec field is set. */ + @java.lang.Override public boolean hasTotalDec() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string TotalDec = 2; + * @return The totalDec. */ + @java.lang.Override public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; if (ref instanceof java.lang.String) { @@ -6565,7 +7177,9 @@ public java.lang.String getTotalDec() { } /** * optional string TotalDec = 2; + * @return The bytes for totalDec. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalDecBytes() { java.lang.Object ref = totalDec_; @@ -6581,16 +7195,21 @@ public java.lang.String getTotalDec() { } public static final int VATINC_FIELD_NUMBER = 3; - private java.lang.Object vatInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatInc_ = ""; /** * optional string VatInc = 3; + * @return Whether the vatInc field is set. */ + @java.lang.Override public boolean hasVatInc() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string VatInc = 3; + * @return The vatInc. */ + @java.lang.Override public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; if (ref instanceof java.lang.String) { @@ -6607,7 +7226,9 @@ public java.lang.String getVatInc() { } /** * optional string VatInc = 3; + * @return The bytes for vatInc. */ + @java.lang.Override public com.google.protobuf.ByteString getVatIncBytes() { java.lang.Object ref = vatInc_; @@ -6623,16 +7244,21 @@ public java.lang.String getVatInc() { } public static final int VATDEC_FIELD_NUMBER = 4; - private java.lang.Object vatDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatDec_ = ""; /** * optional string VatDec = 4; + * @return Whether the vatDec field is set. */ + @java.lang.Override public boolean hasVatDec() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string VatDec = 4; + * @return The vatDec. */ + @java.lang.Override public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; if (ref instanceof java.lang.String) { @@ -6649,7 +7275,9 @@ public java.lang.String getVatDec() { } /** * optional string VatDec = 4; + * @return The bytes for vatDec. */ + @java.lang.Override public com.google.protobuf.ByteString getVatDecBytes() { java.lang.Object ref = vatDec_; @@ -6665,16 +7293,20 @@ public java.lang.String getVatDec() { } public static final int CURRENCYCODE_FIELD_NUMBER = 5; - private int currencyCode_; + private int currencyCode_ = 0; /** * optional int32 CurrencyCode = 5; + * @return Whether the currencyCode field is set. */ + @java.lang.Override public boolean hasCurrencyCode() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional int32 CurrencyCode = 5; + * @return The currencyCode. */ + @java.lang.Override public int getCurrencyCode() { return currencyCode_; } @@ -6683,88 +7315,94 @@ public int getCurrencyCode() { private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceDateAndNumber_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 6; + * @return Whether the originalInvoiceDateAndNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceDateAndNumber() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 6; + * @return The originalInvoiceDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceDateAndNumber() { - return originalInvoiceDateAndNumber_; + return originalInvoiceDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceDateAndNumber_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 6; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalInvoiceDateAndNumberOrBuilder() { - return originalInvoiceDateAndNumber_; + return originalInvoiceDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceDateAndNumber_; } public static final int ORIGINALINVOICEREVISIONDATEANDNUMBER_FIELD_NUMBER = 7; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceRevisionDateAndNumber_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceRevisionDateAndNumber = 7; + * @return Whether the originalInvoiceRevisionDateAndNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceRevisionDateAndNumber() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceRevisionDateAndNumber = 7; + * @return The originalInvoiceRevisionDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceRevisionDateAndNumber() { - return originalInvoiceRevisionDateAndNumber_; + return originalInvoiceRevisionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceRevisionDateAndNumber_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceRevisionDateAndNumber = 7; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalInvoiceRevisionDateAndNumberOrBuilder() { - return originalInvoiceRevisionDateAndNumber_; + return originalInvoiceRevisionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceRevisionDateAndNumber_; } public static final int ORIGINALINVOICECORRECTIONDATEANDNUMBER_FIELD_NUMBER = 8; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceCorrectionDateAndNumber_; /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
      * for InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; + * @return Whether the originalInvoiceCorrectionDateAndNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceCorrectionDateAndNumber() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
      * for InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; + * @return The originalInvoiceCorrectionDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceCorrectionDateAndNumber() { - return originalInvoiceCorrectionDateAndNumber_; + return originalInvoiceCorrectionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceCorrectionDateAndNumber_; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
      * for InvoiceCorrectionRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalInvoiceCorrectionDateAndNumberOrBuilder() { - return originalInvoiceCorrectionDateAndNumber_; + return originalInvoiceCorrectionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceCorrectionDateAndNumber_; } - private void initFields() { - totalInc_ = ""; - totalDec_ = ""; - vatInc_ = ""; - vatDec_ = ""; - currencyCode_ = 0; - originalInvoiceDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - originalInvoiceRevisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - originalInvoiceCorrectionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -6774,86 +7412,184 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTotalIncBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, totalInc_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalDecBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, totalDec_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVatIncBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vatInc_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getVatDecBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, vatDec_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeInt32(5, currencyCode_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, originalInvoiceDateAndNumber_); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getOriginalInvoiceDateAndNumber()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, originalInvoiceRevisionDateAndNumber_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getOriginalInvoiceRevisionDateAndNumber()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, originalInvoiceCorrectionDateAndNumber_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getOriginalInvoiceCorrectionDateAndNumber()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTotalIncBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, totalInc_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalDecBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, totalDec_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVatIncBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vatInc_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getVatDecBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, vatDec_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, currencyCode_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, originalInvoiceDateAndNumber_); + .computeMessageSize(6, getOriginalInvoiceDateAndNumber()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, originalInvoiceRevisionDateAndNumber_); + .computeMessageSize(7, getOriginalInvoiceRevisionDateAndNumber()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, originalInvoiceCorrectionDateAndNumber_); + .computeMessageSize(8, getOriginalInvoiceCorrectionDateAndNumber()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo) obj; + + if (hasTotalInc() != other.hasTotalInc()) return false; + if (hasTotalInc()) { + if (!getTotalInc() + .equals(other.getTotalInc())) return false; + } + if (hasTotalDec() != other.hasTotalDec()) return false; + if (hasTotalDec()) { + if (!getTotalDec() + .equals(other.getTotalDec())) return false; + } + if (hasVatInc() != other.hasVatInc()) return false; + if (hasVatInc()) { + if (!getVatInc() + .equals(other.getVatInc())) return false; + } + if (hasVatDec() != other.hasVatDec()) return false; + if (hasVatDec()) { + if (!getVatDec() + .equals(other.getVatDec())) return false; + } + if (hasCurrencyCode() != other.hasCurrencyCode()) return false; + if (hasCurrencyCode()) { + if (getCurrencyCode() + != other.getCurrencyCode()) return false; + } + if (hasOriginalInvoiceDateAndNumber() != other.hasOriginalInvoiceDateAndNumber()) return false; + if (hasOriginalInvoiceDateAndNumber()) { + if (!getOriginalInvoiceDateAndNumber() + .equals(other.getOriginalInvoiceDateAndNumber())) return false; + } + if (hasOriginalInvoiceRevisionDateAndNumber() != other.hasOriginalInvoiceRevisionDateAndNumber()) return false; + if (hasOriginalInvoiceRevisionDateAndNumber()) { + if (!getOriginalInvoiceRevisionDateAndNumber() + .equals(other.getOriginalInvoiceRevisionDateAndNumber())) return false; + } + if (hasOriginalInvoiceCorrectionDateAndNumber() != other.hasOriginalInvoiceCorrectionDateAndNumber()) return false; + if (hasOriginalInvoiceCorrectionDateAndNumber()) { + if (!getOriginalInvoiceCorrectionDateAndNumber() + .equals(other.getOriginalInvoiceCorrectionDateAndNumber())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalInc()) { + hash = (37 * hash) + TOTALINC_FIELD_NUMBER; + hash = (53 * hash) + getTotalInc().hashCode(); + } + if (hasTotalDec()) { + hash = (37 * hash) + TOTALDEC_FIELD_NUMBER; + hash = (53 * hash) + getTotalDec().hashCode(); + } + if (hasVatInc()) { + hash = (37 * hash) + VATINC_FIELD_NUMBER; + hash = (53 * hash) + getVatInc().hashCode(); + } + if (hasVatDec()) { + hash = (37 * hash) + VATDEC_FIELD_NUMBER; + hash = (53 * hash) + getVatDec().hashCode(); + } + if (hasCurrencyCode()) { + hash = (37 * hash) + CURRENCYCODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode(); + } + if (hasOriginalInvoiceDateAndNumber()) { + hash = (37 * hash) + ORIGINALINVOICEDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceDateAndNumber().hashCode(); + } + if (hasOriginalInvoiceRevisionDateAndNumber()) { + hash = (37 * hash) + ORIGINALINVOICEREVISIONDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceRevisionDateAndNumber().hashCode(); + } + if (hasOriginalInvoiceCorrectionDateAndNumber()) { + hash = (37 * hash) + ORIGINALINVOICECORRECTIONDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceCorrectionDateAndNumber().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6877,42 +7613,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocum } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -6932,6 +7683,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionDocumentInfo_fieldAccessorTable @@ -6950,62 +7702,52 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getOriginalInvoiceDateAndNumberFieldBuilder(); getOriginalInvoiceRevisionDateAndNumberFieldBuilder(); getOriginalInvoiceCorrectionDateAndNumberFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; totalInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); totalDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); vatInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); vatDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); currencyCode_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - if (originalInvoiceDateAndNumberBuilder_ == null) { - originalInvoiceDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - originalInvoiceDateAndNumberBuilder_.clear(); + originalInvoiceDateAndNumber_ = null; + if (originalInvoiceDateAndNumberBuilder_ != null) { + originalInvoiceDateAndNumberBuilder_.dispose(); + originalInvoiceDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); - if (originalInvoiceRevisionDateAndNumberBuilder_ == null) { - originalInvoiceRevisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - originalInvoiceRevisionDateAndNumberBuilder_.clear(); + originalInvoiceRevisionDateAndNumber_ = null; + if (originalInvoiceRevisionDateAndNumberBuilder_ != null) { + originalInvoiceRevisionDateAndNumberBuilder_.dispose(); + originalInvoiceRevisionDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000040); - if (originalInvoiceCorrectionDateAndNumberBuilder_ == null) { - originalInvoiceCorrectionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - originalInvoiceCorrectionDateAndNumberBuilder_.clear(); + originalInvoiceCorrectionDateAndNumber_ = null; + if (originalInvoiceCorrectionDateAndNumberBuilder_ != null) { + originalInvoiceCorrectionDateAndNumberBuilder_.dispose(); + originalInvoiceCorrectionDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionDocumentInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo result = buildPartial(); if (!result.isInitialized()) { @@ -7014,59 +7756,59 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalInc_ = totalInc_; to_bitField0_ |= 0x00000001; } - result.totalInc_ = totalInc_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalDec_ = totalDec_; to_bitField0_ |= 0x00000002; } - result.totalDec_ = totalDec_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vatInc_ = vatInc_; to_bitField0_ |= 0x00000004; } - result.vatInc_ = vatInc_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vatDec_ = vatDec_; to_bitField0_ |= 0x00000008; } - result.vatDec_ = vatDec_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.currencyCode_ = currencyCode_; to_bitField0_ |= 0x00000010; } - result.currencyCode_ = currencyCode_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.originalInvoiceDateAndNumber_ = originalInvoiceDateAndNumberBuilder_ == null + ? originalInvoiceDateAndNumber_ + : originalInvoiceDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (originalInvoiceDateAndNumberBuilder_ == null) { - result.originalInvoiceDateAndNumber_ = originalInvoiceDateAndNumber_; - } else { - result.originalInvoiceDateAndNumber_ = originalInvoiceDateAndNumberBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.originalInvoiceRevisionDateAndNumber_ = originalInvoiceRevisionDateAndNumberBuilder_ == null + ? originalInvoiceRevisionDateAndNumber_ + : originalInvoiceRevisionDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (originalInvoiceRevisionDateAndNumberBuilder_ == null) { - result.originalInvoiceRevisionDateAndNumber_ = originalInvoiceRevisionDateAndNumber_; - } else { - result.originalInvoiceRevisionDateAndNumber_ = originalInvoiceRevisionDateAndNumberBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.originalInvoiceCorrectionDateAndNumber_ = originalInvoiceCorrectionDateAndNumberBuilder_ == null + ? originalInvoiceCorrectionDateAndNumber_ + : originalInvoiceCorrectionDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (originalInvoiceCorrectionDateAndNumberBuilder_ == null) { - result.originalInvoiceCorrectionDateAndNumber_ = originalInvoiceCorrectionDateAndNumber_; - } else { - result.originalInvoiceCorrectionDateAndNumber_ = originalInvoiceCorrectionDateAndNumberBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo)other); @@ -7079,23 +7821,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo.getDefaultInstance()) return this; if (other.hasTotalInc()) { - bitField0_ |= 0x00000001; totalInc_ = other.totalInc_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTotalDec()) { - bitField0_ |= 0x00000002; totalDec_ = other.totalDec_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasVatInc()) { - bitField0_ |= 0x00000004; vatInc_ = other.vatInc_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasVatDec()) { - bitField0_ |= 0x00000008; vatDec_ = other.vatDec_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasCurrencyCode()) { @@ -7111,28 +7853,90 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorr mergeOriginalInvoiceCorrectionDateAndNumber(other.getOriginalInvoiceCorrectionDateAndNumber()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + totalInc_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + totalDec_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + vatInc_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + vatDec_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + currencyCode_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + input.readMessage( + getOriginalInvoiceDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getOriginalInvoiceRevisionDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getOriginalInvoiceCorrectionDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -7140,12 +7944,14 @@ public Builder mergeFrom( private java.lang.Object totalInc_ = ""; /** * optional string TotalInc = 1; + * @return Whether the totalInc field is set. */ public boolean hasTotalInc() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string TotalInc = 1; + * @return The totalInc. */ public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; @@ -7163,6 +7969,7 @@ public java.lang.String getTotalInc() { } /** * optional string TotalInc = 1; + * @return The bytes for totalInc. */ public com.google.protobuf.ByteString getTotalIncBytes() { @@ -7179,36 +7986,37 @@ public java.lang.String getTotalInc() { } /** * optional string TotalInc = 1; + * @param value The totalInc to set. + * @return This builder for chaining. */ public Builder setTotalInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string TotalInc = 1; + * @return This builder for chaining. */ public Builder clearTotalInc() { - bitField0_ = (bitField0_ & ~0x00000001); totalInc_ = getDefaultInstance().getTotalInc(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string TotalInc = 1; + * @param value The bytes for totalInc to set. + * @return This builder for chaining. */ public Builder setTotalIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -7216,12 +8024,14 @@ public Builder setTotalIncBytes( private java.lang.Object totalDec_ = ""; /** * optional string TotalDec = 2; + * @return Whether the totalDec field is set. */ public boolean hasTotalDec() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string TotalDec = 2; + * @return The totalDec. */ public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; @@ -7239,6 +8049,7 @@ public java.lang.String getTotalDec() { } /** * optional string TotalDec = 2; + * @return The bytes for totalDec. */ public com.google.protobuf.ByteString getTotalDecBytes() { @@ -7255,36 +8066,37 @@ public java.lang.String getTotalDec() { } /** * optional string TotalDec = 2; + * @param value The totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string TotalDec = 2; + * @return This builder for chaining. */ public Builder clearTotalDec() { - bitField0_ = (bitField0_ & ~0x00000002); totalDec_ = getDefaultInstance().getTotalDec(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string TotalDec = 2; + * @param value The bytes for totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -7292,12 +8104,14 @@ public Builder setTotalDecBytes( private java.lang.Object vatInc_ = ""; /** * optional string VatInc = 3; + * @return Whether the vatInc field is set. */ public boolean hasVatInc() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string VatInc = 3; + * @return The vatInc. */ public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; @@ -7315,6 +8129,7 @@ public java.lang.String getVatInc() { } /** * optional string VatInc = 3; + * @return The bytes for vatInc. */ public com.google.protobuf.ByteString getVatIncBytes() { @@ -7331,36 +8146,37 @@ public java.lang.String getVatInc() { } /** * optional string VatInc = 3; + * @param value The vatInc to set. + * @return This builder for chaining. */ public Builder setVatInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string VatInc = 3; + * @return This builder for chaining. */ public Builder clearVatInc() { - bitField0_ = (bitField0_ & ~0x00000004); vatInc_ = getDefaultInstance().getVatInc(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string VatInc = 3; + * @param value The bytes for vatInc to set. + * @return This builder for chaining. */ public Builder setVatIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7368,12 +8184,14 @@ public Builder setVatIncBytes( private java.lang.Object vatDec_ = ""; /** * optional string VatDec = 4; + * @return Whether the vatDec field is set. */ public boolean hasVatDec() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string VatDec = 4; + * @return The vatDec. */ public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; @@ -7391,6 +8209,7 @@ public java.lang.String getVatDec() { } /** * optional string VatDec = 4; + * @return The bytes for vatDec. */ public com.google.protobuf.ByteString getVatDecBytes() { @@ -7407,36 +8226,37 @@ public java.lang.String getVatDec() { } /** * optional string VatDec = 4; + * @param value The vatDec to set. + * @return This builder for chaining. */ public Builder setVatDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string VatDec = 4; + * @return This builder for chaining. */ public Builder clearVatDec() { - bitField0_ = (bitField0_ & ~0x00000008); vatDec_ = getDefaultInstance().getVatDec(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string VatDec = 4; + * @param value The bytes for vatDec to set. + * @return This builder for chaining. */ public Builder setVatDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7444,27 +8264,35 @@ public Builder setVatDecBytes( private int currencyCode_ ; /** * optional int32 CurrencyCode = 5; + * @return Whether the currencyCode field is set. */ + @java.lang.Override public boolean hasCurrencyCode() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional int32 CurrencyCode = 5; + * @return The currencyCode. */ + @java.lang.Override public int getCurrencyCode() { return currencyCode_; } /** * optional int32 CurrencyCode = 5; + * @param value The currencyCode to set. + * @return This builder for chaining. */ public Builder setCurrencyCode(int value) { - bitField0_ |= 0x00000010; + currencyCode_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional int32 CurrencyCode = 5; + * @return This builder for chaining. */ public Builder clearCurrencyCode() { bitField0_ = (bitField0_ & ~0x00000010); @@ -7473,21 +8301,23 @@ public Builder clearCurrencyCode() { return this; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> originalInvoiceDateAndNumberBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 6; + * @return Whether the originalInvoiceDateAndNumber field is set. */ public boolean hasOriginalInvoiceDateAndNumber() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 6; + * @return The originalInvoiceDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceDateAndNumber() { if (originalInvoiceDateAndNumberBuilder_ == null) { - return originalInvoiceDateAndNumber_; + return originalInvoiceDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceDateAndNumber_; } else { return originalInvoiceDateAndNumberBuilder_.getMessage(); } @@ -7501,11 +8331,11 @@ public Builder setOriginalInvoiceDateAndNumber(Diadoc.Api.Proto.Docflow.Document throw new NullPointerException(); } originalInvoiceDateAndNumber_ = value; - onChanged(); } else { originalInvoiceDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -7515,11 +8345,11 @@ public Builder setOriginalInvoiceDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (originalInvoiceDateAndNumberBuilder_ == null) { originalInvoiceDateAndNumber_ = builderForValue.build(); - onChanged(); } else { originalInvoiceDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -7527,31 +8357,33 @@ public Builder setOriginalInvoiceDateAndNumber( */ public Builder mergeOriginalInvoiceDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalInvoiceDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - originalInvoiceDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - originalInvoiceDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(originalInvoiceDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + originalInvoiceDateAndNumber_ != null && + originalInvoiceDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getOriginalInvoiceDateAndNumberBuilder().mergeFrom(value); } else { originalInvoiceDateAndNumber_ = value; } - onChanged(); } else { originalInvoiceDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (originalInvoiceDateAndNumber_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceDateAndNumber = 6; */ public Builder clearOriginalInvoiceDateAndNumber() { - if (originalInvoiceDateAndNumberBuilder_ == null) { - originalInvoiceDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - originalInvoiceDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + originalInvoiceDateAndNumber_ = null; + if (originalInvoiceDateAndNumberBuilder_ != null) { + originalInvoiceDateAndNumberBuilder_.dispose(); + originalInvoiceDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** @@ -7569,7 +8401,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde if (originalInvoiceDateAndNumberBuilder_ != null) { return originalInvoiceDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return originalInvoiceDateAndNumber_; + return originalInvoiceDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceDateAndNumber_; } } /** @@ -7589,21 +8422,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde return originalInvoiceDateAndNumberBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceRevisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceRevisionDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> originalInvoiceRevisionDateAndNumberBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceRevisionDateAndNumber = 7; + * @return Whether the originalInvoiceRevisionDateAndNumber field is set. */ public boolean hasOriginalInvoiceRevisionDateAndNumber() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceRevisionDateAndNumber = 7; + * @return The originalInvoiceRevisionDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceRevisionDateAndNumber() { if (originalInvoiceRevisionDateAndNumberBuilder_ == null) { - return originalInvoiceRevisionDateAndNumber_; + return originalInvoiceRevisionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceRevisionDateAndNumber_; } else { return originalInvoiceRevisionDateAndNumberBuilder_.getMessage(); } @@ -7617,11 +8452,11 @@ public Builder setOriginalInvoiceRevisionDateAndNumber(Diadoc.Api.Proto.Docflow. throw new NullPointerException(); } originalInvoiceRevisionDateAndNumber_ = value; - onChanged(); } else { originalInvoiceRevisionDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -7631,11 +8466,11 @@ public Builder setOriginalInvoiceRevisionDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (originalInvoiceRevisionDateAndNumberBuilder_ == null) { originalInvoiceRevisionDateAndNumber_ = builderForValue.build(); - onChanged(); } else { originalInvoiceRevisionDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -7643,31 +8478,33 @@ public Builder setOriginalInvoiceRevisionDateAndNumber( */ public Builder mergeOriginalInvoiceRevisionDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalInvoiceRevisionDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - originalInvoiceRevisionDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - originalInvoiceRevisionDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(originalInvoiceRevisionDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) && + originalInvoiceRevisionDateAndNumber_ != null && + originalInvoiceRevisionDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getOriginalInvoiceRevisionDateAndNumberBuilder().mergeFrom(value); } else { originalInvoiceRevisionDateAndNumber_ = value; } - onChanged(); } else { originalInvoiceRevisionDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + if (originalInvoiceRevisionDateAndNumber_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceRevisionDateAndNumber = 7; */ public Builder clearOriginalInvoiceRevisionDateAndNumber() { - if (originalInvoiceRevisionDateAndNumberBuilder_ == null) { - originalInvoiceRevisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - originalInvoiceRevisionDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000040); + originalInvoiceRevisionDateAndNumber_ = null; + if (originalInvoiceRevisionDateAndNumberBuilder_ != null) { + originalInvoiceRevisionDateAndNumberBuilder_.dispose(); + originalInvoiceRevisionDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** @@ -7685,7 +8522,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde if (originalInvoiceRevisionDateAndNumberBuilder_ != null) { return originalInvoiceRevisionDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return originalInvoiceRevisionDateAndNumber_; + return originalInvoiceRevisionDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceRevisionDateAndNumber_; } } /** @@ -7705,39 +8543,41 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde return originalInvoiceRevisionDateAndNumberBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceCorrectionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalInvoiceCorrectionDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> originalInvoiceCorrectionDateAndNumberBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
        * for InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; + * @return Whether the originalInvoiceCorrectionDateAndNumber field is set. */ public boolean hasOriginalInvoiceCorrectionDateAndNumber() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
        * for InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; + * @return The originalInvoiceCorrectionDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalInvoiceCorrectionDateAndNumber() { if (originalInvoiceCorrectionDateAndNumberBuilder_ == null) { - return originalInvoiceCorrectionDateAndNumber_; + return originalInvoiceCorrectionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceCorrectionDateAndNumber_; } else { return originalInvoiceCorrectionDateAndNumberBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
        * for InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; */ public Builder setOriginalInvoiceCorrectionDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalInvoiceCorrectionDateAndNumberBuilder_ == null) { @@ -7745,77 +8585,79 @@ public Builder setOriginalInvoiceCorrectionDateAndNumber(Diadoc.Api.Proto.Docflo throw new NullPointerException(); } originalInvoiceCorrectionDateAndNumber_ = value; - onChanged(); } else { originalInvoiceCorrectionDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
        * for InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; */ public Builder setOriginalInvoiceCorrectionDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (originalInvoiceCorrectionDateAndNumberBuilder_ == null) { originalInvoiceCorrectionDateAndNumber_ = builderForValue.build(); - onChanged(); } else { originalInvoiceCorrectionDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
        * for InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; */ public Builder mergeOriginalInvoiceCorrectionDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalInvoiceCorrectionDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - originalInvoiceCorrectionDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - originalInvoiceCorrectionDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(originalInvoiceCorrectionDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + originalInvoiceCorrectionDateAndNumber_ != null && + originalInvoiceCorrectionDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getOriginalInvoiceCorrectionDateAndNumberBuilder().mergeFrom(value); } else { originalInvoiceCorrectionDateAndNumber_ = value; } - onChanged(); } else { originalInvoiceCorrectionDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + if (originalInvoiceCorrectionDateAndNumber_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
        * for InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; */ public Builder clearOriginalInvoiceCorrectionDateAndNumber() { - if (originalInvoiceCorrectionDateAndNumberBuilder_ == null) { - originalInvoiceCorrectionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - originalInvoiceCorrectionDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000080); + originalInvoiceCorrectionDateAndNumber_ = null; + if (originalInvoiceCorrectionDateAndNumberBuilder_ != null) { + originalInvoiceCorrectionDateAndNumberBuilder_.dispose(); + originalInvoiceCorrectionDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
        * for InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder getOriginalInvoiceCorrectionDateAndNumberBuilder() { bitField0_ |= 0x00000080; @@ -7823,25 +8665,26 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder return getOriginalInvoiceCorrectionDateAndNumberFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
        * for InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalInvoiceCorrectionDateAndNumberOrBuilder() { if (originalInvoiceCorrectionDateAndNumberBuilder_ != null) { return originalInvoiceCorrectionDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return originalInvoiceCorrectionDateAndNumber_; + return originalInvoiceCorrectionDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalInvoiceCorrectionDateAndNumber_; } } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; - * *
        * for InvoiceCorrectionRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalInvoiceCorrectionDateAndNumber = 8; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> @@ -7860,38 +8703,83 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo DEFAULT_INSTANCE; static { - defaultInstance = new InvoiceCorrectionDocumentInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvoiceCorrectionDocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.InvoiceCorrectionDocumentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InvoiceCorrectionDocumentInfo) } - public interface PriceListDocumentInfoOrBuilder extends + @java.lang.Deprecated public interface PriceListDocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.PriceListDocumentInfo) com.google.protobuf.MessageOrBuilder { /** * optional string PriceListEffectiveDate = 1; + * @return Whether the priceListEffectiveDate field is set. */ boolean hasPriceListEffectiveDate(); /** * optional string PriceListEffectiveDate = 1; + * @return The priceListEffectiveDate. */ java.lang.String getPriceListEffectiveDate(); /** * optional string PriceListEffectiveDate = 1; + * @return The bytes for priceListEffectiveDate. */ com.google.protobuf.ByteString getPriceListEffectiveDateBytes(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return Whether the contractDocumentDateAndNumber field is set. */ boolean hasContractDocumentDateAndNumber(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return The contractDocumentDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getContractDocumentDateAndNumber(); /** @@ -7902,91 +8790,34 @@ public interface PriceListDocumentInfoOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.PriceListDocumentInfo} */ - public static final class PriceListDocumentInfo extends + @java.lang.Deprecated public static final class PriceListDocumentInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.PriceListDocumentInfo) PriceListDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + PriceListDocumentInfo.class.getName()); + } // Use PriceListDocumentInfo.newBuilder() to construct. private PriceListDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private PriceListDocumentInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final PriceListDocumentInfo defaultInstance; - public static PriceListDocumentInfo getDefaultInstance() { - return defaultInstance; } - - public PriceListDocumentInfo getDefaultInstanceForType() { - return defaultInstance; + private PriceListDocumentInfo() { + priceListEffectiveDate_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PriceListDocumentInfo( - 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; - priceListEffectiveDate_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = contractDocumentDateAndNumber_.toBuilder(); - } - contractDocumentDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contractDocumentDateAndNumber_); - contractDocumentDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_PriceListDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_PriceListDocumentInfo_fieldAccessorTable @@ -7994,33 +8825,23 @@ private PriceListDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PriceListDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PriceListDocumentInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PRICELISTEFFECTIVEDATE_FIELD_NUMBER = 1; - private java.lang.Object priceListEffectiveDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object priceListEffectiveDate_ = ""; /** * optional string PriceListEffectiveDate = 1; + * @return Whether the priceListEffectiveDate field is set. */ + @java.lang.Override public boolean hasPriceListEffectiveDate() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string PriceListEffectiveDate = 1; + * @return The priceListEffectiveDate. */ + @java.lang.Override public java.lang.String getPriceListEffectiveDate() { java.lang.Object ref = priceListEffectiveDate_; if (ref instanceof java.lang.String) { @@ -8037,7 +8858,9 @@ public java.lang.String getPriceListEffectiveDate() { } /** * optional string PriceListEffectiveDate = 1; + * @return The bytes for priceListEffectiveDate. */ + @java.lang.Override public com.google.protobuf.ByteString getPriceListEffectiveDateBytes() { java.lang.Object ref = priceListEffectiveDate_; @@ -8056,28 +8879,30 @@ public java.lang.String getPriceListEffectiveDate() { private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber contractDocumentDateAndNumber_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return Whether the contractDocumentDateAndNumber field is set. */ + @java.lang.Override public boolean hasContractDocumentDateAndNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return The contractDocumentDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getContractDocumentDateAndNumber() { - return contractDocumentDateAndNumber_; + return contractDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : contractDocumentDateAndNumber_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getContractDocumentDateAndNumberOrBuilder() { - return contractDocumentDateAndNumber_; + return contractDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : contractDocumentDateAndNumber_; } - private void initFields() { - priceListEffectiveDate_ = ""; - contractDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -8087,44 +8912,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getPriceListEffectiveDateBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, priceListEffectiveDate_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, contractDocumentDateAndNumber_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getContractDocumentDateAndNumber()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getPriceListEffectiveDateBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, priceListEffectiveDate_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, contractDocumentDateAndNumber_); + .computeMessageSize(2, getContractDocumentDateAndNumber()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo) obj; + + if (hasPriceListEffectiveDate() != other.hasPriceListEffectiveDate()) return false; + if (hasPriceListEffectiveDate()) { + if (!getPriceListEffectiveDate() + .equals(other.getPriceListEffectiveDate())) return false; + } + if (hasContractDocumentDateAndNumber() != other.hasContractDocumentDateAndNumber()) return false; + if (hasContractDocumentDateAndNumber()) { + if (!getContractDocumentDateAndNumber() + .equals(other.getContractDocumentDateAndNumber())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPriceListEffectiveDate()) { + hash = (37 * hash) + PRICELISTEFFECTIVEDATE_FIELD_NUMBER; + hash = (53 * hash) + getPriceListEffectiveDate().hashCode(); + } + if (hasContractDocumentDateAndNumber()) { + hash = (37 * hash) + CONTRACTDOCUMENTDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getContractDocumentDateAndNumber().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8148,42 +9020,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -8203,6 +9090,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_PriceListDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_PriceListDocumentInfo_fieldAccessorTable @@ -8221,40 +9109,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getContractDocumentDateAndNumberFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; priceListEffectiveDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (contractDocumentDateAndNumberBuilder_ == null) { - contractDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - contractDocumentDateAndNumberBuilder_.clear(); + contractDocumentDateAndNumber_ = null; + if (contractDocumentDateAndNumberBuilder_ != null) { + contractDocumentDateAndNumberBuilder_.dispose(); + contractDocumentDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_PriceListDocumentInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo result = buildPartial(); if (!result.isInitialized()) { @@ -8263,27 +9147,31 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.priceListEffectiveDate_ = priceListEffectiveDate_; to_bitField0_ |= 0x00000001; } - result.priceListEffectiveDate_ = priceListEffectiveDate_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contractDocumentDateAndNumber_ = contractDocumentDateAndNumberBuilder_ == null + ? contractDocumentDateAndNumber_ + : contractDocumentDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (contractDocumentDateAndNumberBuilder_ == null) { - result.contractDocumentDateAndNumber_ = contractDocumentDateAndNumber_; - } else { - result.contractDocumentDateAndNumber_ = contractDocumentDateAndNumberBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo)other); @@ -8296,36 +9184,64 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo.getDefaultInstance()) return this; if (other.hasPriceListEffectiveDate()) { - bitField0_ |= 0x00000001; priceListEffectiveDate_ = other.priceListEffectiveDate_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasContractDocumentDateAndNumber()) { mergeContractDocumentDateAndNumber(other.getContractDocumentDateAndNumber()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + priceListEffectiveDate_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getContractDocumentDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -8333,12 +9249,14 @@ public Builder mergeFrom( private java.lang.Object priceListEffectiveDate_ = ""; /** * optional string PriceListEffectiveDate = 1; + * @return Whether the priceListEffectiveDate field is set. */ public boolean hasPriceListEffectiveDate() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string PriceListEffectiveDate = 1; + * @return The priceListEffectiveDate. */ public java.lang.String getPriceListEffectiveDate() { java.lang.Object ref = priceListEffectiveDate_; @@ -8356,6 +9274,7 @@ public java.lang.String getPriceListEffectiveDate() { } /** * optional string PriceListEffectiveDate = 1; + * @return The bytes for priceListEffectiveDate. */ public com.google.protobuf.ByteString getPriceListEffectiveDateBytes() { @@ -8372,55 +9291,58 @@ public java.lang.String getPriceListEffectiveDate() { } /** * optional string PriceListEffectiveDate = 1; + * @param value The priceListEffectiveDate to set. + * @return This builder for chaining. */ public Builder setPriceListEffectiveDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } priceListEffectiveDate_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string PriceListEffectiveDate = 1; + * @return This builder for chaining. */ public Builder clearPriceListEffectiveDate() { - bitField0_ = (bitField0_ & ~0x00000001); priceListEffectiveDate_ = getDefaultInstance().getPriceListEffectiveDate(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string PriceListEffectiveDate = 1; + * @param value The bytes for priceListEffectiveDate to set. + * @return This builder for chaining. */ public Builder setPriceListEffectiveDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } priceListEffectiveDate_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber contractDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber contractDocumentDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> contractDocumentDateAndNumberBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return Whether the contractDocumentDateAndNumber field is set. */ public boolean hasContractDocumentDateAndNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return The contractDocumentDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getContractDocumentDateAndNumber() { if (contractDocumentDateAndNumberBuilder_ == null) { - return contractDocumentDateAndNumber_; + return contractDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : contractDocumentDateAndNumber_; } else { return contractDocumentDateAndNumberBuilder_.getMessage(); } @@ -8434,11 +9356,11 @@ public Builder setContractDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.Documen throw new NullPointerException(); } contractDocumentDateAndNumber_ = value; - onChanged(); } else { contractDocumentDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -8448,11 +9370,11 @@ public Builder setContractDocumentDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (contractDocumentDateAndNumberBuilder_ == null) { contractDocumentDateAndNumber_ = builderForValue.build(); - onChanged(); } else { contractDocumentDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -8460,31 +9382,33 @@ public Builder setContractDocumentDateAndNumber( */ public Builder mergeContractDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (contractDocumentDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - contractDocumentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - contractDocumentDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(contractDocumentDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + contractDocumentDateAndNumber_ != null && + contractDocumentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getContractDocumentDateAndNumberBuilder().mergeFrom(value); } else { contractDocumentDateAndNumber_ = value; } - onChanged(); } else { contractDocumentDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (contractDocumentDateAndNumber_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; */ public Builder clearContractDocumentDateAndNumber() { - if (contractDocumentDateAndNumberBuilder_ == null) { - contractDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - contractDocumentDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + contractDocumentDateAndNumber_ = null; + if (contractDocumentDateAndNumberBuilder_ != null) { + contractDocumentDateAndNumberBuilder_.dispose(); + contractDocumentDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** @@ -8502,7 +9426,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde if (contractDocumentDateAndNumberBuilder_ != null) { return contractDocumentDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return contractDocumentDateAndNumber_; + return contractDocumentDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : contractDocumentDateAndNumber_; } } /** @@ -8525,42 +9450,88 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.PriceListDocumentInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.PriceListDocumentInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo DEFAULT_INSTANCE; static { - defaultInstance = new PriceListDocumentInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriceListDocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.PriceListDocumentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.PriceListDocumentInfo) } - public interface ContractDocumentInfoOrBuilder extends + @java.lang.Deprecated public interface ContractDocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.ContractDocumentInfo) com.google.protobuf.MessageOrBuilder { /** * optional string ContractPrice = 1; + * @return Whether the contractPrice field is set. */ boolean hasContractPrice(); /** * optional string ContractPrice = 1; + * @return The contractPrice. */ java.lang.String getContractPrice(); /** * optional string ContractPrice = 1; + * @return The bytes for contractPrice. */ com.google.protobuf.ByteString getContractPriceBytes(); /** * optional string ContractType = 2; + * @return Whether the contractType field is set. */ boolean hasContractType(); /** * optional string ContractType = 2; + * @return The contractType. */ java.lang.String getContractType(); /** * optional string ContractType = 2; + * @return The bytes for contractType. */ com.google.protobuf.ByteString getContractTypeBytes(); @@ -8568,84 +9539,35 @@ public interface ContractDocumentInfoOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.ContractDocumentInfo} */ - public static final class ContractDocumentInfo extends + @java.lang.Deprecated public static final class ContractDocumentInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ContractDocumentInfo) ContractDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ContractDocumentInfo.class.getName()); + } // Use ContractDocumentInfo.newBuilder() to construct. private ContractDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ContractDocumentInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ContractDocumentInfo defaultInstance; - public static ContractDocumentInfo getDefaultInstance() { - return defaultInstance; } - - public ContractDocumentInfo getDefaultInstanceForType() { - return defaultInstance; + private ContractDocumentInfo() { + contractPrice_ = ""; + contractType_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContractDocumentInfo( - 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; - contractPrice_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - contractType_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_ContractDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_ContractDocumentInfo_fieldAccessorTable @@ -8653,33 +9575,23 @@ private ContractDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ContractDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContractDocumentInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CONTRACTPRICE_FIELD_NUMBER = 1; - private java.lang.Object contractPrice_; + @SuppressWarnings("serial") + private volatile java.lang.Object contractPrice_ = ""; /** * optional string ContractPrice = 1; + * @return Whether the contractPrice field is set. */ + @java.lang.Override public boolean hasContractPrice() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string ContractPrice = 1; + * @return The contractPrice. */ + @java.lang.Override public java.lang.String getContractPrice() { java.lang.Object ref = contractPrice_; if (ref instanceof java.lang.String) { @@ -8696,7 +9608,9 @@ public java.lang.String getContractPrice() { } /** * optional string ContractPrice = 1; + * @return The bytes for contractPrice. */ + @java.lang.Override public com.google.protobuf.ByteString getContractPriceBytes() { java.lang.Object ref = contractPrice_; @@ -8712,16 +9626,21 @@ public java.lang.String getContractPrice() { } public static final int CONTRACTTYPE_FIELD_NUMBER = 2; - private java.lang.Object contractType_; + @SuppressWarnings("serial") + private volatile java.lang.Object contractType_ = ""; /** * optional string ContractType = 2; + * @return Whether the contractType field is set. */ + @java.lang.Override public boolean hasContractType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ContractType = 2; + * @return The contractType. */ + @java.lang.Override public java.lang.String getContractType() { java.lang.Object ref = contractType_; if (ref instanceof java.lang.String) { @@ -8738,7 +9657,9 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 2; + * @return The bytes for contractType. */ + @java.lang.Override public com.google.protobuf.ByteString getContractTypeBytes() { java.lang.Object ref = contractType_; @@ -8753,11 +9674,8 @@ public java.lang.String getContractType() { } } - private void initFields() { - contractPrice_ = ""; - contractType_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -8767,44 +9685,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getContractPriceBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, contractPrice_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getContractTypeBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, contractType_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getContractPriceBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contractPrice_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getContractTypeBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, contractType_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo) obj; + + if (hasContractPrice() != other.hasContractPrice()) return false; + if (hasContractPrice()) { + if (!getContractPrice() + .equals(other.getContractPrice())) return false; + } + if (hasContractType() != other.hasContractType()) return false; + if (hasContractType()) { + if (!getContractType() + .equals(other.getContractType())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContractPrice()) { + hash = (37 * hash) + CONTRACTPRICE_FIELD_NUMBER; + hash = (53 * hash) + getContractPrice().hashCode(); + } + if (hasContractType()) { + hash = (37 * hash) + CONTRACTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getContractType().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8828,42 +9792,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo p } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -8883,6 +9862,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_ContractDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_ContractDocumentInfo_fieldAccessorTable @@ -8892,44 +9872,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; contractPrice_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); contractType_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_ContractDocumentInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo result = buildPartial(); if (!result.isInitialized()) { @@ -8938,23 +9909,29 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contractPrice_ = contractPrice_; to_bitField0_ |= 0x00000001; } - result.contractPrice_ = contractPrice_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contractType_ = contractType_; to_bitField0_ |= 0x00000002; } - result.contractType_ = contractType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo)other); @@ -8967,38 +9944,64 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo.getDefaultInstance()) return this; if (other.hasContractPrice()) { - bitField0_ |= 0x00000001; contractPrice_ = other.contractPrice_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasContractType()) { - bitField0_ |= 0x00000002; contractType_ = other.contractType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + contractPrice_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + contractType_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -9006,12 +10009,14 @@ public Builder mergeFrom( private java.lang.Object contractPrice_ = ""; /** * optional string ContractPrice = 1; + * @return Whether the contractPrice field is set. */ public boolean hasContractPrice() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string ContractPrice = 1; + * @return The contractPrice. */ public java.lang.String getContractPrice() { java.lang.Object ref = contractPrice_; @@ -9029,6 +10034,7 @@ public java.lang.String getContractPrice() { } /** * optional string ContractPrice = 1; + * @return The bytes for contractPrice. */ public com.google.protobuf.ByteString getContractPriceBytes() { @@ -9045,36 +10051,37 @@ public java.lang.String getContractPrice() { } /** * optional string ContractPrice = 1; + * @param value The contractPrice to set. + * @return This builder for chaining. */ public Builder setContractPrice( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } contractPrice_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string ContractPrice = 1; + * @return This builder for chaining. */ public Builder clearContractPrice() { - bitField0_ = (bitField0_ & ~0x00000001); contractPrice_ = getDefaultInstance().getContractPrice(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string ContractPrice = 1; + * @param value The bytes for contractPrice to set. + * @return This builder for chaining. */ public Builder setContractPriceBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } contractPrice_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -9082,12 +10089,14 @@ public Builder setContractPriceBytes( private java.lang.Object contractType_ = ""; /** * optional string ContractType = 2; + * @return Whether the contractType field is set. */ public boolean hasContractType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ContractType = 2; + * @return The contractType. */ public java.lang.String getContractType() { java.lang.Object ref = contractType_; @@ -9105,6 +10114,7 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 2; + * @return The bytes for contractType. */ public com.google.protobuf.ByteString getContractTypeBytes() { @@ -9121,36 +10131,37 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 2; + * @param value The contractType to set. + * @return This builder for chaining. */ public Builder setContractType( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } contractType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string ContractType = 2; + * @return This builder for chaining. */ public Builder clearContractType() { - bitField0_ = (bitField0_ & ~0x00000002); contractType_ = getDefaultInstance().getContractType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string ContractType = 2; + * @param value The bytes for contractType to set. + * @return This builder for chaining. */ public Builder setContractTypeBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } contractType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -9158,38 +10169,83 @@ public Builder setContractTypeBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ContractDocumentInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ContractDocumentInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo DEFAULT_INSTANCE; static { - defaultInstance = new ContractDocumentInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContractDocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.ContractDocumentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ContractDocumentInfo) } - public interface SupplementaryAgreementDocumentInfoOrBuilder extends + @java.lang.Deprecated public interface SupplementaryAgreementDocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo) com.google.protobuf.MessageOrBuilder { /** * optional string ContractType = 1; + * @return Whether the contractType field is set. */ boolean hasContractType(); /** * optional string ContractType = 1; + * @return The contractType. */ java.lang.String getContractType(); /** * optional string ContractType = 1; + * @return The bytes for contractType. */ com.google.protobuf.ByteString getContractTypeBytes(); /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return Whether the contractDocumentDateAndNumber field is set. */ boolean hasContractDocumentDateAndNumber(); /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return The contractDocumentDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getContractDocumentDateAndNumber(); /** @@ -9199,10 +10255,12 @@ public interface SupplementaryAgreementDocumentInfoOrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; + * @return Whether the documentDateAndNumber field is set. */ boolean hasDocumentDateAndNumber(); /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; + * @return The documentDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getDocumentDateAndNumber(); /** @@ -9212,14 +10270,17 @@ public interface SupplementaryAgreementDocumentInfoOrBuilder extends /** * optional string Total = 4; + * @return Whether the total field is set. */ boolean hasTotal(); /** * optional string Total = 4; + * @return The total. */ java.lang.String getTotal(); /** * optional string Total = 4; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); @@ -9227,110 +10288,35 @@ public interface SupplementaryAgreementDocumentInfoOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo} */ - public static final class SupplementaryAgreementDocumentInfo extends + @java.lang.Deprecated public static final class SupplementaryAgreementDocumentInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo) SupplementaryAgreementDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SupplementaryAgreementDocumentInfo.class.getName()); + } // Use SupplementaryAgreementDocumentInfo.newBuilder() to construct. private SupplementaryAgreementDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SupplementaryAgreementDocumentInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SupplementaryAgreementDocumentInfo defaultInstance; - public static SupplementaryAgreementDocumentInfo getDefaultInstance() { - return defaultInstance; } - - public SupplementaryAgreementDocumentInfo getDefaultInstanceForType() { - return defaultInstance; + private SupplementaryAgreementDocumentInfo() { + contractType_ = ""; + total_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SupplementaryAgreementDocumentInfo( - 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; - contractType_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = contractDocumentDateAndNumber_.toBuilder(); - } - contractDocumentDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contractDocumentDateAndNumber_); - contractDocumentDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = documentDateAndNumber_.toBuilder(); - } - documentDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentDateAndNumber_); - documentDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - total_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_SupplementaryAgreementDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_SupplementaryAgreementDocumentInfo_fieldAccessorTable @@ -9338,33 +10324,23 @@ private SupplementaryAgreementDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SupplementaryAgreementDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SupplementaryAgreementDocumentInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CONTRACTTYPE_FIELD_NUMBER = 1; - private java.lang.Object contractType_; + @SuppressWarnings("serial") + private volatile java.lang.Object contractType_ = ""; /** * optional string ContractType = 1; + * @return Whether the contractType field is set. */ + @java.lang.Override public boolean hasContractType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string ContractType = 1; + * @return The contractType. */ + @java.lang.Override public java.lang.String getContractType() { java.lang.Object ref = contractType_; if (ref instanceof java.lang.String) { @@ -9381,7 +10357,9 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 1; + * @return The bytes for contractType. */ + @java.lang.Override public com.google.protobuf.ByteString getContractTypeBytes() { java.lang.Object ref = contractType_; @@ -9400,55 +10378,70 @@ public java.lang.String getContractType() { private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber contractDocumentDateAndNumber_; /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return Whether the contractDocumentDateAndNumber field is set. */ + @java.lang.Override public boolean hasContractDocumentDateAndNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return The contractDocumentDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getContractDocumentDateAndNumber() { - return contractDocumentDateAndNumber_; + return contractDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : contractDocumentDateAndNumber_; } /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getContractDocumentDateAndNumberOrBuilder() { - return contractDocumentDateAndNumber_; + return contractDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : contractDocumentDateAndNumber_; } public static final int DOCUMENTDATEANDNUMBER_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber documentDateAndNumber_; /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; + * @return Whether the documentDateAndNumber field is set. */ + @java.lang.Override public boolean hasDocumentDateAndNumber() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; + * @return The documentDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getDocumentDateAndNumber() { - return documentDateAndNumber_; + return documentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : documentDateAndNumber_; } /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getDocumentDateAndNumberOrBuilder() { - return documentDateAndNumber_; + return documentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : documentDateAndNumber_; } public static final int TOTAL_FIELD_NUMBER = 4; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** * optional string Total = 4; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Total = 4; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -9465,7 +10458,9 @@ public java.lang.String getTotal() { } /** * optional string Total = 4; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -9480,13 +10475,8 @@ public java.lang.String getTotal() { } } - private void initFields() { - contractType_ = ""; - contractDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - documentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - total_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -9504,58 +10494,122 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getContractTypeBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, contractType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, contractDocumentDateAndNumber_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getContractDocumentDateAndNumber()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, documentDateAndNumber_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDocumentDateAndNumber()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getTotalBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, total_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getContractTypeBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contractType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, contractDocumentDateAndNumber_); + .computeMessageSize(2, getContractDocumentDateAndNumber()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, documentDateAndNumber_); + .computeMessageSize(3, getDocumentDateAndNumber()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getTotalBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, total_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo) obj; + + if (hasContractType() != other.hasContractType()) return false; + if (hasContractType()) { + if (!getContractType() + .equals(other.getContractType())) return false; + } + if (hasContractDocumentDateAndNumber() != other.hasContractDocumentDateAndNumber()) return false; + if (hasContractDocumentDateAndNumber()) { + if (!getContractDocumentDateAndNumber() + .equals(other.getContractDocumentDateAndNumber())) return false; + } + if (hasDocumentDateAndNumber() != other.hasDocumentDateAndNumber()) return false; + if (hasDocumentDateAndNumber()) { + if (!getDocumentDateAndNumber() + .equals(other.getDocumentDateAndNumber())) return false; + } + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContractType()) { + hash = (37 * hash) + CONTRACTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getContractType().hashCode(); + } + if (hasContractDocumentDateAndNumber()) { + hash = (37 * hash) + CONTRACTDOCUMENTDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getContractDocumentDateAndNumber().hashCode(); + } + if (hasDocumentDateAndNumber()) { + hash = (37 * hash) + DOCUMENTDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getDocumentDateAndNumber().hashCode(); + } + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9579,42 +10633,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreement } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -9634,6 +10703,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_SupplementaryAgreementDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_SupplementaryAgreementDocumentInfo_fieldAccessorTable @@ -9652,49 +10722,43 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getContractDocumentDateAndNumberFieldBuilder(); getDocumentDateAndNumberFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; contractType_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (contractDocumentDateAndNumberBuilder_ == null) { - contractDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - contractDocumentDateAndNumberBuilder_.clear(); + contractDocumentDateAndNumber_ = null; + if (contractDocumentDateAndNumberBuilder_ != null) { + contractDocumentDateAndNumberBuilder_.dispose(); + contractDocumentDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (documentDateAndNumberBuilder_ == null) { - documentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - documentDateAndNumberBuilder_.clear(); + documentDateAndNumber_ = null; + if (documentDateAndNumberBuilder_ != null) { + documentDateAndNumberBuilder_.dispose(); + documentDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); total_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_SupplementaryAgreementDocumentInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo result = buildPartial(); if (!result.isInitialized()) { @@ -9703,39 +10767,41 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumen return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contractType_ = contractType_; to_bitField0_ |= 0x00000001; } - result.contractType_ = contractType_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contractDocumentDateAndNumber_ = contractDocumentDateAndNumberBuilder_ == null + ? contractDocumentDateAndNumber_ + : contractDocumentDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (contractDocumentDateAndNumberBuilder_ == null) { - result.contractDocumentDateAndNumber_ = contractDocumentDateAndNumber_; - } else { - result.contractDocumentDateAndNumber_ = contractDocumentDateAndNumberBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.documentDateAndNumber_ = documentDateAndNumberBuilder_ == null + ? documentDateAndNumber_ + : documentDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (documentDateAndNumberBuilder_ == null) { - result.documentDateAndNumber_ = documentDateAndNumber_; - } else { - result.documentDateAndNumber_ = documentDateAndNumberBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000008; } - result.total_ = total_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo)other); @@ -9748,8 +10814,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo.getDefaultInstance()) return this; if (other.hasContractType()) { - bitField0_ |= 0x00000001; contractType_ = other.contractType_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasContractDocumentDateAndNumber()) { @@ -9759,41 +10825,79 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.Supplementa mergeDocumentDateAndNumber(other.getDocumentDateAndNumber()); } if (other.hasTotal()) { - bitField0_ |= 0x00000008; total_ = other.total_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasContractDocumentDateAndNumber()) { - return false; } if (!hasDocumentDateAndNumber()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + contractType_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getContractDocumentDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDocumentDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + total_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -9801,12 +10905,14 @@ public Builder mergeFrom( private java.lang.Object contractType_ = ""; /** * optional string ContractType = 1; + * @return Whether the contractType field is set. */ public boolean hasContractType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string ContractType = 1; + * @return The contractType. */ public java.lang.String getContractType() { java.lang.Object ref = contractType_; @@ -9824,6 +10930,7 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 1; + * @return The bytes for contractType. */ public com.google.protobuf.ByteString getContractTypeBytes() { @@ -9840,55 +10947,58 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 1; + * @param value The contractType to set. + * @return This builder for chaining. */ public Builder setContractType( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } contractType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string ContractType = 1; + * @return This builder for chaining. */ public Builder clearContractType() { - bitField0_ = (bitField0_ & ~0x00000001); contractType_ = getDefaultInstance().getContractType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string ContractType = 1; + * @param value The bytes for contractType to set. + * @return This builder for chaining. */ public Builder setContractTypeBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } contractType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber contractDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber contractDocumentDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> contractDocumentDateAndNumberBuilder_; /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return Whether the contractDocumentDateAndNumber field is set. */ public boolean hasContractDocumentDateAndNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; + * @return The contractDocumentDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getContractDocumentDateAndNumber() { if (contractDocumentDateAndNumberBuilder_ == null) { - return contractDocumentDateAndNumber_; + return contractDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : contractDocumentDateAndNumber_; } else { return contractDocumentDateAndNumberBuilder_.getMessage(); } @@ -9902,11 +11012,11 @@ public Builder setContractDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.Documen throw new NullPointerException(); } contractDocumentDateAndNumber_ = value; - onChanged(); } else { contractDocumentDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -9916,11 +11026,11 @@ public Builder setContractDocumentDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (contractDocumentDateAndNumberBuilder_ == null) { contractDocumentDateAndNumber_ = builderForValue.build(); - onChanged(); } else { contractDocumentDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -9928,31 +11038,33 @@ public Builder setContractDocumentDateAndNumber( */ public Builder mergeContractDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (contractDocumentDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - contractDocumentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - contractDocumentDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(contractDocumentDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + contractDocumentDateAndNumber_ != null && + contractDocumentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getContractDocumentDateAndNumberBuilder().mergeFrom(value); } else { contractDocumentDateAndNumber_ = value; } - onChanged(); } else { contractDocumentDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (contractDocumentDateAndNumber_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber ContractDocumentDateAndNumber = 2; */ public Builder clearContractDocumentDateAndNumber() { - if (contractDocumentDateAndNumberBuilder_ == null) { - contractDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - contractDocumentDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + contractDocumentDateAndNumber_ = null; + if (contractDocumentDateAndNumberBuilder_ != null) { + contractDocumentDateAndNumberBuilder_.dispose(); + contractDocumentDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** @@ -9970,7 +11082,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde if (contractDocumentDateAndNumberBuilder_ != null) { return contractDocumentDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return contractDocumentDateAndNumber_; + return contractDocumentDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : contractDocumentDateAndNumber_; } } /** @@ -9990,21 +11103,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde return contractDocumentDateAndNumberBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber documentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber documentDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> documentDateAndNumberBuilder_; /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; + * @return Whether the documentDateAndNumber field is set. */ public boolean hasDocumentDateAndNumber() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; + * @return The documentDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getDocumentDateAndNumber() { if (documentDateAndNumberBuilder_ == null) { - return documentDateAndNumber_; + return documentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : documentDateAndNumber_; } else { return documentDateAndNumberBuilder_.getMessage(); } @@ -10018,11 +11133,11 @@ public Builder setDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoPro throw new NullPointerException(); } documentDateAndNumber_ = value; - onChanged(); } else { documentDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -10032,11 +11147,11 @@ public Builder setDocumentDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (documentDateAndNumberBuilder_ == null) { documentDateAndNumber_ = builderForValue.build(); - onChanged(); } else { documentDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -10044,31 +11159,33 @@ public Builder setDocumentDateAndNumber( */ public Builder mergeDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (documentDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - documentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - documentDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(documentDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + documentDateAndNumber_ != null && + documentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getDocumentDateAndNumberBuilder().mergeFrom(value); } else { documentDateAndNumber_ = value; } - onChanged(); } else { documentDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (documentDateAndNumber_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber DocumentDateAndNumber = 3; */ public Builder clearDocumentDateAndNumber() { - if (documentDateAndNumberBuilder_ == null) { - documentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - documentDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + documentDateAndNumber_ = null; + if (documentDateAndNumberBuilder_ != null) { + documentDateAndNumberBuilder_.dispose(); + documentDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** @@ -10086,7 +11203,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde if (documentDateAndNumberBuilder_ != null) { return documentDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return documentDateAndNumber_; + return documentDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : documentDateAndNumber_; } } /** @@ -10109,12 +11227,14 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde private java.lang.Object total_ = ""; /** * optional string Total = 4; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Total = 4; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -10132,6 +11252,7 @@ public java.lang.String getTotal() { } /** * optional string Total = 4; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -10148,36 +11269,37 @@ public java.lang.String getTotal() { } /** * optional string Total = 4; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string Total = 4; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000008); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string Total = 4; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -10185,219 +11307,192 @@ public Builder setTotalBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo DEFAULT_INSTANCE; static { - defaultInstance = new SupplementaryAgreementDocumentInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupplementaryAgreementDocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.SupplementaryAgreementDocumentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SupplementaryAgreementDocumentInfo) } - public interface UniversalTransferDocumentInfoOrBuilder extends + @java.lang.Deprecated public interface UniversalTransferDocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo) com.google.protobuf.MessageOrBuilder { /** * optional string Total = 1; + * @return Whether the total field is set. */ boolean hasTotal(); /** * optional string Total = 1; + * @return The total. */ java.lang.String getTotal(); /** * optional string Total = 1; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** * optional string Vat = 2; + * @return Whether the vat field is set. */ boolean hasVat(); /** * optional string Vat = 2; + * @return The vat. */ java.lang.String getVat(); /** * optional string Vat = 2; + * @return The bytes for vat. */ com.google.protobuf.ByteString getVatBytes(); /** * optional int32 CurrencyCode = 3; + * @return Whether the currencyCode field is set. */ boolean hasCurrencyCode(); /** * optional int32 CurrencyCode = 3; + * @return The currencyCode. */ int getCurrencyCode(); /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ boolean hasGrounds(); /** * optional string Grounds = 4; + * @return The grounds. */ java.lang.String getGrounds(); /** * optional string Grounds = 4; + * @return The bytes for grounds. */ com.google.protobuf.ByteString getGroundsBytes(); /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 5; + * @return Whether the function field is set. */ boolean hasFunction(); /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 5; + * @return The function. */ Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType getFunction(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
      * for UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; + * @return Whether the originalDocumentDateAndNumber field is set. */ boolean hasOriginalDocumentDateAndNumber(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
      * for UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; + * @return The originalDocumentDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentDateAndNumber(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
      * for UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalDocumentDateAndNumberOrBuilder(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo} */ - public static final class UniversalTransferDocumentInfo extends + @java.lang.Deprecated public static final class UniversalTransferDocumentInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo) UniversalTransferDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UniversalTransferDocumentInfo.class.getName()); + } // Use UniversalTransferDocumentInfo.newBuilder() to construct. private UniversalTransferDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private UniversalTransferDocumentInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final UniversalTransferDocumentInfo defaultInstance; - public static UniversalTransferDocumentInfo getDefaultInstance() { - return defaultInstance; } - - public UniversalTransferDocumentInfo getDefaultInstanceForType() { - return defaultInstance; + private UniversalTransferDocumentInfo() { + total_ = ""; + vat_ = ""; + grounds_ = ""; + function_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UniversalTransferDocumentInfo( - 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; - total_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - vat_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - currencyCode_ = input.readInt32(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - grounds_ = bs; - break; - } - case 40: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType value = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - function_ = value; - } - break; - } - case 50: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = originalDocumentDateAndNumber_.toBuilder(); - } - originalDocumentDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(originalDocumentDateAndNumber_); - originalDocumentDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_UniversalTransferDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_UniversalTransferDocumentInfo_fieldAccessorTable @@ -10405,33 +11500,23 @@ private UniversalTransferDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UniversalTransferDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UniversalTransferDocumentInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TOTAL_FIELD_NUMBER = 1; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** * optional string Total = 1; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Total = 1; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -10448,7 +11533,9 @@ public java.lang.String getTotal() { } /** * optional string Total = 1; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -10464,16 +11551,21 @@ public java.lang.String getTotal() { } public static final int VAT_FIELD_NUMBER = 2; - private java.lang.Object vat_; + @SuppressWarnings("serial") + private volatile java.lang.Object vat_ = ""; /** * optional string Vat = 2; + * @return Whether the vat field is set. */ + @java.lang.Override public boolean hasVat() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Vat = 2; + * @return The vat. */ + @java.lang.Override public java.lang.String getVat() { java.lang.Object ref = vat_; if (ref instanceof java.lang.String) { @@ -10490,7 +11582,9 @@ public java.lang.String getVat() { } /** * optional string Vat = 2; + * @return The bytes for vat. */ + @java.lang.Override public com.google.protobuf.ByteString getVatBytes() { java.lang.Object ref = vat_; @@ -10506,31 +11600,40 @@ public java.lang.String getVat() { } public static final int CURRENCYCODE_FIELD_NUMBER = 3; - private int currencyCode_; + private int currencyCode_ = 0; /** * optional int32 CurrencyCode = 3; + * @return Whether the currencyCode field is set. */ + @java.lang.Override public boolean hasCurrencyCode() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 CurrencyCode = 3; + * @return The currencyCode. */ + @java.lang.Override public int getCurrencyCode() { return currencyCode_; } public static final int GROUNDS_FIELD_NUMBER = 4; - private java.lang.Object grounds_; + @SuppressWarnings("serial") + private volatile java.lang.Object grounds_ = ""; /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ + @java.lang.Override public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Grounds = 4; + * @return The grounds. */ + @java.lang.Override public java.lang.String getGrounds() { java.lang.Object ref = grounds_; if (ref instanceof java.lang.String) { @@ -10547,7 +11650,9 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @return The bytes for grounds. */ + @java.lang.Override public com.google.protobuf.ByteString getGroundsBytes() { java.lang.Object ref = grounds_; @@ -10563,62 +11668,63 @@ public java.lang.String getGrounds() { } public static final int FUNCTION_FIELD_NUMBER = 5; - private Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType function_; + private int function_ = 0; /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 5; + * @return Whether the function field is set. */ - public boolean hasFunction() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasFunction() { + return ((bitField0_ & 0x00000010) != 0); } /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 5; + * @return The function. */ - public Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType getFunction() { - return function_; + @java.lang.Override public Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType getFunction() { + Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType result = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.forNumber(function_); + return result == null ? Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice : result; } public static final int ORIGINALDOCUMENTDATEANDNUMBER_FIELD_NUMBER = 6; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentDateAndNumber_; /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
      * for UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; + * @return Whether the originalDocumentDateAndNumber field is set. */ + @java.lang.Override public boolean hasOriginalDocumentDateAndNumber() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
      * for UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; + * @return The originalDocumentDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentDateAndNumber() { - return originalDocumentDateAndNumber_; + return originalDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentDateAndNumber_; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
      * for UniversalTransferDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalDocumentDateAndNumberOrBuilder() { - return originalDocumentDateAndNumber_; + return originalDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentDateAndNumber_; } - private void initFields() { - total_ = ""; - vat_ = ""; - currencyCode_ = 0; - grounds_ = ""; - function_ = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice; - originalDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -10632,72 +11738,152 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTotalBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, total_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, vat_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(3, currencyCode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, grounds_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, function_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getOriginalDocumentDateAndNumber()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, total_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, vat_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, currencyCode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, grounds_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, function_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getOriginalDocumentDateAndNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo) obj; + + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getVatBytes()); + if (hasVat() != other.hasVat()) return false; + if (hasVat()) { + if (!getVat() + .equals(other.getVat())) return false; } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, currencyCode_); + if (hasCurrencyCode() != other.hasCurrencyCode()) return false; + if (hasCurrencyCode()) { + if (getCurrencyCode() + != other.getCurrencyCode()) return false; } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getGroundsBytes()); + if (hasGrounds() != other.hasGrounds()) return false; + if (hasGrounds()) { + if (!getGrounds() + .equals(other.getGrounds())) return false; } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, function_.getNumber()); + if (hasFunction() != other.hasFunction()) return false; + if (hasFunction()) { + if (function_ != other.function_) return false; } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, originalDocumentDateAndNumber_); + if (hasOriginalDocumentDateAndNumber() != other.hasOriginalDocumentDateAndNumber()) return false; + if (hasOriginalDocumentDateAndNumber()) { + if (!getOriginalDocumentDateAndNumber() + .equals(other.getOriginalDocumentDateAndNumber())) return false; } - getUnknownFields().writeTo(output); + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - 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, getTotalBytes()); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getVatBytes()); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, currencyCode_); + if (hasVat()) { + hash = (37 * hash) + VAT_FIELD_NUMBER; + hash = (53 * hash) + getVat().hashCode(); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getGroundsBytes()); + if (hasCurrencyCode()) { + hash = (37 * hash) + CURRENCYCODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode(); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, function_.getNumber()); + if (hasGrounds()) { + hash = (37 * hash) + GROUNDS_FIELD_NUMBER; + hash = (53 * hash) + getGrounds().hashCode(); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, originalDocumentDateAndNumber_); + if (hasFunction()) { + hash = (37 * hash) + FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + function_; } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; + if (hasOriginalDocumentDateAndNumber()) { + hash = (37 * hash) + ORIGINALDOCUMENTDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalDocumentDateAndNumber().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - 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.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10721,42 +11907,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocum } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -10776,6 +11977,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_UniversalTransferDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_UniversalTransferDocumentInfo_fieldAccessorTable @@ -10794,48 +11996,40 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getOriginalDocumentDateAndNumberFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; total_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); vat_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); currencyCode_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); grounds_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - function_ = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice; - bitField0_ = (bitField0_ & ~0x00000010); - if (originalDocumentDateAndNumberBuilder_ == null) { - originalDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - originalDocumentDateAndNumberBuilder_.clear(); + function_ = 0; + originalDocumentDateAndNumber_ = null; + if (originalDocumentDateAndNumberBuilder_ != null) { + originalDocumentDateAndNumberBuilder_.dispose(); + originalDocumentDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_UniversalTransferDocumentInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo result = buildPartial(); if (!result.isInitialized()) { @@ -10844,43 +12038,47 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000001; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vat_ = vat_; to_bitField0_ |= 0x00000002; } - result.vat_ = vat_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.currencyCode_ = currencyCode_; to_bitField0_ |= 0x00000004; } - result.currencyCode_ = currencyCode_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.grounds_ = grounds_; to_bitField0_ |= 0x00000008; } - result.grounds_ = grounds_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.function_ = function_; to_bitField0_ |= 0x00000010; } - result.function_ = function_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.originalDocumentDateAndNumber_ = originalDocumentDateAndNumberBuilder_ == null + ? originalDocumentDateAndNumber_ + : originalDocumentDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (originalDocumentDateAndNumberBuilder_ == null) { - result.originalDocumentDateAndNumber_ = originalDocumentDateAndNumber_; - } else { - result.originalDocumentDateAndNumber_ = originalDocumentDateAndNumberBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo)other); @@ -10893,21 +12091,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo.getDefaultInstance()) return this; if (other.hasTotal()) { - bitField0_ |= 0x00000001; total_ = other.total_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasVat()) { - bitField0_ |= 0x00000002; vat_ = other.vat_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCurrencyCode()) { setCurrencyCode(other.getCurrencyCode()); } if (other.hasGrounds()) { - bitField0_ |= 0x00000008; grounds_ = other.grounds_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasFunction()) { @@ -10917,32 +12115,86 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTr mergeOriginalDocumentDateAndNumber(other.getOriginalDocumentDateAndNumber()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasFunction()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + total_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + vat_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + currencyCode_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + grounds_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType tmpValue = + Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + function_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + case 50: { + input.readMessage( + getOriginalDocumentDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -10950,12 +12202,14 @@ public Builder mergeFrom( private java.lang.Object total_ = ""; /** * optional string Total = 1; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Total = 1; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -10973,6 +12227,7 @@ public java.lang.String getTotal() { } /** * optional string Total = 1; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -10989,36 +12244,37 @@ public java.lang.String getTotal() { } /** * optional string Total = 1; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string Total = 1; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000001); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string Total = 1; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -11026,12 +12282,14 @@ public Builder setTotalBytes( private java.lang.Object vat_ = ""; /** * optional string Vat = 2; + * @return Whether the vat field is set. */ public boolean hasVat() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Vat = 2; + * @return The vat. */ public java.lang.String getVat() { java.lang.Object ref = vat_; @@ -11049,6 +12307,7 @@ public java.lang.String getVat() { } /** * optional string Vat = 2; + * @return The bytes for vat. */ public com.google.protobuf.ByteString getVatBytes() { @@ -11065,36 +12324,37 @@ public java.lang.String getVat() { } /** * optional string Vat = 2; + * @param value The vat to set. + * @return This builder for chaining. */ public Builder setVat( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string Vat = 2; + * @return This builder for chaining. */ public Builder clearVat() { - bitField0_ = (bitField0_ & ~0x00000002); vat_ = getDefaultInstance().getVat(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string Vat = 2; + * @param value The bytes for vat to set. + * @return This builder for chaining. */ public Builder setVatBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -11102,27 +12362,35 @@ public Builder setVatBytes( private int currencyCode_ ; /** * optional int32 CurrencyCode = 3; + * @return Whether the currencyCode field is set. */ + @java.lang.Override public boolean hasCurrencyCode() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 CurrencyCode = 3; + * @return The currencyCode. */ + @java.lang.Override public int getCurrencyCode() { return currencyCode_; } /** * optional int32 CurrencyCode = 3; + * @param value The currencyCode to set. + * @return This builder for chaining. */ public Builder setCurrencyCode(int value) { - bitField0_ |= 0x00000004; + currencyCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional int32 CurrencyCode = 3; + * @return This builder for chaining. */ public Builder clearCurrencyCode() { bitField0_ = (bitField0_ & ~0x00000004); @@ -11134,12 +12402,14 @@ public Builder clearCurrencyCode() { private java.lang.Object grounds_ = ""; /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Grounds = 4; + * @return The grounds. */ public java.lang.String getGrounds() { java.lang.Object ref = grounds_; @@ -11157,6 +12427,7 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @return The bytes for grounds. */ public com.google.protobuf.ByteString getGroundsBytes() { @@ -11173,108 +12444,118 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @param value The grounds to set. + * @return This builder for chaining. */ public Builder setGrounds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string Grounds = 4; + * @return This builder for chaining. */ public Builder clearGrounds() { - bitField0_ = (bitField0_ & ~0x00000008); grounds_ = getDefaultInstance().getGrounds(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string Grounds = 4; + * @param value The bytes for grounds to set. + * @return This builder for chaining. */ public Builder setGroundsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType function_ = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice; + private int function_ = 0; /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 5; + * @return Whether the function field is set. */ - public boolean hasFunction() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasFunction() { + return ((bitField0_ & 0x00000010) != 0); } /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 5; + * @return The function. */ + @java.lang.Override public Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType getFunction() { - return function_; + Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType result = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.forNumber(function_); + return result == null ? Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice : result; } /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 5; + * @param value The function to set. + * @return This builder for chaining. */ public Builder setFunction(Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; - function_ = value; + function_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 5; + * @return This builder for chaining. */ public Builder clearFunction() { bitField0_ = (bitField0_ & ~0x00000010); - function_ = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice; + function_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> originalDocumentDateAndNumberBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
        * for UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; + * @return Whether the originalDocumentDateAndNumber field is set. */ public boolean hasOriginalDocumentDateAndNumber() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
        * for UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; + * @return The originalDocumentDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentDateAndNumber() { if (originalDocumentDateAndNumberBuilder_ == null) { - return originalDocumentDateAndNumber_; + return originalDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentDateAndNumber_; } else { return originalDocumentDateAndNumberBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
        * for UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; */ public Builder setOriginalDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalDocumentDateAndNumberBuilder_ == null) { @@ -11282,77 +12563,79 @@ public Builder setOriginalDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.Documen throw new NullPointerException(); } originalDocumentDateAndNumber_ = value; - onChanged(); } else { originalDocumentDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
        * for UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; */ public Builder setOriginalDocumentDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (originalDocumentDateAndNumberBuilder_ == null) { originalDocumentDateAndNumber_ = builderForValue.build(); - onChanged(); } else { originalDocumentDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
        * for UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; */ public Builder mergeOriginalDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalDocumentDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - originalDocumentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - originalDocumentDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(originalDocumentDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + originalDocumentDateAndNumber_ != null && + originalDocumentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getOriginalDocumentDateAndNumberBuilder().mergeFrom(value); } else { originalDocumentDateAndNumber_ = value; } - onChanged(); } else { originalDocumentDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (originalDocumentDateAndNumber_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
        * for UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; */ public Builder clearOriginalDocumentDateAndNumber() { - if (originalDocumentDateAndNumberBuilder_ == null) { - originalDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - originalDocumentDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + originalDocumentDateAndNumber_ = null; + if (originalDocumentDateAndNumberBuilder_ != null) { + originalDocumentDateAndNumberBuilder_.dispose(); + originalDocumentDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
        * for UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder getOriginalDocumentDateAndNumberBuilder() { bitField0_ |= 0x00000020; @@ -11360,25 +12643,26 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder return getOriginalDocumentDateAndNumberFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
        * for UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalDocumentDateAndNumberOrBuilder() { if (originalDocumentDateAndNumberBuilder_ != null) { return originalDocumentDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return originalDocumentDateAndNumber_; + return originalDocumentDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentDateAndNumber_; } } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; - * *
        * for UniversalTransferDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 6; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> @@ -11397,112 +12681,173 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo DEFAULT_INSTANCE; static { - defaultInstance = new UniversalTransferDocumentInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UniversalTransferDocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalTransferDocumentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.UniversalTransferDocumentInfo) } - public interface UniversalCorrectionDocumentInfoOrBuilder extends + @java.lang.Deprecated public interface UniversalCorrectionDocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo) com.google.protobuf.MessageOrBuilder { /** * optional string TotalInc = 1; + * @return Whether the totalInc field is set. */ boolean hasTotalInc(); /** * optional string TotalInc = 1; + * @return The totalInc. */ java.lang.String getTotalInc(); /** * optional string TotalInc = 1; + * @return The bytes for totalInc. */ com.google.protobuf.ByteString getTotalIncBytes(); /** * optional string TotalDec = 2; + * @return Whether the totalDec field is set. */ boolean hasTotalDec(); /** * optional string TotalDec = 2; + * @return The totalDec. */ java.lang.String getTotalDec(); /** * optional string TotalDec = 2; + * @return The bytes for totalDec. */ com.google.protobuf.ByteString getTotalDecBytes(); /** * optional string VatInc = 3; + * @return Whether the vatInc field is set. */ boolean hasVatInc(); /** * optional string VatInc = 3; + * @return The vatInc. */ java.lang.String getVatInc(); /** * optional string VatInc = 3; + * @return The bytes for vatInc. */ com.google.protobuf.ByteString getVatIncBytes(); /** * optional string VatDec = 4; + * @return Whether the vatDec field is set. */ boolean hasVatDec(); /** * optional string VatDec = 4; + * @return The vatDec. */ java.lang.String getVatDec(); /** * optional string VatDec = 4; + * @return The bytes for vatDec. */ com.google.protobuf.ByteString getVatDecBytes(); /** * optional int32 CurrencyCode = 5; + * @return Whether the currencyCode field is set. */ boolean hasCurrencyCode(); /** * optional int32 CurrencyCode = 5; + * @return The currencyCode. */ int getCurrencyCode(); /** * optional string Grounds = 6; + * @return Whether the grounds field is set. */ boolean hasGrounds(); /** * optional string Grounds = 6; + * @return The grounds. */ java.lang.String getGrounds(); /** * optional string Grounds = 6; + * @return The bytes for grounds. */ com.google.protobuf.ByteString getGroundsBytes(); /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 7; + * @return Whether the function field is set. */ boolean hasFunction(); /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 7; + * @return The function. */ Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType getFunction(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 8; + * @return Whether the originalDocumentDateAndNumber field is set. */ boolean hasOriginalDocumentDateAndNumber(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 8; + * @return The originalDocumentDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentDateAndNumber(); /** @@ -11512,10 +12857,12 @@ public interface UniversalCorrectionDocumentInfoOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentRevisionDateAndNumber = 9; + * @return Whether the originalDocumentRevisionDateAndNumber field is set. */ boolean hasOriginalDocumentRevisionDateAndNumber(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentRevisionDateAndNumber = 9; + * @return The originalDocumentRevisionDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentRevisionDateAndNumber(); /** @@ -11524,184 +12871,68 @@ public interface UniversalCorrectionDocumentInfoOrBuilder extends Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalDocumentRevisionDateAndNumberOrBuilder(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
      * for UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; + * @return Whether the originalDocumentCorrectionDateAndNumber field is set. */ boolean hasOriginalDocumentCorrectionDateAndNumber(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
      * for UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; + * @return The originalDocumentCorrectionDateAndNumber. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentCorrectionDateAndNumber(); /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
      * for UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalDocumentCorrectionDateAndNumberOrBuilder(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo} */ - public static final class UniversalCorrectionDocumentInfo extends + @java.lang.Deprecated public static final class UniversalCorrectionDocumentInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo) UniversalCorrectionDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UniversalCorrectionDocumentInfo.class.getName()); + } // Use UniversalCorrectionDocumentInfo.newBuilder() to construct. private UniversalCorrectionDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private UniversalCorrectionDocumentInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final UniversalCorrectionDocumentInfo defaultInstance; - public static UniversalCorrectionDocumentInfo getDefaultInstance() { - return defaultInstance; - } - - public UniversalCorrectionDocumentInfo getDefaultInstanceForType() { - return defaultInstance; + private UniversalCorrectionDocumentInfo() { + totalInc_ = ""; + totalDec_ = ""; + vatInc_ = ""; + vatDec_ = ""; + grounds_ = ""; + function_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UniversalCorrectionDocumentInfo( - 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; - totalInc_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - totalDec_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - vatInc_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - vatDec_ = bs; - break; - } - case 40: { - bitField0_ |= 0x00000010; - currencyCode_ = input.readInt32(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - grounds_ = bs; - break; - } - case 56: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType value = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(7, rawValue); - } else { - bitField0_ |= 0x00000040; - function_ = value; - } - break; - } - case 66: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = originalDocumentDateAndNumber_.toBuilder(); - } - originalDocumentDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(originalDocumentDateAndNumber_); - originalDocumentDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - case 74: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = originalDocumentRevisionDateAndNumber_.toBuilder(); - } - originalDocumentRevisionDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(originalDocumentRevisionDateAndNumber_); - originalDocumentRevisionDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 82: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) == 0x00000200)) { - subBuilder = originalDocumentCorrectionDateAndNumber_.toBuilder(); - } - originalDocumentCorrectionDateAndNumber_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(originalDocumentCorrectionDateAndNumber_); - originalDocumentCorrectionDateAndNumber_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - 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.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_UniversalCorrectionDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_UniversalCorrectionDocumentInfo_fieldAccessorTable @@ -11709,33 +12940,23 @@ private UniversalCorrectionDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UniversalCorrectionDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UniversalCorrectionDocumentInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TOTALINC_FIELD_NUMBER = 1; - private java.lang.Object totalInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalInc_ = ""; /** * optional string TotalInc = 1; + * @return Whether the totalInc field is set. */ + @java.lang.Override public boolean hasTotalInc() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string TotalInc = 1; + * @return The totalInc. */ + @java.lang.Override public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; if (ref instanceof java.lang.String) { @@ -11752,7 +12973,9 @@ public java.lang.String getTotalInc() { } /** * optional string TotalInc = 1; + * @return The bytes for totalInc. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalIncBytes() { java.lang.Object ref = totalInc_; @@ -11768,16 +12991,21 @@ public java.lang.String getTotalInc() { } public static final int TOTALDEC_FIELD_NUMBER = 2; - private java.lang.Object totalDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalDec_ = ""; /** * optional string TotalDec = 2; + * @return Whether the totalDec field is set. */ + @java.lang.Override public boolean hasTotalDec() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string TotalDec = 2; + * @return The totalDec. */ + @java.lang.Override public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; if (ref instanceof java.lang.String) { @@ -11794,7 +13022,9 @@ public java.lang.String getTotalDec() { } /** * optional string TotalDec = 2; + * @return The bytes for totalDec. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalDecBytes() { java.lang.Object ref = totalDec_; @@ -11810,16 +13040,21 @@ public java.lang.String getTotalDec() { } public static final int VATINC_FIELD_NUMBER = 3; - private java.lang.Object vatInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatInc_ = ""; /** * optional string VatInc = 3; + * @return Whether the vatInc field is set. */ + @java.lang.Override public boolean hasVatInc() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string VatInc = 3; + * @return The vatInc. */ + @java.lang.Override public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; if (ref instanceof java.lang.String) { @@ -11836,7 +13071,9 @@ public java.lang.String getVatInc() { } /** * optional string VatInc = 3; + * @return The bytes for vatInc. */ + @java.lang.Override public com.google.protobuf.ByteString getVatIncBytes() { java.lang.Object ref = vatInc_; @@ -11852,16 +13089,21 @@ public java.lang.String getVatInc() { } public static final int VATDEC_FIELD_NUMBER = 4; - private java.lang.Object vatDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatDec_ = ""; /** * optional string VatDec = 4; + * @return Whether the vatDec field is set. */ + @java.lang.Override public boolean hasVatDec() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string VatDec = 4; + * @return The vatDec. */ + @java.lang.Override public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; if (ref instanceof java.lang.String) { @@ -11878,7 +13120,9 @@ public java.lang.String getVatDec() { } /** * optional string VatDec = 4; + * @return The bytes for vatDec. */ + @java.lang.Override public com.google.protobuf.ByteString getVatDecBytes() { java.lang.Object ref = vatDec_; @@ -11894,31 +13138,40 @@ public java.lang.String getVatDec() { } public static final int CURRENCYCODE_FIELD_NUMBER = 5; - private int currencyCode_; + private int currencyCode_ = 0; /** * optional int32 CurrencyCode = 5; + * @return Whether the currencyCode field is set. */ + @java.lang.Override public boolean hasCurrencyCode() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional int32 CurrencyCode = 5; + * @return The currencyCode. */ + @java.lang.Override public int getCurrencyCode() { return currencyCode_; } public static final int GROUNDS_FIELD_NUMBER = 6; - private java.lang.Object grounds_; + @SuppressWarnings("serial") + private volatile java.lang.Object grounds_ = ""; /** * optional string Grounds = 6; + * @return Whether the grounds field is set. */ + @java.lang.Override public boolean hasGrounds() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string Grounds = 6; + * @return The grounds. */ + @java.lang.Override public java.lang.String getGrounds() { java.lang.Object ref = grounds_; if (ref instanceof java.lang.String) { @@ -11935,7 +13188,9 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 6; + * @return The bytes for grounds. */ + @java.lang.Override public com.google.protobuf.ByteString getGroundsBytes() { java.lang.Object ref = grounds_; @@ -11951,108 +13206,115 @@ public java.lang.String getGrounds() { } public static final int FUNCTION_FIELD_NUMBER = 7; - private Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType function_; + private int function_ = 0; /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 7; + * @return Whether the function field is set. */ - public boolean hasFunction() { - return ((bitField0_ & 0x00000040) == 0x00000040); + @java.lang.Override public boolean hasFunction() { + return ((bitField0_ & 0x00000040) != 0); } /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 7; + * @return The function. */ - public Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType getFunction() { - return function_; + @java.lang.Override public Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType getFunction() { + Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType result = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.forNumber(function_); + return result == null ? Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice : result; } public static final int ORIGINALDOCUMENTDATEANDNUMBER_FIELD_NUMBER = 8; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentDateAndNumber_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 8; + * @return Whether the originalDocumentDateAndNumber field is set. */ + @java.lang.Override public boolean hasOriginalDocumentDateAndNumber() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 8; + * @return The originalDocumentDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentDateAndNumber() { - return originalDocumentDateAndNumber_; + return originalDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentDateAndNumber_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalDocumentDateAndNumberOrBuilder() { - return originalDocumentDateAndNumber_; + return originalDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentDateAndNumber_; } public static final int ORIGINALDOCUMENTREVISIONDATEANDNUMBER_FIELD_NUMBER = 9; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentRevisionDateAndNumber_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentRevisionDateAndNumber = 9; + * @return Whether the originalDocumentRevisionDateAndNumber field is set. */ + @java.lang.Override public boolean hasOriginalDocumentRevisionDateAndNumber() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentRevisionDateAndNumber = 9; + * @return The originalDocumentRevisionDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentRevisionDateAndNumber() { - return originalDocumentRevisionDateAndNumber_; + return originalDocumentRevisionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentRevisionDateAndNumber_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentRevisionDateAndNumber = 9; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalDocumentRevisionDateAndNumberOrBuilder() { - return originalDocumentRevisionDateAndNumber_; + return originalDocumentRevisionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentRevisionDateAndNumber_; } public static final int ORIGINALDOCUMENTCORRECTIONDATEANDNUMBER_FIELD_NUMBER = 10; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentCorrectionDateAndNumber_; /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
      * for UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; + * @return Whether the originalDocumentCorrectionDateAndNumber field is set. */ + @java.lang.Override public boolean hasOriginalDocumentCorrectionDateAndNumber() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
      * for UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; + * @return The originalDocumentCorrectionDateAndNumber. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentCorrectionDateAndNumber() { - return originalDocumentCorrectionDateAndNumber_; + return originalDocumentCorrectionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentCorrectionDateAndNumber_; } - /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * + /** *
      * for UniversalCorrectionDocumentRevision
      * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalDocumentCorrectionDateAndNumberOrBuilder() { - return originalDocumentCorrectionDateAndNumber_; + return originalDocumentCorrectionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentCorrectionDateAndNumber_; } - private void initFields() { - totalInc_ = ""; - totalDec_ = ""; - vatInc_ = ""; - vatDec_ = ""; - currencyCode_ = 0; - grounds_ = ""; - function_ = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice; - originalDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - originalDocumentRevisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - originalDocumentCorrectionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -12066,100 +13328,214 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTotalIncBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, totalInc_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalDecBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, totalDec_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVatIncBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vatInc_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getVatDecBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, vatDec_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeInt32(5, currencyCode_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getGroundsBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, grounds_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeEnum(7, function_.getNumber()); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(7, function_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, originalDocumentDateAndNumber_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getOriginalDocumentDateAndNumber()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, originalDocumentRevisionDateAndNumber_); + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getOriginalDocumentRevisionDateAndNumber()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(10, originalDocumentCorrectionDateAndNumber_); + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(10, getOriginalDocumentCorrectionDateAndNumber()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTotalIncBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, totalInc_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalDecBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, totalDec_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVatIncBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vatInc_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getVatDecBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, vatDec_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, currencyCode_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getGroundsBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, grounds_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, function_.getNumber()); + .computeEnumSize(7, function_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, originalDocumentDateAndNumber_); + .computeMessageSize(8, getOriginalDocumentDateAndNumber()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, originalDocumentRevisionDateAndNumber_); + .computeMessageSize(9, getOriginalDocumentRevisionDateAndNumber()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, originalDocumentCorrectionDateAndNumber_); + .computeMessageSize(10, getOriginalDocumentCorrectionDateAndNumber()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo) obj; + + if (hasTotalInc() != other.hasTotalInc()) return false; + if (hasTotalInc()) { + if (!getTotalInc() + .equals(other.getTotalInc())) return false; + } + if (hasTotalDec() != other.hasTotalDec()) return false; + if (hasTotalDec()) { + if (!getTotalDec() + .equals(other.getTotalDec())) return false; + } + if (hasVatInc() != other.hasVatInc()) return false; + if (hasVatInc()) { + if (!getVatInc() + .equals(other.getVatInc())) return false; + } + if (hasVatDec() != other.hasVatDec()) return false; + if (hasVatDec()) { + if (!getVatDec() + .equals(other.getVatDec())) return false; + } + if (hasCurrencyCode() != other.hasCurrencyCode()) return false; + if (hasCurrencyCode()) { + if (getCurrencyCode() + != other.getCurrencyCode()) return false; + } + if (hasGrounds() != other.hasGrounds()) return false; + if (hasGrounds()) { + if (!getGrounds() + .equals(other.getGrounds())) return false; + } + if (hasFunction() != other.hasFunction()) return false; + if (hasFunction()) { + if (function_ != other.function_) return false; + } + if (hasOriginalDocumentDateAndNumber() != other.hasOriginalDocumentDateAndNumber()) return false; + if (hasOriginalDocumentDateAndNumber()) { + if (!getOriginalDocumentDateAndNumber() + .equals(other.getOriginalDocumentDateAndNumber())) return false; + } + if (hasOriginalDocumentRevisionDateAndNumber() != other.hasOriginalDocumentRevisionDateAndNumber()) return false; + if (hasOriginalDocumentRevisionDateAndNumber()) { + if (!getOriginalDocumentRevisionDateAndNumber() + .equals(other.getOriginalDocumentRevisionDateAndNumber())) return false; + } + if (hasOriginalDocumentCorrectionDateAndNumber() != other.hasOriginalDocumentCorrectionDateAndNumber()) return false; + if (hasOriginalDocumentCorrectionDateAndNumber()) { + if (!getOriginalDocumentCorrectionDateAndNumber() + .equals(other.getOriginalDocumentCorrectionDateAndNumber())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalInc()) { + hash = (37 * hash) + TOTALINC_FIELD_NUMBER; + hash = (53 * hash) + getTotalInc().hashCode(); + } + if (hasTotalDec()) { + hash = (37 * hash) + TOTALDEC_FIELD_NUMBER; + hash = (53 * hash) + getTotalDec().hashCode(); + } + if (hasVatInc()) { + hash = (37 * hash) + VATINC_FIELD_NUMBER; + hash = (53 * hash) + getVatInc().hashCode(); + } + if (hasVatDec()) { + hash = (37 * hash) + VATDEC_FIELD_NUMBER; + hash = (53 * hash) + getVatDec().hashCode(); + } + if (hasCurrencyCode()) { + hash = (37 * hash) + CURRENCYCODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode(); + } + if (hasGrounds()) { + hash = (37 * hash) + GROUNDS_FIELD_NUMBER; + hash = (53 * hash) + getGrounds().hashCode(); + } + if (hasFunction()) { + hash = (37 * hash) + FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + function_; + } + if (hasOriginalDocumentDateAndNumber()) { + hash = (37 * hash) + ORIGINALDOCUMENTDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalDocumentDateAndNumber().hashCode(); + } + if (hasOriginalDocumentRevisionDateAndNumber()) { + hash = (37 * hash) + ORIGINALDOCUMENTREVISIONDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalDocumentRevisionDateAndNumber().hashCode(); + } + if (hasOriginalDocumentCorrectionDateAndNumber()) { + hash = (37 * hash) + ORIGINALDOCUMENTCORRECTIONDATEANDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalDocumentCorrectionDateAndNumber().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -12183,42 +13559,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDoc } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -12238,6 +13629,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_UniversalCorrectionDocumentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_UniversalCorrectionDocumentInfo_fieldAccessorTable @@ -12256,66 +13648,54 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getOriginalDocumentDateAndNumberFieldBuilder(); getOriginalDocumentRevisionDateAndNumberFieldBuilder(); getOriginalDocumentCorrectionDateAndNumberFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; totalInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); totalDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); vatInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); vatDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); currencyCode_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); grounds_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - function_ = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice; - bitField0_ = (bitField0_ & ~0x00000040); - if (originalDocumentDateAndNumberBuilder_ == null) { - originalDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - originalDocumentDateAndNumberBuilder_.clear(); + function_ = 0; + originalDocumentDateAndNumber_ = null; + if (originalDocumentDateAndNumberBuilder_ != null) { + originalDocumentDateAndNumberBuilder_.dispose(); + originalDocumentDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000080); - if (originalDocumentRevisionDateAndNumberBuilder_ == null) { - originalDocumentRevisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - originalDocumentRevisionDateAndNumberBuilder_.clear(); + originalDocumentRevisionDateAndNumber_ = null; + if (originalDocumentRevisionDateAndNumberBuilder_ != null) { + originalDocumentRevisionDateAndNumberBuilder_.dispose(); + originalDocumentRevisionDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000100); - if (originalDocumentCorrectionDateAndNumberBuilder_ == null) { - originalDocumentCorrectionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - } else { - originalDocumentCorrectionDateAndNumberBuilder_.clear(); + originalDocumentCorrectionDateAndNumber_ = null; + if (originalDocumentCorrectionDateAndNumberBuilder_ != null) { + originalDocumentCorrectionDateAndNumberBuilder_.dispose(); + originalDocumentCorrectionDateAndNumberBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000200); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.internal_static_Diadoc_Api_Proto_Docflow_UniversalCorrectionDocumentInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo result = buildPartial(); if (!result.isInitialized()) { @@ -12324,67 +13704,67 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentIn return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalInc_ = totalInc_; to_bitField0_ |= 0x00000001; } - result.totalInc_ = totalInc_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalDec_ = totalDec_; to_bitField0_ |= 0x00000002; } - result.totalDec_ = totalDec_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vatInc_ = vatInc_; to_bitField0_ |= 0x00000004; } - result.vatInc_ = vatInc_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vatDec_ = vatDec_; to_bitField0_ |= 0x00000008; } - result.vatDec_ = vatDec_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.currencyCode_ = currencyCode_; to_bitField0_ |= 0x00000010; } - result.currencyCode_ = currencyCode_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.grounds_ = grounds_; to_bitField0_ |= 0x00000020; } - result.grounds_ = grounds_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.function_ = function_; to_bitField0_ |= 0x00000040; } - result.function_ = function_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.originalDocumentDateAndNumber_ = originalDocumentDateAndNumberBuilder_ == null + ? originalDocumentDateAndNumber_ + : originalDocumentDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (originalDocumentDateAndNumberBuilder_ == null) { - result.originalDocumentDateAndNumber_ = originalDocumentDateAndNumber_; - } else { - result.originalDocumentDateAndNumber_ = originalDocumentDateAndNumberBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.originalDocumentRevisionDateAndNumber_ = originalDocumentRevisionDateAndNumberBuilder_ == null + ? originalDocumentRevisionDateAndNumber_ + : originalDocumentRevisionDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (originalDocumentRevisionDateAndNumberBuilder_ == null) { - result.originalDocumentRevisionDateAndNumber_ = originalDocumentRevisionDateAndNumber_; - } else { - result.originalDocumentRevisionDateAndNumber_ = originalDocumentRevisionDateAndNumberBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.originalDocumentCorrectionDateAndNumber_ = originalDocumentCorrectionDateAndNumberBuilder_ == null + ? originalDocumentCorrectionDateAndNumber_ + : originalDocumentCorrectionDateAndNumberBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (originalDocumentCorrectionDateAndNumberBuilder_ == null) { - result.originalDocumentCorrectionDateAndNumber_ = originalDocumentCorrectionDateAndNumber_; - } else { - result.originalDocumentCorrectionDateAndNumber_ = originalDocumentCorrectionDateAndNumberBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo)other); @@ -12397,31 +13777,31 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo.getDefaultInstance()) return this; if (other.hasTotalInc()) { - bitField0_ |= 0x00000001; totalInc_ = other.totalInc_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTotalDec()) { - bitField0_ |= 0x00000002; totalDec_ = other.totalDec_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasVatInc()) { - bitField0_ |= 0x00000004; vatInc_ = other.vatInc_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasVatDec()) { - bitField0_ |= 0x00000008; vatDec_ = other.vatDec_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasCurrencyCode()) { setCurrencyCode(other.getCurrencyCode()); } if (other.hasGrounds()) { - bitField0_ |= 0x00000020; grounds_ = other.grounds_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasFunction()) { @@ -12437,32 +13817,110 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCo mergeOriginalDocumentCorrectionDateAndNumber(other.getOriginalDocumentCorrectionDateAndNumber()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasFunction()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + totalInc_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + totalDec_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + vatInc_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + vatDec_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + currencyCode_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + grounds_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType tmpValue = + Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(7, tmpRaw); + } else { + function_ = tmpRaw; + bitField0_ |= 0x00000040; + } + break; + } // case 56 + case 66: { + input.readMessage( + getOriginalDocumentDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage( + getOriginalDocumentRevisionDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getOriginalDocumentCorrectionDateAndNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -12470,12 +13928,14 @@ public Builder mergeFrom( private java.lang.Object totalInc_ = ""; /** * optional string TotalInc = 1; + * @return Whether the totalInc field is set. */ public boolean hasTotalInc() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string TotalInc = 1; + * @return The totalInc. */ public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; @@ -12493,6 +13953,7 @@ public java.lang.String getTotalInc() { } /** * optional string TotalInc = 1; + * @return The bytes for totalInc. */ public com.google.protobuf.ByteString getTotalIncBytes() { @@ -12509,36 +13970,37 @@ public java.lang.String getTotalInc() { } /** * optional string TotalInc = 1; + * @param value The totalInc to set. + * @return This builder for chaining. */ public Builder setTotalInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string TotalInc = 1; + * @return This builder for chaining. */ public Builder clearTotalInc() { - bitField0_ = (bitField0_ & ~0x00000001); totalInc_ = getDefaultInstance().getTotalInc(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string TotalInc = 1; + * @param value The bytes for totalInc to set. + * @return This builder for chaining. */ public Builder setTotalIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -12546,12 +14008,14 @@ public Builder setTotalIncBytes( private java.lang.Object totalDec_ = ""; /** * optional string TotalDec = 2; + * @return Whether the totalDec field is set. */ public boolean hasTotalDec() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string TotalDec = 2; + * @return The totalDec. */ public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; @@ -12569,6 +14033,7 @@ public java.lang.String getTotalDec() { } /** * optional string TotalDec = 2; + * @return The bytes for totalDec. */ public com.google.protobuf.ByteString getTotalDecBytes() { @@ -12585,36 +14050,37 @@ public java.lang.String getTotalDec() { } /** * optional string TotalDec = 2; + * @param value The totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string TotalDec = 2; + * @return This builder for chaining. */ public Builder clearTotalDec() { - bitField0_ = (bitField0_ & ~0x00000002); totalDec_ = getDefaultInstance().getTotalDec(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string TotalDec = 2; + * @param value The bytes for totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -12622,12 +14088,14 @@ public Builder setTotalDecBytes( private java.lang.Object vatInc_ = ""; /** * optional string VatInc = 3; + * @return Whether the vatInc field is set. */ public boolean hasVatInc() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string VatInc = 3; + * @return The vatInc. */ public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; @@ -12645,6 +14113,7 @@ public java.lang.String getVatInc() { } /** * optional string VatInc = 3; + * @return The bytes for vatInc. */ public com.google.protobuf.ByteString getVatIncBytes() { @@ -12661,36 +14130,37 @@ public java.lang.String getVatInc() { } /** * optional string VatInc = 3; + * @param value The vatInc to set. + * @return This builder for chaining. */ public Builder setVatInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string VatInc = 3; + * @return This builder for chaining. */ public Builder clearVatInc() { - bitField0_ = (bitField0_ & ~0x00000004); vatInc_ = getDefaultInstance().getVatInc(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string VatInc = 3; + * @param value The bytes for vatInc to set. + * @return This builder for chaining. */ public Builder setVatIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -12698,12 +14168,14 @@ public Builder setVatIncBytes( private java.lang.Object vatDec_ = ""; /** * optional string VatDec = 4; + * @return Whether the vatDec field is set. */ public boolean hasVatDec() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string VatDec = 4; + * @return The vatDec. */ public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; @@ -12721,6 +14193,7 @@ public java.lang.String getVatDec() { } /** * optional string VatDec = 4; + * @return The bytes for vatDec. */ public com.google.protobuf.ByteString getVatDecBytes() { @@ -12737,36 +14210,37 @@ public java.lang.String getVatDec() { } /** * optional string VatDec = 4; + * @param value The vatDec to set. + * @return This builder for chaining. */ public Builder setVatDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string VatDec = 4; + * @return This builder for chaining. */ public Builder clearVatDec() { - bitField0_ = (bitField0_ & ~0x00000008); vatDec_ = getDefaultInstance().getVatDec(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string VatDec = 4; + * @param value The bytes for vatDec to set. + * @return This builder for chaining. */ public Builder setVatDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -12774,27 +14248,35 @@ public Builder setVatDecBytes( private int currencyCode_ ; /** * optional int32 CurrencyCode = 5; + * @return Whether the currencyCode field is set. */ + @java.lang.Override public boolean hasCurrencyCode() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional int32 CurrencyCode = 5; + * @return The currencyCode. */ + @java.lang.Override public int getCurrencyCode() { return currencyCode_; } /** * optional int32 CurrencyCode = 5; + * @param value The currencyCode to set. + * @return This builder for chaining. */ public Builder setCurrencyCode(int value) { - bitField0_ |= 0x00000010; + currencyCode_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional int32 CurrencyCode = 5; + * @return This builder for chaining. */ public Builder clearCurrencyCode() { bitField0_ = (bitField0_ & ~0x00000010); @@ -12806,12 +14288,14 @@ public Builder clearCurrencyCode() { private java.lang.Object grounds_ = ""; /** * optional string Grounds = 6; + * @return Whether the grounds field is set. */ public boolean hasGrounds() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string Grounds = 6; + * @return The grounds. */ public java.lang.String getGrounds() { java.lang.Object ref = grounds_; @@ -12829,6 +14313,7 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 6; + * @return The bytes for grounds. */ public com.google.protobuf.ByteString getGroundsBytes() { @@ -12845,90 +14330,100 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 6; + * @param value The grounds to set. + * @return This builder for chaining. */ public Builder setGrounds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional string Grounds = 6; + * @return This builder for chaining. */ public Builder clearGrounds() { - bitField0_ = (bitField0_ & ~0x00000020); grounds_ = getDefaultInstance().getGrounds(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * optional string Grounds = 6; + * @param value The bytes for grounds to set. + * @return This builder for chaining. */ public Builder setGroundsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - private Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType function_ = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice; + private int function_ = 0; /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 7; + * @return Whether the function field is set. */ - public boolean hasFunction() { - return ((bitField0_ & 0x00000040) == 0x00000040); + @java.lang.Override public boolean hasFunction() { + return ((bitField0_ & 0x00000040) != 0); } /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 7; + * @return The function. */ + @java.lang.Override public Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType getFunction() { - return function_; + Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType result = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.forNumber(function_); + return result == null ? Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice : result; } /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 7; + * @param value The function to set. + * @return This builder for chaining. */ public Builder setFunction(Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; - function_ = value; + function_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Invoicing.FunctionType Function = 7; + * @return This builder for chaining. */ public Builder clearFunction() { bitField0_ = (bitField0_ & ~0x00000040); - function_ = Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.FunctionType.Invoice; + function_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> originalDocumentDateAndNumberBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 8; + * @return Whether the originalDocumentDateAndNumber field is set. */ public boolean hasOriginalDocumentDateAndNumber() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 8; + * @return The originalDocumentDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentDateAndNumber() { if (originalDocumentDateAndNumberBuilder_ == null) { - return originalDocumentDateAndNumber_; + return originalDocumentDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentDateAndNumber_; } else { return originalDocumentDateAndNumberBuilder_.getMessage(); } @@ -12942,11 +14437,11 @@ public Builder setOriginalDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.Documen throw new NullPointerException(); } originalDocumentDateAndNumber_ = value; - onChanged(); } else { originalDocumentDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -12956,11 +14451,11 @@ public Builder setOriginalDocumentDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (originalDocumentDateAndNumberBuilder_ == null) { originalDocumentDateAndNumber_ = builderForValue.build(); - onChanged(); } else { originalDocumentDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -12968,31 +14463,33 @@ public Builder setOriginalDocumentDateAndNumber( */ public Builder mergeOriginalDocumentDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalDocumentDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - originalDocumentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - originalDocumentDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(originalDocumentDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + originalDocumentDateAndNumber_ != null && + originalDocumentDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getOriginalDocumentDateAndNumberBuilder().mergeFrom(value); } else { originalDocumentDateAndNumber_ = value; } - onChanged(); } else { originalDocumentDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + if (originalDocumentDateAndNumber_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentDateAndNumber = 8; */ public Builder clearOriginalDocumentDateAndNumber() { - if (originalDocumentDateAndNumberBuilder_ == null) { - originalDocumentDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - originalDocumentDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000080); + originalDocumentDateAndNumber_ = null; + if (originalDocumentDateAndNumberBuilder_ != null) { + originalDocumentDateAndNumberBuilder_.dispose(); + originalDocumentDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** @@ -13010,7 +14507,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde if (originalDocumentDateAndNumberBuilder_ != null) { return originalDocumentDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return originalDocumentDateAndNumber_; + return originalDocumentDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentDateAndNumber_; } } /** @@ -13030,21 +14528,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde return originalDocumentDateAndNumberBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentRevisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentRevisionDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> originalDocumentRevisionDateAndNumberBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentRevisionDateAndNumber = 9; + * @return Whether the originalDocumentRevisionDateAndNumber field is set. */ public boolean hasOriginalDocumentRevisionDateAndNumber() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentRevisionDateAndNumber = 9; + * @return The originalDocumentRevisionDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentRevisionDateAndNumber() { if (originalDocumentRevisionDateAndNumberBuilder_ == null) { - return originalDocumentRevisionDateAndNumber_; + return originalDocumentRevisionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentRevisionDateAndNumber_; } else { return originalDocumentRevisionDateAndNumberBuilder_.getMessage(); } @@ -13058,11 +14558,11 @@ public Builder setOriginalDocumentRevisionDateAndNumber(Diadoc.Api.Proto.Docflow throw new NullPointerException(); } originalDocumentRevisionDateAndNumber_ = value; - onChanged(); } else { originalDocumentRevisionDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -13072,11 +14572,11 @@ public Builder setOriginalDocumentRevisionDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (originalDocumentRevisionDateAndNumberBuilder_ == null) { originalDocumentRevisionDateAndNumber_ = builderForValue.build(); - onChanged(); } else { originalDocumentRevisionDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -13084,31 +14584,33 @@ public Builder setOriginalDocumentRevisionDateAndNumber( */ public Builder mergeOriginalDocumentRevisionDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalDocumentRevisionDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - originalDocumentRevisionDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - originalDocumentRevisionDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(originalDocumentRevisionDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) && + originalDocumentRevisionDateAndNumber_ != null && + originalDocumentRevisionDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getOriginalDocumentRevisionDateAndNumberBuilder().mergeFrom(value); } else { originalDocumentRevisionDateAndNumber_ = value; } - onChanged(); } else { originalDocumentRevisionDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + if (originalDocumentRevisionDateAndNumber_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentRevisionDateAndNumber = 9; */ public Builder clearOriginalDocumentRevisionDateAndNumber() { - if (originalDocumentRevisionDateAndNumberBuilder_ == null) { - originalDocumentRevisionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - originalDocumentRevisionDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000100); + originalDocumentRevisionDateAndNumber_ = null; + if (originalDocumentRevisionDateAndNumberBuilder_ != null) { + originalDocumentRevisionDateAndNumberBuilder_.dispose(); + originalDocumentRevisionDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** @@ -13126,7 +14628,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde if (originalDocumentRevisionDateAndNumberBuilder_ != null) { return originalDocumentRevisionDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return originalDocumentRevisionDateAndNumber_; + return originalDocumentRevisionDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentRevisionDateAndNumber_; } } /** @@ -13146,39 +14649,41 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde return originalDocumentRevisionDateAndNumberBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentCorrectionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber originalDocumentCorrectionDateAndNumber_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> originalDocumentCorrectionDateAndNumberBuilder_; /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
        * for UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; + * @return Whether the originalDocumentCorrectionDateAndNumber field is set. */ public boolean hasOriginalDocumentCorrectionDateAndNumber() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
        * for UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; + * @return The originalDocumentCorrectionDateAndNumber. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber getOriginalDocumentCorrectionDateAndNumber() { if (originalDocumentCorrectionDateAndNumberBuilder_ == null) { - return originalDocumentCorrectionDateAndNumber_; + return originalDocumentCorrectionDateAndNumber_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentCorrectionDateAndNumber_; } else { return originalDocumentCorrectionDateAndNumberBuilder_.getMessage(); } } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
        * for UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; */ public Builder setOriginalDocumentCorrectionDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalDocumentCorrectionDateAndNumberBuilder_ == null) { @@ -13186,77 +14691,79 @@ public Builder setOriginalDocumentCorrectionDateAndNumber(Diadoc.Api.Proto.Docfl throw new NullPointerException(); } originalDocumentCorrectionDateAndNumber_ = value; - onChanged(); } else { originalDocumentCorrectionDateAndNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
        * for UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; */ public Builder setOriginalDocumentCorrectionDateAndNumber( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder builderForValue) { if (originalDocumentCorrectionDateAndNumberBuilder_ == null) { originalDocumentCorrectionDateAndNumber_ = builderForValue.build(); - onChanged(); } else { originalDocumentCorrectionDateAndNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
        * for UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; */ public Builder mergeOriginalDocumentCorrectionDateAndNumber(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber value) { if (originalDocumentCorrectionDateAndNumberBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - originalDocumentCorrectionDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { - originalDocumentCorrectionDateAndNumber_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.newBuilder(originalDocumentCorrectionDateAndNumber_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) && + originalDocumentCorrectionDateAndNumber_ != null && + originalDocumentCorrectionDateAndNumber_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance()) { + getOriginalDocumentCorrectionDateAndNumberBuilder().mergeFrom(value); } else { originalDocumentCorrectionDateAndNumber_ = value; } - onChanged(); } else { originalDocumentCorrectionDateAndNumberBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; + if (originalDocumentCorrectionDateAndNumber_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
        * for UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; */ public Builder clearOriginalDocumentCorrectionDateAndNumber() { - if (originalDocumentCorrectionDateAndNumberBuilder_ == null) { - originalDocumentCorrectionDateAndNumber_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance(); - onChanged(); - } else { - originalDocumentCorrectionDateAndNumberBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000200); + originalDocumentCorrectionDateAndNumber_ = null; + if (originalDocumentCorrectionDateAndNumberBuilder_ != null) { + originalDocumentCorrectionDateAndNumberBuilder_.dispose(); + originalDocumentCorrectionDateAndNumberBuilder_ = null; + } + onChanged(); return this; } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
        * for UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder getOriginalDocumentCorrectionDateAndNumberBuilder() { bitField0_ |= 0x00000200; @@ -13264,25 +14771,26 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder return getOriginalDocumentCorrectionDateAndNumberFieldBuilder().getBuilder(); } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
        * for UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder getOriginalDocumentCorrectionDateAndNumberOrBuilder() { if (originalDocumentCorrectionDateAndNumberBuilder_ != null) { return originalDocumentCorrectionDateAndNumberBuilder_.getMessageOrBuilder(); } else { - return originalDocumentCorrectionDateAndNumber_; + return originalDocumentCorrectionDateAndNumber_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.getDefaultInstance() : originalDocumentCorrectionDateAndNumber_; } } /** - * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; - * *
        * for UniversalCorrectionDocumentRevision
        * 
+ * + * optional .Diadoc.Api.Proto.Docflow.DocumentDateAndNumber OriginalDocumentCorrectionDateAndNumber = 10; */ private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumber.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilder> @@ -13301,62 +14809,102 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo DEFAULT_INSTANCE; static { - defaultInstance = new UniversalCorrectionDocumentInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UniversalCorrectionDocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.UniversalCorrectionDocumentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.UniversalCorrectionDocumentInfo) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentDateAndNumber_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentDateAndNumber_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_BasicDocumentInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_BasicDocumentInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_InvoiceDocumentInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_InvoiceDocumentInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionDocumentInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionDocumentInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_PriceListDocumentInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_PriceListDocumentInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ContractDocumentInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ContractDocumentInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SupplementaryAgreementDocumentInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SupplementaryAgreementDocumentInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_UniversalTransferDocumentInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_UniversalTransferDocumentInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_UniversalCorrectionDocumentInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_UniversalCorrectionDocumentInfo_fieldAccessorTable; @@ -13364,20 +14912,20 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\032Docflow/DocumentInfo.proto\022\030Diadoc.Api" + ".Proto.Docflow\032\022DocumentType.proto\032\027Docu" + "mentDirection.proto\032-Invoicing/Universal" + - "TransferDocumentInfo.proto\"\276\010\n\014DocumentI" + + "TransferDocumentInfo.proto\"\302\010\n\014DocumentI" + "nfo\022I\n\014DocumentType\030\001 \001(\0162\036.Diadoc.Api.P" + "roto.DocumentType:\023UnknownDocumentType\022X" + "\n\021DocumentDirection\030\002 \001(\0162#.Diadoc.Api.P" + "roto.DocumentDirection:\030UnknownDocumentD" + "irection\022\016\n\006IsTest\030\003 \001(\010\022\030\n\020CustomDocume" + - "ntId\030\004 \001(\t\022\030\n\020FromDepartmentId\030\005 \001(\t\022\026\n\016", + "ntId\030\004 \001(\t\022\030\n\020FromDepartmentId\030\005 \001(\t\022\026\n\016" + "ToDepartmentId\030\006 \001(\t\022\031\n\021CounteragentBoxI" + "d\030\007 \001(\t\022N\n\025DocumentDateAndNumber\030\010 \001(\0132/" + ".Diadoc.Api.Proto.Docflow.DocumentDateAn" + @@ -13387,7 +14935,7 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde "Docflow.InvoiceDocumentInfo\022V\n\025InvoiceCo" + "rrectionInfo\030\013 \001(\01327.Diadoc.Api.Proto.Do" + "cflow.InvoiceCorrectionDocumentInfo\022F\n\rP" + - "riceListInfo\030\014 \001(\0132/.Diadoc.Api.Proto.Do", + "riceListInfo\030\014 \001(\0132/.Diadoc.Api.Proto.Do" + "cflow.PriceListDocumentInfo\022D\n\014ContractI" + "nfo\030\r \001(\0132..Diadoc.Api.Proto.Docflow.Con" + "tractDocumentInfo\022`\n\032SupplementaryAgreem" + @@ -13397,75 +14945,68 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentDateAndNumberOrBuilde "doc.Api.Proto.Docflow.UniversalTransferD" + "ocumentInfo\022b\n\037UniversalCorrectionDocume" + "ntInfo\030\020 \001(\01329.Diadoc.Api.Proto.Docflow." + - "UniversalCorrectionDocumentInfo\022\031\n\021Attac", - "hmentVersion\030\021 \001(\t\022\017\n\007Version\030\022 \002(\t\"E\n\025D" + - "ocumentDateAndNumber\022\024\n\014DocumentDate\030\001 \001" + - "(\t\022\026\n\016DocumentNumber\030\002 \001(\t\"\237\001\n\021BasicDocu" + - "mentInfo\022\r\n\005Total\030\001 \001(\t\022\r\n\005NoVat\030\002 \001(\010\022\013" + - "\n\003Vat\030\003 \001(\t\022\017\n\007Grounds\030\004 \001(\t\022N\n\025Revision" + - "DateAndNumber\030\005 \001(\0132/.Diadoc.Api.Proto.D" + - "ocflow.DocumentDateAndNumber\"\236\001\n\023Invoice" + - "DocumentInfo\022\r\n\005Total\030\001 \001(\t\022\013\n\003Vat\030\002 \001(\t" + - "\022\024\n\014CurrencyCode\030\003 \001(\005\022U\n\034OriginalInvoic" + - "eDateAndNumber\030\004 \001(\0132/.Diadoc.Api.Proto.", - "Docflow.DocumentDateAndNumber\"\220\003\n\035Invoic" + - "eCorrectionDocumentInfo\022\020\n\010TotalInc\030\001 \001(" + - "\t\022\020\n\010TotalDec\030\002 \001(\t\022\016\n\006VatInc\030\003 \001(\t\022\016\n\006V" + - "atDec\030\004 \001(\t\022\024\n\014CurrencyCode\030\005 \001(\005\022U\n\034Ori" + - "ginalInvoiceDateAndNumber\030\006 \001(\0132/.Diadoc" + - ".Api.Proto.Docflow.DocumentDateAndNumber" + - "\022]\n$OriginalInvoiceRevisionDateAndNumber" + - "\030\007 \001(\0132/.Diadoc.Api.Proto.Docflow.Docume" + - "ntDateAndNumber\022_\n&OriginalInvoiceCorrec" + - "tionDateAndNumber\030\010 \001(\0132/.Diadoc.Api.Pro", - "to.Docflow.DocumentDateAndNumber\"\217\001\n\025Pri" + - "ceListDocumentInfo\022\036\n\026PriceListEffective" + - "Date\030\001 \001(\t\022V\n\035ContractDocumentDateAndNum" + - "ber\030\002 \001(\0132/.Diadoc.Api.Proto.Docflow.Doc" + - "umentDateAndNumber\"C\n\024ContractDocumentIn" + - "fo\022\025\n\rContractPrice\030\001 \001(\t\022\024\n\014ContractTyp" + - "e\030\002 \001(\t\"\361\001\n\"SupplementaryAgreementDocume" + - "ntInfo\022\024\n\014ContractType\030\001 \001(\t\022V\n\035Contract" + - "DocumentDateAndNumber\030\002 \002(\0132/.Diadoc.Api" + - ".Proto.Docflow.DocumentDateAndNumber\022N\n\025", - "DocumentDateAndNumber\030\003 \002(\0132/.Diadoc.Api" + - ".Proto.Docflow.DocumentDateAndNumber\022\r\n\005" + - "Total\030\004 \001(\t\"\366\001\n\035UniversalTransferDocumen" + - "tInfo\022\r\n\005Total\030\001 \001(\t\022\013\n\003Vat\030\002 \001(\t\022\024\n\014Cur" + - "rencyCode\030\003 \001(\005\022\017\n\007Grounds\030\004 \001(\t\022:\n\010Func" + - "tion\030\005 \002(\0162(.Diadoc.Api.Proto.Invoicing." + - "FunctionType\022V\n\035OriginalDocumentDateAndN" + - "umber\030\006 \001(\0132/.Diadoc.Api.Proto.Docflow.D" + - "ocumentDateAndNumber\"\342\003\n\037UniversalCorrec" + - "tionDocumentInfo\022\020\n\010TotalInc\030\001 \001(\t\022\020\n\010To", - "talDec\030\002 \001(\t\022\016\n\006VatInc\030\003 \001(\t\022\016\n\006VatDec\030\004" + - " \001(\t\022\024\n\014CurrencyCode\030\005 \001(\005\022\017\n\007Grounds\030\006 " + - "\001(\t\022:\n\010Function\030\007 \002(\0162(.Diadoc.Api.Proto" + - ".Invoicing.FunctionType\022V\n\035OriginalDocum" + - "entDateAndNumber\030\010 \001(\0132/.Diadoc.Api.Prot" + - "o.Docflow.DocumentDateAndNumber\022^\n%Origi" + - "nalDocumentRevisionDateAndNumber\030\t \001(\0132/" + - ".Diadoc.Api.Proto.Docflow.DocumentDateAn" + - "dNumber\022`\n\'OriginalDocumentCorrectionDat" + - "eAndNumber\030\n \001(\0132/.Diadoc.Api.Proto.Docf", - "low.DocumentDateAndNumberB\024B\022DocumentInf" + + "UniversalCorrectionDocumentInfo\022\031\n\021Attac" + + "hmentVersion\030\021 \001(\t\022\017\n\007Version\030\022 \002(\t:\002\030\001\"" + + "I\n\025DocumentDateAndNumber\022\024\n\014DocumentDate" + + "\030\001 \001(\t\022\026\n\016DocumentNumber\030\002 \001(\t:\002\030\001\"\243\001\n\021B" + + "asicDocumentInfo\022\r\n\005Total\030\001 \001(\t\022\r\n\005NoVat" + + "\030\002 \001(\010\022\013\n\003Vat\030\003 \001(\t\022\017\n\007Grounds\030\004 \001(\t\022N\n\025" + + "RevisionDateAndNumber\030\005 \001(\0132/.Diadoc.Api" + + ".Proto.Docflow.DocumentDateAndNumber:\002\030\001" + + "\"\242\001\n\023InvoiceDocumentInfo\022\r\n\005Total\030\001 \001(\t\022" + + "\013\n\003Vat\030\002 \001(\t\022\024\n\014CurrencyCode\030\003 \001(\005\022U\n\034Or" + + "iginalInvoiceDateAndNumber\030\004 \001(\0132/.Diado" + + "c.Api.Proto.Docflow.DocumentDateAndNumbe" + + "r:\002\030\001\"\224\003\n\035InvoiceCorrectionDocumentInfo\022" + + "\020\n\010TotalInc\030\001 \001(\t\022\020\n\010TotalDec\030\002 \001(\t\022\016\n\006V" + + "atInc\030\003 \001(\t\022\016\n\006VatDec\030\004 \001(\t\022\024\n\014CurrencyC" + + "ode\030\005 \001(\005\022U\n\034OriginalInvoiceDateAndNumbe" + + "r\030\006 \001(\0132/.Diadoc.Api.Proto.Docflow.Docum" + + "entDateAndNumber\022]\n$OriginalInvoiceRevis" + + "ionDateAndNumber\030\007 \001(\0132/.Diadoc.Api.Prot" + + "o.Docflow.DocumentDateAndNumber\022_\n&Origi" + + "nalInvoiceCorrectionDateAndNumber\030\010 \001(\0132" + + "/.Diadoc.Api.Proto.Docflow.DocumentDateA" + + "ndNumber:\002\030\001\"\223\001\n\025PriceListDocumentInfo\022\036" + + "\n\026PriceListEffectiveDate\030\001 \001(\t\022V\n\035Contra" + + "ctDocumentDateAndNumber\030\002 \001(\0132/.Diadoc.A" + + "pi.Proto.Docflow.DocumentDateAndNumber:\002" + + "\030\001\"G\n\024ContractDocumentInfo\022\025\n\rContractPr" + + "ice\030\001 \001(\t\022\024\n\014ContractType\030\002 \001(\t:\002\030\001\"\365\001\n\"" + + "SupplementaryAgreementDocumentInfo\022\024\n\014Co" + + "ntractType\030\001 \001(\t\022V\n\035ContractDocumentDate" + + "AndNumber\030\002 \002(\0132/.Diadoc.Api.Proto.Docfl" + + "ow.DocumentDateAndNumber\022N\n\025DocumentDate" + + "AndNumber\030\003 \002(\0132/.Diadoc.Api.Proto.Docfl" + + "ow.DocumentDateAndNumber\022\r\n\005Total\030\004 \001(\t:" + + "\002\030\001\"\372\001\n\035UniversalTransferDocumentInfo\022\r\n" + + "\005Total\030\001 \001(\t\022\013\n\003Vat\030\002 \001(\t\022\024\n\014CurrencyCod" + + "e\030\003 \001(\005\022\017\n\007Grounds\030\004 \001(\t\022:\n\010Function\030\005 \002" + + "(\0162(.Diadoc.Api.Proto.Invoicing.Function" + + "Type\022V\n\035OriginalDocumentDateAndNumber\030\006 " + + "\001(\0132/.Diadoc.Api.Proto.Docflow.DocumentD" + + "ateAndNumber:\002\030\001\"\346\003\n\037UniversalCorrection" + + "DocumentInfo\022\020\n\010TotalInc\030\001 \001(\t\022\020\n\010TotalD" + + "ec\030\002 \001(\t\022\016\n\006VatInc\030\003 \001(\t\022\016\n\006VatDec\030\004 \001(\t" + + "\022\024\n\014CurrencyCode\030\005 \001(\005\022\017\n\007Grounds\030\006 \001(\t\022" + + ":\n\010Function\030\007 \002(\0162(.Diadoc.Api.Proto.Inv" + + "oicing.FunctionType\022V\n\035OriginalDocumentD" + + "ateAndNumber\030\010 \001(\0132/.Diadoc.Api.Proto.Do" + + "cflow.DocumentDateAndNumber\022^\n%OriginalD" + + "ocumentRevisionDateAndNumber\030\t \001(\0132/.Dia" + + "doc.Api.Proto.Docflow.DocumentDateAndNum" + + "ber\022`\n\'OriginalDocumentCorrectionDateAnd" + + "Number\030\n \001(\0132/.Diadoc.Api.Proto.Docflow." + + "DocumentDateAndNumber:\002\030\001B\024B\022DocumentInf" + "oProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.DocumentTypeProtos.getDescriptor(), Diadoc.Api.Proto.DocumentDirectionProtos.getDescriptor(), Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_DocumentInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_DocumentInfo_fieldAccessorTable = new @@ -13526,6 +15067,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_UniversalCorrectionDocumentInfo_descriptor, new java.lang.String[] { "TotalInc", "TotalDec", "VatInc", "VatDec", "CurrencyCode", "Grounds", "Function", "OriginalDocumentDateAndNumber", "OriginalDocumentRevisionDateAndNumber", "OriginalDocumentCorrectionDateAndNumber", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.DocumentTypeProtos.getDescriptor(); Diadoc.Api.Proto.DocumentDirectionProtos.getDescriptor(); Diadoc.Api.Proto.Invoicing.UniversalTransferDocumentInfoProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoV3Protos.java b/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoV3Protos.java index d298ca62..0470dd5c 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoV3Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoV3Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/DocumentInfoV3.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class DocumentInfoV3Protos { private DocumentInfoV3Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentInfoV3Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DocumentInfoV3OrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.DocumentInfoV3) @@ -14,10 +31,12 @@ public interface DocumentInfoV3OrBuilder extends /** * required .Diadoc.Api.Proto.FullVersion FullVersion = 1; + * @return Whether the fullVersion field is set. */ boolean hasFullVersion(); /** * required .Diadoc.Api.Proto.FullVersion FullVersion = 1; + * @return The fullVersion. */ Diadoc.Api.Proto.FullVersionProtos.FullVersion getFullVersion(); /** @@ -27,28 +46,34 @@ public interface DocumentInfoV3OrBuilder extends /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 2; + * @return Whether the messageType field is set. */ boolean hasMessageType(); /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 2; + * @return The messageType. */ Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType(); /** * required int32 WorkflowId = 3; + * @return Whether the workflowId field is set. */ boolean hasWorkflowId(); /** * required int32 WorkflowId = 3; + * @return The workflowId. */ int getWorkflowId(); /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants Participants = 4; + * @return Whether the participants field is set. */ boolean hasParticipants(); /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants Participants = 4; + * @return The participants. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants getParticipants(); /** @@ -58,37 +83,45 @@ public interface DocumentInfoV3OrBuilder extends /** * required .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 5; + * @return Whether the documentDirection field is set. */ boolean hasDocumentDirection(); /** * required .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 5; + * @return The documentDirection. */ Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection(); /** * required string DepartmentId = 6; + * @return Whether the departmentId field is set. */ boolean hasDepartmentId(); /** * required string DepartmentId = 6; + * @return The departmentId. */ java.lang.String getDepartmentId(); /** * required string DepartmentId = 6; + * @return The bytes for departmentId. */ com.google.protobuf.ByteString getDepartmentIdBytes(); /** * optional string CustomDocumentId = 7; + * @return Whether the customDocumentId field is set. */ boolean hasCustomDocumentId(); /** * optional string CustomDocumentId = 7; + * @return The customDocumentId. */ java.lang.String getCustomDocumentId(); /** * optional string CustomDocumentId = 7; + * @return The bytes for customDocumentId. */ com.google.protobuf.ByteString getCustomDocumentIdBytes(); @@ -143,10 +176,12 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * required .Diadoc.Api.Proto.Docflow.DocumentLinks DocumentLinks = 10; + * @return Whether the documentLinks field is set. */ boolean hasDocumentLinks(); /** * required .Diadoc.Api.Proto.Docflow.DocumentLinks DocumentLinks = 10; + * @return The documentLinks. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks getDocumentLinks(); /** @@ -156,10 +191,12 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * required .Diadoc.Api.Proto.Docflow.PacketInfo PacketInfo = 11; + * @return Whether the packetInfo field is set. */ boolean hasPacketInfo(); /** * required .Diadoc.Api.Proto.Docflow.PacketInfo PacketInfo = 11; + * @return The packetInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo getPacketInfo(); /** @@ -169,37 +206,45 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * required bool IsRead = 12; + * @return Whether the isRead field is set. */ boolean hasIsRead(); /** * required bool IsRead = 12; + * @return The isRead. */ boolean getIsRead(); /** * required bool IsDeleted = 13; + * @return Whether the isDeleted field is set. */ boolean hasIsDeleted(); /** * required bool IsDeleted = 13; + * @return The isDeleted. */ boolean getIsDeleted(); /** * required bool IsInvitation = 14; + * @return Whether the isInvitation field is set. */ boolean hasIsInvitation(); /** * required bool IsInvitation = 14; + * @return The isInvitation. */ boolean getIsInvitation(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentLetterInfo LetterInfo = 15; + * @return Whether the letterInfo field is set. */ boolean hasLetterInfo(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentLetterInfo LetterInfo = 15; + * @return The letterInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo getLetterInfo(); /** @@ -209,10 +254,12 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional .Diadoc.Api.Proto.Docflow.DocumentDraftInfo DraftInfo = 16; + * @return Whether the draftInfo field is set. */ boolean hasDraftInfo(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentDraftInfo DraftInfo = 16; + * @return The draftInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo getDraftInfo(); /** @@ -222,10 +269,12 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional .Diadoc.Api.Proto.Docflow.DocumentTemplateInfo TemplateInfo = 17; + * @return Whether the templateInfo field is set. */ boolean hasTemplateInfo(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentTemplateInfo TemplateInfo = 17; + * @return The templateInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo getTemplateInfo(); /** @@ -235,10 +284,12 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 18; + * @return Whether the origin field is set. */ boolean hasOrigin(); /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 18; + * @return The origin. */ Diadoc.Api.Proto.Documents.DocumentProtos.Origin getOrigin(); /** @@ -248,14 +299,17 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional string EditingSettingId = 19 [default = ""]; + * @return Whether the editingSettingId field is set. */ boolean hasEditingSettingId(); /** * optional string EditingSettingId = 19 [default = ""]; + * @return The editingSettingId. */ java.lang.String getEditingSettingId(); /** * optional string EditingSettingId = 19 [default = ""]; + * @return The bytes for editingSettingId. */ com.google.protobuf.ByteString getEditingSettingIdBytes(); @@ -267,254 +321,36 @@ public static final class DocumentInfoV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentInfoV3) DocumentInfoV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentInfoV3.class.getName()); + } // Use DocumentInfoV3.newBuilder() to construct. private DocumentInfoV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentInfoV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentInfoV3 defaultInstance; - public static DocumentInfoV3 getDefaultInstance() { - return defaultInstance; } - - public DocumentInfoV3 getDefaultInstanceForType() { - return defaultInstance; + private DocumentInfoV3() { + messageType_ = 0; + documentDirection_ = 0; + departmentId_ = ""; + customDocumentId_ = ""; + metadata_ = java.util.Collections.emptyList(); + customData_ = java.util.Collections.emptyList(); + editingSettingId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentInfoV3( - 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: { - Diadoc.Api.Proto.FullVersionProtos.FullVersion.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = fullVersion_.toBuilder(); - } - fullVersion_ = input.readMessage(Diadoc.Api.Proto.FullVersionProtos.FullVersion.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullVersion_); - fullVersion_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.MessageType value = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - messageType_ = value; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - workflowId_ = input.readInt32(); - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = participants_.toBuilder(); - } - participants_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(participants_); - participants_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 40: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection value = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - documentDirection_ = value; - } - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - departmentId_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - customDocumentId_ = bs; - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - metadata_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - metadata_.add(input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.PARSER, extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - customData_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000100; - } - customData_.add(input.readMessage(Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.PARSER, extensionRegistry)); - break; - } - case 82: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = documentLinks_.toBuilder(); - } - documentLinks_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentLinks_); - documentLinks_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - case 90: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = packetInfo_.toBuilder(); - } - packetInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(packetInfo_); - packetInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 96: { - bitField0_ |= 0x00000200; - isRead_ = input.readBool(); - break; - } - case 104: { - bitField0_ |= 0x00000400; - isDeleted_ = input.readBool(); - break; - } - case 112: { - bitField0_ |= 0x00000800; - isInvitation_ = input.readBool(); - break; - } - case 122: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00001000) == 0x00001000)) { - subBuilder = letterInfo_.toBuilder(); - } - letterInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(letterInfo_); - letterInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00001000; - break; - } - case 130: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00002000) == 0x00002000)) { - subBuilder = draftInfo_.toBuilder(); - } - draftInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(draftInfo_); - draftInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00002000; - break; - } - case 138: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00004000) == 0x00004000)) { - subBuilder = templateInfo_.toBuilder(); - } - templateInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(templateInfo_); - templateInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00004000; - break; - } - case 146: { - Diadoc.Api.Proto.Documents.DocumentProtos.Origin.Builder subBuilder = null; - if (((bitField0_ & 0x00008000) == 0x00008000)) { - subBuilder = origin_.toBuilder(); - } - origin_ = input.readMessage(Diadoc.Api.Proto.Documents.DocumentProtos.Origin.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(origin_); - origin_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00008000; - break; - } - case 154: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00010000; - editingSettingId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - metadata_ = java.util.Collections.unmodifiableList(metadata_); - } - if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - customData_ = java.util.Collections.unmodifiableList(customData_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_fieldAccessorTable @@ -522,69 +358,66 @@ private DocumentInfoV3( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.class, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentInfoV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentInfoV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int FULLVERSION_FIELD_NUMBER = 1; private Diadoc.Api.Proto.FullVersionProtos.FullVersion fullVersion_; /** * required .Diadoc.Api.Proto.FullVersion FullVersion = 1; + * @return Whether the fullVersion field is set. */ + @java.lang.Override public boolean hasFullVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.FullVersion FullVersion = 1; + * @return The fullVersion. */ + @java.lang.Override public Diadoc.Api.Proto.FullVersionProtos.FullVersion getFullVersion() { - return fullVersion_; + return fullVersion_ == null ? Diadoc.Api.Proto.FullVersionProtos.FullVersion.getDefaultInstance() : fullVersion_; } /** * required .Diadoc.Api.Proto.FullVersion FullVersion = 1; */ + @java.lang.Override public Diadoc.Api.Proto.FullVersionProtos.FullVersionOrBuilder getFullVersionOrBuilder() { - return fullVersion_; + return fullVersion_ == null ? Diadoc.Api.Proto.FullVersionProtos.FullVersion.getDefaultInstance() : fullVersion_; } public static final int MESSAGETYPE_FIELD_NUMBER = 2; - private Diadoc.Api.Proto.Documents.DocumentProtos.MessageType messageType_; + private int messageType_ = 0; /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 2; + * @return Whether the messageType field is set. */ - public boolean hasMessageType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasMessageType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 2; + * @return The messageType. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType() { - return messageType_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType() { + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType result = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.forNumber(messageType_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown : result; } public static final int WORKFLOWID_FIELD_NUMBER = 3; - private int workflowId_; + private int workflowId_ = 0; /** * required int32 WorkflowId = 3; + * @return Whether the workflowId field is set. */ + @java.lang.Override public boolean hasWorkflowId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required int32 WorkflowId = 3; + * @return The workflowId. */ + @java.lang.Override public int getWorkflowId() { return workflowId_; } @@ -593,49 +426,62 @@ public int getWorkflowId() { private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants participants_; /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants Participants = 4; + * @return Whether the participants field is set. */ + @java.lang.Override public boolean hasParticipants() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants Participants = 4; + * @return The participants. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants getParticipants() { - return participants_; + return participants_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance() : participants_; } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants Participants = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantsOrBuilder getParticipantsOrBuilder() { - return participants_; + return participants_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance() : participants_; } public static final int DOCUMENTDIRECTION_FIELD_NUMBER = 5; - private Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection documentDirection_; + private int documentDirection_ = 0; /** * required .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 5; + * @return Whether the documentDirection field is set. */ - public boolean hasDocumentDirection() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasDocumentDirection() { + return ((bitField0_ & 0x00000010) != 0); } /** * required .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 5; + * @return The documentDirection. */ - public Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection() { - return documentDirection_; + @java.lang.Override public Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection() { + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection result = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.forNumber(documentDirection_); + return result == null ? Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection : result; } public static final int DEPARTMENTID_FIELD_NUMBER = 6; - private java.lang.Object departmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object departmentId_ = ""; /** * required string DepartmentId = 6; + * @return Whether the departmentId field is set. */ + @java.lang.Override public boolean hasDepartmentId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required string DepartmentId = 6; + * @return The departmentId. */ + @java.lang.Override public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; if (ref instanceof java.lang.String) { @@ -652,7 +498,9 @@ public java.lang.String getDepartmentId() { } /** * required string DepartmentId = 6; + * @return The bytes for departmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getDepartmentIdBytes() { java.lang.Object ref = departmentId_; @@ -668,16 +516,21 @@ public java.lang.String getDepartmentId() { } public static final int CUSTOMDOCUMENTID_FIELD_NUMBER = 7; - private java.lang.Object customDocumentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object customDocumentId_ = ""; /** * optional string CustomDocumentId = 7; + * @return Whether the customDocumentId field is set. */ + @java.lang.Override public boolean hasCustomDocumentId() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string CustomDocumentId = 7; + * @return The customDocumentId. */ + @java.lang.Override public java.lang.String getCustomDocumentId() { java.lang.Object ref = customDocumentId_; if (ref instanceof java.lang.String) { @@ -694,7 +547,9 @@ public java.lang.String getCustomDocumentId() { } /** * optional string CustomDocumentId = 7; + * @return The bytes for customDocumentId. */ + @java.lang.Override public com.google.protobuf.ByteString getCustomDocumentIdBytes() { java.lang.Object ref = customDocumentId_; @@ -710,16 +565,19 @@ public java.lang.String getCustomDocumentId() { } public static final int METADATA_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private java.util.List metadata_; /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 8; */ + @java.lang.Override public java.util.List getMetadataList() { return metadata_; } /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 8; */ + @java.lang.Override public java.util.List getMetadataOrBuilderList() { return metadata_; @@ -727,34 +585,40 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 8; */ + @java.lang.Override public int getMetadataCount() { return metadata_.size(); } /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem getMetadata(int index) { return metadata_.get(index); } /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder getMetadataOrBuilder( int index) { return metadata_.get(index); } public static final int CUSTOMDATA_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List customData_; /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 9; */ + @java.lang.Override public java.util.List getCustomDataList() { return customData_; } /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 9; */ + @java.lang.Override public java.util.List getCustomDataOrBuilderList() { return customData_; @@ -762,18 +626,21 @@ public java.util.List getC /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 9; */ + @java.lang.Override public int getCustomDataCount() { return customData_.size(); } /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 9; */ + @java.lang.Override public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem getCustomData(int index) { return customData_.get(index); } /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 9; */ + @java.lang.Override public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBuilder( int index) { return customData_.get(index); @@ -783,85 +650,107 @@ public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDa private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks documentLinks_; /** * required .Diadoc.Api.Proto.Docflow.DocumentLinks DocumentLinks = 10; + * @return Whether the documentLinks field is set. */ + @java.lang.Override public boolean hasDocumentLinks() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentLinks DocumentLinks = 10; + * @return The documentLinks. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks getDocumentLinks() { - return documentLinks_; + return documentLinks_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance() : documentLinks_; } /** * required .Diadoc.Api.Proto.Docflow.DocumentLinks DocumentLinks = 10; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinksOrBuilder getDocumentLinksOrBuilder() { - return documentLinks_; + return documentLinks_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance() : documentLinks_; } public static final int PACKETINFO_FIELD_NUMBER = 11; private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo packetInfo_; /** * required .Diadoc.Api.Proto.Docflow.PacketInfo PacketInfo = 11; + * @return Whether the packetInfo field is set. */ + @java.lang.Override public boolean hasPacketInfo() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required .Diadoc.Api.Proto.Docflow.PacketInfo PacketInfo = 11; + * @return The packetInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo getPacketInfo() { - return packetInfo_; + return packetInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance() : packetInfo_; } /** * required .Diadoc.Api.Proto.Docflow.PacketInfo PacketInfo = 11; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfoOrBuilder getPacketInfoOrBuilder() { - return packetInfo_; + return packetInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance() : packetInfo_; } public static final int ISREAD_FIELD_NUMBER = 12; - private boolean isRead_; + private boolean isRead_ = false; /** * required bool IsRead = 12; + * @return Whether the isRead field is set. */ + @java.lang.Override public boolean hasIsRead() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required bool IsRead = 12; + * @return The isRead. */ + @java.lang.Override public boolean getIsRead() { return isRead_; } public static final int ISDELETED_FIELD_NUMBER = 13; - private boolean isDeleted_; + private boolean isDeleted_ = false; /** * required bool IsDeleted = 13; + * @return Whether the isDeleted field is set. */ + @java.lang.Override public boolean hasIsDeleted() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required bool IsDeleted = 13; + * @return The isDeleted. */ + @java.lang.Override public boolean getIsDeleted() { return isDeleted_; } public static final int ISINVITATION_FIELD_NUMBER = 14; - private boolean isInvitation_; + private boolean isInvitation_ = false; /** * required bool IsInvitation = 14; + * @return Whether the isInvitation field is set. */ + @java.lang.Override public boolean hasIsInvitation() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * required bool IsInvitation = 14; + * @return The isInvitation. */ + @java.lang.Override public boolean getIsInvitation() { return isInvitation_; } @@ -870,97 +759,122 @@ public boolean getIsInvitation() { private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo letterInfo_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentLetterInfo LetterInfo = 15; + * @return Whether the letterInfo field is set. */ + @java.lang.Override public boolean hasLetterInfo() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentLetterInfo LetterInfo = 15; + * @return The letterInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo getLetterInfo() { - return letterInfo_; + return letterInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance() : letterInfo_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentLetterInfo LetterInfo = 15; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfoOrBuilder getLetterInfoOrBuilder() { - return letterInfo_; + return letterInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance() : letterInfo_; } public static final int DRAFTINFO_FIELD_NUMBER = 16; private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo draftInfo_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDraftInfo DraftInfo = 16; + * @return Whether the draftInfo field is set. */ + @java.lang.Override public boolean hasDraftInfo() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDraftInfo DraftInfo = 16; + * @return The draftInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo getDraftInfo() { - return draftInfo_; + return draftInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance() : draftInfo_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDraftInfo DraftInfo = 16; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfoOrBuilder getDraftInfoOrBuilder() { - return draftInfo_; + return draftInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance() : draftInfo_; } public static final int TEMPLATEINFO_FIELD_NUMBER = 17; private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo templateInfo_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentTemplateInfo TemplateInfo = 17; + * @return Whether the templateInfo field is set. */ + @java.lang.Override public boolean hasTemplateInfo() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentTemplateInfo TemplateInfo = 17; + * @return The templateInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo getTemplateInfo() { - return templateInfo_; + return templateInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance() : templateInfo_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentTemplateInfo TemplateInfo = 17; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfoOrBuilder getTemplateInfoOrBuilder() { - return templateInfo_; + return templateInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance() : templateInfo_; } public static final int ORIGIN_FIELD_NUMBER = 18; private Diadoc.Api.Proto.Documents.DocumentProtos.Origin origin_; /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 18; + * @return Whether the origin field is set. */ + @java.lang.Override public boolean hasOrigin() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 18; + * @return The origin. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getOrigin() { - return origin_; + return origin_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance() : origin_; } /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 18; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.OriginOrBuilder getOriginOrBuilder() { - return origin_; + return origin_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance() : origin_; } public static final int EDITINGSETTINGID_FIELD_NUMBER = 19; - private java.lang.Object editingSettingId_; + @SuppressWarnings("serial") + private volatile java.lang.Object editingSettingId_ = ""; /** * optional string EditingSettingId = 19 [default = ""]; + * @return Whether the editingSettingId field is set. */ + @java.lang.Override public boolean hasEditingSettingId() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional string EditingSettingId = 19 [default = ""]; + * @return The editingSettingId. */ + @java.lang.Override public java.lang.String getEditingSettingId() { java.lang.Object ref = editingSettingId_; if (ref instanceof java.lang.String) { @@ -977,7 +891,9 @@ public java.lang.String getEditingSettingId() { } /** * optional string EditingSettingId = 19 [default = ""]; + * @return The bytes for editingSettingId. */ + @java.lang.Override public com.google.protobuf.ByteString getEditingSettingIdBytes() { java.lang.Object ref = editingSettingId_; @@ -992,28 +908,8 @@ public java.lang.String getEditingSettingId() { } } - private void initFields() { - fullVersion_ = Diadoc.Api.Proto.FullVersionProtos.FullVersion.getDefaultInstance(); - messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; - workflowId_ = 0; - participants_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance(); - documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; - departmentId_ = ""; - customDocumentId_ = ""; - metadata_ = java.util.Collections.emptyList(); - customData_ = java.util.Collections.emptyList(); - documentLinks_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance(); - packetInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance(); - isRead_ = false; - isDeleted_ = false; - isInvitation_ = false; - letterInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance(); - draftInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance(); - templateInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance(); - origin_ = Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance(); - editingSettingId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1119,29 +1015,29 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, fullVersion_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFullVersion()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, messageType_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, messageType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, workflowId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, participants_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getParticipants()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, documentDirection_.getNumber()); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, documentDirection_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getDepartmentIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, departmentId_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getCustomDocumentIdBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, customDocumentId_); } for (int i = 0; i < metadata_.size(); i++) { output.writeMessage(8, metadata_.get(i)); @@ -1149,72 +1045,70 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < customData_.size(); i++) { output.writeMessage(9, customData_.get(i)); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(10, documentLinks_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(10, getDocumentLinks()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(11, packetInfo_); + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(11, getPacketInfo()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(12, isRead_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeBool(13, isDeleted_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(14, isInvitation_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(15, letterInfo_); + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(15, getLetterInfo()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(16, draftInfo_); + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(16, getDraftInfo()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(17, templateInfo_); + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(17, getTemplateInfo()); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeMessage(18, origin_); + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(18, getOrigin()); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeBytes(19, getEditingSettingIdBytes()); + if (((bitField0_ & 0x00010000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19, editingSettingId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fullVersion_); + .computeMessageSize(1, getFullVersion()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, messageType_.getNumber()); + .computeEnumSize(2, messageType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, workflowId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, participants_); + .computeMessageSize(4, getParticipants()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, documentDirection_.getNumber()); + .computeEnumSize(5, documentDirection_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getDepartmentIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, departmentId_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getCustomDocumentIdBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, customDocumentId_); } for (int i = 0; i < metadata_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -1224,58 +1118,253 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, customData_.get(i)); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, documentLinks_); + .computeMessageSize(10, getDocumentLinks()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, packetInfo_); + .computeMessageSize(11, getPacketInfo()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, isRead_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, isDeleted_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, isInvitation_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, letterInfo_); + .computeMessageSize(15, getLetterInfo()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, draftInfo_); + .computeMessageSize(16, getDraftInfo()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, templateInfo_); + .computeMessageSize(17, getTemplateInfo()); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, origin_); + .computeMessageSize(18, getOrigin()); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(19, getEditingSettingIdBytes()); + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19, editingSettingId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 other = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3) obj; + + if (hasFullVersion() != other.hasFullVersion()) return false; + if (hasFullVersion()) { + if (!getFullVersion() + .equals(other.getFullVersion())) return false; + } + if (hasMessageType() != other.hasMessageType()) return false; + if (hasMessageType()) { + if (messageType_ != other.messageType_) return false; + } + if (hasWorkflowId() != other.hasWorkflowId()) return false; + if (hasWorkflowId()) { + if (getWorkflowId() + != other.getWorkflowId()) return false; + } + if (hasParticipants() != other.hasParticipants()) return false; + if (hasParticipants()) { + if (!getParticipants() + .equals(other.getParticipants())) return false; + } + if (hasDocumentDirection() != other.hasDocumentDirection()) return false; + if (hasDocumentDirection()) { + if (documentDirection_ != other.documentDirection_) return false; + } + if (hasDepartmentId() != other.hasDepartmentId()) return false; + if (hasDepartmentId()) { + if (!getDepartmentId() + .equals(other.getDepartmentId())) return false; + } + if (hasCustomDocumentId() != other.hasCustomDocumentId()) return false; + if (hasCustomDocumentId()) { + if (!getCustomDocumentId() + .equals(other.getCustomDocumentId())) return false; + } + if (!getMetadataList() + .equals(other.getMetadataList())) return false; + if (!getCustomDataList() + .equals(other.getCustomDataList())) return false; + if (hasDocumentLinks() != other.hasDocumentLinks()) return false; + if (hasDocumentLinks()) { + if (!getDocumentLinks() + .equals(other.getDocumentLinks())) return false; + } + if (hasPacketInfo() != other.hasPacketInfo()) return false; + if (hasPacketInfo()) { + if (!getPacketInfo() + .equals(other.getPacketInfo())) return false; + } + if (hasIsRead() != other.hasIsRead()) return false; + if (hasIsRead()) { + if (getIsRead() + != other.getIsRead()) return false; + } + if (hasIsDeleted() != other.hasIsDeleted()) return false; + if (hasIsDeleted()) { + if (getIsDeleted() + != other.getIsDeleted()) return false; + } + if (hasIsInvitation() != other.hasIsInvitation()) return false; + if (hasIsInvitation()) { + if (getIsInvitation() + != other.getIsInvitation()) return false; + } + if (hasLetterInfo() != other.hasLetterInfo()) return false; + if (hasLetterInfo()) { + if (!getLetterInfo() + .equals(other.getLetterInfo())) return false; + } + if (hasDraftInfo() != other.hasDraftInfo()) return false; + if (hasDraftInfo()) { + if (!getDraftInfo() + .equals(other.getDraftInfo())) return false; + } + if (hasTemplateInfo() != other.hasTemplateInfo()) return false; + if (hasTemplateInfo()) { + if (!getTemplateInfo() + .equals(other.getTemplateInfo())) return false; + } + if (hasOrigin() != other.hasOrigin()) return false; + if (hasOrigin()) { + if (!getOrigin() + .equals(other.getOrigin())) return false; + } + if (hasEditingSettingId() != other.hasEditingSettingId()) return false; + if (hasEditingSettingId()) { + if (!getEditingSettingId() + .equals(other.getEditingSettingId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFullVersion()) { + hash = (37 * hash) + FULLVERSION_FIELD_NUMBER; + hash = (53 * hash) + getFullVersion().hashCode(); + } + if (hasMessageType()) { + hash = (37 * hash) + MESSAGETYPE_FIELD_NUMBER; + hash = (53 * hash) + messageType_; + } + if (hasWorkflowId()) { + hash = (37 * hash) + WORKFLOWID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId(); + } + if (hasParticipants()) { + hash = (37 * hash) + PARTICIPANTS_FIELD_NUMBER; + hash = (53 * hash) + getParticipants().hashCode(); + } + if (hasDocumentDirection()) { + hash = (37 * hash) + DOCUMENTDIRECTION_FIELD_NUMBER; + hash = (53 * hash) + documentDirection_; + } + if (hasDepartmentId()) { + hash = (37 * hash) + DEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDepartmentId().hashCode(); + } + if (hasCustomDocumentId()) { + hash = (37 * hash) + CUSTOMDOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getCustomDocumentId().hashCode(); + } + if (getMetadataCount() > 0) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadataList().hashCode(); + } + if (getCustomDataCount() > 0) { + hash = (37 * hash) + CUSTOMDATA_FIELD_NUMBER; + hash = (53 * hash) + getCustomDataList().hashCode(); + } + if (hasDocumentLinks()) { + hash = (37 * hash) + DOCUMENTLINKS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentLinks().hashCode(); + } + if (hasPacketInfo()) { + hash = (37 * hash) + PACKETINFO_FIELD_NUMBER; + hash = (53 * hash) + getPacketInfo().hashCode(); + } + if (hasIsRead()) { + hash = (37 * hash) + ISREAD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRead()); + } + if (hasIsDeleted()) { + hash = (37 * hash) + ISDELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDeleted()); + } + if (hasIsInvitation()) { + hash = (37 * hash) + ISINVITATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsInvitation()); + } + if (hasLetterInfo()) { + hash = (37 * hash) + LETTERINFO_FIELD_NUMBER; + hash = (53 * hash) + getLetterInfo().hashCode(); + } + if (hasDraftInfo()) { + hash = (37 * hash) + DRAFTINFO_FIELD_NUMBER; + hash = (53 * hash) + getDraftInfo().hashCode(); + } + if (hasTemplateInfo()) { + hash = (37 * hash) + TEMPLATEINFO_FIELD_NUMBER; + hash = (53 * hash) + getTemplateInfo().hashCode(); + } + if (hasOrigin()) { + hash = (37 * hash) + ORIGIN_FIELD_NUMBER; + hash = (53 * hash) + getOrigin().hashCode(); + } + if (hasEditingSettingId()) { + hash = (37 * hash) + EDITINGSETTINGID_FIELD_NUMBER; + hash = (53 * hash) + getEditingSettingId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1299,42 +1388,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parse } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1354,6 +1458,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_fieldAccessorTable @@ -1372,7 +1477,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getFullVersionFieldBuilder(); getParticipantsFieldBuilder(); getMetadataFieldBuilder(); @@ -1385,106 +1491,88 @@ private void maybeForceBuilderInitialization() { getOriginFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (fullVersionBuilder_ == null) { - fullVersion_ = Diadoc.Api.Proto.FullVersionProtos.FullVersion.getDefaultInstance(); - } else { - fullVersionBuilder_.clear(); + bitField0_ = 0; + fullVersion_ = null; + if (fullVersionBuilder_ != null) { + fullVersionBuilder_.dispose(); + fullVersionBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; - bitField0_ = (bitField0_ & ~0x00000002); + messageType_ = 0; workflowId_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - if (participantsBuilder_ == null) { - participants_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance(); - } else { - participantsBuilder_.clear(); + participants_ = null; + if (participantsBuilder_ != null) { + participantsBuilder_.dispose(); + participantsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; - bitField0_ = (bitField0_ & ~0x00000010); + documentDirection_ = 0; departmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); customDocumentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); if (metadataBuilder_ == null) { metadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); } else { + metadata_ = null; metadataBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000080); if (customDataBuilder_ == null) { customData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); } else { + customData_ = null; customDataBuilder_.clear(); } - if (documentLinksBuilder_ == null) { - documentLinks_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance(); - } else { - documentLinksBuilder_.clear(); + bitField0_ = (bitField0_ & ~0x00000100); + documentLinks_ = null; + if (documentLinksBuilder_ != null) { + documentLinksBuilder_.dispose(); + documentLinksBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000200); - if (packetInfoBuilder_ == null) { - packetInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance(); - } else { - packetInfoBuilder_.clear(); + packetInfo_ = null; + if (packetInfoBuilder_ != null) { + packetInfoBuilder_.dispose(); + packetInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000400); isRead_ = false; - bitField0_ = (bitField0_ & ~0x00000800); isDeleted_ = false; - bitField0_ = (bitField0_ & ~0x00001000); isInvitation_ = false; - bitField0_ = (bitField0_ & ~0x00002000); - if (letterInfoBuilder_ == null) { - letterInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance(); - } else { - letterInfoBuilder_.clear(); + letterInfo_ = null; + if (letterInfoBuilder_ != null) { + letterInfoBuilder_.dispose(); + letterInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00004000); - if (draftInfoBuilder_ == null) { - draftInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance(); - } else { - draftInfoBuilder_.clear(); + draftInfo_ = null; + if (draftInfoBuilder_ != null) { + draftInfoBuilder_.dispose(); + draftInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00008000); - if (templateInfoBuilder_ == null) { - templateInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance(); - } else { - templateInfoBuilder_.clear(); + templateInfo_ = null; + if (templateInfoBuilder_ != null) { + templateInfoBuilder_.dispose(); + templateInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00010000); - if (originBuilder_ == null) { - origin_ = Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance(); - } else { - originBuilder_.clear(); + origin_ = null; + if (originBuilder_ != null) { + originBuilder_.dispose(); + originBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00020000); editingSettingId_ = ""; - bitField0_ = (bitField0_ & ~0x00040000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 build() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 result = buildPartial(); if (!result.isInitialized()) { @@ -1493,48 +1581,18 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 result = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (fullVersionBuilder_ == null) { - result.fullVersion_ = fullVersion_; - } else { - result.fullVersion_ = fullVersionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.messageType_ = messageType_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.workflowId_ = workflowId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (participantsBuilder_ == null) { - result.participants_ = participants_; - } else { - result.participants_ = participantsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.documentDirection_ = documentDirection_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.departmentId_ = departmentId_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.customDocumentId_ = customDocumentId_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 result) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { metadata_ = java.util.Collections.unmodifiableList(metadata_); bitField0_ = (bitField0_ & ~0x00000080); } @@ -1543,7 +1601,7 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 buildPartial result.metadata_ = metadataBuilder_.build(); } if (customDataBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { customData_ = java.util.Collections.unmodifiableList(customData_); bitField0_ = (bitField0_ & ~0x00000100); } @@ -1551,75 +1609,99 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 buildPartial } else { result.customData_ = customDataBuilder_.build(); } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000080; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fullVersion_ = fullVersionBuilder_ == null + ? fullVersion_ + : fullVersionBuilder_.build(); + to_bitField0_ |= 0x00000001; } - if (documentLinksBuilder_ == null) { - result.documentLinks_ = documentLinks_; - } else { - result.documentLinks_ = documentLinksBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.messageType_ = messageType_; + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000100; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workflowId_ = workflowId_; + to_bitField0_ |= 0x00000004; } - if (packetInfoBuilder_ == null) { - result.packetInfo_ = packetInfo_; - } else { - result.packetInfo_ = packetInfoBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.participants_ = participantsBuilder_ == null + ? participants_ + : participantsBuilder_.build(); + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000200; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.documentDirection_ = documentDirection_; + to_bitField0_ |= 0x00000010; } - result.isRead_ = isRead_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00000400; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.departmentId_ = departmentId_; + to_bitField0_ |= 0x00000020; } - result.isDeleted_ = isDeleted_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.customDocumentId_ = customDocumentId_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.documentLinks_ = documentLinksBuilder_ == null + ? documentLinks_ + : documentLinksBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.packetInfo_ = packetInfoBuilder_ == null + ? packetInfo_ + : packetInfoBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.isRead_ = isRead_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.isDeleted_ = isDeleted_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.isInvitation_ = isInvitation_; to_bitField0_ |= 0x00000800; } - result.isInvitation_ = isInvitation_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + if (((from_bitField0_ & 0x00004000) != 0)) { + result.letterInfo_ = letterInfoBuilder_ == null + ? letterInfo_ + : letterInfoBuilder_.build(); to_bitField0_ |= 0x00001000; } - if (letterInfoBuilder_ == null) { - result.letterInfo_ = letterInfo_; - } else { - result.letterInfo_ = letterInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00008000) != 0)) { + result.draftInfo_ = draftInfoBuilder_ == null + ? draftInfo_ + : draftInfoBuilder_.build(); to_bitField0_ |= 0x00002000; } - if (draftInfoBuilder_ == null) { - result.draftInfo_ = draftInfo_; - } else { - result.draftInfo_ = draftInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { + if (((from_bitField0_ & 0x00010000) != 0)) { + result.templateInfo_ = templateInfoBuilder_ == null + ? templateInfo_ + : templateInfoBuilder_.build(); to_bitField0_ |= 0x00004000; } - if (templateInfoBuilder_ == null) { - result.templateInfo_ = templateInfo_; - } else { - result.templateInfo_ = templateInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { + if (((from_bitField0_ & 0x00020000) != 0)) { + result.origin_ = originBuilder_ == null + ? origin_ + : originBuilder_.build(); to_bitField0_ |= 0x00008000; } - if (originBuilder_ == null) { - result.origin_ = origin_; - } else { - result.origin_ = originBuilder_.build(); - } - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { + if (((from_bitField0_ & 0x00040000) != 0)) { + result.editingSettingId_ = editingSettingId_; to_bitField0_ |= 0x00010000; } - result.editingSettingId_ = editingSettingId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3)other); @@ -1647,13 +1729,13 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentI setDocumentDirection(other.getDocumentDirection()); } if (other.hasDepartmentId()) { - bitField0_ |= 0x00000020; departmentId_ = other.departmentId_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasCustomDocumentId()) { - bitField0_ |= 0x00000040; customDocumentId_ = other.customDocumentId_; + bitField0_ |= 0x00000040; onChanged(); } if (metadataBuilder_ == null) { @@ -1736,148 +1818,286 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentI mergeOrigin(other.getOrigin()); } if (other.hasEditingSettingId()) { - bitField0_ |= 0x00040000; editingSettingId_ = other.editingSettingId_; + bitField0_ |= 0x00040000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasFullVersion()) { - return false; } if (!hasMessageType()) { - return false; } if (!hasWorkflowId()) { - return false; } if (!hasParticipants()) { - return false; } if (!hasDocumentDirection()) { - return false; } if (!hasDepartmentId()) { - return false; } if (!hasDocumentLinks()) { - return false; } if (!hasPacketInfo()) { - return false; } if (!hasIsRead()) { - return false; } if (!hasIsDeleted()) { - return false; } if (!hasIsInvitation()) { - return false; } if (!getFullVersion().isInitialized()) { - return false; } if (!getParticipants().isInitialized()) { - return false; } for (int i = 0; i < getMetadataCount(); i++) { if (!getMetadata(i).isInitialized()) { - return false; } } for (int i = 0; i < getCustomDataCount(); i++) { if (!getCustomData(i).isInitialized()) { - return false; } } if (!getDocumentLinks().isInitialized()) { - return false; } if (!getPacketInfo().isInitialized()) { - return false; } if (hasLetterInfo()) { if (!getLetterInfo().isInitialized()) { - return false; } } if (hasDraftInfo()) { if (!getDraftInfo().isInitialized()) { - return false; } } if (hasTemplateInfo()) { if (!getTemplateInfo().isInitialized()) { - return false; } } if (hasOrigin()) { if (!getOrigin().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getFullVersionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + messageType_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + case 24: { + workflowId_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getParticipantsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection tmpValue = + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + documentDirection_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + case 50: { + departmentId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + customDocumentId_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem m = + input.readMessage( + Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.parser(), + extensionRegistry); + if (metadataBuilder_ == null) { + ensureMetadataIsMutable(); + metadata_.add(m); + } else { + metadataBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: { + Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem m = + input.readMessage( + Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.parser(), + extensionRegistry); + if (customDataBuilder_ == null) { + ensureCustomDataIsMutable(); + customData_.add(m); + } else { + customDataBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: { + input.readMessage( + getDocumentLinksFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + input.readMessage( + getPacketInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: { + isRead_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: { + isDeleted_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: { + isInvitation_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 122: { + input.readMessage( + getLetterInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + input.readMessage( + getDraftInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: { + input.readMessage( + getTemplateInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 146: { + input.readMessage( + getOriginFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 154: { + editingSettingId_ = input.readBytes(); + bitField0_ |= 0x00040000; + break; + } // case 154 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.FullVersionProtos.FullVersion fullVersion_ = Diadoc.Api.Proto.FullVersionProtos.FullVersion.getDefaultInstance(); + private Diadoc.Api.Proto.FullVersionProtos.FullVersion fullVersion_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.FullVersionProtos.FullVersion, Diadoc.Api.Proto.FullVersionProtos.FullVersion.Builder, Diadoc.Api.Proto.FullVersionProtos.FullVersionOrBuilder> fullVersionBuilder_; /** * required .Diadoc.Api.Proto.FullVersion FullVersion = 1; + * @return Whether the fullVersion field is set. */ public boolean hasFullVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.FullVersion FullVersion = 1; + * @return The fullVersion. */ public Diadoc.Api.Proto.FullVersionProtos.FullVersion getFullVersion() { if (fullVersionBuilder_ == null) { - return fullVersion_; + return fullVersion_ == null ? Diadoc.Api.Proto.FullVersionProtos.FullVersion.getDefaultInstance() : fullVersion_; } else { return fullVersionBuilder_.getMessage(); } @@ -1891,11 +2111,11 @@ public Builder setFullVersion(Diadoc.Api.Proto.FullVersionProtos.FullVersion val throw new NullPointerException(); } fullVersion_ = value; - onChanged(); } else { fullVersionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1905,11 +2125,11 @@ public Builder setFullVersion( Diadoc.Api.Proto.FullVersionProtos.FullVersion.Builder builderForValue) { if (fullVersionBuilder_ == null) { fullVersion_ = builderForValue.build(); - onChanged(); } else { fullVersionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1917,31 +2137,33 @@ public Builder setFullVersion( */ public Builder mergeFullVersion(Diadoc.Api.Proto.FullVersionProtos.FullVersion value) { if (fullVersionBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - fullVersion_ != Diadoc.Api.Proto.FullVersionProtos.FullVersion.getDefaultInstance()) { - fullVersion_ = - Diadoc.Api.Proto.FullVersionProtos.FullVersion.newBuilder(fullVersion_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + fullVersion_ != null && + fullVersion_ != Diadoc.Api.Proto.FullVersionProtos.FullVersion.getDefaultInstance()) { + getFullVersionBuilder().mergeFrom(value); } else { fullVersion_ = value; } - onChanged(); } else { fullVersionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (fullVersion_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.FullVersion FullVersion = 1; */ public Builder clearFullVersion() { - if (fullVersionBuilder_ == null) { - fullVersion_ = Diadoc.Api.Proto.FullVersionProtos.FullVersion.getDefaultInstance(); - onChanged(); - } else { - fullVersionBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + fullVersion_ = null; + if (fullVersionBuilder_ != null) { + fullVersionBuilder_.dispose(); + fullVersionBuilder_ = null; + } + onChanged(); return this; } /** @@ -1959,7 +2181,8 @@ public Diadoc.Api.Proto.FullVersionProtos.FullVersionOrBuilder getFullVersionOrB if (fullVersionBuilder_ != null) { return fullVersionBuilder_.getMessageOrBuilder(); } else { - return fullVersion_; + return fullVersion_ == null ? + Diadoc.Api.Proto.FullVersionProtos.FullVersion.getDefaultInstance() : fullVersion_; } } /** @@ -1979,37 +2202,44 @@ public Diadoc.Api.Proto.FullVersionProtos.FullVersionOrBuilder getFullVersionOrB return fullVersionBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.MessageType messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; + private int messageType_ = 0; /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 2; + * @return Whether the messageType field is set. */ - public boolean hasMessageType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasMessageType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 2; + * @return The messageType. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType() { - return messageType_; + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType result = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.forNumber(messageType_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown : result; } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 2; + * @param value The messageType to set. + * @return This builder for chaining. */ public Builder setMessageType(Diadoc.Api.Proto.Documents.DocumentProtos.MessageType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - messageType_ = value; + messageType_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 2; + * @return This builder for chaining. */ public Builder clearMessageType() { bitField0_ = (bitField0_ & ~0x00000002); - messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; + messageType_ = 0; onChanged(); return this; } @@ -2017,27 +2247,35 @@ public Builder clearMessageType() { private int workflowId_ ; /** * required int32 WorkflowId = 3; + * @return Whether the workflowId field is set. */ + @java.lang.Override public boolean hasWorkflowId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required int32 WorkflowId = 3; + * @return The workflowId. */ + @java.lang.Override public int getWorkflowId() { return workflowId_; } /** * required int32 WorkflowId = 3; + * @param value The workflowId to set. + * @return This builder for chaining. */ public Builder setWorkflowId(int value) { - bitField0_ |= 0x00000004; + workflowId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required int32 WorkflowId = 3; + * @return This builder for chaining. */ public Builder clearWorkflowId() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2046,21 +2284,23 @@ public Builder clearWorkflowId() { return this; } - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants participants_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants participants_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantsOrBuilder> participantsBuilder_; /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants Participants = 4; + * @return Whether the participants field is set. */ public boolean hasParticipants() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants Participants = 4; + * @return The participants. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants getParticipants() { if (participantsBuilder_ == null) { - return participants_; + return participants_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance() : participants_; } else { return participantsBuilder_.getMessage(); } @@ -2074,11 +2314,11 @@ public Builder setParticipants(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.Doc throw new NullPointerException(); } participants_ = value; - onChanged(); } else { participantsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2088,11 +2328,11 @@ public Builder setParticipants( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.Builder builderForValue) { if (participantsBuilder_ == null) { participants_ = builderForValue.build(); - onChanged(); } else { participantsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2100,31 +2340,33 @@ public Builder setParticipants( */ public Builder mergeParticipants(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants value) { if (participantsBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - participants_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance()) { - participants_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.newBuilder(participants_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + participants_ != null && + participants_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance()) { + getParticipantsBuilder().mergeFrom(value); } else { participants_ = value; } - onChanged(); } else { participantsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (participants_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants Participants = 4; */ public Builder clearParticipants() { - if (participantsBuilder_ == null) { - participants_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance(); - onChanged(); - } else { - participantsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + participants_ = null; + if (participantsBuilder_ != null) { + participantsBuilder_.dispose(); + participantsBuilder_ = null; + } + onChanged(); return this; } /** @@ -2142,7 +2384,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantsOrBuild if (participantsBuilder_ != null) { return participantsBuilder_.getMessageOrBuilder(); } else { - return participants_; + return participants_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance() : participants_; } } /** @@ -2162,37 +2405,44 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantsOrBuild return participantsBuilder_; } - private Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; + private int documentDirection_ = 0; /** * required .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 5; + * @return Whether the documentDirection field is set. */ - public boolean hasDocumentDirection() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasDocumentDirection() { + return ((bitField0_ & 0x00000010) != 0); } /** * required .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 5; + * @return The documentDirection. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection() { - return documentDirection_; + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection result = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.forNumber(documentDirection_); + return result == null ? Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection : result; } /** * required .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 5; + * @param value The documentDirection to set. + * @return This builder for chaining. */ public Builder setDocumentDirection(Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; - documentDirection_ = value; + documentDirection_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 5; + * @return This builder for chaining. */ public Builder clearDocumentDirection() { bitField0_ = (bitField0_ & ~0x00000010); - documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; + documentDirection_ = 0; onChanged(); return this; } @@ -2200,12 +2450,14 @@ public Builder clearDocumentDirection() { private java.lang.Object departmentId_ = ""; /** * required string DepartmentId = 6; + * @return Whether the departmentId field is set. */ public boolean hasDepartmentId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required string DepartmentId = 6; + * @return The departmentId. */ public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; @@ -2223,6 +2475,7 @@ public java.lang.String getDepartmentId() { } /** * required string DepartmentId = 6; + * @return The bytes for departmentId. */ public com.google.protobuf.ByteString getDepartmentIdBytes() { @@ -2239,36 +2492,37 @@ public java.lang.String getDepartmentId() { } /** * required string DepartmentId = 6; + * @param value The departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * required string DepartmentId = 6; + * @return This builder for chaining. */ public Builder clearDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000020); departmentId_ = getDefaultInstance().getDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * required string DepartmentId = 6; + * @param value The bytes for departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2276,12 +2530,14 @@ public Builder setDepartmentIdBytes( private java.lang.Object customDocumentId_ = ""; /** * optional string CustomDocumentId = 7; + * @return Whether the customDocumentId field is set. */ public boolean hasCustomDocumentId() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string CustomDocumentId = 7; + * @return The customDocumentId. */ public java.lang.String getCustomDocumentId() { java.lang.Object ref = customDocumentId_; @@ -2299,6 +2555,7 @@ public java.lang.String getCustomDocumentId() { } /** * optional string CustomDocumentId = 7; + * @return The bytes for customDocumentId. */ public com.google.protobuf.ByteString getCustomDocumentIdBytes() { @@ -2315,36 +2572,37 @@ public java.lang.String getCustomDocumentId() { } /** * optional string CustomDocumentId = 7; + * @param value The customDocumentId to set. + * @return This builder for chaining. */ public Builder setCustomDocumentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } customDocumentId_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional string CustomDocumentId = 7; + * @return This builder for chaining. */ public Builder clearCustomDocumentId() { - bitField0_ = (bitField0_ & ~0x00000040); customDocumentId_ = getDefaultInstance().getCustomDocumentId(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * optional string CustomDocumentId = 7; + * @param value The bytes for customDocumentId to set. + * @return This builder for chaining. */ public Builder setCustomDocumentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } customDocumentId_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2352,7 +2610,7 @@ public Builder setCustomDocumentIdBytes( private java.util.List metadata_ = java.util.Collections.emptyList(); private void ensureMetadataIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { + if (!((bitField0_ & 0x00000080) != 0)) { metadata_ = new java.util.ArrayList(metadata_); bitField0_ |= 0x00000080; } @@ -2581,7 +2839,7 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder metadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem, Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder, Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder>( metadata_, - ((bitField0_ & 0x00000080) == 0x00000080), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); metadata_ = null; @@ -2592,7 +2850,7 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder private java.util.List customData_ = java.util.Collections.emptyList(); private void ensureCustomDataIsMutable() { - if (!((bitField0_ & 0x00000100) == 0x00000100)) { + if (!((bitField0_ & 0x00000100) != 0)) { customData_ = new java.util.ArrayList(customData_); bitField0_ |= 0x00000100; } @@ -2821,7 +3079,7 @@ public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.Builder addCustomDat customDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem, Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.Builder, Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder>( customData_, - ((bitField0_ & 0x00000100) == 0x00000100), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); customData_ = null; @@ -2829,21 +3087,23 @@ public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.Builder addCustomDat return customDataBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks documentLinks_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks documentLinks_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinksOrBuilder> documentLinksBuilder_; /** * required .Diadoc.Api.Proto.Docflow.DocumentLinks DocumentLinks = 10; + * @return Whether the documentLinks field is set. */ public boolean hasDocumentLinks() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentLinks DocumentLinks = 10; + * @return The documentLinks. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks getDocumentLinks() { if (documentLinksBuilder_ == null) { - return documentLinks_; + return documentLinks_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance() : documentLinks_; } else { return documentLinksBuilder_.getMessage(); } @@ -2857,11 +3117,11 @@ public Builder setDocumentLinks(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.Do throw new NullPointerException(); } documentLinks_ = value; - onChanged(); } else { documentLinksBuilder_.setMessage(value); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2871,11 +3131,11 @@ public Builder setDocumentLinks( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.Builder builderForValue) { if (documentLinksBuilder_ == null) { documentLinks_ = builderForValue.build(); - onChanged(); } else { documentLinksBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2883,31 +3143,33 @@ public Builder setDocumentLinks( */ public Builder mergeDocumentLinks(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks value) { if (documentLinksBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - documentLinks_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance()) { - documentLinks_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.newBuilder(documentLinks_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) && + documentLinks_ != null && + documentLinks_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance()) { + getDocumentLinksBuilder().mergeFrom(value); } else { documentLinks_ = value; } - onChanged(); } else { documentLinksBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; + if (documentLinks_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.DocumentLinks DocumentLinks = 10; */ public Builder clearDocumentLinks() { - if (documentLinksBuilder_ == null) { - documentLinks_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance(); - onChanged(); - } else { - documentLinksBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000200); + documentLinks_ = null; + if (documentLinksBuilder_ != null) { + documentLinksBuilder_.dispose(); + documentLinksBuilder_ = null; + } + onChanged(); return this; } /** @@ -2925,7 +3187,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinksOrBuilder getD if (documentLinksBuilder_ != null) { return documentLinksBuilder_.getMessageOrBuilder(); } else { - return documentLinks_; + return documentLinks_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance() : documentLinks_; } } /** @@ -2945,21 +3208,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinksOrBuilder getD return documentLinksBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo packetInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo packetInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfoOrBuilder> packetInfoBuilder_; /** * required .Diadoc.Api.Proto.Docflow.PacketInfo PacketInfo = 11; + * @return Whether the packetInfo field is set. */ public boolean hasPacketInfo() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required .Diadoc.Api.Proto.Docflow.PacketInfo PacketInfo = 11; + * @return The packetInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo getPacketInfo() { if (packetInfoBuilder_ == null) { - return packetInfo_; + return packetInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance() : packetInfo_; } else { return packetInfoBuilder_.getMessage(); } @@ -2973,11 +3238,11 @@ public Builder setPacketInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.Packe throw new NullPointerException(); } packetInfo_ = value; - onChanged(); } else { packetInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -2987,11 +3252,11 @@ public Builder setPacketInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.Builder builderForValue) { if (packetInfoBuilder_ == null) { packetInfo_ = builderForValue.build(); - onChanged(); } else { packetInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -2999,31 +3264,33 @@ public Builder setPacketInfo( */ public Builder mergePacketInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo value) { if (packetInfoBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400) && - packetInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance()) { - packetInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.newBuilder(packetInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) && + packetInfo_ != null && + packetInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance()) { + getPacketInfoBuilder().mergeFrom(value); } else { packetInfo_ = value; } - onChanged(); } else { packetInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; + if (packetInfo_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.PacketInfo PacketInfo = 11; */ public Builder clearPacketInfo() { - if (packetInfoBuilder_ == null) { - packetInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance(); - onChanged(); - } else { - packetInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000400); + packetInfo_ = null; + if (packetInfoBuilder_ != null) { + packetInfoBuilder_.dispose(); + packetInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -3041,7 +3308,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfoOrBuilder getPack if (packetInfoBuilder_ != null) { return packetInfoBuilder_.getMessageOrBuilder(); } else { - return packetInfo_; + return packetInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance() : packetInfo_; } } /** @@ -3064,27 +3332,35 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfoOrBuilder getPack private boolean isRead_ ; /** * required bool IsRead = 12; + * @return Whether the isRead field is set. */ + @java.lang.Override public boolean hasIsRead() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * required bool IsRead = 12; + * @return The isRead. */ + @java.lang.Override public boolean getIsRead() { return isRead_; } /** * required bool IsRead = 12; + * @param value The isRead to set. + * @return This builder for chaining. */ public Builder setIsRead(boolean value) { - bitField0_ |= 0x00000800; + isRead_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * required bool IsRead = 12; + * @return This builder for chaining. */ public Builder clearIsRead() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3096,27 +3372,35 @@ public Builder clearIsRead() { private boolean isDeleted_ ; /** * required bool IsDeleted = 13; + * @return Whether the isDeleted field is set. */ + @java.lang.Override public boolean hasIsDeleted() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * required bool IsDeleted = 13; + * @return The isDeleted. */ + @java.lang.Override public boolean getIsDeleted() { return isDeleted_; } /** * required bool IsDeleted = 13; + * @param value The isDeleted to set. + * @return This builder for chaining. */ public Builder setIsDeleted(boolean value) { - bitField0_ |= 0x00001000; + isDeleted_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } /** * required bool IsDeleted = 13; + * @return This builder for chaining. */ public Builder clearIsDeleted() { bitField0_ = (bitField0_ & ~0x00001000); @@ -3128,27 +3412,35 @@ public Builder clearIsDeleted() { private boolean isInvitation_ ; /** * required bool IsInvitation = 14; + * @return Whether the isInvitation field is set. */ + @java.lang.Override public boolean hasIsInvitation() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * required bool IsInvitation = 14; + * @return The isInvitation. */ + @java.lang.Override public boolean getIsInvitation() { return isInvitation_; } /** * required bool IsInvitation = 14; + * @param value The isInvitation to set. + * @return This builder for chaining. */ public Builder setIsInvitation(boolean value) { - bitField0_ |= 0x00002000; + isInvitation_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } /** * required bool IsInvitation = 14; + * @return This builder for chaining. */ public Builder clearIsInvitation() { bitField0_ = (bitField0_ & ~0x00002000); @@ -3157,21 +3449,23 @@ public Builder clearIsInvitation() { return this; } - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo letterInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo letterInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfoOrBuilder> letterInfoBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentLetterInfo LetterInfo = 15; + * @return Whether the letterInfo field is set. */ public boolean hasLetterInfo() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentLetterInfo LetterInfo = 15; + * @return The letterInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo getLetterInfo() { if (letterInfoBuilder_ == null) { - return letterInfo_; + return letterInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance() : letterInfo_; } else { return letterInfoBuilder_.getMessage(); } @@ -3185,11 +3479,11 @@ public Builder setLetterInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.Docum throw new NullPointerException(); } letterInfo_ = value; - onChanged(); } else { letterInfoBuilder_.setMessage(value); } bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -3199,11 +3493,11 @@ public Builder setLetterInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.Builder builderForValue) { if (letterInfoBuilder_ == null) { letterInfo_ = builderForValue.build(); - onChanged(); } else { letterInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -3211,31 +3505,33 @@ public Builder setLetterInfo( */ public Builder mergeLetterInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo value) { if (letterInfoBuilder_ == null) { - if (((bitField0_ & 0x00004000) == 0x00004000) && - letterInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance()) { - letterInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.newBuilder(letterInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00004000) != 0) && + letterInfo_ != null && + letterInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance()) { + getLetterInfoBuilder().mergeFrom(value); } else { letterInfo_ = value; } - onChanged(); } else { letterInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00004000; + if (letterInfo_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentLetterInfo LetterInfo = 15; */ public Builder clearLetterInfo() { - if (letterInfoBuilder_ == null) { - letterInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance(); - onChanged(); - } else { - letterInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00004000); + letterInfo_ = null; + if (letterInfoBuilder_ != null) { + letterInfoBuilder_.dispose(); + letterInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -3253,7 +3549,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfoOrBuilder if (letterInfoBuilder_ != null) { return letterInfoBuilder_.getMessageOrBuilder(); } else { - return letterInfo_; + return letterInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance() : letterInfo_; } } /** @@ -3273,21 +3570,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfoOrBuilder return letterInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo draftInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo draftInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfoOrBuilder> draftInfoBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentDraftInfo DraftInfo = 16; + * @return Whether the draftInfo field is set. */ public boolean hasDraftInfo() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDraftInfo DraftInfo = 16; + * @return The draftInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo getDraftInfo() { if (draftInfoBuilder_ == null) { - return draftInfo_; + return draftInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance() : draftInfo_; } else { return draftInfoBuilder_.getMessage(); } @@ -3301,11 +3600,11 @@ public Builder setDraftInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.Docume throw new NullPointerException(); } draftInfo_ = value; - onChanged(); } else { draftInfoBuilder_.setMessage(value); } bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -3315,11 +3614,11 @@ public Builder setDraftInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.Builder builderForValue) { if (draftInfoBuilder_ == null) { draftInfo_ = builderForValue.build(); - onChanged(); } else { draftInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -3327,31 +3626,33 @@ public Builder setDraftInfo( */ public Builder mergeDraftInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo value) { if (draftInfoBuilder_ == null) { - if (((bitField0_ & 0x00008000) == 0x00008000) && - draftInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance()) { - draftInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.newBuilder(draftInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00008000) != 0) && + draftInfo_ != null && + draftInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance()) { + getDraftInfoBuilder().mergeFrom(value); } else { draftInfo_ = value; } - onChanged(); } else { draftInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00008000; + if (draftInfo_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentDraftInfo DraftInfo = 16; */ public Builder clearDraftInfo() { - if (draftInfoBuilder_ == null) { - draftInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance(); - onChanged(); - } else { - draftInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00008000); + draftInfo_ = null; + if (draftInfoBuilder_ != null) { + draftInfoBuilder_.dispose(); + draftInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -3369,7 +3670,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfoOrBuilder if (draftInfoBuilder_ != null) { return draftInfoBuilder_.getMessageOrBuilder(); } else { - return draftInfo_; + return draftInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance() : draftInfo_; } } /** @@ -3389,21 +3691,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfoOrBuilder return draftInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo templateInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo templateInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfoOrBuilder> templateInfoBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentTemplateInfo TemplateInfo = 17; + * @return Whether the templateInfo field is set. */ public boolean hasTemplateInfo() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentTemplateInfo TemplateInfo = 17; + * @return The templateInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo getTemplateInfo() { if (templateInfoBuilder_ == null) { - return templateInfo_; + return templateInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance() : templateInfo_; } else { return templateInfoBuilder_.getMessage(); } @@ -3417,11 +3721,11 @@ public Builder setTemplateInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.Doc throw new NullPointerException(); } templateInfo_ = value; - onChanged(); } else { templateInfoBuilder_.setMessage(value); } bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -3431,11 +3735,11 @@ public Builder setTemplateInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.Builder builderForValue) { if (templateInfoBuilder_ == null) { templateInfo_ = builderForValue.build(); - onChanged(); } else { templateInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -3443,31 +3747,33 @@ public Builder setTemplateInfo( */ public Builder mergeTemplateInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo value) { if (templateInfoBuilder_ == null) { - if (((bitField0_ & 0x00010000) == 0x00010000) && - templateInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance()) { - templateInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.newBuilder(templateInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00010000) != 0) && + templateInfo_ != null && + templateInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance()) { + getTemplateInfoBuilder().mergeFrom(value); } else { templateInfo_ = value; } - onChanged(); } else { templateInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00010000; + if (templateInfo_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentTemplateInfo TemplateInfo = 17; */ public Builder clearTemplateInfo() { - if (templateInfoBuilder_ == null) { - templateInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance(); - onChanged(); - } else { - templateInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00010000); + templateInfo_ = null; + if (templateInfoBuilder_ != null) { + templateInfoBuilder_.dispose(); + templateInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -3485,7 +3791,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfoOrBuild if (templateInfoBuilder_ != null) { return templateInfoBuilder_.getMessageOrBuilder(); } else { - return templateInfo_; + return templateInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance() : templateInfo_; } } /** @@ -3505,21 +3812,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfoOrBuild return templateInfoBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.Origin origin_ = Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.DocumentProtos.Origin origin_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.DocumentProtos.Origin, Diadoc.Api.Proto.Documents.DocumentProtos.Origin.Builder, Diadoc.Api.Proto.Documents.DocumentProtos.OriginOrBuilder> originBuilder_; /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 18; + * @return Whether the origin field is set. */ public boolean hasOrigin() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00020000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 18; + * @return The origin. */ public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getOrigin() { if (originBuilder_ == null) { - return origin_; + return origin_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance() : origin_; } else { return originBuilder_.getMessage(); } @@ -3533,11 +3842,11 @@ public Builder setOrigin(Diadoc.Api.Proto.Documents.DocumentProtos.Origin value) throw new NullPointerException(); } origin_ = value; - onChanged(); } else { originBuilder_.setMessage(value); } bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -3547,11 +3856,11 @@ public Builder setOrigin( Diadoc.Api.Proto.Documents.DocumentProtos.Origin.Builder builderForValue) { if (originBuilder_ == null) { origin_ = builderForValue.build(); - onChanged(); } else { originBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -3559,31 +3868,33 @@ public Builder setOrigin( */ public Builder mergeOrigin(Diadoc.Api.Proto.Documents.DocumentProtos.Origin value) { if (originBuilder_ == null) { - if (((bitField0_ & 0x00020000) == 0x00020000) && - origin_ != Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance()) { - origin_ = - Diadoc.Api.Proto.Documents.DocumentProtos.Origin.newBuilder(origin_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00020000) != 0) && + origin_ != null && + origin_ != Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance()) { + getOriginBuilder().mergeFrom(value); } else { origin_ = value; } - onChanged(); } else { originBuilder_.mergeFrom(value); } - bitField0_ |= 0x00020000; + if (origin_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 18; */ public Builder clearOrigin() { - if (originBuilder_ == null) { - origin_ = Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance(); - onChanged(); - } else { - originBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00020000); + origin_ = null; + if (originBuilder_ != null) { + originBuilder_.dispose(); + originBuilder_ = null; + } + onChanged(); return this; } /** @@ -3601,7 +3912,8 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.OriginOrBuilder getOriginOrBuil if (originBuilder_ != null) { return originBuilder_.getMessageOrBuilder(); } else { - return origin_; + return origin_ == null ? + Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance() : origin_; } } /** @@ -3624,12 +3936,14 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.OriginOrBuilder getOriginOrBuil private java.lang.Object editingSettingId_ = ""; /** * optional string EditingSettingId = 19 [default = ""]; + * @return Whether the editingSettingId field is set. */ public boolean hasEditingSettingId() { - return ((bitField0_ & 0x00040000) == 0x00040000); + return ((bitField0_ & 0x00040000) != 0); } /** * optional string EditingSettingId = 19 [default = ""]; + * @return The editingSettingId. */ public java.lang.String getEditingSettingId() { java.lang.Object ref = editingSettingId_; @@ -3647,6 +3961,7 @@ public java.lang.String getEditingSettingId() { } /** * optional string EditingSettingId = 19 [default = ""]; + * @return The bytes for editingSettingId. */ public com.google.protobuf.ByteString getEditingSettingIdBytes() { @@ -3663,36 +3978,37 @@ public java.lang.String getEditingSettingId() { } /** * optional string EditingSettingId = 19 [default = ""]; + * @param value The editingSettingId to set. + * @return This builder for chaining. */ public Builder setEditingSettingId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00040000; + if (value == null) { throw new NullPointerException(); } editingSettingId_ = value; + bitField0_ |= 0x00040000; onChanged(); return this; } /** * optional string EditingSettingId = 19 [default = ""]; + * @return This builder for chaining. */ public Builder clearEditingSettingId() { - bitField0_ = (bitField0_ & ~0x00040000); editingSettingId_ = getDefaultInstance().getEditingSettingId(); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } /** * optional string EditingSettingId = 19 [default = ""]; + * @param value The bytes for editingSettingId to set. + * @return This builder for chaining. */ public Builder setEditingSettingIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00040000; + if (value == null) { throw new NullPointerException(); } editingSettingId_ = value; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -3700,12 +4016,52 @@ public Builder setEditingSettingIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentInfoV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentInfoV3) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 DEFAULT_INSTANCE; static { - defaultInstance = new DocumentInfoV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInfoV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentInfoV3) } public interface DocumentParticipantsOrBuilder extends @@ -3714,10 +4070,12 @@ public interface DocumentParticipantsOrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipant Sender = 1; + * @return Whether the sender field is set. */ boolean hasSender(); /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipant Sender = 1; + * @return The sender. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getSender(); /** @@ -3727,10 +4085,12 @@ public interface DocumentParticipantsOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Proxy = 2; + * @return Whether the proxy field is set. */ boolean hasProxy(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Proxy = 2; + * @return The proxy. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getProxy(); /** @@ -3740,10 +4100,12 @@ public interface DocumentParticipantsOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Recipient = 3; + * @return Whether the recipient field is set. */ boolean hasRecipient(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Recipient = 3; + * @return The recipient. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getRecipient(); /** @@ -3753,10 +4115,12 @@ public interface DocumentParticipantsOrBuilder extends /** * required bool IsInternal = 4; + * @return Whether the isInternal field is set. */ boolean hasIsInternal(); /** * required bool IsInternal = 4; + * @return The isInternal. */ boolean getIsInternal(); } @@ -3767,112 +4131,29 @@ public static final class DocumentParticipants extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentParticipants) DocumentParticipantsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentParticipants.class.getName()); + } // Use DocumentParticipants.newBuilder() to construct. private DocumentParticipants(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentParticipants(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentParticipants defaultInstance; - public static DocumentParticipants getDefaultInstance() { - return defaultInstance; } - - public DocumentParticipants getDefaultInstanceForType() { - return defaultInstance; + private DocumentParticipants() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentParticipants( - 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: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = sender_.toBuilder(); - } - sender_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sender_); - sender_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = proxy_.toBuilder(); - } - proxy_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proxy_); - proxy_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = recipient_.toBuilder(); - } - recipient_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipient_); - recipient_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 32: { - bitField0_ |= 0x00000008; - isInternal_ = input.readBool(); - 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.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipants_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipants_fieldAccessorTable @@ -3880,107 +4161,106 @@ private DocumentParticipants( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.class, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentParticipants parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentParticipants(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int SENDER_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant sender_; /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipant Sender = 1; + * @return Whether the sender field is set. */ + @java.lang.Override public boolean hasSender() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipant Sender = 1; + * @return The sender. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getSender() { - return sender_; + return sender_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : sender_; } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipant Sender = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilder getSenderOrBuilder() { - return sender_; + return sender_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : sender_; } public static final int PROXY_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant proxy_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Proxy = 2; + * @return Whether the proxy field is set. */ + @java.lang.Override public boolean hasProxy() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Proxy = 2; + * @return The proxy. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getProxy() { - return proxy_; + return proxy_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : proxy_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Proxy = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilder getProxyOrBuilder() { - return proxy_; + return proxy_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : proxy_; } public static final int RECIPIENT_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant recipient_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Recipient = 3; + * @return Whether the recipient field is set. */ + @java.lang.Override public boolean hasRecipient() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Recipient = 3; + * @return The recipient. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getRecipient() { - return recipient_; + return recipient_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : recipient_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Recipient = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilder getRecipientOrBuilder() { - return recipient_; + return recipient_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : recipient_; } public static final int ISINTERNAL_FIELD_NUMBER = 4; - private boolean isInternal_; + private boolean isInternal_ = false; /** * required bool IsInternal = 4; + * @return Whether the isInternal field is set. */ + @java.lang.Override public boolean hasIsInternal() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required bool IsInternal = 4; + * @return The isInternal. */ + @java.lang.Override public boolean getIsInternal() { return isInternal_; } - private void initFields() { - sender_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); - proxy_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); - recipient_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); - isInternal_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4014,58 +4294,125 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, sender_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSender()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, proxy_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getProxy()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, recipient_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getRecipient()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, isInternal_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sender_); + .computeMessageSize(1, getSender()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, proxy_); + .computeMessageSize(2, getProxy()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, recipient_); + .computeMessageSize(3, getRecipient()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, isInternal_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants other = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants) obj; + + if (hasSender() != other.hasSender()) return false; + if (hasSender()) { + if (!getSender() + .equals(other.getSender())) return false; + } + if (hasProxy() != other.hasProxy()) return false; + if (hasProxy()) { + if (!getProxy() + .equals(other.getProxy())) return false; + } + if (hasRecipient() != other.hasRecipient()) return false; + if (hasRecipient()) { + if (!getRecipient() + .equals(other.getRecipient())) return false; + } + if (hasIsInternal() != other.hasIsInternal()) return false; + if (hasIsInternal()) { + if (getIsInternal() + != other.getIsInternal()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSender()) { + hash = (37 * hash) + SENDER_FIELD_NUMBER; + hash = (53 * hash) + getSender().hashCode(); + } + if (hasProxy()) { + hash = (37 * hash) + PROXY_FIELD_NUMBER; + hash = (53 * hash) + getProxy().hashCode(); + } + if (hasRecipient()) { + hash = (37 * hash) + RECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + getRecipient().hashCode(); + } + if (hasIsInternal()) { + hash = (37 * hash) + ISINTERNAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsInternal()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4089,42 +4436,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4144,6 +4506,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipants_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipants_fieldAccessorTable @@ -4162,54 +4525,48 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getSenderFieldBuilder(); getProxyFieldBuilder(); getRecipientFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (senderBuilder_ == null) { - sender_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); - } else { - senderBuilder_.clear(); + bitField0_ = 0; + sender_ = null; + if (senderBuilder_ != null) { + senderBuilder_.dispose(); + senderBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (proxyBuilder_ == null) { - proxy_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); - } else { - proxyBuilder_.clear(); + proxy_ = null; + if (proxyBuilder_ != null) { + proxyBuilder_.dispose(); + proxyBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (recipientBuilder_ == null) { - recipient_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); - } else { - recipientBuilder_.clear(); + recipient_ = null; + if (recipientBuilder_ != null) { + recipientBuilder_.dispose(); + recipientBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); isInternal_ = false; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipants_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants build() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants result = buildPartial(); if (!result.isInitialized()) { @@ -4218,43 +4575,43 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants result = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sender_ = senderBuilder_ == null + ? sender_ + : senderBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (senderBuilder_ == null) { - result.sender_ = sender_; - } else { - result.sender_ = senderBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.proxy_ = proxyBuilder_ == null + ? proxy_ + : proxyBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (proxyBuilder_ == null) { - result.proxy_ = proxy_; - } else { - result.proxy_ = proxyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.recipient_ = recipientBuilder_ == null + ? recipient_ + : recipientBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (recipientBuilder_ == null) { - result.recipient_ = recipient_; - } else { - result.recipient_ = recipientBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isInternal_ = isInternal_; to_bitField0_ |= 0x00000008; } - result.isInternal_ = isInternal_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants)other); @@ -4279,71 +4636,110 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentP setIsInternal(other.getIsInternal()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasSender()) { - return false; } if (!hasIsInternal()) { - return false; } if (!getSender().isInitialized()) { - return false; } if (hasProxy()) { if (!getProxy().isInitialized()) { - return false; } } if (hasRecipient()) { if (!getRecipient().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSenderFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getProxyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRecipientFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + isInternal_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant sender_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant sender_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilder> senderBuilder_; /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipant Sender = 1; + * @return Whether the sender field is set. */ public boolean hasSender() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipant Sender = 1; + * @return The sender. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getSender() { if (senderBuilder_ == null) { - return sender_; + return sender_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : sender_; } else { return senderBuilder_.getMessage(); } @@ -4357,11 +4753,11 @@ public Builder setSender(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentP throw new NullPointerException(); } sender_ = value; - onChanged(); } else { senderBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -4371,11 +4767,11 @@ public Builder setSender( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.Builder builderForValue) { if (senderBuilder_ == null) { sender_ = builderForValue.build(); - onChanged(); } else { senderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -4383,31 +4779,33 @@ public Builder setSender( */ public Builder mergeSender(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant value) { if (senderBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - sender_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance()) { - sender_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.newBuilder(sender_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + sender_ != null && + sender_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance()) { + getSenderBuilder().mergeFrom(value); } else { sender_ = value; } - onChanged(); } else { senderBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (sender_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipant Sender = 1; */ public Builder clearSender() { - if (senderBuilder_ == null) { - sender_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); - onChanged(); - } else { - senderBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + sender_ = null; + if (senderBuilder_ != null) { + senderBuilder_.dispose(); + senderBuilder_ = null; + } + onChanged(); return this; } /** @@ -4425,7 +4823,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilde if (senderBuilder_ != null) { return senderBuilder_.getMessageOrBuilder(); } else { - return sender_; + return sender_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : sender_; } } /** @@ -4445,21 +4844,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilde return senderBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant proxy_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant proxy_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilder> proxyBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Proxy = 2; + * @return Whether the proxy field is set. */ public boolean hasProxy() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Proxy = 2; + * @return The proxy. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getProxy() { if (proxyBuilder_ == null) { - return proxy_; + return proxy_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : proxy_; } else { return proxyBuilder_.getMessage(); } @@ -4473,11 +4874,11 @@ public Builder setProxy(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentPa throw new NullPointerException(); } proxy_ = value; - onChanged(); } else { proxyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4487,11 +4888,11 @@ public Builder setProxy( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.Builder builderForValue) { if (proxyBuilder_ == null) { proxy_ = builderForValue.build(); - onChanged(); } else { proxyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4499,31 +4900,33 @@ public Builder setProxy( */ public Builder mergeProxy(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant value) { if (proxyBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - proxy_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance()) { - proxy_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.newBuilder(proxy_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + proxy_ != null && + proxy_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance()) { + getProxyBuilder().mergeFrom(value); } else { proxy_ = value; } - onChanged(); } else { proxyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (proxy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Proxy = 2; */ public Builder clearProxy() { - if (proxyBuilder_ == null) { - proxy_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); - onChanged(); - } else { - proxyBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + proxy_ = null; + if (proxyBuilder_ != null) { + proxyBuilder_.dispose(); + proxyBuilder_ = null; + } + onChanged(); return this; } /** @@ -4541,7 +4944,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilde if (proxyBuilder_ != null) { return proxyBuilder_.getMessageOrBuilder(); } else { - return proxy_; + return proxy_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : proxy_; } } /** @@ -4561,21 +4965,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilde return proxyBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant recipient_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant recipient_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilder> recipientBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Recipient = 3; + * @return Whether the recipient field is set. */ public boolean hasRecipient() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Recipient = 3; + * @return The recipient. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getRecipient() { if (recipientBuilder_ == null) { - return recipient_; + return recipient_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : recipient_; } else { return recipientBuilder_.getMessage(); } @@ -4589,11 +4995,11 @@ public Builder setRecipient(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.Docume throw new NullPointerException(); } recipient_ = value; - onChanged(); } else { recipientBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4603,11 +5009,11 @@ public Builder setRecipient( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.Builder builderForValue) { if (recipientBuilder_ == null) { recipient_ = builderForValue.build(); - onChanged(); } else { recipientBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4615,31 +5021,33 @@ public Builder setRecipient( */ public Builder mergeRecipient(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant value) { if (recipientBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - recipient_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance()) { - recipient_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.newBuilder(recipient_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + recipient_ != null && + recipient_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance()) { + getRecipientBuilder().mergeFrom(value); } else { recipient_ = value; } - onChanged(); } else { recipientBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (recipient_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentParticipant Recipient = 3; */ public Builder clearRecipient() { - if (recipientBuilder_ == null) { - recipient_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); - onChanged(); - } else { - recipientBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + recipient_ = null; + if (recipientBuilder_ != null) { + recipientBuilder_.dispose(); + recipientBuilder_ = null; + } + onChanged(); return this; } /** @@ -4657,7 +5065,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilde if (recipientBuilder_ != null) { return recipientBuilder_.getMessageOrBuilder(); } else { - return recipient_; + return recipient_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance() : recipient_; } } /** @@ -4680,27 +5089,35 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantOrBuilde private boolean isInternal_ ; /** * required bool IsInternal = 4; + * @return Whether the isInternal field is set. */ + @java.lang.Override public boolean hasIsInternal() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required bool IsInternal = 4; + * @return The isInternal. */ + @java.lang.Override public boolean getIsInternal() { return isInternal_; } /** * required bool IsInternal = 4; + * @param value The isInternal to set. + * @return This builder for chaining. */ public Builder setIsInternal(boolean value) { - bitField0_ |= 0x00000008; + isInternal_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required bool IsInternal = 4; + * @return This builder for chaining. */ public Builder clearIsInternal() { bitField0_ = (bitField0_ & ~0x00000008); @@ -4712,12 +5129,52 @@ public Builder clearIsInternal() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentParticipants) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentParticipants) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants DEFAULT_INSTANCE; static { - defaultInstance = new DocumentParticipants(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentParticipants parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentParticipants) } public interface DocumentParticipantOrBuilder extends @@ -4726,28 +5183,34 @@ public interface DocumentParticipantOrBuilder extends /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ boolean hasBoxId(); /** * required string BoxId = 1; + * @return The boxId. */ java.lang.String getBoxId(); /** * required string BoxId = 1; + * @return The bytes for boxId. */ com.google.protobuf.ByteString getBoxIdBytes(); /** * optional string DepartmentId = 2; + * @return Whether the departmentId field is set. */ boolean hasDepartmentId(); /** * optional string DepartmentId = 2; + * @return The departmentId. */ java.lang.String getDepartmentId(); /** * optional string DepartmentId = 2; + * @return The bytes for departmentId. */ com.google.protobuf.ByteString getDepartmentIdBytes(); @@ -4759,80 +5222,31 @@ public static final class DocumentParticipant extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentParticipant) DocumentParticipantOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentParticipant.class.getName()); + } // Use DocumentParticipant.newBuilder() to construct. private DocumentParticipant(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentParticipant(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentParticipant defaultInstance; - public static DocumentParticipant getDefaultInstance() { - return defaultInstance; } - - public DocumentParticipant getDefaultInstanceForType() { - return defaultInstance; + private DocumentParticipant() { + boxId_ = ""; + departmentId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentParticipant( - 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; - boxId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - departmentId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipant_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipant_fieldAccessorTable @@ -4840,33 +5254,23 @@ private DocumentParticipant( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.class, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentParticipant parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentParticipant(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int BOXID_FIELD_NUMBER = 1; - private java.lang.Object boxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object boxId_ = ""; /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ + @java.lang.Override public boolean hasBoxId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string BoxId = 1; + * @return The boxId. */ + @java.lang.Override public java.lang.String getBoxId() { java.lang.Object ref = boxId_; if (ref instanceof java.lang.String) { @@ -4883,7 +5287,9 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @return The bytes for boxId. */ + @java.lang.Override public com.google.protobuf.ByteString getBoxIdBytes() { java.lang.Object ref = boxId_; @@ -4899,16 +5305,21 @@ public java.lang.String getBoxId() { } public static final int DEPARTMENTID_FIELD_NUMBER = 2; - private java.lang.Object departmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object departmentId_ = ""; /** * optional string DepartmentId = 2; + * @return Whether the departmentId field is set. */ + @java.lang.Override public boolean hasDepartmentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string DepartmentId = 2; + * @return The departmentId. */ + @java.lang.Override public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; if (ref instanceof java.lang.String) { @@ -4925,7 +5336,9 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 2; + * @return The bytes for departmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getDepartmentIdBytes() { java.lang.Object ref = departmentId_; @@ -4940,11 +5353,8 @@ public java.lang.String getDepartmentId() { } } - private void initFields() { - boxId_ = ""; - departmentId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4958,44 +5368,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getBoxIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, boxId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getDepartmentIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, departmentId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getBoxIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, boxId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getDepartmentIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, departmentId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant other = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant) obj; + + if (hasBoxId() != other.hasBoxId()) return false; + if (hasBoxId()) { + if (!getBoxId() + .equals(other.getBoxId())) return false; + } + if (hasDepartmentId() != other.hasDepartmentId()) return false; + if (hasDepartmentId()) { + if (!getDepartmentId() + .equals(other.getDepartmentId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBoxId()) { + hash = (37 * hash) + BOXID_FIELD_NUMBER; + hash = (53 * hash) + getBoxId().hashCode(); + } + if (hasDepartmentId()) { + hash = (37 * hash) + DEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDepartmentId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5019,42 +5475,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5074,6 +5545,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipant_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipant_fieldAccessorTable @@ -5083,44 +5555,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; boxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); departmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipant_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant build() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant result = buildPartial(); if (!result.isInitialized()) { @@ -5129,23 +5592,29 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant result = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.boxId_ = boxId_; to_bitField0_ |= 0x00000001; } - result.boxId_ = boxId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.departmentId_ = departmentId_; to_bitField0_ |= 0x00000002; } - result.departmentId_ = departmentId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant)other); @@ -5158,42 +5627,67 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant.getDefaultInstance()) return this; if (other.hasBoxId()) { - bitField0_ |= 0x00000001; boxId_ = other.boxId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDepartmentId()) { - bitField0_ |= 0x00000002; departmentId_ = other.departmentId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasBoxId()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant) e.getUnfinishedMessage(); - throw e; + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + boxId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + departmentId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -5201,12 +5695,14 @@ public Builder mergeFrom( private java.lang.Object boxId_ = ""; /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ public boolean hasBoxId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string BoxId = 1; + * @return The boxId. */ public java.lang.String getBoxId() { java.lang.Object ref = boxId_; @@ -5224,6 +5720,7 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @return The bytes for boxId. */ public com.google.protobuf.ByteString getBoxIdBytes() { @@ -5240,36 +5737,37 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @param value The boxId to set. + * @return This builder for chaining. */ public Builder setBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string BoxId = 1; + * @return This builder for chaining. */ public Builder clearBoxId() { - bitField0_ = (bitField0_ & ~0x00000001); boxId_ = getDefaultInstance().getBoxId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string BoxId = 1; + * @param value The bytes for boxId to set. + * @return This builder for chaining. */ public Builder setBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5277,12 +5775,14 @@ public Builder setBoxIdBytes( private java.lang.Object departmentId_ = ""; /** * optional string DepartmentId = 2; + * @return Whether the departmentId field is set. */ public boolean hasDepartmentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string DepartmentId = 2; + * @return The departmentId. */ public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; @@ -5300,6 +5800,7 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 2; + * @return The bytes for departmentId. */ public com.google.protobuf.ByteString getDepartmentIdBytes() { @@ -5316,36 +5817,37 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 2; + * @param value The departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string DepartmentId = 2; + * @return This builder for chaining. */ public Builder clearDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000002); departmentId_ = getDefaultInstance().getDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string DepartmentId = 2; + * @param value The bytes for departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5353,12 +5855,52 @@ public Builder setDepartmentIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentParticipant) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentParticipant) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant DEFAULT_INSTANCE; static { - defaultInstance = new DocumentParticipant(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentParticipant parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentParticipant) } public interface DocumentLinksOrBuilder extends @@ -5420,90 +5962,31 @@ public static final class DocumentLinks extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentLinks) DocumentLinksOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentLinks.class.getName()); + } // Use DocumentLinks.newBuilder() to construct. private DocumentLinks(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DocumentLinks(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentLinks defaultInstance; - public static DocumentLinks getDefaultInstance() { - return defaultInstance; - } - - public DocumentLinks getDefaultInstanceForType() { - return defaultInstance; + private DocumentLinks() { + initialIds_ = java.util.Collections.emptyList(); + subordinateIds_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentLinks( - 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)) { - initialIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - initialIds_.add(input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - subordinateIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - subordinateIds_.add(input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.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)) { - initialIds_ = java.util.Collections.unmodifiableList(initialIds_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - subordinateIds_ = java.util.Collections.unmodifiableList(subordinateIds_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentLinks_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentLinks_fieldAccessorTable @@ -5511,32 +5994,20 @@ private DocumentLinks( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.class, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentLinks parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentLinks(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int INITIALIDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List initialIds_; /** * repeated .Diadoc.Api.Proto.DocumentId InitialIds = 1; */ + @java.lang.Override public java.util.List getInitialIdsList() { return initialIds_; } /** * repeated .Diadoc.Api.Proto.DocumentId InitialIds = 1; */ + @java.lang.Override public java.util.List getInitialIdsOrBuilderList() { return initialIds_; @@ -5544,34 +6015,40 @@ public java.util.List getInitialId /** * repeated .Diadoc.Api.Proto.DocumentId InitialIds = 1; */ + @java.lang.Override public int getInitialIdsCount() { return initialIds_.size(); } /** * repeated .Diadoc.Api.Proto.DocumentId InitialIds = 1; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInitialIds(int index) { return initialIds_.get(index); } /** * repeated .Diadoc.Api.Proto.DocumentId InitialIds = 1; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInitialIdsOrBuilder( int index) { return initialIds_.get(index); } public static final int SUBORDINATEIDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List subordinateIds_; /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateIds = 2; */ + @java.lang.Override public java.util.List getSubordinateIdsList() { return subordinateIds_; } /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateIds = 2; */ + @java.lang.Override public java.util.List getSubordinateIdsOrBuilderList() { return subordinateIds_; @@ -5579,28 +6056,28 @@ public java.util.List getSubordina /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateIds = 2; */ + @java.lang.Override public int getSubordinateIdsCount() { return subordinateIds_.size(); } /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateIds = 2; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getSubordinateIds(int index) { return subordinateIds_.get(index); } /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateIds = 2; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateIdsOrBuilder( int index) { return subordinateIds_.get(index); } - private void initFields() { - initialIds_ = java.util.Collections.emptyList(); - subordinateIds_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5622,9 +6099,9 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < initialIds_.size(); i++) { output.writeMessage(1, initialIds_.get(i)); } @@ -5634,9 +6111,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -5649,17 +6126,59 @@ public int getSerializedSize() { .computeMessageSize(2, subordinateIds_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks other = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks) obj; + + if (!getInitialIdsList() + .equals(other.getInitialIdsList())) return false; + if (!getSubordinateIdsList() + .equals(other.getSubordinateIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInitialIdsCount() > 0) { + hash = (37 * hash) + INITIALIDS_FIELD_NUMBER; + hash = (53 * hash) + getInitialIdsList().hashCode(); + } + if (getSubordinateIdsCount() > 0) { + hash = (37 * hash) + SUBORDINATEIDS_FIELD_NUMBER; + hash = (53 * hash) + getSubordinateIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5683,42 +6202,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parseF } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5738,6 +6272,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentLinks_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentLinks_fieldAccessorTable @@ -5747,54 +6282,47 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getInitialIdsFieldBuilder(); - getSubordinateIdsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (initialIdsBuilder_ == null) { initialIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + initialIds_ = null; initialIdsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (subordinateIdsBuilder_ == null) { subordinateIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + subordinateIds_ = null; subordinateIdsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentLinks_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks build() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks result = buildPartial(); if (!result.isInitialized()) { @@ -5803,11 +6331,18 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks result = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks result) { if (initialIdsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { initialIds_ = java.util.Collections.unmodifiableList(initialIds_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -5816,7 +6351,7 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks buildPartial( result.initialIds_ = initialIdsBuilder_.build(); } if (subordinateIdsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { subordinateIds_ = java.util.Collections.unmodifiableList(subordinateIds_); bitField0_ = (bitField0_ & ~0x00000002); } @@ -5824,10 +6359,13 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks buildPartial( } else { result.subordinateIds_ = subordinateIdsBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks)other); @@ -5892,40 +6430,80 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentL } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getInitialIdsCount(); i++) { if (!getInitialIds(i).isInitialized()) { - return false; } } for (int i = 0; i < getSubordinateIdsCount(); i++) { if (!getSubordinateIds(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.DocumentIdProtos.DocumentId m = + input.readMessage( + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.parser(), + extensionRegistry); + if (initialIdsBuilder_ == null) { + ensureInitialIdsIsMutable(); + initialIds_.add(m); + } else { + initialIdsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + Diadoc.Api.Proto.DocumentIdProtos.DocumentId m = + input.readMessage( + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.parser(), + extensionRegistry); + if (subordinateIdsBuilder_ == null) { + ensureSubordinateIdsIsMutable(); + subordinateIds_.add(m); + } else { + subordinateIdsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -5933,7 +6511,7 @@ public Builder mergeFrom( private java.util.List initialIds_ = java.util.Collections.emptyList(); private void ensureInitialIdsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { initialIds_ = new java.util.ArrayList(initialIds_); bitField0_ |= 0x00000001; } @@ -6162,7 +6740,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addInitialIdsBuilder initialIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder>( initialIds_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); initialIds_ = null; @@ -6173,7 +6751,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addInitialIdsBuilder private java.util.List subordinateIds_ = java.util.Collections.emptyList(); private void ensureSubordinateIdsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { subordinateIds_ = new java.util.ArrayList(subordinateIds_); bitField0_ |= 0x00000002; } @@ -6402,7 +6980,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addSubordinateIdsBui subordinateIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder>( subordinateIds_, - ((bitField0_ & 0x00000002) == 0x00000002), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); subordinateIds_ = null; @@ -6413,12 +6991,52 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addSubordinateIdsBui // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentLinks) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentLinks) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks DEFAULT_INSTANCE; static { - defaultInstance = new DocumentLinks(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentLinks parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLinks getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentLinks) } public interface PacketInfoOrBuilder extends @@ -6427,33 +7045,40 @@ public interface PacketInfoOrBuilder extends /** * required .Diadoc.Api.Proto.LockMode LockMode = 1; + * @return Whether the lockMode field is set. */ boolean hasLockMode(); /** * required .Diadoc.Api.Proto.LockMode LockMode = 1; + * @return The lockMode. */ Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode(); /** * optional string PacketId = 2; + * @return Whether the packetId field is set. */ boolean hasPacketId(); /** * optional string PacketId = 2; + * @return The packetId. */ java.lang.String getPacketId(); /** * optional string PacketId = 2; + * @return The bytes for packetId. */ com.google.protobuf.ByteString getPacketIdBytes(); /** * optional .Diadoc.Api.Proto.Timestamp AddedAt = 3; + * @return Whether the addedAt field is set. */ boolean hasAddedAt(); /** * optional .Diadoc.Api.Proto.Timestamp AddedAt = 3; + * @return The addedAt. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getAddedAt(); /** @@ -6468,98 +7093,31 @@ public static final class PacketInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.PacketInfo) PacketInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + PacketInfo.class.getName()); + } // Use PacketInfo.newBuilder() to construct. private PacketInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private PacketInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final PacketInfo defaultInstance; - public static PacketInfo getDefaultInstance() { - return defaultInstance; } - - public PacketInfo getDefaultInstanceForType() { - return defaultInstance; + private PacketInfo() { + lockMode_ = 0; + packetId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PacketInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.LockModeProtos.LockMode value = Diadoc.Api.Proto.LockModeProtos.LockMode.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - lockMode_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - packetId_ = bs; - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = addedAt_.toBuilder(); - } - addedAt_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(addedAt_); - addedAt_ = 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.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_PacketInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_PacketInfo_fieldAccessorTable @@ -6567,48 +7125,41 @@ private PacketInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PacketInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PacketInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int LOCKMODE_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.LockModeProtos.LockMode lockMode_; + private int lockMode_ = 0; /** * required .Diadoc.Api.Proto.LockMode LockMode = 1; + * @return Whether the lockMode field is set. */ - public boolean hasLockMode() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasLockMode() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.LockMode LockMode = 1; + * @return The lockMode. */ - public Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode() { - return lockMode_; + @java.lang.Override public Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode() { + Diadoc.Api.Proto.LockModeProtos.LockMode result = Diadoc.Api.Proto.LockModeProtos.LockMode.forNumber(lockMode_); + return result == null ? Diadoc.Api.Proto.LockModeProtos.LockMode.Unknown : result; } public static final int PACKETID_FIELD_NUMBER = 2; - private java.lang.Object packetId_; + @SuppressWarnings("serial") + private volatile java.lang.Object packetId_ = ""; /** * optional string PacketId = 2; + * @return Whether the packetId field is set. */ + @java.lang.Override public boolean hasPacketId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string PacketId = 2; + * @return The packetId. */ + @java.lang.Override public java.lang.String getPacketId() { java.lang.Object ref = packetId_; if (ref instanceof java.lang.String) { @@ -6625,7 +7176,9 @@ public java.lang.String getPacketId() { } /** * optional string PacketId = 2; + * @return The bytes for packetId. */ + @java.lang.Override public com.google.protobuf.ByteString getPacketIdBytes() { java.lang.Object ref = packetId_; @@ -6644,29 +7197,30 @@ public java.lang.String getPacketId() { private Diadoc.Api.Proto.TimestampProtos.Timestamp addedAt_; /** * optional .Diadoc.Api.Proto.Timestamp AddedAt = 3; + * @return Whether the addedAt field is set. */ + @java.lang.Override public boolean hasAddedAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp AddedAt = 3; + * @return The addedAt. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getAddedAt() { - return addedAt_; + return addedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : addedAt_; } /** * optional .Diadoc.Api.Proto.Timestamp AddedAt = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getAddedAtOrBuilder() { - return addedAt_; + return addedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : addedAt_; } - private void initFields() { - lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.Unknown; - packetId_ = ""; - addedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -6686,51 +7240,106 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, lockMode_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, lockMode_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getPacketIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, packetId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, addedAt_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getAddedAt()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, lockMode_.getNumber()); + .computeEnumSize(1, lockMode_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getPacketIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, packetId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, addedAt_); + .computeMessageSize(3, getAddedAt()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo) obj; + + if (hasLockMode() != other.hasLockMode()) return false; + if (hasLockMode()) { + if (lockMode_ != other.lockMode_) return false; + } + if (hasPacketId() != other.hasPacketId()) return false; + if (hasPacketId()) { + if (!getPacketId() + .equals(other.getPacketId())) return false; + } + if (hasAddedAt() != other.hasAddedAt()) return false; + if (hasAddedAt()) { + if (!getAddedAt() + .equals(other.getAddedAt())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLockMode()) { + hash = (37 * hash) + LOCKMODE_FIELD_NUMBER; + hash = (53 * hash) + lockMode_; + } + if (hasPacketId()) { + hash = (37 * hash) + PACKETID_FIELD_NUMBER; + hash = (53 * hash) + getPacketId().hashCode(); + } + if (hasAddedAt()) { + hash = (37 * hash) + ADDEDAT_FIELD_NUMBER; + hash = (53 * hash) + getAddedAt().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6754,42 +7363,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parseFrom } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -6809,6 +7433,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_PacketInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_PacketInfo_fieldAccessorTable @@ -6827,42 +7452,37 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getAddedAtFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.Unknown; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + lockMode_ = 0; packetId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (addedAtBuilder_ == null) { - addedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - addedAtBuilder_.clear(); + addedAt_ = null; + if (addedAtBuilder_ != null) { + addedAtBuilder_.dispose(); + addedAtBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_PacketInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo result = buildPartial(); if (!result.isInitialized()) { @@ -6871,31 +7491,35 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lockMode_ = lockMode_; to_bitField0_ |= 0x00000001; } - result.lockMode_ = lockMode_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.packetId_ = packetId_; to_bitField0_ |= 0x00000002; } - result.packetId_ = packetId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.addedAt_ = addedAtBuilder_ == null + ? addedAt_ + : addedAtBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (addedAtBuilder_ == null) { - result.addedAt_ = addedAt_; - } else { - result.addedAt_ = addedAtBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo)other); @@ -6911,81 +7535,126 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInf setLockMode(other.getLockMode()); } if (other.hasPacketId()) { - bitField0_ |= 0x00000002; packetId_ = other.packetId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasAddedAt()) { mergeAddedAt(other.getAddedAt()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasLockMode()) { - return false; } if (hasAddedAt()) { if (!getAddedAt().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.LockModeProtos.LockMode tmpValue = + Diadoc.Api.Proto.LockModeProtos.LockMode.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + lockMode_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + packetId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getAddedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.LockModeProtos.LockMode lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.Unknown; + private int lockMode_ = 0; /** * required .Diadoc.Api.Proto.LockMode LockMode = 1; + * @return Whether the lockMode field is set. */ - public boolean hasLockMode() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasLockMode() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.LockMode LockMode = 1; + * @return The lockMode. */ + @java.lang.Override public Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode() { - return lockMode_; + Diadoc.Api.Proto.LockModeProtos.LockMode result = Diadoc.Api.Proto.LockModeProtos.LockMode.forNumber(lockMode_); + return result == null ? Diadoc.Api.Proto.LockModeProtos.LockMode.Unknown : result; } /** * required .Diadoc.Api.Proto.LockMode LockMode = 1; + * @param value The lockMode to set. + * @return This builder for chaining. */ public Builder setLockMode(Diadoc.Api.Proto.LockModeProtos.LockMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - lockMode_ = value; + lockMode_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.LockMode LockMode = 1; + * @return This builder for chaining. */ public Builder clearLockMode() { bitField0_ = (bitField0_ & ~0x00000001); - lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.Unknown; + lockMode_ = 0; onChanged(); return this; } @@ -6993,12 +7662,14 @@ public Builder clearLockMode() { private java.lang.Object packetId_ = ""; /** * optional string PacketId = 2; + * @return Whether the packetId field is set. */ public boolean hasPacketId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string PacketId = 2; + * @return The packetId. */ public java.lang.String getPacketId() { java.lang.Object ref = packetId_; @@ -7016,6 +7687,7 @@ public java.lang.String getPacketId() { } /** * optional string PacketId = 2; + * @return The bytes for packetId. */ public com.google.protobuf.ByteString getPacketIdBytes() { @@ -7032,55 +7704,58 @@ public java.lang.String getPacketId() { } /** * optional string PacketId = 2; + * @param value The packetId to set. + * @return This builder for chaining. */ public Builder setPacketId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } packetId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string PacketId = 2; + * @return This builder for chaining. */ public Builder clearPacketId() { - bitField0_ = (bitField0_ & ~0x00000002); packetId_ = getDefaultInstance().getPacketId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string PacketId = 2; + * @param value The bytes for packetId to set. + * @return This builder for chaining. */ public Builder setPacketIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } packetId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp addedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp addedAt_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> addedAtBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp AddedAt = 3; + * @return Whether the addedAt field is set. */ public boolean hasAddedAt() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp AddedAt = 3; + * @return The addedAt. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getAddedAt() { if (addedAtBuilder_ == null) { - return addedAt_; + return addedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : addedAt_; } else { return addedAtBuilder_.getMessage(); } @@ -7094,11 +7769,11 @@ public Builder setAddedAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { throw new NullPointerException(); } addedAt_ = value; - onChanged(); } else { addedAtBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -7108,11 +7783,11 @@ public Builder setAddedAt( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (addedAtBuilder_ == null) { addedAt_ = builderForValue.build(); - onChanged(); } else { addedAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -7120,31 +7795,33 @@ public Builder setAddedAt( */ public Builder mergeAddedAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (addedAtBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - addedAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - addedAt_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(addedAt_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + addedAt_ != null && + addedAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getAddedAtBuilder().mergeFrom(value); } else { addedAt_ = value; } - onChanged(); } else { addedAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (addedAt_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp AddedAt = 3; */ public Builder clearAddedAt() { - if (addedAtBuilder_ == null) { - addedAt_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - addedAtBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + addedAt_ = null; + if (addedAtBuilder_ != null) { + addedAtBuilder_.dispose(); + addedAtBuilder_ = null; + } + onChanged(); return this; } /** @@ -7162,7 +7839,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getAddedAtOrBuilder() if (addedAtBuilder_ != null) { return addedAtBuilder_.getMessageOrBuilder(); } else { - return addedAt_; + return addedAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : addedAt_; } } /** @@ -7185,12 +7863,52 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getAddedAtOrBuilder() // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.PacketInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.PacketInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo DEFAULT_INSTANCE; static { - defaultInstance = new PacketInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PacketInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.PacketInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.PacketInfo) } public interface DocumentLetterInfoOrBuilder extends @@ -7199,10 +7917,12 @@ public interface DocumentLetterInfoOrBuilder extends /** * required bool IsEncrypted = 1; + * @return Whether the isEncrypted field is set. */ boolean hasIsEncrypted(); /** * required bool IsEncrypted = 1; + * @return The isEncrypted. */ boolean getIsEncrypted(); @@ -7232,10 +7952,12 @@ Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder getFor /** * required bool IsTest = 3; + * @return Whether the isTest field is set. */ boolean hasIsTest(); /** * required bool IsTest = 3; + * @return The isTest. */ boolean getIsTest(); } @@ -7246,89 +7968,30 @@ public static final class DocumentLetterInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentLetterInfo) DocumentLetterInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentLetterInfo.class.getName()); + } // Use DocumentLetterInfo.newBuilder() to construct. private DocumentLetterInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DocumentLetterInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentLetterInfo defaultInstance; - public static DocumentLetterInfo getDefaultInstance() { - return defaultInstance; - } - - public DocumentLetterInfo getDefaultInstanceForType() { - return defaultInstance; + private DocumentLetterInfo() { + forwardDocumentEvents_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentLetterInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isEncrypted_ = input.readBool(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - forwardDocumentEvents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - forwardDocumentEvents_.add(input.readMessage(Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.PARSER, extensionRegistry)); - break; - } - case 24: { - bitField0_ |= 0x00000002; - isTest_ = input.readBool(); - 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_ & 0x00000002) == 0x00000002)) { - forwardDocumentEvents_ = java.util.Collections.unmodifiableList(forwardDocumentEvents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentLetterInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentLetterInfo_fieldAccessorTable @@ -7336,48 +7999,40 @@ private DocumentLetterInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentLetterInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentLetterInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISENCRYPTED_FIELD_NUMBER = 1; - private boolean isEncrypted_; + private boolean isEncrypted_ = false; /** * required bool IsEncrypted = 1; + * @return Whether the isEncrypted field is set. */ + @java.lang.Override public boolean hasIsEncrypted() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsEncrypted = 1; + * @return The isEncrypted. */ + @java.lang.Override public boolean getIsEncrypted() { return isEncrypted_; } public static final int FORWARDDOCUMENTEVENTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List forwardDocumentEvents_; /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 2; */ + @java.lang.Override public java.util.List getForwardDocumentEventsList() { return forwardDocumentEvents_; } /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 2; */ + @java.lang.Override public java.util.List getForwardDocumentEventsOrBuilderList() { return forwardDocumentEvents_; @@ -7385,44 +8040,47 @@ public java.util.Listrepeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 2; */ + @java.lang.Override public int getForwardDocumentEventsCount() { return forwardDocumentEvents_.size(); } /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 2; */ + @java.lang.Override public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent getForwardDocumentEvents(int index) { return forwardDocumentEvents_.get(index); } /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 2; */ + @java.lang.Override public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder getForwardDocumentEventsOrBuilder( int index) { return forwardDocumentEvents_.get(index); } public static final int ISTEST_FIELD_NUMBER = 3; - private boolean isTest_; + private boolean isTest_ = false; /** * required bool IsTest = 3; + * @return Whether the isTest field is set. */ + @java.lang.Override public boolean hasIsTest() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsTest = 3; + * @return The isTest. */ + @java.lang.Override public boolean getIsTest() { return isTest_; } - private void initFields() { - isEncrypted_ = false; - forwardDocumentEvents_ = java.util.Collections.emptyList(); - isTest_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -7446,28 +8104,28 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isEncrypted_); } for (int i = 0; i < forwardDocumentEvents_.size(); i++) { output.writeMessage(2, forwardDocumentEvents_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(3, isTest_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isEncrypted_); } @@ -7475,22 +8133,78 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, forwardDocumentEvents_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isTest_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo) obj; + + if (hasIsEncrypted() != other.hasIsEncrypted()) return false; + if (hasIsEncrypted()) { + if (getIsEncrypted() + != other.getIsEncrypted()) return false; + } + if (!getForwardDocumentEventsList() + .equals(other.getForwardDocumentEventsList())) return false; + if (hasIsTest() != other.hasIsTest()) return false; + if (hasIsTest()) { + if (getIsTest() + != other.getIsTest()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsEncrypted()) { + hash = (37 * hash) + ISENCRYPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsEncrypted()); + } + if (getForwardDocumentEventsCount() > 0) { + hash = (37 * hash) + FORWARDDOCUMENTEVENTS_FIELD_NUMBER; + hash = (53 * hash) + getForwardDocumentEventsList().hashCode(); + } + if (hasIsTest()) { + hash = (37 * hash) + ISTEST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsTest()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7514,42 +8228,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo p } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -7569,6 +8298,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentLetterInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentLetterInfo_fieldAccessorTable @@ -7578,51 +8308,42 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getForwardDocumentEventsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); + } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isEncrypted_ = false; - bitField0_ = (bitField0_ & ~0x00000001); if (forwardDocumentEventsBuilder_ == null) { forwardDocumentEvents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + forwardDocumentEvents_ = null; forwardDocumentEventsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); isTest_ = false; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentLetterInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo result = buildPartial(); if (!result.isInitialized()) { @@ -7631,16 +8352,18 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.isEncrypted_ = isEncrypted_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo result) { if (forwardDocumentEventsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { forwardDocumentEvents_ = java.util.Collections.unmodifiableList(forwardDocumentEvents_); bitField0_ = (bitField0_ & ~0x00000002); } @@ -7648,15 +8371,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo buildPar } else { result.forwardDocumentEvents_ = forwardDocumentEventsBuilder_.build(); } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isEncrypted_ = isEncrypted_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isTest_ = isTest_; to_bitField0_ |= 0x00000002; } - result.isTest_ = isTest_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo)other); @@ -7701,42 +8432,78 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentL setIsTest(other.getIsTest()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsEncrypted()) { - return false; } if (!hasIsTest()) { - return false; } for (int i = 0; i < getForwardDocumentEventsCount(); i++) { if (!getForwardDocumentEvents(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isEncrypted_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent m = + input.readMessage( + Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.parser(), + extensionRegistry); + if (forwardDocumentEventsBuilder_ == null) { + ensureForwardDocumentEventsIsMutable(); + forwardDocumentEvents_.add(m); + } else { + forwardDocumentEventsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + isTest_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -7744,27 +8511,35 @@ public Builder mergeFrom( private boolean isEncrypted_ ; /** * required bool IsEncrypted = 1; + * @return Whether the isEncrypted field is set. */ + @java.lang.Override public boolean hasIsEncrypted() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsEncrypted = 1; + * @return The isEncrypted. */ + @java.lang.Override public boolean getIsEncrypted() { return isEncrypted_; } /** * required bool IsEncrypted = 1; + * @param value The isEncrypted to set. + * @return This builder for chaining. */ public Builder setIsEncrypted(boolean value) { - bitField0_ |= 0x00000001; + isEncrypted_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsEncrypted = 1; + * @return This builder for chaining. */ public Builder clearIsEncrypted() { bitField0_ = (bitField0_ & ~0x00000001); @@ -7776,7 +8551,7 @@ public Builder clearIsEncrypted() { private java.util.List forwardDocumentEvents_ = java.util.Collections.emptyList(); private void ensureForwardDocumentEventsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { forwardDocumentEvents_ = new java.util.ArrayList(forwardDocumentEvents_); bitField0_ |= 0x00000002; } @@ -8005,7 +8780,7 @@ public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder forwardDocumentEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent, Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder, Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder>( forwardDocumentEvents_, - ((bitField0_ & 0x00000002) == 0x00000002), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); forwardDocumentEvents_ = null; @@ -8016,27 +8791,35 @@ public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder private boolean isTest_ ; /** * required bool IsTest = 3; + * @return Whether the isTest field is set. */ + @java.lang.Override public boolean hasIsTest() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required bool IsTest = 3; + * @return The isTest. */ + @java.lang.Override public boolean getIsTest() { return isTest_; } /** * required bool IsTest = 3; + * @param value The isTest to set. + * @return This builder for chaining. */ public Builder setIsTest(boolean value) { - bitField0_ |= 0x00000004; + isTest_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required bool IsTest = 3; + * @return This builder for chaining. */ public Builder clearIsTest() { bitField0_ = (bitField0_ & ~0x00000004); @@ -8048,12 +8831,52 @@ public Builder clearIsTest() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentLetterInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentLetterInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo DEFAULT_INSTANCE; static { - defaultInstance = new DocumentLetterInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentLetterInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentLetterInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentLetterInfo) } public interface DocumentDraftInfoOrBuilder extends @@ -8062,37 +8885,47 @@ public interface DocumentDraftInfoOrBuilder extends /** * required bool IsRecycled = 1; + * @return Whether the isRecycled field is set. */ boolean hasIsRecycled(); /** * required bool IsRecycled = 1; + * @return The isRecycled. */ boolean getIsRecycled(); /** * required bool IsLocked = 2; + * @return Whether the isLocked field is set. */ boolean hasIsLocked(); /** * required bool IsLocked = 2; + * @return The isLocked. */ boolean getIsLocked(); /** * repeated string TransformedToLetterIds = 3; + * @return A list containing the transformedToLetterIds. */ - com.google.protobuf.ProtocolStringList + java.util.List getTransformedToLetterIdsList(); /** * repeated string TransformedToLetterIds = 3; + * @return The count of transformedToLetterIds. */ int getTransformedToLetterIdsCount(); /** * repeated string TransformedToLetterIds = 3; + * @param index The index of the element to return. + * @return The transformedToLetterIds at the given index. */ java.lang.String getTransformedToLetterIds(int index); /** * repeated string TransformedToLetterIds = 3; + * @param index The index of the value to return. + * @return The bytes of the transformedToLetterIds at the given index. */ com.google.protobuf.ByteString getTransformedToLetterIdsBytes(int index); @@ -8104,90 +8937,31 @@ public static final class DocumentDraftInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentDraftInfo) DocumentDraftInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentDraftInfo.class.getName()); + } // Use DocumentDraftInfo.newBuilder() to construct. private DocumentDraftInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentDraftInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentDraftInfo defaultInstance; - public static DocumentDraftInfo getDefaultInstance() { - return defaultInstance; } - - public DocumentDraftInfo getDefaultInstanceForType() { - return defaultInstance; + private DocumentDraftInfo() { + transformedToLetterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentDraftInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isRecycled_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - isLocked_ = input.readBool(); - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - transformedToLetterIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - transformedToLetterIds_.add(bs); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - transformedToLetterIds_ = transformedToLetterIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentDraftInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentDraftInfo_fieldAccessorTable @@ -8195,56 +8969,52 @@ private DocumentDraftInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentDraftInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentDraftInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISRECYCLED_FIELD_NUMBER = 1; - private boolean isRecycled_; + private boolean isRecycled_ = false; /** * required bool IsRecycled = 1; + * @return Whether the isRecycled field is set. */ + @java.lang.Override public boolean hasIsRecycled() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsRecycled = 1; + * @return The isRecycled. */ + @java.lang.Override public boolean getIsRecycled() { return isRecycled_; } public static final int ISLOCKED_FIELD_NUMBER = 2; - private boolean isLocked_; + private boolean isLocked_ = false; /** * required bool IsLocked = 2; + * @return Whether the isLocked field is set. */ + @java.lang.Override public boolean hasIsLocked() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsLocked = 2; + * @return The isLocked. */ + @java.lang.Override public boolean getIsLocked() { return isLocked_; } public static final int TRANSFORMEDTOLETTERIDS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList transformedToLetterIds_; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList transformedToLetterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string TransformedToLetterIds = 3; + * @return A list containing the transformedToLetterIds. */ public com.google.protobuf.ProtocolStringList getTransformedToLetterIdsList() { @@ -8252,30 +9022,31 @@ public boolean getIsLocked() { } /** * repeated string TransformedToLetterIds = 3; + * @return The count of transformedToLetterIds. */ public int getTransformedToLetterIdsCount() { return transformedToLetterIds_.size(); } /** * repeated string TransformedToLetterIds = 3; + * @param index The index of the element to return. + * @return The transformedToLetterIds at the given index. */ public java.lang.String getTransformedToLetterIds(int index) { return transformedToLetterIds_.get(index); } /** * repeated string TransformedToLetterIds = 3; + * @param index The index of the value to return. + * @return The bytes of the transformedToLetterIds at the given index. */ public com.google.protobuf.ByteString getTransformedToLetterIdsBytes(int index) { return transformedToLetterIds_.getByteString(index); } - private void initFields() { - isRecycled_ = false; - isLocked_ = false; - transformedToLetterIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -8293,56 +9064,111 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isRecycled_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, isLocked_); } for (int i = 0; i < transformedToLetterIds_.size(); i++) { - output.writeBytes(3, transformedToLetterIds_.getByteString(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 3, transformedToLetterIds_.getRaw(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isRecycled_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isLocked_); } { int dataSize = 0; for (int i = 0; i < transformedToLetterIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(transformedToLetterIds_.getByteString(i)); + dataSize += computeStringSizeNoTag(transformedToLetterIds_.getRaw(i)); } size += dataSize; size += 1 * getTransformedToLetterIdsList().size(); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo) obj; + + if (hasIsRecycled() != other.hasIsRecycled()) return false; + if (hasIsRecycled()) { + if (getIsRecycled() + != other.getIsRecycled()) return false; + } + if (hasIsLocked() != other.hasIsLocked()) return false; + if (hasIsLocked()) { + if (getIsLocked() + != other.getIsLocked()) return false; + } + if (!getTransformedToLetterIdsList() + .equals(other.getTransformedToLetterIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsRecycled()) { + hash = (37 * hash) + ISRECYCLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRecycled()); + } + if (hasIsLocked()) { + hash = (37 * hash) + ISLOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsLocked()); + } + if (getTransformedToLetterIdsCount() > 0) { + hash = (37 * hash) + TRANSFORMEDTOLETTERIDS_FIELD_NUMBER; + hash = (53 * hash) + getTransformedToLetterIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8366,42 +9192,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo pa } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -8421,6 +9262,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentDraftInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentDraftInfo_fieldAccessorTable @@ -8430,46 +9272,37 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isRecycled_ = false; - bitField0_ = (bitField0_ & ~0x00000001); isLocked_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - transformedToLetterIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + transformedToLetterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentDraftInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo result = buildPartial(); if (!result.isInitialized()) { @@ -8478,28 +9311,33 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isRecycled_ = isRecycled_; to_bitField0_ |= 0x00000001; } - result.isRecycled_ = isRecycled_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isLocked_ = isLocked_; to_bitField0_ |= 0x00000002; } - result.isLocked_ = isLocked_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - transformedToLetterIds_ = transformedToLetterIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + if (((from_bitField0_ & 0x00000004) != 0)) { + transformedToLetterIds_.makeImmutable(); + result.transformedToLetterIds_ = transformedToLetterIds_; } - result.transformedToLetterIds_ = transformedToLetterIds_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo)other); @@ -8520,7 +9358,7 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentD if (!other.transformedToLetterIds_.isEmpty()) { if (transformedToLetterIds_.isEmpty()) { transformedToLetterIds_ = other.transformedToLetterIds_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureTransformedToLetterIdsIsMutable(); transformedToLetterIds_.addAll(other.transformedToLetterIds_); @@ -8528,36 +9366,66 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentD onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsRecycled()) { - return false; } if (!hasIsLocked()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isRecycled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + isLocked_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureTransformedToLetterIdsIsMutable(); + transformedToLetterIds_.add(bs); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -8565,27 +9433,35 @@ public Builder mergeFrom( private boolean isRecycled_ ; /** * required bool IsRecycled = 1; + * @return Whether the isRecycled field is set. */ + @java.lang.Override public boolean hasIsRecycled() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsRecycled = 1; + * @return The isRecycled. */ + @java.lang.Override public boolean getIsRecycled() { return isRecycled_; } /** * required bool IsRecycled = 1; + * @param value The isRecycled to set. + * @return This builder for chaining. */ public Builder setIsRecycled(boolean value) { - bitField0_ |= 0x00000001; + isRecycled_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsRecycled = 1; + * @return This builder for chaining. */ public Builder clearIsRecycled() { bitField0_ = (bitField0_ & ~0x00000001); @@ -8597,27 +9473,35 @@ public Builder clearIsRecycled() { private boolean isLocked_ ; /** * required bool IsLocked = 2; + * @return Whether the isLocked field is set. */ + @java.lang.Override public boolean hasIsLocked() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsLocked = 2; + * @return The isLocked. */ + @java.lang.Override public boolean getIsLocked() { return isLocked_; } /** * required bool IsLocked = 2; + * @param value The isLocked to set. + * @return This builder for chaining. */ public Builder setIsLocked(boolean value) { - bitField0_ |= 0x00000002; + isLocked_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool IsLocked = 2; + * @return This builder for chaining. */ public Builder clearIsLocked() { bitField0_ = (bitField0_ & ~0x00000002); @@ -8626,34 +9510,42 @@ public Builder clearIsLocked() { return this; } - private com.google.protobuf.LazyStringList transformedToLetterIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList transformedToLetterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTransformedToLetterIdsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!transformedToLetterIds_.isModifiable()) { transformedToLetterIds_ = new com.google.protobuf.LazyStringArrayList(transformedToLetterIds_); - bitField0_ |= 0x00000004; - } + } + bitField0_ |= 0x00000004; } /** * repeated string TransformedToLetterIds = 3; + * @return A list containing the transformedToLetterIds. */ public com.google.protobuf.ProtocolStringList getTransformedToLetterIdsList() { - return transformedToLetterIds_.getUnmodifiableView(); + transformedToLetterIds_.makeImmutable(); + return transformedToLetterIds_; } /** * repeated string TransformedToLetterIds = 3; + * @return The count of transformedToLetterIds. */ public int getTransformedToLetterIdsCount() { return transformedToLetterIds_.size(); } /** * repeated string TransformedToLetterIds = 3; + * @param index The index of the element to return. + * @return The transformedToLetterIds at the given index. */ public java.lang.String getTransformedToLetterIds(int index) { return transformedToLetterIds_.get(index); } /** * repeated string TransformedToLetterIds = 3; + * @param index The index of the value to return. + * @return The bytes of the transformedToLetterIds at the given index. */ public com.google.protobuf.ByteString getTransformedToLetterIdsBytes(int index) { @@ -8661,60 +9553,69 @@ public java.lang.String getTransformedToLetterIds(int index) { } /** * repeated string TransformedToLetterIds = 3; + * @param index The index to set the value at. + * @param value The transformedToLetterIds to set. + * @return This builder for chaining. */ public Builder setTransformedToLetterIds( int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformedToLetterIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureTransformedToLetterIdsIsMutable(); transformedToLetterIds_.set(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated string TransformedToLetterIds = 3; + * @param value The transformedToLetterIds to add. + * @return This builder for chaining. */ public Builder addTransformedToLetterIds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformedToLetterIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureTransformedToLetterIdsIsMutable(); transformedToLetterIds_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated string TransformedToLetterIds = 3; + * @param values The transformedToLetterIds to add. + * @return This builder for chaining. */ public Builder addAllTransformedToLetterIds( java.lang.Iterable values) { ensureTransformedToLetterIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transformedToLetterIds_); + bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated string TransformedToLetterIds = 3; + * @return This builder for chaining. */ public Builder clearTransformedToLetterIds() { - transformedToLetterIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + transformedToLetterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** * repeated string TransformedToLetterIds = 3; + * @param value The bytes of the transformedToLetterIds to add. + * @return This builder for chaining. */ public Builder addTransformedToLetterIdsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformedToLetterIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureTransformedToLetterIdsIsMutable(); transformedToLetterIds_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -8722,12 +9623,52 @@ public Builder addTransformedToLetterIdsBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentDraftInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentDraftInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo DEFAULT_INSTANCE; static { - defaultInstance = new DocumentDraftInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentDraftInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentDraftInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentDraftInfo) } public interface DocumentTemplateInfoOrBuilder extends @@ -8736,10 +9677,12 @@ public interface DocumentTemplateInfoOrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants LetterParticipants = 1; + * @return Whether the letterParticipants field is set. */ boolean hasLetterParticipants(); /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants LetterParticipants = 1; + * @return The letterParticipants. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants getLetterParticipants(); /** @@ -8749,19 +9692,25 @@ public interface DocumentTemplateInfoOrBuilder extends /** * repeated string TransformedToLetterIds = 2; + * @return A list containing the transformedToLetterIds. */ - com.google.protobuf.ProtocolStringList + java.util.List getTransformedToLetterIdsList(); /** * repeated string TransformedToLetterIds = 2; + * @return The count of transformedToLetterIds. */ int getTransformedToLetterIdsCount(); /** * repeated string TransformedToLetterIds = 2; + * @param index The index of the element to return. + * @return The transformedToLetterIds at the given index. */ java.lang.String getTransformedToLetterIds(int index); /** * repeated string TransformedToLetterIds = 2; + * @param index The index of the value to return. + * @return The bytes of the transformedToLetterIds at the given index. */ com.google.protobuf.ByteString getTransformedToLetterIdsBytes(int index); @@ -8792,10 +9741,12 @@ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfoOrBuilde /** * optional .Diadoc.Api.Proto.Docflow.TemplateRefusalInfo TemplateRefusalInfo = 4; + * @return Whether the templateRefusalInfo field is set. */ boolean hasTemplateRefusalInfo(); /** * optional .Diadoc.Api.Proto.Docflow.TemplateRefusalInfo TemplateRefusalInfo = 4; + * @return The templateRefusalInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo getTemplateRefusalInfo(); /** @@ -8805,10 +9756,12 @@ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfoOrBuilde /** * optional bool IsReusable = 5 [default = false]; + * @return Whether the isReusable field is set. */ boolean hasIsReusable(); /** * optional bool IsReusable = 5 [default = false]; + * @return The isReusable. */ boolean getIsReusable(); } @@ -8819,122 +9772,32 @@ public static final class DocumentTemplateInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentTemplateInfo) DocumentTemplateInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentTemplateInfo.class.getName()); + } // Use DocumentTemplateInfo.newBuilder() to construct. private DocumentTemplateInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentTemplateInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentTemplateInfo defaultInstance; - public static DocumentTemplateInfo getDefaultInstance() { - return defaultInstance; } - - public DocumentTemplateInfo getDefaultInstanceForType() { - return defaultInstance; + private DocumentTemplateInfo() { + transformedToLetterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + templateTransformationInfos_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentTemplateInfo( - 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: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = letterParticipants_.toBuilder(); - } - letterParticipants_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(letterParticipants_); - letterParticipants_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - transformedToLetterIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - transformedToLetterIds_.add(bs); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - templateTransformationInfos_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - templateTransformationInfos_.add(input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo.PARSER, extensionRegistry)); - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = templateRefusalInfo_.toBuilder(); - } - templateRefusalInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(templateRefusalInfo_); - templateRefusalInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 40: { - bitField0_ |= 0x00000004; - isReusable_ = input.readBool(); - 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_ & 0x00000002) == 0x00000002)) { - transformedToLetterIds_ = transformedToLetterIds_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - templateTransformationInfos_ = java.util.Collections.unmodifiableList(templateTransformationInfos_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentTemplateInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentTemplateInfo_fieldAccessorTable @@ -8942,47 +9805,40 @@ private DocumentTemplateInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentTemplateInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentTemplateInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int LETTERPARTICIPANTS_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants letterParticipants_; /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants LetterParticipants = 1; + * @return Whether the letterParticipants field is set. */ + @java.lang.Override public boolean hasLetterParticipants() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants LetterParticipants = 1; + * @return The letterParticipants. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants getLetterParticipants() { - return letterParticipants_; + return letterParticipants_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance() : letterParticipants_; } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants LetterParticipants = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantsOrBuilder getLetterParticipantsOrBuilder() { - return letterParticipants_; + return letterParticipants_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance() : letterParticipants_; } public static final int TRANSFORMEDTOLETTERIDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList transformedToLetterIds_; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList transformedToLetterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string TransformedToLetterIds = 2; + * @return A list containing the transformedToLetterIds. */ public com.google.protobuf.ProtocolStringList getTransformedToLetterIdsList() { @@ -8990,18 +9846,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantsOrBuild } /** * repeated string TransformedToLetterIds = 2; + * @return The count of transformedToLetterIds. */ public int getTransformedToLetterIdsCount() { return transformedToLetterIds_.size(); } /** * repeated string TransformedToLetterIds = 2; + * @param index The index of the element to return. + * @return The transformedToLetterIds at the given index. */ public java.lang.String getTransformedToLetterIds(int index) { return transformedToLetterIds_.get(index); } /** * repeated string TransformedToLetterIds = 2; + * @param index The index of the value to return. + * @return The bytes of the transformedToLetterIds at the given index. */ public com.google.protobuf.ByteString getTransformedToLetterIdsBytes(int index) { @@ -9009,16 +9870,19 @@ public java.lang.String getTransformedToLetterIds(int index) { } public static final int TEMPLATETRANSFORMATIONINFOS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List templateTransformationInfos_; /** * repeated .Diadoc.Api.Proto.Docflow.TemplateTransformationInfo TemplateTransformationInfos = 3; */ + @java.lang.Override public java.util.List getTemplateTransformationInfosList() { return templateTransformationInfos_; } /** * repeated .Diadoc.Api.Proto.Docflow.TemplateTransformationInfo TemplateTransformationInfos = 3; */ + @java.lang.Override public java.util.List getTemplateTransformationInfosOrBuilderList() { return templateTransformationInfos_; @@ -9026,18 +9890,21 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.TemplateTransformationInfo TemplateTransformationInfos = 3; */ + @java.lang.Override public int getTemplateTransformationInfosCount() { return templateTransformationInfos_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.TemplateTransformationInfo TemplateTransformationInfos = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo getTemplateTransformationInfos(int index) { return templateTransformationInfos_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.TemplateTransformationInfo TemplateTransformationInfos = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfoOrBuilder getTemplateTransformationInfosOrBuilder( int index) { return templateTransformationInfos_.get(index); @@ -9047,46 +9914,49 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfoO private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo templateRefusalInfo_; /** * optional .Diadoc.Api.Proto.Docflow.TemplateRefusalInfo TemplateRefusalInfo = 4; + * @return Whether the templateRefusalInfo field is set. */ + @java.lang.Override public boolean hasTemplateRefusalInfo() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.TemplateRefusalInfo TemplateRefusalInfo = 4; + * @return The templateRefusalInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo getTemplateRefusalInfo() { - return templateRefusalInfo_; + return templateRefusalInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance() : templateRefusalInfo_; } /** * optional .Diadoc.Api.Proto.Docflow.TemplateRefusalInfo TemplateRefusalInfo = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfoOrBuilder getTemplateRefusalInfoOrBuilder() { - return templateRefusalInfo_; + return templateRefusalInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance() : templateRefusalInfo_; } public static final int ISREUSABLE_FIELD_NUMBER = 5; - private boolean isReusable_; + private boolean isReusable_ = false; /** * optional bool IsReusable = 5 [default = false]; + * @return Whether the isReusable field is set. */ + @java.lang.Override public boolean hasIsReusable() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool IsReusable = 5 [default = false]; + * @return The isReusable. */ + @java.lang.Override public boolean getIsReusable() { return isReusable_; } - private void initFields() { - letterParticipants_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance(); - transformedToLetterIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - templateTransformationInfos_ = java.util.Collections.emptyList(); - templateRefusalInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance(); - isReusable_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -9116,42 +9986,41 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, letterParticipants_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLetterParticipants()); } for (int i = 0; i < transformedToLetterIds_.size(); i++) { - output.writeBytes(2, transformedToLetterIds_.getByteString(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 2, transformedToLetterIds_.getRaw(i)); } for (int i = 0; i < templateTransformationInfos_.size(); i++) { output.writeMessage(3, templateTransformationInfos_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(4, templateRefusalInfo_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getTemplateRefusalInfo()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(5, isReusable_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, letterParticipants_); + .computeMessageSize(1, getLetterParticipants()); } { int dataSize = 0; for (int i = 0; i < transformedToLetterIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(transformedToLetterIds_.getByteString(i)); + dataSize += computeStringSizeNoTag(transformedToLetterIds_.getRaw(i)); } size += dataSize; size += 1 * getTransformedToLetterIdsList().size(); @@ -9160,26 +10029,96 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, templateTransformationInfos_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, templateRefusalInfo_); + .computeMessageSize(4, getTemplateRefusalInfo()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isReusable_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo) obj; + + if (hasLetterParticipants() != other.hasLetterParticipants()) return false; + if (hasLetterParticipants()) { + if (!getLetterParticipants() + .equals(other.getLetterParticipants())) return false; + } + if (!getTransformedToLetterIdsList() + .equals(other.getTransformedToLetterIdsList())) return false; + if (!getTemplateTransformationInfosList() + .equals(other.getTemplateTransformationInfosList())) return false; + if (hasTemplateRefusalInfo() != other.hasTemplateRefusalInfo()) return false; + if (hasTemplateRefusalInfo()) { + if (!getTemplateRefusalInfo() + .equals(other.getTemplateRefusalInfo())) return false; + } + if (hasIsReusable() != other.hasIsReusable()) return false; + if (hasIsReusable()) { + if (getIsReusable() + != other.getIsReusable()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLetterParticipants()) { + hash = (37 * hash) + LETTERPARTICIPANTS_FIELD_NUMBER; + hash = (53 * hash) + getLetterParticipants().hashCode(); + } + if (getTransformedToLetterIdsCount() > 0) { + hash = (37 * hash) + TRANSFORMEDTOLETTERIDS_FIELD_NUMBER; + hash = (53 * hash) + getTransformedToLetterIdsList().hashCode(); + } + if (getTemplateTransformationInfosCount() > 0) { + hash = (37 * hash) + TEMPLATETRANSFORMATIONINFOS_FIELD_NUMBER; + hash = (53 * hash) + getTemplateTransformationInfosList().hashCode(); + } + if (hasTemplateRefusalInfo()) { + hash = (37 * hash) + TEMPLATEREFUSALINFO_FIELD_NUMBER; + hash = (53 * hash) + getTemplateRefusalInfo().hashCode(); + } + if (hasIsReusable()) { + hash = (37 * hash) + ISREUSABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsReusable()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9203,42 +10142,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -9258,6 +10212,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentTemplateInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentTemplateInfo_fieldAccessorTable @@ -9276,56 +10231,52 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getLetterParticipantsFieldBuilder(); getTemplateTransformationInfosFieldBuilder(); getTemplateRefusalInfoFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (letterParticipantsBuilder_ == null) { - letterParticipants_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance(); - } else { - letterParticipantsBuilder_.clear(); + bitField0_ = 0; + letterParticipants_ = null; + if (letterParticipantsBuilder_ != null) { + letterParticipantsBuilder_.dispose(); + letterParticipantsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - transformedToLetterIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + transformedToLetterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (templateTransformationInfosBuilder_ == null) { templateTransformationInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + templateTransformationInfos_ = null; templateTransformationInfosBuilder_.clear(); } - if (templateRefusalInfoBuilder_ == null) { - templateRefusalInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance(); - } else { - templateRefusalInfoBuilder_.clear(); + bitField0_ = (bitField0_ & ~0x00000004); + templateRefusalInfo_ = null; + if (templateRefusalInfoBuilder_ != null) { + templateRefusalInfoBuilder_.dispose(); + templateRefusalInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); isReusable_ = false; - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentTemplateInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo result = buildPartial(); if (!result.isInitialized()) { @@ -9334,25 +10285,18 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (letterParticipantsBuilder_ == null) { - result.letterParticipants_ = letterParticipants_; - } else { - result.letterParticipants_ = letterParticipantsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - transformedToLetterIds_ = transformedToLetterIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.transformedToLetterIds_ = transformedToLetterIds_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo result) { if (templateTransformationInfosBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { templateTransformationInfos_ = java.util.Collections.unmodifiableList(templateTransformationInfos_); bitField0_ = (bitField0_ & ~0x00000004); } @@ -9360,23 +10304,35 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo buildP } else { result.templateTransformationInfos_ = templateTransformationInfosBuilder_.build(); } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000002; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.letterParticipants_ = letterParticipantsBuilder_ == null + ? letterParticipants_ + : letterParticipantsBuilder_.build(); + to_bitField0_ |= 0x00000001; } - if (templateRefusalInfoBuilder_ == null) { - result.templateRefusalInfo_ = templateRefusalInfo_; - } else { - result.templateRefusalInfo_ = templateRefusalInfoBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + transformedToLetterIds_.makeImmutable(); + result.transformedToLetterIds_ = transformedToLetterIds_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.templateRefusalInfo_ = templateRefusalInfoBuilder_ == null + ? templateRefusalInfo_ + : templateRefusalInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isReusable_ = isReusable_; to_bitField0_ |= 0x00000004; } - result.isReusable_ = isReusable_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo)other); @@ -9394,7 +10350,7 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentT if (!other.transformedToLetterIds_.isEmpty()) { if (transformedToLetterIds_.isEmpty()) { transformedToLetterIds_ = other.transformedToLetterIds_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureTransformedToLetterIdsIsMutable(); transformedToLetterIds_.addAll(other.transformedToLetterIds_); @@ -9434,67 +10390,119 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentT setIsReusable(other.getIsReusable()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasLetterParticipants()) { - return false; } if (!getLetterParticipants().isInitialized()) { - return false; } for (int i = 0; i < getTemplateTransformationInfosCount(); i++) { if (!getTemplateTransformationInfos(i).isInitialized()) { - return false; } } if (hasTemplateRefusalInfo()) { if (!getTemplateRefusalInfo().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getLetterParticipantsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureTransformedToLetterIdsIsMutable(); + transformedToLetterIds_.add(bs); + break; + } // case 18 + case 26: { + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo m = + input.readMessage( + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo.parser(), + extensionRegistry); + if (templateTransformationInfosBuilder_ == null) { + ensureTemplateTransformationInfosIsMutable(); + templateTransformationInfos_.add(m); + } else { + templateTransformationInfosBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + input.readMessage( + getTemplateRefusalInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + isReusable_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants letterParticipants_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants letterParticipants_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantsOrBuilder> letterParticipantsBuilder_; /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants LetterParticipants = 1; + * @return Whether the letterParticipants field is set. */ public boolean hasLetterParticipants() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants LetterParticipants = 1; + * @return The letterParticipants. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants getLetterParticipants() { if (letterParticipantsBuilder_ == null) { - return letterParticipants_; + return letterParticipants_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance() : letterParticipants_; } else { return letterParticipantsBuilder_.getMessage(); } @@ -9508,11 +10516,11 @@ public Builder setLetterParticipants(Diadoc.Api.Proto.Docflow.DocumentInfoV3Prot throw new NullPointerException(); } letterParticipants_ = value; - onChanged(); } else { letterParticipantsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -9522,11 +10530,11 @@ public Builder setLetterParticipants( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.Builder builderForValue) { if (letterParticipantsBuilder_ == null) { letterParticipants_ = builderForValue.build(); - onChanged(); } else { letterParticipantsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -9534,31 +10542,33 @@ public Builder setLetterParticipants( */ public Builder mergeLetterParticipants(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants value) { if (letterParticipantsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - letterParticipants_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance()) { - letterParticipants_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.newBuilder(letterParticipants_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + letterParticipants_ != null && + letterParticipants_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance()) { + getLetterParticipantsBuilder().mergeFrom(value); } else { letterParticipants_ = value; } - onChanged(); } else { letterParticipantsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (letterParticipants_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.DocumentParticipants LetterParticipants = 1; */ public Builder clearLetterParticipants() { - if (letterParticipantsBuilder_ == null) { - letterParticipants_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance(); - onChanged(); - } else { - letterParticipantsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + letterParticipants_ = null; + if (letterParticipantsBuilder_ != null) { + letterParticipantsBuilder_.dispose(); + letterParticipantsBuilder_ = null; + } + onChanged(); return this; } /** @@ -9576,7 +10586,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantsOrBuild if (letterParticipantsBuilder_ != null) { return letterParticipantsBuilder_.getMessageOrBuilder(); } else { - return letterParticipants_; + return letterParticipants_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipants.getDefaultInstance() : letterParticipants_; } } /** @@ -9596,34 +10607,42 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentParticipantsOrBuild return letterParticipantsBuilder_; } - private com.google.protobuf.LazyStringList transformedToLetterIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList transformedToLetterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTransformedToLetterIdsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!transformedToLetterIds_.isModifiable()) { transformedToLetterIds_ = new com.google.protobuf.LazyStringArrayList(transformedToLetterIds_); - bitField0_ |= 0x00000002; - } + } + bitField0_ |= 0x00000002; } /** * repeated string TransformedToLetterIds = 2; + * @return A list containing the transformedToLetterIds. */ public com.google.protobuf.ProtocolStringList getTransformedToLetterIdsList() { - return transformedToLetterIds_.getUnmodifiableView(); + transformedToLetterIds_.makeImmutable(); + return transformedToLetterIds_; } /** * repeated string TransformedToLetterIds = 2; + * @return The count of transformedToLetterIds. */ public int getTransformedToLetterIdsCount() { return transformedToLetterIds_.size(); } /** * repeated string TransformedToLetterIds = 2; + * @param index The index of the element to return. + * @return The transformedToLetterIds at the given index. */ public java.lang.String getTransformedToLetterIds(int index) { return transformedToLetterIds_.get(index); } /** * repeated string TransformedToLetterIds = 2; + * @param index The index of the value to return. + * @return The bytes of the transformedToLetterIds at the given index. */ public com.google.protobuf.ByteString getTransformedToLetterIdsBytes(int index) { @@ -9631,60 +10650,69 @@ public java.lang.String getTransformedToLetterIds(int index) { } /** * repeated string TransformedToLetterIds = 2; + * @param index The index to set the value at. + * @param value The transformedToLetterIds to set. + * @return This builder for chaining. */ public Builder setTransformedToLetterIds( int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformedToLetterIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureTransformedToLetterIdsIsMutable(); transformedToLetterIds_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string TransformedToLetterIds = 2; + * @param value The transformedToLetterIds to add. + * @return This builder for chaining. */ public Builder addTransformedToLetterIds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformedToLetterIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureTransformedToLetterIdsIsMutable(); transformedToLetterIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string TransformedToLetterIds = 2; + * @param values The transformedToLetterIds to add. + * @return This builder for chaining. */ public Builder addAllTransformedToLetterIds( java.lang.Iterable values) { ensureTransformedToLetterIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transformedToLetterIds_); + bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string TransformedToLetterIds = 2; + * @return This builder for chaining. */ public Builder clearTransformedToLetterIds() { - transformedToLetterIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + transformedToLetterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** * repeated string TransformedToLetterIds = 2; + * @param value The bytes of the transformedToLetterIds to add. + * @return This builder for chaining. */ public Builder addTransformedToLetterIdsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformedToLetterIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureTransformedToLetterIdsIsMutable(); transformedToLetterIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -9692,7 +10720,7 @@ public Builder addTransformedToLetterIdsBytes( private java.util.List templateTransformationInfos_ = java.util.Collections.emptyList(); private void ensureTemplateTransformationInfosIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000004) != 0)) { templateTransformationInfos_ = new java.util.ArrayList(templateTransformationInfos_); bitField0_ |= 0x00000004; } @@ -9921,7 +10949,7 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo. templateTransformationInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfoOrBuilder>( templateTransformationInfos_, - ((bitField0_ & 0x00000004) == 0x00000004), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); templateTransformationInfos_ = null; @@ -9929,21 +10957,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo. return templateTransformationInfosBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo templateRefusalInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo templateRefusalInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfoOrBuilder> templateRefusalInfoBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.TemplateRefusalInfo TemplateRefusalInfo = 4; + * @return Whether the templateRefusalInfo field is set. */ public boolean hasTemplateRefusalInfo() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.TemplateRefusalInfo TemplateRefusalInfo = 4; + * @return The templateRefusalInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo getTemplateRefusalInfo() { if (templateRefusalInfoBuilder_ == null) { - return templateRefusalInfo_; + return templateRefusalInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance() : templateRefusalInfo_; } else { return templateRefusalInfoBuilder_.getMessage(); } @@ -9957,11 +10987,11 @@ public Builder setTemplateRefusalInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Pro throw new NullPointerException(); } templateRefusalInfo_ = value; - onChanged(); } else { templateRefusalInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -9971,11 +11001,11 @@ public Builder setTemplateRefusalInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.Builder builderForValue) { if (templateRefusalInfoBuilder_ == null) { templateRefusalInfo_ = builderForValue.build(); - onChanged(); } else { templateRefusalInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -9983,31 +11013,33 @@ public Builder setTemplateRefusalInfo( */ public Builder mergeTemplateRefusalInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo value) { if (templateRefusalInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - templateRefusalInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance()) { - templateRefusalInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.newBuilder(templateRefusalInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + templateRefusalInfo_ != null && + templateRefusalInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance()) { + getTemplateRefusalInfoBuilder().mergeFrom(value); } else { templateRefusalInfo_ = value; } - onChanged(); } else { templateRefusalInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (templateRefusalInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.TemplateRefusalInfo TemplateRefusalInfo = 4; */ public Builder clearTemplateRefusalInfo() { - if (templateRefusalInfoBuilder_ == null) { - templateRefusalInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance(); - onChanged(); - } else { - templateRefusalInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + templateRefusalInfo_ = null; + if (templateRefusalInfoBuilder_ != null) { + templateRefusalInfoBuilder_.dispose(); + templateRefusalInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -10025,7 +11057,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfoOrBuilde if (templateRefusalInfoBuilder_ != null) { return templateRefusalInfoBuilder_.getMessageOrBuilder(); } else { - return templateRefusalInfo_; + return templateRefusalInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance() : templateRefusalInfo_; } } /** @@ -10048,27 +11081,35 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfoOrBuilde private boolean isReusable_ ; /** * optional bool IsReusable = 5 [default = false]; + * @return Whether the isReusable field is set. */ + @java.lang.Override public boolean hasIsReusable() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool IsReusable = 5 [default = false]; + * @return The isReusable. */ + @java.lang.Override public boolean getIsReusable() { return isReusable_; } /** * optional bool IsReusable = 5 [default = false]; + * @param value The isReusable to set. + * @return This builder for chaining. */ public Builder setIsReusable(boolean value) { - bitField0_ |= 0x00000010; + isReusable_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional bool IsReusable = 5 [default = false]; + * @return This builder for chaining. */ public Builder clearIsReusable() { bitField0_ = (bitField0_ & ~0x00000010); @@ -10080,12 +11121,52 @@ public Builder clearIsReusable() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentTemplateInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentTemplateInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo DEFAULT_INSTANCE; static { - defaultInstance = new DocumentTemplateInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTemplateInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentTemplateInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentTemplateInfo) } public interface TemplateTransformationInfoOrBuilder extends @@ -10094,24 +11175,29 @@ public interface TemplateTransformationInfoOrBuilder extends /** * required string TransformationId = 1; + * @return Whether the transformationId field is set. */ boolean hasTransformationId(); /** * required string TransformationId = 1; + * @return The transformationId. */ java.lang.String getTransformationId(); /** * required string TransformationId = 1; + * @return The bytes for transformationId. */ com.google.protobuf.ByteString getTransformationIdBytes(); /** * optional .Diadoc.Api.Proto.DocumentId TransformedToDocumentId = 2; + * @return Whether the transformedToDocumentId field is set. */ boolean hasTransformedToDocumentId(); /** * optional .Diadoc.Api.Proto.DocumentId TransformedToDocumentId = 2; + * @return The transformedToDocumentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getTransformedToDocumentId(); /** @@ -10121,14 +11207,17 @@ public interface TemplateTransformationInfoOrBuilder extends /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ boolean hasAuthorUserId(); /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ java.lang.String getAuthorUserId(); /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ com.google.protobuf.ByteString getAuthorUserIdBytes(); @@ -10140,93 +11229,31 @@ public static final class TemplateTransformationInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.TemplateTransformationInfo) TemplateTransformationInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + TemplateTransformationInfo.class.getName()); + } // Use TemplateTransformationInfo.newBuilder() to construct. private TemplateTransformationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private TemplateTransformationInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final TemplateTransformationInfo defaultInstance; - public static TemplateTransformationInfo getDefaultInstance() { - return defaultInstance; } - - public TemplateTransformationInfo getDefaultInstanceForType() { - return defaultInstance; + private TemplateTransformationInfo() { + transformationId_ = ""; + authorUserId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TemplateTransformationInfo( - 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; - transformationId_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = transformedToDocumentId_.toBuilder(); - } - transformedToDocumentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transformedToDocumentId_); - transformedToDocumentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - authorUserId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_TemplateTransformationInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_TemplateTransformationInfo_fieldAccessorTable @@ -10234,33 +11261,23 @@ private TemplateTransformationInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TemplateTransformationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TemplateTransformationInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TRANSFORMATIONID_FIELD_NUMBER = 1; - private java.lang.Object transformationId_; + @SuppressWarnings("serial") + private volatile java.lang.Object transformationId_ = ""; /** * required string TransformationId = 1; + * @return Whether the transformationId field is set. */ + @java.lang.Override public boolean hasTransformationId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string TransformationId = 1; + * @return The transformationId. */ + @java.lang.Override public java.lang.String getTransformationId() { java.lang.Object ref = transformationId_; if (ref instanceof java.lang.String) { @@ -10277,7 +11294,9 @@ public java.lang.String getTransformationId() { } /** * required string TransformationId = 1; + * @return The bytes for transformationId. */ + @java.lang.Override public com.google.protobuf.ByteString getTransformationIdBytes() { java.lang.Object ref = transformationId_; @@ -10296,34 +11315,44 @@ public java.lang.String getTransformationId() { private Diadoc.Api.Proto.DocumentIdProtos.DocumentId transformedToDocumentId_; /** * optional .Diadoc.Api.Proto.DocumentId TransformedToDocumentId = 2; + * @return Whether the transformedToDocumentId field is set. */ + @java.lang.Override public boolean hasTransformedToDocumentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId TransformedToDocumentId = 2; + * @return The transformedToDocumentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getTransformedToDocumentId() { - return transformedToDocumentId_; + return transformedToDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : transformedToDocumentId_; } /** * optional .Diadoc.Api.Proto.DocumentId TransformedToDocumentId = 2; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getTransformedToDocumentIdOrBuilder() { - return transformedToDocumentId_; + return transformedToDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : transformedToDocumentId_; } public static final int AUTHORUSERID_FIELD_NUMBER = 3; - private java.lang.Object authorUserId_; + @SuppressWarnings("serial") + private volatile java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ + @java.lang.Override public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ + @java.lang.Override public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; if (ref instanceof java.lang.String) { @@ -10340,7 +11369,9 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorUserIdBytes() { java.lang.Object ref = authorUserId_; @@ -10355,12 +11386,8 @@ public java.lang.String getAuthorUserId() { } } - private void initFields() { - transformationId_ = ""; - transformedToDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - authorUserId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -10380,51 +11407,106 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTransformationIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, transformationId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, transformedToDocumentId_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTransformedToDocumentId()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authorUserId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTransformationIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, transformationId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, transformedToDocumentId_); + .computeMessageSize(2, getTransformedToDocumentId()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authorUserId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo) obj; + + if (hasTransformationId() != other.hasTransformationId()) return false; + if (hasTransformationId()) { + if (!getTransformationId() + .equals(other.getTransformationId())) return false; + } + if (hasTransformedToDocumentId() != other.hasTransformedToDocumentId()) return false; + if (hasTransformedToDocumentId()) { + if (!getTransformedToDocumentId() + .equals(other.getTransformedToDocumentId())) return false; + } + if (hasAuthorUserId() != other.hasAuthorUserId()) return false; + if (hasAuthorUserId()) { + if (!getAuthorUserId() + .equals(other.getAuthorUserId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTransformationId()) { + hash = (37 * hash) + TRANSFORMATIONID_FIELD_NUMBER; + hash = (53 * hash) + getTransformationId().hashCode(); + } + if (hasTransformedToDocumentId()) { + hash = (37 * hash) + TRANSFORMEDTODOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getTransformedToDocumentId().hashCode(); + } + if (hasAuthorUserId()) { + hash = (37 * hash) + AUTHORUSERID_FIELD_NUMBER; + hash = (53 * hash) + getAuthorUserId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10448,42 +11530,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformati } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -10503,6 +11600,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_TemplateTransformationInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_TemplateTransformationInfo_fieldAccessorTable @@ -10521,42 +11619,37 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getTransformedToDocumentIdFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; transformationId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (transformedToDocumentIdBuilder_ == null) { - transformedToDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - transformedToDocumentIdBuilder_.clear(); + transformedToDocumentId_ = null; + if (transformedToDocumentIdBuilder_ != null) { + transformedToDocumentIdBuilder_.dispose(); + transformedToDocumentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); authorUserId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_TemplateTransformationInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo result = buildPartial(); if (!result.isInitialized()) { @@ -10565,31 +11658,35 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.transformationId_ = transformationId_; to_bitField0_ |= 0x00000001; } - result.transformationId_ = transformationId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.transformedToDocumentId_ = transformedToDocumentIdBuilder_ == null + ? transformedToDocumentId_ + : transformedToDocumentIdBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (transformedToDocumentIdBuilder_ == null) { - result.transformedToDocumentId_ = transformedToDocumentId_; - } else { - result.transformedToDocumentId_ = transformedToDocumentIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authorUserId_ = authorUserId_; to_bitField0_ |= 0x00000004; } - result.authorUserId_ = authorUserId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo)other); @@ -10602,51 +11699,82 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo.getDefaultInstance()) return this; if (other.hasTransformationId()) { - bitField0_ |= 0x00000001; transformationId_ = other.transformationId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTransformedToDocumentId()) { mergeTransformedToDocumentId(other.getTransformedToDocumentId()); } if (other.hasAuthorUserId()) { - bitField0_ |= 0x00000004; authorUserId_ = other.authorUserId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTransformationId()) { - return false; } if (hasTransformedToDocumentId()) { if (!getTransformedToDocumentId().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + transformationId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTransformedToDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + authorUserId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -10654,12 +11782,14 @@ public Builder mergeFrom( private java.lang.Object transformationId_ = ""; /** * required string TransformationId = 1; + * @return Whether the transformationId field is set. */ public boolean hasTransformationId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string TransformationId = 1; + * @return The transformationId. */ public java.lang.String getTransformationId() { java.lang.Object ref = transformationId_; @@ -10677,6 +11807,7 @@ public java.lang.String getTransformationId() { } /** * required string TransformationId = 1; + * @return The bytes for transformationId. */ public com.google.protobuf.ByteString getTransformationIdBytes() { @@ -10693,55 +11824,58 @@ public java.lang.String getTransformationId() { } /** * required string TransformationId = 1; + * @param value The transformationId to set. + * @return This builder for chaining. */ public Builder setTransformationId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } transformationId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string TransformationId = 1; + * @return This builder for chaining. */ public Builder clearTransformationId() { - bitField0_ = (bitField0_ & ~0x00000001); transformationId_ = getDefaultInstance().getTransformationId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string TransformationId = 1; + * @param value The bytes for transformationId to set. + * @return This builder for chaining. */ public Builder setTransformationIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } transformationId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId transformedToDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId transformedToDocumentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> transformedToDocumentIdBuilder_; /** * optional .Diadoc.Api.Proto.DocumentId TransformedToDocumentId = 2; + * @return Whether the transformedToDocumentId field is set. */ public boolean hasTransformedToDocumentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId TransformedToDocumentId = 2; + * @return The transformedToDocumentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getTransformedToDocumentId() { if (transformedToDocumentIdBuilder_ == null) { - return transformedToDocumentId_; + return transformedToDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : transformedToDocumentId_; } else { return transformedToDocumentIdBuilder_.getMessage(); } @@ -10755,11 +11889,11 @@ public Builder setTransformedToDocumentId(Diadoc.Api.Proto.DocumentIdProtos.Docu throw new NullPointerException(); } transformedToDocumentId_ = value; - onChanged(); } else { transformedToDocumentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -10769,11 +11903,11 @@ public Builder setTransformedToDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (transformedToDocumentIdBuilder_ == null) { transformedToDocumentId_ = builderForValue.build(); - onChanged(); } else { transformedToDocumentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -10781,31 +11915,33 @@ public Builder setTransformedToDocumentId( */ public Builder mergeTransformedToDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (transformedToDocumentIdBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - transformedToDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - transformedToDocumentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(transformedToDocumentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + transformedToDocumentId_ != null && + transformedToDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getTransformedToDocumentIdBuilder().mergeFrom(value); } else { transformedToDocumentId_ = value; } - onChanged(); } else { transformedToDocumentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (transformedToDocumentId_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.DocumentId TransformedToDocumentId = 2; */ public Builder clearTransformedToDocumentId() { - if (transformedToDocumentIdBuilder_ == null) { - transformedToDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - transformedToDocumentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + transformedToDocumentId_ = null; + if (transformedToDocumentIdBuilder_ != null) { + transformedToDocumentIdBuilder_.dispose(); + transformedToDocumentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -10823,7 +11959,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getTransformedToDoc if (transformedToDocumentIdBuilder_ != null) { return transformedToDocumentIdBuilder_.getMessageOrBuilder(); } else { - return transformedToDocumentId_; + return transformedToDocumentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : transformedToDocumentId_; } } /** @@ -10846,12 +11983,14 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getTransformedToDoc private java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; @@ -10869,6 +12008,7 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ public com.google.protobuf.ByteString getAuthorUserIdBytes() { @@ -10885,36 +12025,37 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @param value The authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string AuthorUserId = 3; + * @return This builder for chaining. */ public Builder clearAuthorUserId() { - bitField0_ = (bitField0_ & ~0x00000004); authorUserId_ = getDefaultInstance().getAuthorUserId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string AuthorUserId = 3; + * @param value The bytes for authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10922,12 +12063,52 @@ public Builder setAuthorUserIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.TemplateTransformationInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.TemplateTransformationInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo DEFAULT_INSTANCE; static { - defaultInstance = new TemplateTransformationInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateTransformationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateTransformationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.TemplateTransformationInfo) } public interface TemplateRefusalInfoOrBuilder extends @@ -10936,42 +12117,51 @@ public interface TemplateRefusalInfoOrBuilder extends /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ boolean hasBoxId(); /** * required string BoxId = 1; + * @return The boxId. */ java.lang.String getBoxId(); /** * required string BoxId = 1; + * @return The bytes for boxId. */ com.google.protobuf.ByteString getBoxIdBytes(); /** * optional string AuthorUserId = 2; + * @return Whether the authorUserId field is set. */ boolean hasAuthorUserId(); /** * optional string AuthorUserId = 2; + * @return The authorUserId. */ java.lang.String getAuthorUserId(); /** * optional string AuthorUserId = 2; + * @return The bytes for authorUserId. */ com.google.protobuf.ByteString getAuthorUserIdBytes(); /** * optional string Comment = 3; + * @return Whether the comment field is set. */ boolean hasComment(); /** * optional string Comment = 3; + * @return The comment. */ java.lang.String getComment(); /** * optional string Comment = 3; + * @return The bytes for comment. */ com.google.protobuf.ByteString getCommentBytes(); @@ -10983,86 +12173,32 @@ public static final class TemplateRefusalInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.TemplateRefusalInfo) TemplateRefusalInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + TemplateRefusalInfo.class.getName()); + } // Use TemplateRefusalInfo.newBuilder() to construct. private TemplateRefusalInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private TemplateRefusalInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final TemplateRefusalInfo defaultInstance; - public static TemplateRefusalInfo getDefaultInstance() { - return defaultInstance; } - - public TemplateRefusalInfo getDefaultInstanceForType() { - return defaultInstance; + private TemplateRefusalInfo() { + boxId_ = ""; + authorUserId_ = ""; + comment_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TemplateRefusalInfo( - 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; - boxId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - authorUserId_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - comment_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_TemplateRefusalInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_TemplateRefusalInfo_fieldAccessorTable @@ -11070,33 +12206,23 @@ private TemplateRefusalInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.class, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TemplateRefusalInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TemplateRefusalInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int BOXID_FIELD_NUMBER = 1; - private java.lang.Object boxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object boxId_ = ""; /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ + @java.lang.Override public boolean hasBoxId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string BoxId = 1; + * @return The boxId. */ + @java.lang.Override public java.lang.String getBoxId() { java.lang.Object ref = boxId_; if (ref instanceof java.lang.String) { @@ -11113,7 +12239,9 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @return The bytes for boxId. */ + @java.lang.Override public com.google.protobuf.ByteString getBoxIdBytes() { java.lang.Object ref = boxId_; @@ -11129,16 +12257,21 @@ public java.lang.String getBoxId() { } public static final int AUTHORUSERID_FIELD_NUMBER = 2; - private java.lang.Object authorUserId_; + @SuppressWarnings("serial") + private volatile java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 2; + * @return Whether the authorUserId field is set. */ + @java.lang.Override public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string AuthorUserId = 2; + * @return The authorUserId. */ + @java.lang.Override public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; if (ref instanceof java.lang.String) { @@ -11155,7 +12288,9 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 2; + * @return The bytes for authorUserId. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorUserIdBytes() { java.lang.Object ref = authorUserId_; @@ -11171,16 +12306,21 @@ public java.lang.String getAuthorUserId() { } public static final int COMMENT_FIELD_NUMBER = 3; - private java.lang.Object comment_; + @SuppressWarnings("serial") + private volatile java.lang.Object comment_ = ""; /** * optional string Comment = 3; + * @return Whether the comment field is set. */ + @java.lang.Override public boolean hasComment() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Comment = 3; + * @return The comment. */ + @java.lang.Override public java.lang.String getComment() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { @@ -11197,7 +12337,9 @@ public java.lang.String getComment() { } /** * optional string Comment = 3; + * @return The bytes for comment. */ + @java.lang.Override public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; @@ -11212,12 +12354,8 @@ public java.lang.String getComment() { } } - private void initFields() { - boxId_ = ""; - authorUserId_ = ""; - comment_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -11231,51 +12369,105 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getBoxIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, boxId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, authorUserId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getCommentBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, comment_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getBoxIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, boxId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, authorUserId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getCommentBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, comment_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo other = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo) obj; + + if (hasBoxId() != other.hasBoxId()) return false; + if (hasBoxId()) { + if (!getBoxId() + .equals(other.getBoxId())) return false; + } + if (hasAuthorUserId() != other.hasAuthorUserId()) return false; + if (hasAuthorUserId()) { + if (!getAuthorUserId() + .equals(other.getAuthorUserId())) return false; + } + if (hasComment() != other.hasComment()) return false; + if (hasComment()) { + if (!getComment() + .equals(other.getComment())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBoxId()) { + hash = (37 * hash) + BOXID_FIELD_NUMBER; + hash = (53 * hash) + getBoxId().hashCode(); + } + if (hasAuthorUserId()) { + hash = (37 * hash) + AUTHORUSERID_FIELD_NUMBER; + hash = (53 * hash) + getAuthorUserId().hashCode(); + } + if (hasComment()) { + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -11299,42 +12491,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -11354,6 +12561,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_TemplateRefusalInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_TemplateRefusalInfo_fieldAccessorTable @@ -11363,46 +12571,36 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; boxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); authorUserId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); comment_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.internal_static_Diadoc_Api_Proto_Docflow_TemplateRefusalInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo build() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo result = buildPartial(); if (!result.isInitialized()) { @@ -11411,27 +12609,33 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo build() return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo buildPartial() { Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo result = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.boxId_ = boxId_; to_bitField0_ |= 0x00000001; } - result.boxId_ = boxId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authorUserId_ = authorUserId_; to_bitField0_ |= 0x00000002; } - result.authorUserId_ = authorUserId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.comment_ = comment_; to_bitField0_ |= 0x00000004; } - result.comment_ = comment_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo)other); @@ -11444,47 +12648,77 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo other) { if (other == Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo.getDefaultInstance()) return this; if (other.hasBoxId()) { - bitField0_ |= 0x00000001; boxId_ = other.boxId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasAuthorUserId()) { - bitField0_ |= 0x00000002; authorUserId_ = other.authorUserId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasComment()) { - bitField0_ |= 0x00000004; comment_ = other.comment_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasBoxId()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + boxId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + authorUserId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + comment_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -11492,12 +12726,14 @@ public Builder mergeFrom( private java.lang.Object boxId_ = ""; /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ public boolean hasBoxId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string BoxId = 1; + * @return The boxId. */ public java.lang.String getBoxId() { java.lang.Object ref = boxId_; @@ -11515,6 +12751,7 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @return The bytes for boxId. */ public com.google.protobuf.ByteString getBoxIdBytes() { @@ -11531,36 +12768,37 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @param value The boxId to set. + * @return This builder for chaining. */ public Builder setBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string BoxId = 1; + * @return This builder for chaining. */ public Builder clearBoxId() { - bitField0_ = (bitField0_ & ~0x00000001); boxId_ = getDefaultInstance().getBoxId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string BoxId = 1; + * @param value The bytes for boxId to set. + * @return This builder for chaining. */ public Builder setBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -11568,12 +12806,14 @@ public Builder setBoxIdBytes( private java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 2; + * @return Whether the authorUserId field is set. */ public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string AuthorUserId = 2; + * @return The authorUserId. */ public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; @@ -11591,6 +12831,7 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 2; + * @return The bytes for authorUserId. */ public com.google.protobuf.ByteString getAuthorUserIdBytes() { @@ -11607,36 +12848,37 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 2; + * @param value The authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string AuthorUserId = 2; + * @return This builder for chaining. */ public Builder clearAuthorUserId() { - bitField0_ = (bitField0_ & ~0x00000002); authorUserId_ = getDefaultInstance().getAuthorUserId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string AuthorUserId = 2; + * @param value The bytes for authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -11644,12 +12886,14 @@ public Builder setAuthorUserIdBytes( private java.lang.Object comment_ = ""; /** * optional string Comment = 3; + * @return Whether the comment field is set. */ public boolean hasComment() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Comment = 3; + * @return The comment. */ public java.lang.String getComment() { java.lang.Object ref = comment_; @@ -11667,6 +12911,7 @@ public java.lang.String getComment() { } /** * optional string Comment = 3; + * @return The bytes for comment. */ public com.google.protobuf.ByteString getCommentBytes() { @@ -11683,36 +12928,37 @@ public java.lang.String getComment() { } /** * optional string Comment = 3; + * @param value The comment to set. + * @return This builder for chaining. */ public Builder setComment( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } comment_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string Comment = 3; + * @return This builder for chaining. */ public Builder clearComment() { - bitField0_ = (bitField0_ & ~0x00000004); comment_ = getDefaultInstance().getComment(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string Comment = 3; + * @param value The bytes for comment to set. + * @return This builder for chaining. */ public Builder setCommentBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } comment_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -11720,62 +12966,102 @@ public Builder setCommentBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.TemplateRefusalInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.TemplateRefusalInfo) + private static final Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo DEFAULT_INSTANCE; static { - defaultInstance = new TemplateRefusalInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateRefusalInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.TemplateRefusalInfo) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipants_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipants_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipant_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipant_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentLinks_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentLinks_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_PacketInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_PacketInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentLetterInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentLetterInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentDraftInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentDraftInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentTemplateInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentTemplateInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_TemplateTransformationInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_TemplateTransformationInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_TemplateRefusalInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_TemplateRefusalInfo_fieldAccessorTable; @@ -11783,7 +13069,7 @@ public Builder setCommentBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -11796,7 +13082,7 @@ public Builder setCommentBytes( "o\032\024CustomDataItem.proto\"\206\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", + "adoc.Api.Proto.Documents.MessageType\022\022\n\n" + "WorkflowId\030\003 \002(\005\022D\n\014Participants\030\004 \002(\0132." + ".Diadoc.Api.Proto.Docflow.DocumentPartic" + "ipants\022>\n\021DocumentDirection\030\005 \002(\0162#.Diad" + @@ -11806,7 +13092,7 @@ public Builder setCommentBytes( "ts.MetadataItem\0224\n\nCustomData\030\t \003(\0132 .Di" + "adoc.Api.Proto.CustomDataItem\022>\n\rDocumen" + "tLinks\030\n \002(\0132\'.Diadoc.Api.Proto.Docflow." + - "DocumentLinks\0228\n\nPacketInfo\030\013 \002(\0132$.Diad", + "DocumentLinks\0228\n\nPacketInfo\030\013 \002(\0132$.Diad" + "oc.Api.Proto.Docflow.PacketInfo\022\016\n\006IsRea" + "d\030\014 \002(\010\022\021\n\tIsDeleted\030\r \002(\010\022\024\n\014IsInvitati" + "on\030\016 \002(\010\022@\n\nLetterInfo\030\017 \001(\0132,.Diadoc.Ap" + @@ -11816,7 +13102,7 @@ public Builder setCommentBytes( "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", + "\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@" + @@ -11826,7 +13112,7 @@ public Builder setCommentBytes( "(\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", + "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" + @@ -11836,7 +13122,7 @@ public Builder setCommentBytes( "\"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", + "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" + @@ -11846,20 +13132,12 @@ public Builder setCommentBytes( "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", + "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" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.FullVersionProtos.getDescriptor(), @@ -11871,7 +13149,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( Diadoc.Api.Proto.DocumentDirectionProtos.getDescriptor(), Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.getDescriptor(), Diadoc.Api.Proto.CustomDataItemProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_fieldAccessorTable = new @@ -11932,6 +13210,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_TemplateRefusalInfo_descriptor, new java.lang.String[] { "BoxId", "AuthorUserId", "Comment", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.FullVersionProtos.getDescriptor(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/DocumentWithDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/DocumentWithDocflowProtos.java index bdeb502d..0be9f7fa 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/DocumentWithDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/DocumentWithDocflowProtos.java @@ -1,23 +1,42 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/DocumentWithDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; -public final class DocumentWithDocflowProtos { +@java.lang.Deprecated public final class DocumentWithDocflowProtos { private DocumentWithDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentWithDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface DocumentWithDocflowOrBuilder extends + @java.lang.Deprecated public interface DocumentWithDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.DocumentWithDocflow) com.google.protobuf.MessageOrBuilder { /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ boolean hasDocumentId(); /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId(); /** @@ -27,24 +46,29 @@ public interface DocumentWithDocflowOrBuilder extends /** * optional string LastEventId = 2; + * @return Whether the lastEventId field is set. */ boolean hasLastEventId(); /** * optional string LastEventId = 2; + * @return The lastEventId. */ java.lang.String getLastEventId(); /** * optional string LastEventId = 2; + * @return The bytes for lastEventId. */ com.google.protobuf.ByteString getLastEventIdBytes(); /** * optional .Diadoc.Api.Proto.Timestamp LastEventTimestamp = 3; + * @return Whether the lastEventTimestamp field is set. */ boolean hasLastEventTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp LastEventTimestamp = 3; + * @return The lastEventTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getLastEventTimestamp(); /** @@ -54,10 +78,12 @@ public interface DocumentWithDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.DocumentInfo DocumentInfo = 4; + * @return Whether the documentInfo field is set. */ boolean hasDocumentInfo(); /** * optional .Diadoc.Api.Proto.Docflow.DocumentInfo DocumentInfo = 4; + * @return The documentInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo getDocumentInfo(); /** @@ -67,10 +93,12 @@ public interface DocumentWithDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.Docflow Docflow = 5; + * @return Whether the docflow field is set. */ boolean hasDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.Docflow Docflow = 5; + * @return The docflow. */ Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow getDocflow(); /** @@ -153,163 +181,37 @@ Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder getFor /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.DocumentWithDocflow} */ - public static final class DocumentWithDocflow extends + @java.lang.Deprecated public static final class DocumentWithDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentWithDocflow) DocumentWithDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentWithDocflow.class.getName()); + } // Use DocumentWithDocflow.newBuilder() to construct. private DocumentWithDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DocumentWithDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentWithDocflow defaultInstance; - public static DocumentWithDocflow getDefaultInstance() { - return defaultInstance; - } - - public DocumentWithDocflow getDefaultInstanceForType() { - return defaultInstance; + private DocumentWithDocflow() { + lastEventId_ = ""; + initialDocumentIds_ = java.util.Collections.emptyList(); + subordinateDocumentIds_ = java.util.Collections.emptyList(); + forwardDocumentEvents_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentWithDocflow( - 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: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = documentId_.toBuilder(); - } - documentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentId_); - documentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - lastEventId_ = bs; - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = lastEventTimestamp_.toBuilder(); - } - lastEventTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastEventTimestamp_); - lastEventTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = documentInfo_.toBuilder(); - } - documentInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentInfo_); - documentInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = docflow_.toBuilder(); - } - docflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(docflow_); - docflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - initialDocumentIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - initialDocumentIds_.add(input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry)); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - subordinateDocumentIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - subordinateDocumentIds_.add(input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry)); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - forwardDocumentEvents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - forwardDocumentEvents_.add(input.readMessage(Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.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_ & 0x00000020) == 0x00000020)) { - initialDocumentIds_ = java.util.Collections.unmodifiableList(initialDocumentIds_); - } - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - subordinateDocumentIds_ = java.util.Collections.unmodifiableList(subordinateDocumentIds_); - } - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - forwardDocumentEvents_ = java.util.Collections.unmodifiableList(forwardDocumentEvents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflow_fieldAccessorTable @@ -317,54 +219,49 @@ private DocumentWithDocflow( Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.class, Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentWithDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentWithDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTID_FIELD_NUMBER = 1; private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ + @java.lang.Override public boolean hasDocumentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 1; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuilder() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } public static final int LASTEVENTID_FIELD_NUMBER = 2; - private java.lang.Object lastEventId_; + @SuppressWarnings("serial") + private volatile java.lang.Object lastEventId_ = ""; /** * optional string LastEventId = 2; + * @return Whether the lastEventId field is set. */ + @java.lang.Override public boolean hasLastEventId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string LastEventId = 2; + * @return The lastEventId. */ + @java.lang.Override public java.lang.String getLastEventId() { java.lang.Object ref = lastEventId_; if (ref instanceof java.lang.String) { @@ -381,7 +278,9 @@ public java.lang.String getLastEventId() { } /** * optional string LastEventId = 2; + * @return The bytes for lastEventId. */ + @java.lang.Override public com.google.protobuf.ByteString getLastEventIdBytes() { java.lang.Object ref = lastEventId_; @@ -400,76 +299,94 @@ public java.lang.String getLastEventId() { private Diadoc.Api.Proto.TimestampProtos.Timestamp lastEventTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp LastEventTimestamp = 3; + * @return Whether the lastEventTimestamp field is set. */ + @java.lang.Override public boolean hasLastEventTimestamp() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp LastEventTimestamp = 3; + * @return The lastEventTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getLastEventTimestamp() { - return lastEventTimestamp_; + return lastEventTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : lastEventTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp LastEventTimestamp = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getLastEventTimestampOrBuilder() { - return lastEventTimestamp_; + return lastEventTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : lastEventTimestamp_; } public static final int DOCUMENTINFO_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo documentInfo_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentInfo DocumentInfo = 4; + * @return Whether the documentInfo field is set. */ + @java.lang.Override public boolean hasDocumentInfo() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentInfo DocumentInfo = 4; + * @return The documentInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo getDocumentInfo() { - return documentInfo_; + return documentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance() : documentInfo_; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentInfo DocumentInfo = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfoOrBuilder getDocumentInfoOrBuilder() { - return documentInfo_; + return documentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance() : documentInfo_; } public static final int DOCFLOW_FIELD_NUMBER = 5; private Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow docflow_; /** * optional .Diadoc.Api.Proto.Docflow.Docflow Docflow = 5; + * @return Whether the docflow field is set. */ + @java.lang.Override public boolean hasDocflow() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Docflow Docflow = 5; + * @return The docflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow getDocflow() { - return docflow_; + return docflow_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance() : docflow_; } /** * optional .Diadoc.Api.Proto.Docflow.Docflow Docflow = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowOrBuilder getDocflowOrBuilder() { - return docflow_; + return docflow_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance() : docflow_; } public static final int INITIALDOCUMENTIDS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private java.util.List initialDocumentIds_; /** * repeated .Diadoc.Api.Proto.DocumentId InitialDocumentIds = 6; */ + @java.lang.Override public java.util.List getInitialDocumentIdsList() { return initialDocumentIds_; } /** * repeated .Diadoc.Api.Proto.DocumentId InitialDocumentIds = 6; */ + @java.lang.Override public java.util.List getInitialDocumentIdsOrBuilderList() { return initialDocumentIds_; @@ -477,34 +394,40 @@ public java.util.List getInitialDo /** * repeated .Diadoc.Api.Proto.DocumentId InitialDocumentIds = 6; */ + @java.lang.Override public int getInitialDocumentIdsCount() { return initialDocumentIds_.size(); } /** * repeated .Diadoc.Api.Proto.DocumentId InitialDocumentIds = 6; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInitialDocumentIds(int index) { return initialDocumentIds_.get(index); } /** * repeated .Diadoc.Api.Proto.DocumentId InitialDocumentIds = 6; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInitialDocumentIdsOrBuilder( int index) { return initialDocumentIds_.get(index); } public static final int SUBORDINATEDOCUMENTIDS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private java.util.List subordinateDocumentIds_; /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateDocumentIds = 7; */ + @java.lang.Override public java.util.List getSubordinateDocumentIdsList() { return subordinateDocumentIds_; } /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateDocumentIds = 7; */ + @java.lang.Override public java.util.List getSubordinateDocumentIdsOrBuilderList() { return subordinateDocumentIds_; @@ -512,34 +435,40 @@ public java.util.List getSubordina /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateDocumentIds = 7; */ + @java.lang.Override public int getSubordinateDocumentIdsCount() { return subordinateDocumentIds_.size(); } /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateDocumentIds = 7; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getSubordinateDocumentIds(int index) { return subordinateDocumentIds_.get(index); } /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateDocumentIds = 7; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsOrBuilder( int index) { return subordinateDocumentIds_.get(index); } public static final int FORWARDDOCUMENTEVENTS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private java.util.List forwardDocumentEvents_; /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 8; */ + @java.lang.Override public java.util.List getForwardDocumentEventsList() { return forwardDocumentEvents_; } /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 8; */ + @java.lang.Override public java.util.List getForwardDocumentEventsOrBuilderList() { return forwardDocumentEvents_; @@ -547,34 +476,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 8; */ + @java.lang.Override public int getForwardDocumentEventsCount() { return forwardDocumentEvents_.size(); } /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 8; */ + @java.lang.Override public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent getForwardDocumentEvents(int index) { return forwardDocumentEvents_.get(index); } /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 8; */ + @java.lang.Override public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder getForwardDocumentEventsOrBuilder( int index) { return forwardDocumentEvents_.get(index); } - private void initFields() { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - lastEventId_ = ""; - lastEventTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - documentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance(); - docflow_ = Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance(); - initialDocumentIds_ = java.util.Collections.emptyList(); - subordinateDocumentIds_ = java.util.Collections.emptyList(); - forwardDocumentEvents_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -626,23 +549,23 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, documentId_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDocumentId()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getLastEventIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, lastEventId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, lastEventTimestamp_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getLastEventTimestamp()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, documentInfo_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getDocumentInfo()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, docflow_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getDocflow()); } for (int i = 0; i < initialDocumentIds_.size(); i++) { output.writeMessage(6, initialDocumentIds_.get(i)); @@ -656,31 +579,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, documentId_); + .computeMessageSize(1, getDocumentId()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getLastEventIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, lastEventId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, lastEventTimestamp_); + .computeMessageSize(3, getLastEventTimestamp()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, documentInfo_); + .computeMessageSize(4, getDocumentInfo()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, docflow_); + .computeMessageSize(5, getDocflow()); } for (int i = 0; i < initialDocumentIds_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -695,17 +617,110 @@ public int getSerializedSize() { .computeMessageSize(8, forwardDocumentEvents_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow other = (Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow) obj; + + if (hasDocumentId() != other.hasDocumentId()) return false; + if (hasDocumentId()) { + if (!getDocumentId() + .equals(other.getDocumentId())) return false; + } + if (hasLastEventId() != other.hasLastEventId()) return false; + if (hasLastEventId()) { + if (!getLastEventId() + .equals(other.getLastEventId())) return false; + } + if (hasLastEventTimestamp() != other.hasLastEventTimestamp()) return false; + if (hasLastEventTimestamp()) { + if (!getLastEventTimestamp() + .equals(other.getLastEventTimestamp())) return false; + } + if (hasDocumentInfo() != other.hasDocumentInfo()) return false; + if (hasDocumentInfo()) { + if (!getDocumentInfo() + .equals(other.getDocumentInfo())) return false; + } + if (hasDocflow() != other.hasDocflow()) return false; + if (hasDocflow()) { + if (!getDocflow() + .equals(other.getDocflow())) return false; + } + if (!getInitialDocumentIdsList() + .equals(other.getInitialDocumentIdsList())) return false; + if (!getSubordinateDocumentIdsList() + .equals(other.getSubordinateDocumentIdsList())) return false; + if (!getForwardDocumentEventsList() + .equals(other.getForwardDocumentEventsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentId()) { + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDocumentId().hashCode(); + } + if (hasLastEventId()) { + hash = (37 * hash) + LASTEVENTID_FIELD_NUMBER; + hash = (53 * hash) + getLastEventId().hashCode(); + } + if (hasLastEventTimestamp()) { + hash = (37 * hash) + LASTEVENTTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getLastEventTimestamp().hashCode(); + } + if (hasDocumentInfo()) { + hash = (37 * hash) + DOCUMENTINFO_FIELD_NUMBER; + hash = (53 * hash) + getDocumentInfo().hashCode(); + } + if (hasDocflow()) { + hash = (37 * hash) + DOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getDocflow().hashCode(); + } + if (getInitialDocumentIdsCount() > 0) { + hash = (37 * hash) + INITIALDOCUMENTIDS_FIELD_NUMBER; + hash = (53 * hash) + getInitialDocumentIdsList().hashCode(); + } + if (getSubordinateDocumentIdsCount() > 0) { + hash = (37 * hash) + SUBORDINATEDOCUMENTIDS_FIELD_NUMBER; + hash = (53 * hash) + getSubordinateDocumentIdsList().hashCode(); + } + if (getForwardDocumentEventsCount() > 0) { + hash = (37 * hash) + FORWARDDOCUMENTEVENTS_FIELD_NUMBER; + hash = (53 * hash) + getForwardDocumentEventsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -729,42 +744,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDoc } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -784,6 +814,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflow_fieldAccessorTable @@ -802,7 +833,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDocumentIdFieldBuilder(); getLastEventTimestampFieldBuilder(); getDocumentInfoFieldBuilder(); @@ -812,72 +844,67 @@ private void maybeForceBuilderInitialization() { getForwardDocumentEventsFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - documentIdBuilder_.clear(); + bitField0_ = 0; + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); lastEventId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (lastEventTimestampBuilder_ == null) { - lastEventTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - lastEventTimestampBuilder_.clear(); + lastEventTimestamp_ = null; + if (lastEventTimestampBuilder_ != null) { + lastEventTimestampBuilder_.dispose(); + lastEventTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (documentInfoBuilder_ == null) { - documentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance(); - } else { - documentInfoBuilder_.clear(); + documentInfo_ = null; + if (documentInfoBuilder_ != null) { + documentInfoBuilder_.dispose(); + documentInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (docflowBuilder_ == null) { - docflow_ = Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance(); - } else { - docflowBuilder_.clear(); + docflow_ = null; + if (docflowBuilder_ != null) { + docflowBuilder_.dispose(); + docflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); if (initialDocumentIdsBuilder_ == null) { initialDocumentIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); } else { + initialDocumentIds_ = null; initialDocumentIdsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000020); if (subordinateDocumentIdsBuilder_ == null) { subordinateDocumentIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); } else { + subordinateDocumentIds_ = null; subordinateDocumentIdsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000040); if (forwardDocumentEventsBuilder_ == null) { forwardDocumentEvents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); } else { + forwardDocumentEvents_ = null; forwardDocumentEventsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow build() { Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -886,48 +913,18 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow bu return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow buildPartial() { Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow result = new Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (documentIdBuilder_ == null) { - result.documentId_ = documentId_; - } else { - result.documentId_ = documentIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.lastEventId_ = lastEventId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (lastEventTimestampBuilder_ == null) { - result.lastEventTimestamp_ = lastEventTimestamp_; - } else { - result.lastEventTimestamp_ = lastEventTimestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (documentInfoBuilder_ == null) { - result.documentInfo_ = documentInfo_; - } else { - result.documentInfo_ = documentInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (docflowBuilder_ == null) { - result.docflow_ = docflow_; - } else { - result.docflow_ = docflowBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow result) { if (initialDocumentIdsBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { initialDocumentIds_ = java.util.Collections.unmodifiableList(initialDocumentIds_); bitField0_ = (bitField0_ & ~0x00000020); } @@ -936,7 +933,7 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow bu result.initialDocumentIds_ = initialDocumentIdsBuilder_.build(); } if (subordinateDocumentIdsBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { subordinateDocumentIds_ = java.util.Collections.unmodifiableList(subordinateDocumentIds_); bitField0_ = (bitField0_ & ~0x00000040); } @@ -945,7 +942,7 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow bu result.subordinateDocumentIds_ = subordinateDocumentIdsBuilder_.build(); } if (forwardDocumentEventsBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { forwardDocumentEvents_ = java.util.Collections.unmodifiableList(forwardDocumentEvents_); bitField0_ = (bitField0_ & ~0x00000080); } @@ -953,11 +950,43 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow bu } else { result.forwardDocumentEvents_ = forwardDocumentEventsBuilder_.build(); } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentId_ = documentIdBuilder_ == null + ? documentId_ + : documentIdBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastEventId_ = lastEventId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lastEventTimestamp_ = lastEventTimestampBuilder_ == null + ? lastEventTimestamp_ + : lastEventTimestampBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.documentInfo_ = documentInfoBuilder_ == null + ? documentInfo_ + : documentInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.docflow_ = docflowBuilder_ == null + ? docflow_ + : docflowBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow)other); @@ -973,8 +1002,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.Docu mergeDocumentId(other.getDocumentId()); } if (other.hasLastEventId()) { - bitField0_ |= 0x00000002; lastEventId_ = other.lastEventId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasLastEventTimestamp()) { @@ -1065,89 +1094,172 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.Docu } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasDocumentId()) { if (!getDocumentId().isInitialized()) { - return false; } } if (hasLastEventTimestamp()) { if (!getLastEventTimestamp().isInitialized()) { - return false; } } if (hasDocumentInfo()) { if (!getDocumentInfo().isInitialized()) { - return false; } } if (hasDocflow()) { if (!getDocflow().isInitialized()) { - return false; } } for (int i = 0; i < getInitialDocumentIdsCount(); i++) { if (!getInitialDocumentIds(i).isInitialized()) { - return false; } } for (int i = 0; i < getSubordinateDocumentIdsCount(); i++) { if (!getSubordinateDocumentIds(i).isInitialized()) { - return false; } } for (int i = 0; i < getForwardDocumentEventsCount(); i++) { if (!getForwardDocumentEvents(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + lastEventId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getLastEventTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDocumentInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + Diadoc.Api.Proto.DocumentIdProtos.DocumentId m = + input.readMessage( + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.parser(), + extensionRegistry); + if (initialDocumentIdsBuilder_ == null) { + ensureInitialDocumentIdsIsMutable(); + initialDocumentIds_.add(m); + } else { + initialDocumentIdsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + Diadoc.Api.Proto.DocumentIdProtos.DocumentId m = + input.readMessage( + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.parser(), + extensionRegistry); + if (subordinateDocumentIdsBuilder_ == null) { + ensureSubordinateDocumentIdsIsMutable(); + subordinateDocumentIds_.add(m); + } else { + subordinateDocumentIdsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent m = + input.readMessage( + Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.parser(), + extensionRegistry); + if (forwardDocumentEventsBuilder_ == null) { + ensureForwardDocumentEventsIsMutable(); + forwardDocumentEvents_.add(m); + } else { + forwardDocumentEventsBuilder_.addMessage(m); + } + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> documentIdBuilder_; /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ public boolean hasDocumentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { if (documentIdBuilder_ == null) { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } else { return documentIdBuilder_.getMessage(); } @@ -1161,11 +1273,11 @@ public Builder setDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) throw new NullPointerException(); } documentId_ = value; - onChanged(); } else { documentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1175,11 +1287,11 @@ public Builder setDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (documentIdBuilder_ == null) { documentId_ = builderForValue.build(); - onChanged(); } else { documentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1187,31 +1299,33 @@ public Builder setDocumentId( */ public Builder mergeDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (documentIdBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - documentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(documentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + documentId_ != null && + documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getDocumentIdBuilder().mergeFrom(value); } else { documentId_ = value; } - onChanged(); } else { documentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (documentId_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.DocumentId DocumentId = 1; */ public Builder clearDocumentId() { - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - documentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -1229,7 +1343,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil if (documentIdBuilder_ != null) { return documentIdBuilder_.getMessageOrBuilder(); } else { - return documentId_; + return documentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } } /** @@ -1252,12 +1367,14 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil private java.lang.Object lastEventId_ = ""; /** * optional string LastEventId = 2; + * @return Whether the lastEventId field is set. */ public boolean hasLastEventId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string LastEventId = 2; + * @return The lastEventId. */ public java.lang.String getLastEventId() { java.lang.Object ref = lastEventId_; @@ -1275,6 +1392,7 @@ public java.lang.String getLastEventId() { } /** * optional string LastEventId = 2; + * @return The bytes for lastEventId. */ public com.google.protobuf.ByteString getLastEventIdBytes() { @@ -1291,55 +1409,58 @@ public java.lang.String getLastEventId() { } /** * optional string LastEventId = 2; + * @param value The lastEventId to set. + * @return This builder for chaining. */ public Builder setLastEventId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } lastEventId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string LastEventId = 2; + * @return This builder for chaining. */ public Builder clearLastEventId() { - bitField0_ = (bitField0_ & ~0x00000002); lastEventId_ = getDefaultInstance().getLastEventId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string LastEventId = 2; + * @param value The bytes for lastEventId to set. + * @return This builder for chaining. */ public Builder setLastEventIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } lastEventId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp lastEventTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp lastEventTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> lastEventTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp LastEventTimestamp = 3; + * @return Whether the lastEventTimestamp field is set. */ public boolean hasLastEventTimestamp() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp LastEventTimestamp = 3; + * @return The lastEventTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getLastEventTimestamp() { if (lastEventTimestampBuilder_ == null) { - return lastEventTimestamp_; + return lastEventTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : lastEventTimestamp_; } else { return lastEventTimestampBuilder_.getMessage(); } @@ -1353,11 +1474,11 @@ public Builder setLastEventTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp throw new NullPointerException(); } lastEventTimestamp_ = value; - onChanged(); } else { lastEventTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1367,11 +1488,11 @@ public Builder setLastEventTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (lastEventTimestampBuilder_ == null) { lastEventTimestamp_ = builderForValue.build(); - onChanged(); } else { lastEventTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1379,31 +1500,33 @@ public Builder setLastEventTimestamp( */ public Builder mergeLastEventTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (lastEventTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - lastEventTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - lastEventTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(lastEventTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + lastEventTimestamp_ != null && + lastEventTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getLastEventTimestampBuilder().mergeFrom(value); } else { lastEventTimestamp_ = value; } - onChanged(); } else { lastEventTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (lastEventTimestamp_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp LastEventTimestamp = 3; */ public Builder clearLastEventTimestamp() { - if (lastEventTimestampBuilder_ == null) { - lastEventTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - lastEventTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + lastEventTimestamp_ = null; + if (lastEventTimestampBuilder_ != null) { + lastEventTimestampBuilder_.dispose(); + lastEventTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -1421,7 +1544,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getLastEventTimestamp if (lastEventTimestampBuilder_ != null) { return lastEventTimestampBuilder_.getMessageOrBuilder(); } else { - return lastEventTimestamp_; + return lastEventTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : lastEventTimestamp_; } } /** @@ -1441,21 +1565,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getLastEventTimestamp return lastEventTimestampBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo documentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo documentInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfoOrBuilder> documentInfoBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.DocumentInfo DocumentInfo = 4; + * @return Whether the documentInfo field is set. */ public boolean hasDocumentInfo() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.DocumentInfo DocumentInfo = 4; + * @return The documentInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo getDocumentInfo() { if (documentInfoBuilder_ == null) { - return documentInfo_; + return documentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance() : documentInfo_; } else { return documentInfoBuilder_.getMessage(); } @@ -1469,11 +1595,11 @@ public Builder setDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.Docum throw new NullPointerException(); } documentInfo_ = value; - onChanged(); } else { documentInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1483,11 +1609,11 @@ public Builder setDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.Builder builderForValue) { if (documentInfoBuilder_ == null) { documentInfo_ = builderForValue.build(); - onChanged(); } else { documentInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1495,31 +1621,33 @@ public Builder setDocumentInfo( */ public Builder mergeDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo value) { if (documentInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - documentInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance()) { - documentInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.newBuilder(documentInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + documentInfo_ != null && + documentInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance()) { + getDocumentInfoBuilder().mergeFrom(value); } else { documentInfo_ = value; } - onChanged(); } else { documentInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (documentInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.DocumentInfo DocumentInfo = 4; */ public Builder clearDocumentInfo() { - if (documentInfoBuilder_ == null) { - documentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance(); - onChanged(); - } else { - documentInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + documentInfo_ = null; + if (documentInfoBuilder_ != null) { + documentInfoBuilder_.dispose(); + documentInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -1537,7 +1665,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfoOrBuilder getDocu if (documentInfoBuilder_ != null) { return documentInfoBuilder_.getMessageOrBuilder(); } else { - return documentInfo_; + return documentInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfo.getDefaultInstance() : documentInfo_; } } /** @@ -1557,21 +1686,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoProtos.DocumentInfoOrBuilder getDocu return documentInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow docflow_ = Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow docflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow, Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.Builder, Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowOrBuilder> docflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.Docflow Docflow = 5; + * @return Whether the docflow field is set. */ public boolean hasDocflow() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Docflow Docflow = 5; + * @return The docflow. */ public Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow getDocflow() { if (docflowBuilder_ == null) { - return docflow_; + return docflow_ == null ? Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance() : docflow_; } else { return docflowBuilder_.getMessage(); } @@ -1585,11 +1716,11 @@ public Builder setDocflow(Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow value) throw new NullPointerException(); } docflow_ = value; - onChanged(); } else { docflowBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1599,11 +1730,11 @@ public Builder setDocflow( Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.Builder builderForValue) { if (docflowBuilder_ == null) { docflow_ = builderForValue.build(); - onChanged(); } else { docflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1611,31 +1742,33 @@ public Builder setDocflow( */ public Builder mergeDocflow(Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow value) { if (docflowBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - docflow_ != Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance()) { - docflow_ = - Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.newBuilder(docflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + docflow_ != null && + docflow_ != Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance()) { + getDocflowBuilder().mergeFrom(value); } else { docflow_ = value; } - onChanged(); } else { docflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (docflow_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.Docflow Docflow = 5; */ public Builder clearDocflow() { - if (docflowBuilder_ == null) { - docflow_ = Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance(); - onChanged(); - } else { - docflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + docflow_ = null; + if (docflowBuilder_ != null) { + docflowBuilder_.dispose(); + docflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1653,7 +1786,8 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowOrBuilder getDocflowOrBuild if (docflowBuilder_ != null) { return docflowBuilder_.getMessageOrBuilder(); } else { - return docflow_; + return docflow_ == null ? + Diadoc.Api.Proto.Docflow.DocflowProtos.Docflow.getDefaultInstance() : docflow_; } } /** @@ -1676,7 +1810,7 @@ public Diadoc.Api.Proto.Docflow.DocflowProtos.DocflowOrBuilder getDocflowOrBuild private java.util.List initialDocumentIds_ = java.util.Collections.emptyList(); private void ensureInitialDocumentIdsIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { + if (!((bitField0_ & 0x00000020) != 0)) { initialDocumentIds_ = new java.util.ArrayList(initialDocumentIds_); bitField0_ |= 0x00000020; } @@ -1905,7 +2039,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addInitialDocumentId initialDocumentIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder>( initialDocumentIds_, - ((bitField0_ & 0x00000020) == 0x00000020), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); initialDocumentIds_ = null; @@ -1916,7 +2050,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addInitialDocumentId private java.util.List subordinateDocumentIds_ = java.util.Collections.emptyList(); private void ensureSubordinateDocumentIdsIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { + if (!((bitField0_ & 0x00000040) != 0)) { subordinateDocumentIds_ = new java.util.ArrayList(subordinateDocumentIds_); bitField0_ |= 0x00000040; } @@ -2145,7 +2279,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addSubordinateDocume subordinateDocumentIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder>( subordinateDocumentIds_, - ((bitField0_ & 0x00000040) == 0x00000040), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); subordinateDocumentIds_ = null; @@ -2156,7 +2290,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addSubordinateDocume private java.util.List forwardDocumentEvents_ = java.util.Collections.emptyList(); private void ensureForwardDocumentEventsIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { + if (!((bitField0_ & 0x00000080) != 0)) { forwardDocumentEvents_ = new java.util.ArrayList(forwardDocumentEvents_); bitField0_ |= 0x00000080; } @@ -2385,7 +2519,7 @@ public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder forwardDocumentEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent, Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder, Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder>( forwardDocumentEvents_, - ((bitField0_ & 0x00000080) == 0x00000080), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); forwardDocumentEvents_ = null; @@ -2396,17 +2530,57 @@ public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentWithDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentWithDocflow) + private static final Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow DEFAULT_INSTANCE; static { - defaultInstance = new DocumentWithDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentWithDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentWithDocflowProtos.DocumentWithDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentWithDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflow_fieldAccessorTable; @@ -2414,7 +2588,7 @@ public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -2422,29 +2596,21 @@ public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder "doc.Api.Proto.Docflow\032\017Timestamp.proto\032\020" + "DocumentId.proto\032\032ForwardDocumentEvent.p" + "roto\032\025Docflow/Docflow.proto\032\032Docflow/Doc" + - "umentInfo.proto\"\306\003\n\023DocumentWithDocflow\022" + + "umentInfo.proto\"\312\003\n\023DocumentWithDocflow\022" + "0\n\nDocumentId\030\001 \001(\0132\034.Diadoc.Api.Proto.D" + "ocumentId\022\023\n\013LastEventId\030\002 \001(\t\0227\n\022LastEv" + "entTimestamp\030\003 \001(\0132\033.Diadoc.Api.Proto.Ti" + "mestamp\022<\n\014DocumentInfo\030\004 \001(\0132&.Diadoc.A" + - "pi.Proto.Docflow.DocumentInfo\0222\n\007Docflow", + "pi.Proto.Docflow.DocumentInfo\0222\n\007Docflow" + "\030\005 \001(\0132!.Diadoc.Api.Proto.Docflow.Docflo" + "w\0228\n\022InitialDocumentIds\030\006 \003(\0132\034.Diadoc.A" + "pi.Proto.DocumentId\022<\n\026SubordinateDocume" + "ntIds\030\007 \003(\0132\034.Diadoc.Api.Proto.DocumentI" + "d\022E\n\025ForwardDocumentEvents\030\010 \003(\0132&.Diado" + - "c.Api.Proto.ForwardDocumentEventB\033B\031Docu" + - "mentWithDocflowProtos" + "c.Api.Proto.ForwardDocumentEvent:\002\030\001B\036B\031" + + "DocumentWithDocflowProtos\270\001\001" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), @@ -2452,13 +2618,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( Diadoc.Api.Proto.ForwardDocumentEventProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.DocflowProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.DocumentInfoProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflow_descriptor, new java.lang.String[] { "DocumentId", "LastEventId", "LastEventTimestamp", "DocumentInfo", "Docflow", "InitialDocumentIds", "SubordinateDocumentIds", "ForwardDocumentEvents", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); Diadoc.Api.Proto.ForwardDocumentEventProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/DocumentWithDocflowV3Protos.java b/src/main/java/Diadoc/Api/Proto/Docflow/DocumentWithDocflowV3Protos.java index 36566f82..018d4af3 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/DocumentWithDocflowV3Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/DocumentWithDocflowV3Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/DocumentWithDocflowV3.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class DocumentWithDocflowV3Protos { private DocumentWithDocflowV3Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentWithDocflowV3Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DocumentWithDocflowV3OrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3) @@ -14,10 +31,12 @@ public interface DocumentWithDocflowV3OrBuilder extends /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ boolean hasDocumentId(); /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId(); /** @@ -27,10 +46,12 @@ public interface DocumentWithDocflowV3OrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.LastEvent LastEvent = 2; + * @return Whether the lastEvent field is set. */ boolean hasLastEvent(); /** * required .Diadoc.Api.Proto.Docflow.LastEvent LastEvent = 2; + * @return The lastEvent. */ Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent getLastEvent(); /** @@ -40,10 +61,12 @@ public interface DocumentWithDocflowV3OrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.DocumentInfoV3 DocumentInfo = 3; + * @return Whether the documentInfo field is set. */ boolean hasDocumentInfo(); /** * required .Diadoc.Api.Proto.Docflow.DocumentInfoV3 DocumentInfo = 3; + * @return The documentInfo. */ Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 getDocumentInfo(); /** @@ -53,10 +76,12 @@ public interface DocumentWithDocflowV3OrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.DocflowV3 Docflow = 4; + * @return Whether the docflow field is set. */ boolean hasDocflow(); /** * required .Diadoc.Api.Proto.Docflow.DocflowV3 Docflow = 4; + * @return The docflow. */ Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 getDocflow(); /** @@ -71,120 +96,29 @@ public static final class DocumentWithDocflowV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3) DocumentWithDocflowV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentWithDocflowV3.class.getName()); + } // Use DocumentWithDocflowV3.newBuilder() to construct. private DocumentWithDocflowV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DocumentWithDocflowV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentWithDocflowV3 defaultInstance; - public static DocumentWithDocflowV3 getDefaultInstance() { - return defaultInstance; + private DocumentWithDocflowV3() { } - public DocumentWithDocflowV3 getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentWithDocflowV3( - 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: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = documentId_.toBuilder(); - } - documentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentId_); - documentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = lastEvent_.toBuilder(); - } - lastEvent_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastEvent_); - lastEvent_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = documentInfo_.toBuilder(); - } - documentInfo_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentInfo_); - documentInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = docflow_.toBuilder(); - } - docflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(docflow_); - docflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - 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.Docflow.DocumentWithDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflowV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflowV3_fieldAccessorTable @@ -192,113 +126,113 @@ private DocumentWithDocflowV3( Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.class, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentWithDocflowV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentWithDocflowV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTID_FIELD_NUMBER = 1; private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ + @java.lang.Override public boolean hasDocumentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuilder() { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } public static final int LASTEVENT_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent lastEvent_; /** * required .Diadoc.Api.Proto.Docflow.LastEvent LastEvent = 2; + * @return Whether the lastEvent field is set. */ + @java.lang.Override public boolean hasLastEvent() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Docflow.LastEvent LastEvent = 2; + * @return The lastEvent. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent getLastEvent() { - return lastEvent_; + return lastEvent_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance() : lastEvent_; } /** * required .Diadoc.Api.Proto.Docflow.LastEvent LastEvent = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEventOrBuilder getLastEventOrBuilder() { - return lastEvent_; + return lastEvent_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance() : lastEvent_; } public static final int DOCUMENTINFO_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 documentInfo_; /** * required .Diadoc.Api.Proto.Docflow.DocumentInfoV3 DocumentInfo = 3; + * @return Whether the documentInfo field is set. */ + @java.lang.Override public boolean hasDocumentInfo() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentInfoV3 DocumentInfo = 3; + * @return The documentInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 getDocumentInfo() { - return documentInfo_; + return documentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance() : documentInfo_; } /** * required .Diadoc.Api.Proto.Docflow.DocumentInfoV3 DocumentInfo = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3OrBuilder getDocumentInfoOrBuilder() { - return documentInfo_; + return documentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance() : documentInfo_; } public static final int DOCFLOW_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 docflow_; /** * required .Diadoc.Api.Proto.Docflow.DocflowV3 Docflow = 4; + * @return Whether the docflow field is set. */ + @java.lang.Override public boolean hasDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocflowV3 Docflow = 4; + * @return The docflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 getDocflow() { - return docflow_; + return docflow_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance() : docflow_; } /** * required .Diadoc.Api.Proto.Docflow.DocflowV3 Docflow = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3OrBuilder getDocflowOrBuilder() { - return docflow_; + return docflow_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance() : docflow_; } - private void initFields() { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - lastEvent_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance(); - documentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance(); - docflow_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -340,58 +274,124 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, documentId_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDocumentId()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, lastEvent_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getLastEvent()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, documentInfo_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDocumentInfo()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, docflow_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getDocflow()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, documentId_); + .computeMessageSize(1, getDocumentId()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, lastEvent_); + .computeMessageSize(2, getLastEvent()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, documentInfo_); + .computeMessageSize(3, getDocumentInfo()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, docflow_); + .computeMessageSize(4, getDocflow()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 other = (Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3) obj; + + if (hasDocumentId() != other.hasDocumentId()) return false; + if (hasDocumentId()) { + if (!getDocumentId() + .equals(other.getDocumentId())) return false; + } + if (hasLastEvent() != other.hasLastEvent()) return false; + if (hasLastEvent()) { + if (!getLastEvent() + .equals(other.getLastEvent())) return false; + } + if (hasDocumentInfo() != other.hasDocumentInfo()) return false; + if (hasDocumentInfo()) { + if (!getDocumentInfo() + .equals(other.getDocumentInfo())) return false; + } + if (hasDocflow() != other.hasDocflow()) return false; + if (hasDocflow()) { + if (!getDocflow() + .equals(other.getDocflow())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentId()) { + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDocumentId().hashCode(); + } + if (hasLastEvent()) { + hash = (37 * hash) + LASTEVENT_FIELD_NUMBER; + hash = (53 * hash) + getLastEvent().hashCode(); + } + if (hasDocumentInfo()) { + hash = (37 * hash) + DOCUMENTINFO_FIELD_NUMBER; + hash = (53 * hash) + getDocumentInfo().hashCode(); + } + if (hasDocflow()) { + hash = (37 * hash) + DOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getDocflow().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -415,42 +415,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithD } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -470,6 +485,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflowV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflowV3_fieldAccessorTable @@ -488,59 +504,53 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDocumentIdFieldBuilder(); getLastEventFieldBuilder(); getDocumentInfoFieldBuilder(); getDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - documentIdBuilder_.clear(); + bitField0_ = 0; + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (lastEventBuilder_ == null) { - lastEvent_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance(); - } else { - lastEventBuilder_.clear(); + lastEvent_ = null; + if (lastEventBuilder_ != null) { + lastEventBuilder_.dispose(); + lastEventBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (documentInfoBuilder_ == null) { - documentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance(); - } else { - documentInfoBuilder_.clear(); + documentInfo_ = null; + if (documentInfoBuilder_ != null) { + documentInfoBuilder_.dispose(); + documentInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (docflowBuilder_ == null) { - docflow_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance(); - } else { - docflowBuilder_.clear(); + docflow_ = null; + if (docflowBuilder_ != null) { + docflowBuilder_.dispose(); + docflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflowV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 build() { Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 result = buildPartial(); if (!result.isInitialized()) { @@ -549,47 +559,45 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 buildPartial() { Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 result = new Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentId_ = documentIdBuilder_ == null + ? documentId_ + : documentIdBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (documentIdBuilder_ == null) { - result.documentId_ = documentId_; - } else { - result.documentId_ = documentIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastEvent_ = lastEventBuilder_ == null + ? lastEvent_ + : lastEventBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (lastEventBuilder_ == null) { - result.lastEvent_ = lastEvent_; - } else { - result.lastEvent_ = lastEventBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.documentInfo_ = documentInfoBuilder_ == null + ? documentInfo_ + : documentInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (documentInfoBuilder_ == null) { - result.documentInfo_ = documentInfo_; - } else { - result.documentInfo_ = documentInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.docflow_ = docflowBuilder_ == null + ? docflow_ + : docflowBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (docflowBuilder_ == null) { - result.docflow_ = docflow_; - } else { - result.docflow_ = docflowBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3)other); @@ -614,79 +622,117 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.Do mergeDocflow(other.getDocflow()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocumentId()) { - return false; } if (!hasLastEvent()) { - return false; } if (!hasDocumentInfo()) { - return false; } if (!hasDocflow()) { - return false; } if (!getDocumentId().isInitialized()) { - return false; } if (!getLastEvent().isInitialized()) { - return false; } if (!getDocumentInfo().isInitialized()) { - return false; } if (!getDocflow().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getLastEventFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDocumentInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId documentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> documentIdBuilder_; /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return Whether the documentId field is set. */ public boolean hasDocumentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; + * @return The documentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentId() { if (documentIdBuilder_ == null) { - return documentId_; + return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } else { return documentIdBuilder_.getMessage(); } @@ -700,11 +746,11 @@ public Builder setDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) throw new NullPointerException(); } documentId_ = value; - onChanged(); } else { documentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -714,11 +760,11 @@ public Builder setDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (documentIdBuilder_ == null) { documentId_ = builderForValue.build(); - onChanged(); } else { documentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -726,31 +772,33 @@ public Builder setDocumentId( */ public Builder mergeDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (documentIdBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - documentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(documentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + documentId_ != null && + documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getDocumentIdBuilder().mergeFrom(value); } else { documentId_ = value; } - onChanged(); } else { documentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (documentId_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.DocumentId DocumentId = 1; */ public Builder clearDocumentId() { - if (documentIdBuilder_ == null) { - documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - documentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + documentId_ = null; + if (documentIdBuilder_ != null) { + documentIdBuilder_.dispose(); + documentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -768,7 +816,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil if (documentIdBuilder_ != null) { return documentIdBuilder_.getMessageOrBuilder(); } else { - return documentId_; + return documentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : documentId_; } } /** @@ -788,21 +837,23 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdOrBuil return documentIdBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent lastEvent_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent lastEvent_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.Builder, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEventOrBuilder> lastEventBuilder_; /** * required .Diadoc.Api.Proto.Docflow.LastEvent LastEvent = 2; + * @return Whether the lastEvent field is set. */ public boolean hasLastEvent() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Docflow.LastEvent LastEvent = 2; + * @return The lastEvent. */ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent getLastEvent() { if (lastEventBuilder_ == null) { - return lastEvent_; + return lastEvent_ == null ? Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance() : lastEvent_; } else { return lastEventBuilder_.getMessage(); } @@ -816,11 +867,11 @@ public Builder setLastEvent(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos throw new NullPointerException(); } lastEvent_ = value; - onChanged(); } else { lastEventBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -830,11 +881,11 @@ public Builder setLastEvent( Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.Builder builderForValue) { if (lastEventBuilder_ == null) { lastEvent_ = builderForValue.build(); - onChanged(); } else { lastEventBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -842,31 +893,33 @@ public Builder setLastEvent( */ public Builder mergeLastEvent(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent value) { if (lastEventBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - lastEvent_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance()) { - lastEvent_ = - Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.newBuilder(lastEvent_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + lastEvent_ != null && + lastEvent_ != Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance()) { + getLastEventBuilder().mergeFrom(value); } else { lastEvent_ = value; } - onChanged(); } else { lastEventBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (lastEvent_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.LastEvent LastEvent = 2; */ public Builder clearLastEvent() { - if (lastEventBuilder_ == null) { - lastEvent_ = Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance(); - onChanged(); - } else { - lastEventBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + lastEvent_ = null; + if (lastEventBuilder_ != null) { + lastEventBuilder_.dispose(); + lastEventBuilder_ = null; + } + onChanged(); return this; } /** @@ -884,7 +937,8 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEventOrBuilder g if (lastEventBuilder_ != null) { return lastEventBuilder_.getMessageOrBuilder(); } else { - return lastEvent_; + return lastEvent_ == null ? + Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance() : lastEvent_; } } /** @@ -904,21 +958,23 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEventOrBuilder g return lastEventBuilder_; } - private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 documentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 documentInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.Builder, Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3OrBuilder> documentInfoBuilder_; /** * required .Diadoc.Api.Proto.Docflow.DocumentInfoV3 DocumentInfo = 3; + * @return Whether the documentInfo field is set. */ public boolean hasDocumentInfo() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocumentInfoV3 DocumentInfo = 3; + * @return The documentInfo. */ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 getDocumentInfo() { if (documentInfoBuilder_ == null) { - return documentInfo_; + return documentInfo_ == null ? Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance() : documentInfo_; } else { return documentInfoBuilder_.getMessage(); } @@ -932,11 +988,11 @@ public Builder setDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.Doc throw new NullPointerException(); } documentInfo_ = value; - onChanged(); } else { documentInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -946,11 +1002,11 @@ public Builder setDocumentInfo( Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.Builder builderForValue) { if (documentInfoBuilder_ == null) { documentInfo_ = builderForValue.build(); - onChanged(); } else { documentInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -958,31 +1014,33 @@ public Builder setDocumentInfo( */ public Builder mergeDocumentInfo(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3 value) { if (documentInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - documentInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance()) { - documentInfo_ = - Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.newBuilder(documentInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + documentInfo_ != null && + documentInfo_ != Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance()) { + getDocumentInfoBuilder().mergeFrom(value); } else { documentInfo_ = value; } - onChanged(); } else { documentInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (documentInfo_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.DocumentInfoV3 DocumentInfo = 3; */ public Builder clearDocumentInfo() { - if (documentInfoBuilder_ == null) { - documentInfo_ = Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance(); - onChanged(); - } else { - documentInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + documentInfo_ = null; + if (documentInfoBuilder_ != null) { + documentInfoBuilder_.dispose(); + documentInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -1000,7 +1058,8 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3OrBuilder get if (documentInfoBuilder_ != null) { return documentInfoBuilder_.getMessageOrBuilder(); } else { - return documentInfo_; + return documentInfo_ == null ? + Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3.getDefaultInstance() : documentInfo_; } } /** @@ -1020,21 +1079,23 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentInfoV3OrBuilder get return documentInfoBuilder_; } - private Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 docflow_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 docflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3, Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.Builder, Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3OrBuilder> docflowBuilder_; /** * required .Diadoc.Api.Proto.Docflow.DocflowV3 Docflow = 4; + * @return Whether the docflow field is set. */ public boolean hasDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.Docflow.DocflowV3 Docflow = 4; + * @return The docflow. */ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 getDocflow() { if (docflowBuilder_ == null) { - return docflow_; + return docflow_ == null ? Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance() : docflow_; } else { return docflowBuilder_.getMessage(); } @@ -1048,11 +1109,11 @@ public Builder setDocflow(Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 val throw new NullPointerException(); } docflow_ = value; - onChanged(); } else { docflowBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1062,11 +1123,11 @@ public Builder setDocflow( Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.Builder builderForValue) { if (docflowBuilder_ == null) { docflow_ = builderForValue.build(); - onChanged(); } else { docflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1074,31 +1135,33 @@ public Builder setDocflow( */ public Builder mergeDocflow(Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3 value) { if (docflowBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - docflow_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance()) { - docflow_ = - Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.newBuilder(docflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + docflow_ != null && + docflow_ != Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance()) { + getDocflowBuilder().mergeFrom(value); } else { docflow_ = value; } - onChanged(); } else { docflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (docflow_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.DocflowV3 Docflow = 4; */ public Builder clearDocflow() { - if (docflowBuilder_ == null) { - docflow_ = Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance(); - onChanged(); - } else { - docflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + docflow_ = null; + if (docflowBuilder_ != null) { + docflowBuilder_.dispose(); + docflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1116,7 +1179,8 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3OrBuilder getDocflowOrB if (docflowBuilder_ != null) { return docflowBuilder_.getMessageOrBuilder(); } else { - return docflow_; + return docflow_ == null ? + Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3.getDefaultInstance() : docflow_; } } /** @@ -1139,12 +1203,52 @@ public Diadoc.Api.Proto.Docflow.DocflowV3Protos.DocflowV3OrBuilder getDocflowOrB // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3) + private static final Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 DEFAULT_INSTANCE; static { - defaultInstance = new DocumentWithDocflowV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentWithDocflowV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.DocumentWithDocflowV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3) } public interface LastEventOrBuilder extends @@ -1153,24 +1257,29 @@ public interface LastEventOrBuilder extends /** * required string EventId = 1; + * @return Whether the eventId field is set. */ boolean hasEventId(); /** * required string EventId = 1; + * @return The eventId. */ java.lang.String getEventId(); /** * required string EventId = 1; + * @return The bytes for eventId. */ com.google.protobuf.ByteString getEventIdBytes(); /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return The timestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getTimestamp(); /** @@ -1185,87 +1294,30 @@ public static final class LastEvent extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.LastEvent) LastEventOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + LastEvent.class.getName()); + } // Use LastEvent.newBuilder() to construct. private LastEvent(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private LastEvent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final LastEvent defaultInstance; - public static LastEvent getDefaultInstance() { - return defaultInstance; - } - - public LastEvent getDefaultInstanceForType() { - return defaultInstance; + private LastEvent() { + eventId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LastEvent( - 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; - eventId_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_LastEvent_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_LastEvent_fieldAccessorTable @@ -1273,33 +1325,23 @@ private LastEvent( Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.class, Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public LastEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LastEvent(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int EVENTID_FIELD_NUMBER = 1; - private java.lang.Object eventId_; + @SuppressWarnings("serial") + private volatile java.lang.Object eventId_ = ""; /** * required string EventId = 1; + * @return Whether the eventId field is set. */ + @java.lang.Override public boolean hasEventId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string EventId = 1; + * @return The eventId. */ + @java.lang.Override public java.lang.String getEventId() { java.lang.Object ref = eventId_; if (ref instanceof java.lang.String) { @@ -1316,7 +1358,9 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @return The bytes for eventId. */ + @java.lang.Override public com.google.protobuf.ByteString getEventIdBytes() { java.lang.Object ref = eventId_; @@ -1335,28 +1379,30 @@ public java.lang.String getEventId() { private Diadoc.Api.Proto.TimestampProtos.Timestamp timestamp_; /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return Whether the timestamp field is set. */ + @java.lang.Override public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return The timestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getTimestamp() { - return timestamp_; + return timestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder() { - return timestamp_; + return timestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } - private void initFields() { - eventId_ = ""; - timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1378,44 +1424,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getEventIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, eventId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, timestamp_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTimestamp()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getEventIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, eventId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, timestamp_); + .computeMessageSize(2, getTimestamp()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent other = (Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent) obj; + + if (hasEventId() != other.hasEventId()) return false; + if (hasEventId()) { + if (!getEventId() + .equals(other.getEventId())) return false; + } + if (hasTimestamp() != other.hasTimestamp()) return false; + if (hasTimestamp()) { + if (!getTimestamp() + .equals(other.getTimestamp())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEventId()) { + hash = (37 * hash) + EVENTID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + } + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1439,42 +1532,57 @@ public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent par } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1494,6 +1602,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_LastEvent_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_LastEvent_fieldAccessorTable @@ -1512,40 +1621,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getTimestampFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; eventId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (timestampBuilder_ == null) { - timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - timestampBuilder_.clear(); + timestamp_ = null; + if (timestampBuilder_ != null) { + timestampBuilder_.dispose(); + timestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_LastEvent_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent build() { Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent result = buildPartial(); if (!result.isInitialized()) { @@ -1554,27 +1659,31 @@ public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent buildPartial() { Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent result = new Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eventId_ = eventId_; to_bitField0_ |= 0x00000001; } - result.eventId_ = eventId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timestamp_ = timestampBuilder_ == null + ? timestamp_ + : timestampBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent) { return mergeFrom((Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent)other); @@ -1587,48 +1696,73 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent other) { if (other == Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent.getDefaultInstance()) return this; if (other.hasEventId()) { - bitField0_ |= 0x00000001; eventId_ = other.eventId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasEventId()) { - return false; } if (!hasTimestamp()) { - return false; } if (!getTimestamp().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + eventId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1636,12 +1770,14 @@ public Builder mergeFrom( private java.lang.Object eventId_ = ""; /** * required string EventId = 1; + * @return Whether the eventId field is set. */ public boolean hasEventId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string EventId = 1; + * @return The eventId. */ public java.lang.String getEventId() { java.lang.Object ref = eventId_; @@ -1659,6 +1795,7 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @return The bytes for eventId. */ public com.google.protobuf.ByteString getEventIdBytes() { @@ -1675,55 +1812,58 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @param value The eventId to set. + * @return This builder for chaining. */ public Builder setEventId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } eventId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string EventId = 1; + * @return This builder for chaining. */ public Builder clearEventId() { - bitField0_ = (bitField0_ & ~0x00000001); eventId_ = getDefaultInstance().getEventId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string EventId = 1; + * @param value The bytes for eventId to set. + * @return This builder for chaining. */ public Builder setEventIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } eventId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> timestampBuilder_; /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; + * @return The timestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getTimestamp() { if (timestampBuilder_ == null) { - return timestamp_; + return timestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } @@ -1737,11 +1877,11 @@ public Builder setTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { throw new NullPointerException(); } timestamp_ = value; - onChanged(); } else { timestampBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1751,11 +1891,11 @@ public Builder setTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); - onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1763,31 +1903,33 @@ public Builder setTimestamp( */ public Builder mergeTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (timestampBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - timestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - timestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + timestamp_ != null && + timestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getTimestampBuilder().mergeFrom(value); } else { timestamp_ = value; } - onChanged(); } else { timestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (timestamp_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Timestamp Timestamp = 2; */ public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - timestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + timestamp_ = null; + if (timestampBuilder_ != null) { + timestampBuilder_.dispose(); + timestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -1805,7 +1947,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { - return timestamp_; + return timestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : timestamp_; } } /** @@ -1828,22 +1971,62 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.LastEvent) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.LastEvent) + private static final Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent DEFAULT_INSTANCE; static { - defaultInstance = new LastEvent(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent(); + } + + public static Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LastEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.DocumentWithDocflowV3Protos.LastEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.LastEvent) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflowV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflowV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_LastEvent_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_LastEvent_fieldAccessorTable; @@ -1851,7 +2034,7 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1864,27 +2047,19 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getTimestampOrBuilder "nt\030\002 \002(\0132#.Diadoc.Api.Proto.Docflow.Last" + "Event\022>\n\014DocumentInfo\030\003 \002(\0132(.Diadoc.Api" + ".Proto.Docflow.DocumentInfoV3\0224\n\007Docflow" + - "\030\004 \002(\0132#.Diadoc.Api.Proto.Docflow.Docflo", + "\030\004 \002(\0132#.Diadoc.Api.Proto.Docflow.Docflo" + "wV3\"L\n\tLastEvent\022\017\n\007EventId\030\001 \002(\t\022.\n\tTim" + "estamp\030\002 \002(\0132\033.Diadoc.Api.Proto.Timestam" + "pB\035B\033DocumentWithDocflowV3Protos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(), Diadoc.Api.Proto.TimestampProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.getDescriptor(), Diadoc.Api.Proto.Docflow.DocflowV3Protos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflowV3_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_DocumentWithDocflowV3_fieldAccessorTable = new @@ -1897,6 +2072,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_LastEvent_descriptor, new java.lang.String[] { "EventId", "Timestamp", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/InvoiceDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/InvoiceDocflowProtos.java index 34269bda..b6a86dcb 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/InvoiceDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/InvoiceDocflowProtos.java @@ -1,32 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/InvoiceDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class InvoiceDocflowProtos { private InvoiceDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface InboundInvoiceDocflowOrBuilder extends + @java.lang.Deprecated public interface InboundInvoiceDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ boolean hasReceiptDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow getReceiptDocflow(); /** @@ -36,10 +57,12 @@ public interface InboundInvoiceDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ boolean hasConfirmationDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow(); /** @@ -49,10 +72,12 @@ public interface InboundInvoiceDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ boolean hasCorrectionRequestDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow(); /** @@ -62,10 +87,12 @@ public interface InboundInvoiceDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ boolean hasConfirmationTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp(); /** @@ -75,172 +102,67 @@ public interface InboundInvoiceDocflowOrBuilder extends /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ boolean hasIsAmendmentRequested(); /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ boolean getIsAmendmentRequested(); /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ boolean hasIsRevised(); /** * optional bool IsRevised = 7; + * @return The isRevised. */ boolean getIsRevised(); /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ boolean hasIsCorrected(); /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ boolean getIsCorrected(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow} */ - public static final class InboundInvoiceDocflow extends + @java.lang.Deprecated public static final class InboundInvoiceDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow) InboundInvoiceDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InboundInvoiceDocflow.class.getName()); + } // Use InboundInvoiceDocflow.newBuilder() to construct. private InboundInvoiceDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private InboundInvoiceDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InboundInvoiceDocflow defaultInstance; - public static InboundInvoiceDocflow getDefaultInstance() { - return defaultInstance; } - - public InboundInvoiceDocflow getDefaultInstanceForType() { - return defaultInstance; + private InboundInvoiceDocflow() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InboundInvoiceDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = receiptDocflow_.toBuilder(); - } - receiptDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptDocflow_); - receiptDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = confirmationDocflow_.toBuilder(); - } - confirmationDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationDocflow_); - confirmationDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = correctionRequestDocflow_.toBuilder(); - } - correctionRequestDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(correctionRequestDocflow_); - correctionRequestDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = confirmationTimestamp_.toBuilder(); - } - confirmationTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationTimestamp_); - confirmationTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 48: { - bitField0_ |= 0x00000020; - isAmendmentRequested_ = input.readBool(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - isRevised_ = input.readBool(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - isCorrected_ = input.readBool(); - 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.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceDocflow_fieldAccessorTable @@ -248,33 +170,22 @@ private InboundInvoiceDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.class, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InboundInvoiceDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InboundInvoiceDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -283,142 +194,165 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow receiptDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ + @java.lang.Override public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow getReceiptDocflow() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance() : receiptDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflowOrBuilder getReceiptDocflowOrBuilder() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance() : receiptDocflow_; } public static final int CONFIRMATIONDOCFLOW_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ + @java.lang.Override public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowOrBuilder getConfirmationDocflowOrBuilder() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } public static final int CORRECTIONREQUESTDOCFLOW_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ + @java.lang.Override public boolean hasCorrectionRequestDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow() { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflowOrBuilder getCorrectionRequestDocflowOrBuilder() { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } public static final int CONFIRMATIONTIMESTAMP_FIELD_NUMBER = 5; private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ + @java.lang.Override public boolean hasConfirmationTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp() { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimestampOrBuilder() { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } public static final int ISAMENDMENTREQUESTED_FIELD_NUMBER = 6; - private boolean isAmendmentRequested_; + private boolean isAmendmentRequested_ = false; /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ + @java.lang.Override public boolean hasIsAmendmentRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ + @java.lang.Override public boolean getIsAmendmentRequested() { return isAmendmentRequested_; } public static final int ISREVISED_FIELD_NUMBER = 7; - private boolean isRevised_; + private boolean isRevised_ = false; /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ + @java.lang.Override public boolean hasIsRevised() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsRevised = 7; + * @return The isRevised. */ + @java.lang.Override public boolean getIsRevised() { return isRevised_; } public static final int ISCORRECTED_FIELD_NUMBER = 8; - private boolean isCorrected_; + private boolean isCorrected_ = false; /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ + @java.lang.Override public boolean hasIsCorrected() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ + @java.lang.Override public boolean getIsCorrected() { return isCorrected_; } - private void initFields() { - isFinished_ = false; - receiptDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance(); - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - isAmendmentRequested_ = false; - isRevised_ = false; - isCorrected_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -452,86 +386,192 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, receiptDocflow_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, confirmationDocflow_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getConfirmationDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, correctionRequestDocflow_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getCorrectionRequestDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, confirmationTimestamp_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getConfirmationTimestamp()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, isAmendmentRequested_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, isRevised_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(8, isCorrected_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receiptDocflow_); + .computeMessageSize(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, confirmationDocflow_); + .computeMessageSize(3, getConfirmationDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, correctionRequestDocflow_); + .computeMessageSize(4, getCorrectionRequestDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, confirmationTimestamp_); + .computeMessageSize(5, getConfirmationTimestamp()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, isAmendmentRequested_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isRevised_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, isCorrected_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow other = (Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasReceiptDocflow() != other.hasReceiptDocflow()) return false; + if (hasReceiptDocflow()) { + if (!getReceiptDocflow() + .equals(other.getReceiptDocflow())) return false; + } + if (hasConfirmationDocflow() != other.hasConfirmationDocflow()) return false; + if (hasConfirmationDocflow()) { + if (!getConfirmationDocflow() + .equals(other.getConfirmationDocflow())) return false; + } + if (hasCorrectionRequestDocflow() != other.hasCorrectionRequestDocflow()) return false; + if (hasCorrectionRequestDocflow()) { + if (!getCorrectionRequestDocflow() + .equals(other.getCorrectionRequestDocflow())) return false; + } + if (hasConfirmationTimestamp() != other.hasConfirmationTimestamp()) return false; + if (hasConfirmationTimestamp()) { + if (!getConfirmationTimestamp() + .equals(other.getConfirmationTimestamp())) return false; + } + if (hasIsAmendmentRequested() != other.hasIsAmendmentRequested()) return false; + if (hasIsAmendmentRequested()) { + if (getIsAmendmentRequested() + != other.getIsAmendmentRequested()) return false; + } + if (hasIsRevised() != other.hasIsRevised()) return false; + if (hasIsRevised()) { + if (getIsRevised() + != other.getIsRevised()) return false; + } + if (hasIsCorrected() != other.hasIsCorrected()) return false; + if (hasIsCorrected()) { + if (getIsCorrected() + != other.getIsCorrected()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasReceiptDocflow()) { + hash = (37 * hash) + RECEIPTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getReceiptDocflow().hashCode(); + } + if (hasConfirmationDocflow()) { + hash = (37 * hash) + CONFIRMATIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationDocflow().hashCode(); + } + if (hasCorrectionRequestDocflow()) { + hash = (37 * hash) + CORRECTIONREQUESTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getCorrectionRequestDocflow().hashCode(); + } + if (hasConfirmationTimestamp()) { + hash = (37 * hash) + CONFIRMATIONTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationTimestamp().hashCode(); + } + if (hasIsAmendmentRequested()) { + hash = (37 * hash) + ISAMENDMENTREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAmendmentRequested()); + } + if (hasIsRevised()) { + hash = (37 * hash) + ISREVISED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRevised()); + } + if (hasIsCorrected()) { + hash = (37 * hash) + ISCORRECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsCorrected()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -555,42 +595,57 @@ public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflo } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -610,6 +665,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceDocflow_fieldAccessorTable @@ -628,67 +684,57 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getReceiptDocflowFieldBuilder(); getConfirmationDocflowFieldBuilder(); getCorrectionRequestDocflowFieldBuilder(); getConfirmationTimestampFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance(); - } else { - receiptDocflowBuilder_.clear(); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - } else { - confirmationDocflowBuilder_.clear(); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (correctionRequestDocflowBuilder_ == null) { - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - } else { - correctionRequestDocflowBuilder_.clear(); + correctionRequestDocflow_ = null; + if (correctionRequestDocflowBuilder_ != null) { + correctionRequestDocflowBuilder_.dispose(); + correctionRequestDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (confirmationTimestampBuilder_ == null) { - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - confirmationTimestampBuilder_.clear(); + confirmationTimestamp_ = null; + if (confirmationTimestampBuilder_ != null) { + confirmationTimestampBuilder_.dispose(); + confirmationTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); isAmendmentRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000020); isRevised_ = false; - bitField0_ = (bitField0_ & ~0x00000040); isCorrected_ = false; - bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow build() { Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -697,63 +743,61 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow build return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow buildPartial() { Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow result = new Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptDocflow_ = receiptDocflowBuilder_ == null + ? receiptDocflow_ + : receiptDocflowBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (receiptDocflowBuilder_ == null) { - result.receiptDocflow_ = receiptDocflow_; - } else { - result.receiptDocflow_ = receiptDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationDocflow_ = confirmationDocflowBuilder_ == null + ? confirmationDocflow_ + : confirmationDocflowBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (confirmationDocflowBuilder_ == null) { - result.confirmationDocflow_ = confirmationDocflow_; - } else { - result.confirmationDocflow_ = confirmationDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.correctionRequestDocflow_ = correctionRequestDocflowBuilder_ == null + ? correctionRequestDocflow_ + : correctionRequestDocflowBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (correctionRequestDocflowBuilder_ == null) { - result.correctionRequestDocflow_ = correctionRequestDocflow_; - } else { - result.correctionRequestDocflow_ = correctionRequestDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confirmationTimestamp_ = confirmationTimestampBuilder_ == null + ? confirmationTimestamp_ + : confirmationTimestampBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (confirmationTimestampBuilder_ == null) { - result.confirmationTimestamp_ = confirmationTimestamp_; - } else { - result.confirmationTimestamp_ = confirmationTimestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isAmendmentRequested_ = isAmendmentRequested_; to_bitField0_ |= 0x00000020; } - result.isAmendmentRequested_ = isAmendmentRequested_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isRevised_ = isRevised_; to_bitField0_ |= 0x00000040; } - result.isRevised_ = isRevised_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.isCorrected_ = isCorrected_; to_bitField0_ |= 0x00000080; } - result.isCorrected_ = isCorrected_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow)other); @@ -790,52 +834,112 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundIn setIsCorrected(other.getIsCorrected()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasReceiptDocflow()) { if (!getReceiptDocflow().isInitialized()) { - return false; } } if (hasConfirmationDocflow()) { if (!getConfirmationDocflow().isInitialized()) { - return false; } } if (hasCorrectionRequestDocflow()) { if (!getCorrectionRequestDocflow().isInitialized()) { - return false; } } if (hasConfirmationTimestamp()) { if (!getConfirmationTimestamp().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getReceiptDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getConfirmationDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCorrectionRequestDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getConfirmationTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + isAmendmentRequested_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + isRevised_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + isCorrected_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -843,27 +947,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -872,21 +984,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow receiptDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow receiptDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflowOrBuilder> receiptDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow getReceiptDocflow() { if (receiptDocflowBuilder_ == null) { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance() : receiptDocflow_; } else { return receiptDocflowBuilder_.getMessage(); } @@ -900,11 +1014,11 @@ public Builder setReceiptDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.I throw new NullPointerException(); } receiptDocflow_ = value; - onChanged(); } else { receiptDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -914,11 +1028,11 @@ public Builder setReceiptDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.Builder builderForValue) { if (receiptDocflowBuilder_ == null) { receiptDocflow_ = builderForValue.build(); - onChanged(); } else { receiptDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -926,31 +1040,33 @@ public Builder setReceiptDocflow( */ public Builder mergeReceiptDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow value) { if (receiptDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - receiptDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance()) { - receiptDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.newBuilder(receiptDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + receiptDocflow_ != null && + receiptDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance()) { + getReceiptDocflowBuilder().mergeFrom(value); } else { receiptDocflow_ = value; } - onChanged(); } else { receiptDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (receiptDocflow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; */ public Builder clearReceiptDocflow() { - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance(); - onChanged(); - } else { - receiptDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -968,7 +1084,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflo if (receiptDocflowBuilder_ != null) { return receiptDocflowBuilder_.getMessageOrBuilder(); } else { - return receiptDocflow_; + return receiptDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance() : receiptDocflow_; } } /** @@ -988,21 +1105,23 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflo return receiptDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowOrBuilder> confirmationDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow() { if (confirmationDocflowBuilder_ == null) { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } else { return confirmationDocflowBuilder_.getMessage(); } @@ -1016,11 +1135,11 @@ public Builder setConfirmationDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowPro throw new NullPointerException(); } confirmationDocflow_ = value; - onChanged(); } else { confirmationDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1030,11 +1149,11 @@ public Builder setConfirmationDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder builderForValue) { if (confirmationDocflowBuilder_ == null) { confirmationDocflow_ = builderForValue.build(); - onChanged(); } else { confirmationDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1042,31 +1161,33 @@ public Builder setConfirmationDocflow( */ public Builder mergeConfirmationDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow value) { if (confirmationDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - confirmationDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance()) { - confirmationDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.newBuilder(confirmationDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + confirmationDocflow_ != null && + confirmationDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance()) { + getConfirmationDocflowBuilder().mergeFrom(value); } else { confirmationDocflow_ = value; } - onChanged(); } else { confirmationDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (confirmationDocflow_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; */ public Builder clearConfirmationDocflow() { - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - onChanged(); - } else { - confirmationDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1084,7 +1205,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowO if (confirmationDocflowBuilder_ != null) { return confirmationDocflowBuilder_.getMessageOrBuilder(); } else { - return confirmationDocflow_; + return confirmationDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } } /** @@ -1104,21 +1226,23 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowO return confirmationDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflowOrBuilder> correctionRequestDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ public boolean hasCorrectionRequestDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow() { if (correctionRequestDocflowBuilder_ == null) { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } else { return correctionRequestDocflowBuilder_.getMessage(); } @@ -1132,11 +1256,11 @@ public Builder setCorrectionRequestDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocfl throw new NullPointerException(); } correctionRequestDocflow_ = value; - onChanged(); } else { correctionRequestDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1146,11 +1270,11 @@ public Builder setCorrectionRequestDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder builderForValue) { if (correctionRequestDocflowBuilder_ == null) { correctionRequestDocflow_ = builderForValue.build(); - onChanged(); } else { correctionRequestDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1158,31 +1282,33 @@ public Builder setCorrectionRequestDocflow( */ public Builder mergeCorrectionRequestDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow value) { if (correctionRequestDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - correctionRequestDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance()) { - correctionRequestDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.newBuilder(correctionRequestDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + correctionRequestDocflow_ != null && + correctionRequestDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance()) { + getCorrectionRequestDocflowBuilder().mergeFrom(value); } else { correctionRequestDocflow_ = value; } - onChanged(); } else { correctionRequestDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (correctionRequestDocflow_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; */ public Builder clearCorrectionRequestDocflow() { - if (correctionRequestDocflowBuilder_ == null) { - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - onChanged(); - } else { - correctionRequestDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + correctionRequestDocflow_ = null; + if (correctionRequestDocflowBuilder_ != null) { + correctionRequestDocflowBuilder_.dispose(); + correctionRequestDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1200,7 +1326,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDoc if (correctionRequestDocflowBuilder_ != null) { return correctionRequestDocflowBuilder_.getMessageOrBuilder(); } else { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } } /** @@ -1220,21 +1347,23 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDoc return correctionRequestDocflowBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> confirmationTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ public boolean hasConfirmationTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp() { if (confirmationTimestampBuilder_ == null) { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } else { return confirmationTimestampBuilder_.getMessage(); } @@ -1248,11 +1377,11 @@ public Builder setConfirmationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timesta throw new NullPointerException(); } confirmationTimestamp_ = value; - onChanged(); } else { confirmationTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1262,11 +1391,11 @@ public Builder setConfirmationTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (confirmationTimestampBuilder_ == null) { confirmationTimestamp_ = builderForValue.build(); - onChanged(); } else { confirmationTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1274,31 +1403,33 @@ public Builder setConfirmationTimestamp( */ public Builder mergeConfirmationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (confirmationTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - confirmationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - confirmationTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(confirmationTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + confirmationTimestamp_ != null && + confirmationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getConfirmationTimestampBuilder().mergeFrom(value); } else { confirmationTimestamp_ = value; } - onChanged(); } else { confirmationTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (confirmationTimestamp_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; */ public Builder clearConfirmationTimestamp() { - if (confirmationTimestampBuilder_ == null) { - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - confirmationTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + confirmationTimestamp_ = null; + if (confirmationTimestampBuilder_ != null) { + confirmationTimestampBuilder_.dispose(); + confirmationTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -1316,7 +1447,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimest if (confirmationTimestampBuilder_ != null) { return confirmationTimestampBuilder_.getMessageOrBuilder(); } else { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } } /** @@ -1339,27 +1471,35 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimest private boolean isAmendmentRequested_ ; /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ + @java.lang.Override public boolean hasIsAmendmentRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ + @java.lang.Override public boolean getIsAmendmentRequested() { return isAmendmentRequested_; } /** * optional bool IsAmendmentRequested = 6; + * @param value The isAmendmentRequested to set. + * @return This builder for chaining. */ public Builder setIsAmendmentRequested(boolean value) { - bitField0_ |= 0x00000020; + isAmendmentRequested_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional bool IsAmendmentRequested = 6; + * @return This builder for chaining. */ public Builder clearIsAmendmentRequested() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1371,27 +1511,35 @@ public Builder clearIsAmendmentRequested() { private boolean isRevised_ ; /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ + @java.lang.Override public boolean hasIsRevised() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsRevised = 7; + * @return The isRevised. */ + @java.lang.Override public boolean getIsRevised() { return isRevised_; } /** * optional bool IsRevised = 7; + * @param value The isRevised to set. + * @return This builder for chaining. */ public Builder setIsRevised(boolean value) { - bitField0_ |= 0x00000040; + isRevised_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional bool IsRevised = 7; + * @return This builder for chaining. */ public Builder clearIsRevised() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1403,27 +1551,35 @@ public Builder clearIsRevised() { private boolean isCorrected_ ; /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ + @java.lang.Override public boolean hasIsCorrected() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ + @java.lang.Override public boolean getIsCorrected() { return isCorrected_; } /** * optional bool IsCorrected = 8; + * @param value The isCorrected to set. + * @return This builder for chaining. */ public Builder setIsCorrected(boolean value) { - bitField0_ |= 0x00000080; + isCorrected_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional bool IsCorrected = 8; + * @return This builder for chaining. */ public Builder clearIsCorrected() { bitField0_ = (bitField0_ & ~0x00000080); @@ -1435,33 +1591,77 @@ public Builder clearIsCorrected() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow) + private static final Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow DEFAULT_INSTANCE; static { - defaultInstance = new InboundInvoiceDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InboundInvoiceDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InboundInvoiceDocflow) } - public interface OutboundInvoiceDocflowOrBuilder extends + @java.lang.Deprecated public interface OutboundInvoiceDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ boolean hasReceiptDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow(); /** @@ -1471,10 +1671,12 @@ public interface OutboundInvoiceDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ boolean hasConfirmationDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow(); /** @@ -1484,10 +1686,12 @@ public interface OutboundInvoiceDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ boolean hasCorrectionRequestDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow(); /** @@ -1497,10 +1701,12 @@ public interface OutboundInvoiceDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ boolean hasConfirmationTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp(); /** @@ -1510,186 +1716,78 @@ public interface OutboundInvoiceDocflowOrBuilder extends /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ boolean hasIsAmendmentRequested(); /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ boolean getIsAmendmentRequested(); /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ boolean hasIsRevised(); /** * optional bool IsRevised = 7; + * @return The isRevised. */ boolean getIsRevised(); /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ boolean hasIsCorrected(); /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ boolean getIsCorrected(); /** * optional bool CanDocumentBeSignedBySender = 9; + * @return Whether the canDocumentBeSignedBySender field is set. */ boolean hasCanDocumentBeSignedBySender(); /** * optional bool CanDocumentBeSignedBySender = 9; + * @return The canDocumentBeSignedBySender. */ boolean getCanDocumentBeSignedBySender(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow} */ - public static final class OutboundInvoiceDocflow extends + @java.lang.Deprecated public static final class OutboundInvoiceDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow) OutboundInvoiceDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + OutboundInvoiceDocflow.class.getName()); + } // Use OutboundInvoiceDocflow.newBuilder() to construct. private OutboundInvoiceDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private OutboundInvoiceDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final OutboundInvoiceDocflow defaultInstance; - public static OutboundInvoiceDocflow getDefaultInstance() { - return defaultInstance; + private OutboundInvoiceDocflow() { } - public OutboundInvoiceDocflow getDefaultInstanceForType() { - return defaultInstance; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundInvoiceDocflow_descriptor; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OutboundInvoiceDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = receiptDocflow_.toBuilder(); - } - receiptDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptDocflow_); - receiptDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = confirmationDocflow_.toBuilder(); - } - confirmationDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationDocflow_); - confirmationDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = correctionRequestDocflow_.toBuilder(); - } - correctionRequestDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(correctionRequestDocflow_); - correctionRequestDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = confirmationTimestamp_.toBuilder(); - } - confirmationTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationTimestamp_); - confirmationTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 48: { - bitField0_ |= 0x00000020; - isAmendmentRequested_ = input.readBool(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - isRevised_ = input.readBool(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - isCorrected_ = input.readBool(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - canDocumentBeSignedBySender_ = input.readBool(); - 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.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundInvoiceDocflow_descriptor; - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundInvoiceDocflow_fieldAccessorTable @@ -1697,33 +1795,22 @@ private OutboundInvoiceDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.class, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public OutboundInvoiceDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutboundInvoiceDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -1732,158 +1819,184 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ + @java.lang.Override public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder getReceiptDocflowOrBuilder() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } public static final int CONFIRMATIONDOCFLOW_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ + @java.lang.Override public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowOrBuilder getConfirmationDocflowOrBuilder() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } public static final int CORRECTIONREQUESTDOCFLOW_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ + @java.lang.Override public boolean hasCorrectionRequestDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow() { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflowOrBuilder getCorrectionRequestDocflowOrBuilder() { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } public static final int CONFIRMATIONTIMESTAMP_FIELD_NUMBER = 5; private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ + @java.lang.Override public boolean hasConfirmationTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp() { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimestampOrBuilder() { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } public static final int ISAMENDMENTREQUESTED_FIELD_NUMBER = 6; - private boolean isAmendmentRequested_; + private boolean isAmendmentRequested_ = false; /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ + @java.lang.Override public boolean hasIsAmendmentRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ + @java.lang.Override public boolean getIsAmendmentRequested() { return isAmendmentRequested_; } public static final int ISREVISED_FIELD_NUMBER = 7; - private boolean isRevised_; + private boolean isRevised_ = false; /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ + @java.lang.Override public boolean hasIsRevised() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsRevised = 7; + * @return The isRevised. */ + @java.lang.Override public boolean getIsRevised() { return isRevised_; } public static final int ISCORRECTED_FIELD_NUMBER = 8; - private boolean isCorrected_; + private boolean isCorrected_ = false; /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ + @java.lang.Override public boolean hasIsCorrected() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ + @java.lang.Override public boolean getIsCorrected() { return isCorrected_; } public static final int CANDOCUMENTBESIGNEDBYSENDER_FIELD_NUMBER = 9; - private boolean canDocumentBeSignedBySender_; + private boolean canDocumentBeSignedBySender_ = false; /** * optional bool CanDocumentBeSignedBySender = 9; + * @return Whether the canDocumentBeSignedBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedBySender() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional bool CanDocumentBeSignedBySender = 9; + * @return The canDocumentBeSignedBySender. */ + @java.lang.Override public boolean getCanDocumentBeSignedBySender() { return canDocumentBeSignedBySender_; } - private void initFields() { - isFinished_ = false; - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - isAmendmentRequested_ = false; - isRevised_ = false; - isCorrected_ = false; - canDocumentBeSignedBySender_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1917,93 +2030,209 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, receiptDocflow_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, confirmationDocflow_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getConfirmationDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, correctionRequestDocflow_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getCorrectionRequestDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, confirmationTimestamp_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getConfirmationTimestamp()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, isAmendmentRequested_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, isRevised_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(8, isCorrected_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(9, canDocumentBeSignedBySender_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receiptDocflow_); + .computeMessageSize(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, confirmationDocflow_); + .computeMessageSize(3, getConfirmationDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, correctionRequestDocflow_); + .computeMessageSize(4, getCorrectionRequestDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, confirmationTimestamp_); + .computeMessageSize(5, getConfirmationTimestamp()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, isAmendmentRequested_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isRevised_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, isCorrected_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, canDocumentBeSignedBySender_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow other = (Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasReceiptDocflow() != other.hasReceiptDocflow()) return false; + if (hasReceiptDocflow()) { + if (!getReceiptDocflow() + .equals(other.getReceiptDocflow())) return false; + } + if (hasConfirmationDocflow() != other.hasConfirmationDocflow()) return false; + if (hasConfirmationDocflow()) { + if (!getConfirmationDocflow() + .equals(other.getConfirmationDocflow())) return false; + } + if (hasCorrectionRequestDocflow() != other.hasCorrectionRequestDocflow()) return false; + if (hasCorrectionRequestDocflow()) { + if (!getCorrectionRequestDocflow() + .equals(other.getCorrectionRequestDocflow())) return false; + } + if (hasConfirmationTimestamp() != other.hasConfirmationTimestamp()) return false; + if (hasConfirmationTimestamp()) { + if (!getConfirmationTimestamp() + .equals(other.getConfirmationTimestamp())) return false; + } + if (hasIsAmendmentRequested() != other.hasIsAmendmentRequested()) return false; + if (hasIsAmendmentRequested()) { + if (getIsAmendmentRequested() + != other.getIsAmendmentRequested()) return false; + } + if (hasIsRevised() != other.hasIsRevised()) return false; + if (hasIsRevised()) { + if (getIsRevised() + != other.getIsRevised()) return false; + } + if (hasIsCorrected() != other.hasIsCorrected()) return false; + if (hasIsCorrected()) { + if (getIsCorrected() + != other.getIsCorrected()) return false; + } + if (hasCanDocumentBeSignedBySender() != other.hasCanDocumentBeSignedBySender()) return false; + if (hasCanDocumentBeSignedBySender()) { + if (getCanDocumentBeSignedBySender() + != other.getCanDocumentBeSignedBySender()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasReceiptDocflow()) { + hash = (37 * hash) + RECEIPTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getReceiptDocflow().hashCode(); + } + if (hasConfirmationDocflow()) { + hash = (37 * hash) + CONFIRMATIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationDocflow().hashCode(); + } + if (hasCorrectionRequestDocflow()) { + hash = (37 * hash) + CORRECTIONREQUESTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getCorrectionRequestDocflow().hashCode(); + } + if (hasConfirmationTimestamp()) { + hash = (37 * hash) + CONFIRMATIONTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationTimestamp().hashCode(); + } + if (hasIsAmendmentRequested()) { + hash = (37 * hash) + ISAMENDMENTREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAmendmentRequested()); + } + if (hasIsRevised()) { + hash = (37 * hash) + ISREVISED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRevised()); + } + if (hasIsCorrected()) { + hash = (37 * hash) + ISCORRECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsCorrected()); + } + if (hasCanDocumentBeSignedBySender()) { + hash = (37 * hash) + CANDOCUMENTBESIGNEDBYSENDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeSignedBySender()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2027,42 +2256,57 @@ public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocfl } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2082,6 +2326,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundInvoiceDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundInvoiceDocflow_fieldAccessorTable @@ -2100,69 +2345,58 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getReceiptDocflowFieldBuilder(); getConfirmationDocflowFieldBuilder(); getCorrectionRequestDocflowFieldBuilder(); getConfirmationTimestampFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - } else { - receiptDocflowBuilder_.clear(); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - } else { - confirmationDocflowBuilder_.clear(); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (correctionRequestDocflowBuilder_ == null) { - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - } else { - correctionRequestDocflowBuilder_.clear(); + correctionRequestDocflow_ = null; + if (correctionRequestDocflowBuilder_ != null) { + correctionRequestDocflowBuilder_.dispose(); + correctionRequestDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (confirmationTimestampBuilder_ == null) { - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - confirmationTimestampBuilder_.clear(); + confirmationTimestamp_ = null; + if (confirmationTimestampBuilder_ != null) { + confirmationTimestampBuilder_.dispose(); + confirmationTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); isAmendmentRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000020); isRevised_ = false; - bitField0_ = (bitField0_ & ~0x00000040); isCorrected_ = false; - bitField0_ = (bitField0_ & ~0x00000080); canDocumentBeSignedBySender_ = false; - bitField0_ = (bitField0_ & ~0x00000100); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundInvoiceDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow build() { Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -2171,67 +2405,65 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow buil return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow buildPartial() { Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow result = new Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptDocflow_ = receiptDocflowBuilder_ == null + ? receiptDocflow_ + : receiptDocflowBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (receiptDocflowBuilder_ == null) { - result.receiptDocflow_ = receiptDocflow_; - } else { - result.receiptDocflow_ = receiptDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationDocflow_ = confirmationDocflowBuilder_ == null + ? confirmationDocflow_ + : confirmationDocflowBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (confirmationDocflowBuilder_ == null) { - result.confirmationDocflow_ = confirmationDocflow_; - } else { - result.confirmationDocflow_ = confirmationDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.correctionRequestDocflow_ = correctionRequestDocflowBuilder_ == null + ? correctionRequestDocflow_ + : correctionRequestDocflowBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (correctionRequestDocflowBuilder_ == null) { - result.correctionRequestDocflow_ = correctionRequestDocflow_; - } else { - result.correctionRequestDocflow_ = correctionRequestDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confirmationTimestamp_ = confirmationTimestampBuilder_ == null + ? confirmationTimestamp_ + : confirmationTimestampBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (confirmationTimestampBuilder_ == null) { - result.confirmationTimestamp_ = confirmationTimestamp_; - } else { - result.confirmationTimestamp_ = confirmationTimestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isAmendmentRequested_ = isAmendmentRequested_; to_bitField0_ |= 0x00000020; } - result.isAmendmentRequested_ = isAmendmentRequested_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isRevised_ = isRevised_; to_bitField0_ |= 0x00000040; } - result.isRevised_ = isRevised_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.isCorrected_ = isCorrected_; to_bitField0_ |= 0x00000080; } - result.isCorrected_ = isCorrected_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.canDocumentBeSignedBySender_ = canDocumentBeSignedBySender_; to_bitField0_ |= 0x00000100; } - result.canDocumentBeSignedBySender_ = canDocumentBeSignedBySender_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow)other); @@ -2271,52 +2503,117 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundI setCanDocumentBeSignedBySender(other.getCanDocumentBeSignedBySender()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasReceiptDocflow()) { if (!getReceiptDocflow().isInitialized()) { - return false; } } if (hasConfirmationDocflow()) { if (!getConfirmationDocflow().isInitialized()) { - return false; } } if (hasCorrectionRequestDocflow()) { if (!getCorrectionRequestDocflow().isInitialized()) { - return false; } } if (hasConfirmationTimestamp()) { if (!getConfirmationTimestamp().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getReceiptDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getConfirmationDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCorrectionRequestDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getConfirmationTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + isAmendmentRequested_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + isRevised_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + isCorrected_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + canDocumentBeSignedBySender_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2324,27 +2621,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2353,21 +2658,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder> receiptDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { if (receiptDocflowBuilder_ == null) { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } else { return receiptDocflowBuilder_.getMessage(); } @@ -2381,11 +2688,11 @@ public Builder setReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.R throw new NullPointerException(); } receiptDocflow_ = value; - onChanged(); } else { receiptDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2395,11 +2702,11 @@ public Builder setReceiptDocflow( Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder builderForValue) { if (receiptDocflowBuilder_ == null) { receiptDocflow_ = builderForValue.build(); - onChanged(); } else { receiptDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2407,31 +2714,33 @@ public Builder setReceiptDocflow( */ public Builder mergeReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow value) { if (receiptDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { - receiptDocflow_ = - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.newBuilder(receiptDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + receiptDocflow_ != null && + receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { + getReceiptDocflowBuilder().mergeFrom(value); } else { receiptDocflow_ = value; } - onChanged(); } else { receiptDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (receiptDocflow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; */ public Builder clearReceiptDocflow() { - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - onChanged(); - } else { - receiptDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -2449,7 +2758,8 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get if (receiptDocflowBuilder_ != null) { return receiptDocflowBuilder_.getMessageOrBuilder(); } else { - return receiptDocflow_; + return receiptDocflow_ == null ? + Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } } /** @@ -2469,21 +2779,23 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get return receiptDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowOrBuilder> confirmationDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow() { if (confirmationDocflowBuilder_ == null) { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } else { return confirmationDocflowBuilder_.getMessage(); } @@ -2497,11 +2809,11 @@ public Builder setConfirmationDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowPro throw new NullPointerException(); } confirmationDocflow_ = value; - onChanged(); } else { confirmationDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2511,11 +2823,11 @@ public Builder setConfirmationDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder builderForValue) { if (confirmationDocflowBuilder_ == null) { confirmationDocflow_ = builderForValue.build(); - onChanged(); } else { confirmationDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2523,31 +2835,33 @@ public Builder setConfirmationDocflow( */ public Builder mergeConfirmationDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow value) { if (confirmationDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - confirmationDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance()) { - confirmationDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.newBuilder(confirmationDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + confirmationDocflow_ != null && + confirmationDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance()) { + getConfirmationDocflowBuilder().mergeFrom(value); } else { confirmationDocflow_ = value; } - onChanged(); } else { confirmationDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (confirmationDocflow_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; */ public Builder clearConfirmationDocflow() { - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - onChanged(); - } else { - confirmationDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -2565,7 +2879,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowO if (confirmationDocflowBuilder_ != null) { return confirmationDocflowBuilder_.getMessageOrBuilder(); } else { - return confirmationDocflow_; + return confirmationDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } } /** @@ -2585,21 +2900,23 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowO return confirmationDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflowOrBuilder> correctionRequestDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ public boolean hasCorrectionRequestDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow() { if (correctionRequestDocflowBuilder_ == null) { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } else { return correctionRequestDocflowBuilder_.getMessage(); } @@ -2613,11 +2930,11 @@ public Builder setCorrectionRequestDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocfl throw new NullPointerException(); } correctionRequestDocflow_ = value; - onChanged(); } else { correctionRequestDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2627,11 +2944,11 @@ public Builder setCorrectionRequestDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder builderForValue) { if (correctionRequestDocflowBuilder_ == null) { correctionRequestDocflow_ = builderForValue.build(); - onChanged(); } else { correctionRequestDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2639,31 +2956,33 @@ public Builder setCorrectionRequestDocflow( */ public Builder mergeCorrectionRequestDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow value) { if (correctionRequestDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - correctionRequestDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance()) { - correctionRequestDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.newBuilder(correctionRequestDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + correctionRequestDocflow_ != null && + correctionRequestDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance()) { + getCorrectionRequestDocflowBuilder().mergeFrom(value); } else { correctionRequestDocflow_ = value; } - onChanged(); } else { correctionRequestDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (correctionRequestDocflow_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; */ public Builder clearCorrectionRequestDocflow() { - if (correctionRequestDocflowBuilder_ == null) { - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - onChanged(); - } else { - correctionRequestDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + correctionRequestDocflow_ = null; + if (correctionRequestDocflowBuilder_ != null) { + correctionRequestDocflowBuilder_.dispose(); + correctionRequestDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -2681,7 +3000,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDoc if (correctionRequestDocflowBuilder_ != null) { return correctionRequestDocflowBuilder_.getMessageOrBuilder(); } else { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } } /** @@ -2701,21 +3021,23 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDoc return correctionRequestDocflowBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> confirmationTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ public boolean hasConfirmationTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp() { if (confirmationTimestampBuilder_ == null) { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } else { return confirmationTimestampBuilder_.getMessage(); } @@ -2729,11 +3051,11 @@ public Builder setConfirmationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timesta throw new NullPointerException(); } confirmationTimestamp_ = value; - onChanged(); } else { confirmationTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2743,11 +3065,11 @@ public Builder setConfirmationTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (confirmationTimestampBuilder_ == null) { confirmationTimestamp_ = builderForValue.build(); - onChanged(); } else { confirmationTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2755,31 +3077,33 @@ public Builder setConfirmationTimestamp( */ public Builder mergeConfirmationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (confirmationTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - confirmationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - confirmationTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(confirmationTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + confirmationTimestamp_ != null && + confirmationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getConfirmationTimestampBuilder().mergeFrom(value); } else { confirmationTimestamp_ = value; } - onChanged(); } else { confirmationTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (confirmationTimestamp_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; */ public Builder clearConfirmationTimestamp() { - if (confirmationTimestampBuilder_ == null) { - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - confirmationTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + confirmationTimestamp_ = null; + if (confirmationTimestampBuilder_ != null) { + confirmationTimestampBuilder_.dispose(); + confirmationTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -2797,7 +3121,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimest if (confirmationTimestampBuilder_ != null) { return confirmationTimestampBuilder_.getMessageOrBuilder(); } else { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } } /** @@ -2820,27 +3145,35 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimest private boolean isAmendmentRequested_ ; /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ + @java.lang.Override public boolean hasIsAmendmentRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ + @java.lang.Override public boolean getIsAmendmentRequested() { return isAmendmentRequested_; } /** * optional bool IsAmendmentRequested = 6; + * @param value The isAmendmentRequested to set. + * @return This builder for chaining. */ public Builder setIsAmendmentRequested(boolean value) { - bitField0_ |= 0x00000020; + isAmendmentRequested_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional bool IsAmendmentRequested = 6; + * @return This builder for chaining. */ public Builder clearIsAmendmentRequested() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2852,27 +3185,35 @@ public Builder clearIsAmendmentRequested() { private boolean isRevised_ ; /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ + @java.lang.Override public boolean hasIsRevised() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsRevised = 7; + * @return The isRevised. */ + @java.lang.Override public boolean getIsRevised() { return isRevised_; } /** * optional bool IsRevised = 7; + * @param value The isRevised to set. + * @return This builder for chaining. */ public Builder setIsRevised(boolean value) { - bitField0_ |= 0x00000040; + isRevised_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional bool IsRevised = 7; + * @return This builder for chaining. */ public Builder clearIsRevised() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2884,27 +3225,35 @@ public Builder clearIsRevised() { private boolean isCorrected_ ; /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ + @java.lang.Override public boolean hasIsCorrected() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ + @java.lang.Override public boolean getIsCorrected() { return isCorrected_; } /** * optional bool IsCorrected = 8; + * @param value The isCorrected to set. + * @return This builder for chaining. */ public Builder setIsCorrected(boolean value) { - bitField0_ |= 0x00000080; + isCorrected_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional bool IsCorrected = 8; + * @return This builder for chaining. */ public Builder clearIsCorrected() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2916,27 +3265,35 @@ public Builder clearIsCorrected() { private boolean canDocumentBeSignedBySender_ ; /** * optional bool CanDocumentBeSignedBySender = 9; + * @return Whether the canDocumentBeSignedBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedBySender() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional bool CanDocumentBeSignedBySender = 9; + * @return The canDocumentBeSignedBySender. */ + @java.lang.Override public boolean getCanDocumentBeSignedBySender() { return canDocumentBeSignedBySender_; } /** * optional bool CanDocumentBeSignedBySender = 9; + * @param value The canDocumentBeSignedBySender to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeSignedBySender(boolean value) { - bitField0_ |= 0x00000100; + canDocumentBeSignedBySender_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional bool CanDocumentBeSignedBySender = 9; + * @return This builder for chaining. */ public Builder clearCanDocumentBeSignedBySender() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2948,33 +3305,77 @@ public Builder clearCanDocumentBeSignedBySender() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow) + private static final Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow DEFAULT_INSTANCE; static { - defaultInstance = new OutboundInvoiceDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutboundInvoiceDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.OutboundInvoiceDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.OutboundInvoiceDocflow) } - public interface InvoiceConfirmationDocflowOrBuilder extends + @java.lang.Deprecated public interface InvoiceConfirmationDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ConfirmationAttachment = 2; + * @return Whether the confirmationAttachment field is set. */ boolean hasConfirmationAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ConfirmationAttachment = 2; + * @return The confirmationAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getConfirmationAttachment(); /** @@ -2984,10 +3385,12 @@ public interface InvoiceConfirmationDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return Whether the receiptDocflow field is set. */ boolean hasReceiptDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return The receiptDocflow. */ Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow(); /** @@ -2998,137 +3401,56 @@ public interface InvoiceConfirmationDocflowOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow} */ - public static final class InvoiceConfirmationDocflow extends + @java.lang.Deprecated public static final class InvoiceConfirmationDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow) InvoiceConfirmationDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceConfirmationDocflow.class.getName()); + } // Use InvoiceConfirmationDocflow.newBuilder() to construct. private InvoiceConfirmationDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private InvoiceConfirmationDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InvoiceConfirmationDocflow defaultInstance; - public static InvoiceConfirmationDocflow getDefaultInstance() { - return defaultInstance; + private InvoiceConfirmationDocflow() { } - public InvoiceConfirmationDocflow getDefaultInstanceForType() { - return defaultInstance; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceConfirmationDocflow_descriptor; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvoiceConfirmationDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = confirmationAttachment_.toBuilder(); - } - confirmationAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationAttachment_); - confirmationAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = receiptDocflow_.toBuilder(); - } - receiptDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptDocflow_); - receiptDocflow_ = 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.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceConfirmationDocflow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceConfirmationDocflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.class, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InvoiceConfirmationDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvoiceConfirmationDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceConfirmationDocflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.class, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder.class); } private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -3137,50 +3459,56 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment confirmationAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ConfirmationAttachment = 2; + * @return Whether the confirmationAttachment field is set. */ + @java.lang.Override public boolean hasConfirmationAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ConfirmationAttachment = 2; + * @return The confirmationAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getConfirmationAttachment() { - return confirmationAttachment_; + return confirmationAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : confirmationAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ConfirmationAttachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getConfirmationAttachmentOrBuilder() { - return confirmationAttachment_; + return confirmationAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : confirmationAttachment_; } public static final int RECEIPTDOCFLOW_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return Whether the receiptDocflow field is set. */ + @java.lang.Override public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return The receiptDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder getReceiptDocflowOrBuilder() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } - private void initFields() { - isFinished_ = false; - confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3202,51 +3530,109 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, confirmationAttachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getConfirmationAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, receiptDocflow_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getReceiptDocflow()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, confirmationAttachment_); + .computeMessageSize(2, getConfirmationAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, receiptDocflow_); + .computeMessageSize(3, getReceiptDocflow()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow other = (Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasConfirmationAttachment() != other.hasConfirmationAttachment()) return false; + if (hasConfirmationAttachment()) { + if (!getConfirmationAttachment() + .equals(other.getConfirmationAttachment())) return false; + } + if (hasReceiptDocflow() != other.hasReceiptDocflow()) return false; + if (hasReceiptDocflow()) { + if (!getReceiptDocflow() + .equals(other.getReceiptDocflow())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasConfirmationAttachment()) { + hash = (37 * hash) + CONFIRMATIONATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationAttachment().hashCode(); + } + if (hasReceiptDocflow()) { + hash = (37 * hash) + RECEIPTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getReceiptDocflow().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3270,42 +3656,57 @@ public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationD } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3325,6 +3726,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceConfirmationDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceConfirmationDocflow_fieldAccessorTable @@ -3343,47 +3745,42 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getConfirmationAttachmentFieldBuilder(); getReceiptDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (confirmationAttachmentBuilder_ == null) { - confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - } else { - confirmationAttachmentBuilder_.clear(); + confirmationAttachment_ = null; + if (confirmationAttachmentBuilder_ != null) { + confirmationAttachmentBuilder_.dispose(); + confirmationAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - } else { - receiptDocflowBuilder_.clear(); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceConfirmationDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow build() { Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -3392,35 +3789,37 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow buildPartial() { Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow result = new Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationAttachment_ = confirmationAttachmentBuilder_ == null + ? confirmationAttachment_ + : confirmationAttachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (confirmationAttachmentBuilder_ == null) { - result.confirmationAttachment_ = confirmationAttachment_; - } else { - result.confirmationAttachment_ = confirmationAttachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.receiptDocflow_ = receiptDocflowBuilder_ == null + ? receiptDocflow_ + : receiptDocflowBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (receiptDocflowBuilder_ == null) { - result.receiptDocflow_ = receiptDocflow_; - } else { - result.receiptDocflow_ = receiptDocflowBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow)other); @@ -3442,40 +3841,73 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCo mergeReceiptDocflow(other.getReceiptDocflow()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasConfirmationAttachment()) { if (!getConfirmationAttachment().isInitialized()) { - return false; } } if (hasReceiptDocflow()) { if (!getReceiptDocflow().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getConfirmationAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getReceiptDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3483,27 +3915,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -3512,21 +3952,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment confirmationAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder> confirmationAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ConfirmationAttachment = 2; + * @return Whether the confirmationAttachment field is set. */ public boolean hasConfirmationAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ConfirmationAttachment = 2; + * @return The confirmationAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getConfirmationAttachment() { if (confirmationAttachmentBuilder_ == null) { - return confirmationAttachment_; + return confirmationAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : confirmationAttachment_; } else { return confirmationAttachmentBuilder_.getMessage(); } @@ -3540,11 +3982,11 @@ public Builder setConfirmationAttachment(Diadoc.Api.Proto.Docflow.AttachmentProt throw new NullPointerException(); } confirmationAttachment_ = value; - onChanged(); } else { confirmationAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3554,11 +3996,11 @@ public Builder setConfirmationAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder builderForValue) { if (confirmationAttachmentBuilder_ == null) { confirmationAttachment_ = builderForValue.build(); - onChanged(); } else { confirmationAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3566,31 +4008,33 @@ public Builder setConfirmationAttachment( */ public Builder mergeConfirmationAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment value) { if (confirmationAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - confirmationAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { - confirmationAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.newBuilder(confirmationAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + confirmationAttachment_ != null && + confirmationAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { + getConfirmationAttachmentBuilder().mergeFrom(value); } else { confirmationAttachment_ = value; } - onChanged(); } else { confirmationAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (confirmationAttachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ConfirmationAttachment = 2; */ public Builder clearConfirmationAttachment() { - if (confirmationAttachmentBuilder_ == null) { - confirmationAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - onChanged(); - } else { - confirmationAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + confirmationAttachment_ = null; + if (confirmationAttachmentBuilder_ != null) { + confirmationAttachmentBuilder_.dispose(); + confirmationAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -3608,7 +4052,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getCo if (confirmationAttachmentBuilder_ != null) { return confirmationAttachmentBuilder_.getMessageOrBuilder(); } else { - return confirmationAttachment_; + return confirmationAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : confirmationAttachment_; } } /** @@ -3628,21 +4073,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getCo return confirmationAttachmentBuilder_; } - private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder> receiptDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return Whether the receiptDocflow field is set. */ public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return The receiptDocflow. */ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { if (receiptDocflowBuilder_ == null) { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } else { return receiptDocflowBuilder_.getMessage(); } @@ -3656,11 +4103,11 @@ public Builder setReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.R throw new NullPointerException(); } receiptDocflow_ = value; - onChanged(); } else { receiptDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3670,11 +4117,11 @@ public Builder setReceiptDocflow( Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder builderForValue) { if (receiptDocflowBuilder_ == null) { receiptDocflow_ = builderForValue.build(); - onChanged(); } else { receiptDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3682,31 +4129,33 @@ public Builder setReceiptDocflow( */ public Builder mergeReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow value) { if (receiptDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { - receiptDocflow_ = - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.newBuilder(receiptDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + receiptDocflow_ != null && + receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { + getReceiptDocflowBuilder().mergeFrom(value); } else { receiptDocflow_ = value; } - onChanged(); } else { receiptDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (receiptDocflow_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; */ public Builder clearReceiptDocflow() { - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - onChanged(); - } else { - receiptDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -3724,7 +4173,8 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get if (receiptDocflowBuilder_ != null) { return receiptDocflowBuilder_.getMessageOrBuilder(); } else { - return receiptDocflow_; + return receiptDocflow_ == null ? + Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } } /** @@ -3747,33 +4197,77 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow) + private static final Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow DEFAULT_INSTANCE; static { - defaultInstance = new InvoiceConfirmationDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvoiceConfirmationDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow) } - public interface InboundInvoiceReceiptDocflowOrBuilder extends + @java.lang.Deprecated public interface InboundInvoiceReceiptDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return Whether the receiptAttachment field is set. */ boolean hasReceiptAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return The receiptAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getReceiptAttachment(); /** @@ -3783,10 +4277,12 @@ public interface InboundInvoiceReceiptDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ boolean hasConfirmationDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow(); /** @@ -3797,103 +4293,33 @@ public interface InboundInvoiceReceiptDocflowOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow} */ - public static final class InboundInvoiceReceiptDocflow extends + @java.lang.Deprecated public static final class InboundInvoiceReceiptDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow) InboundInvoiceReceiptDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InboundInvoiceReceiptDocflow.class.getName()); + } // Use InboundInvoiceReceiptDocflow.newBuilder() to construct. private InboundInvoiceReceiptDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private InboundInvoiceReceiptDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InboundInvoiceReceiptDocflow defaultInstance; - public static InboundInvoiceReceiptDocflow getDefaultInstance() { - return defaultInstance; - } - - public InboundInvoiceReceiptDocflow getDefaultInstanceForType() { - return defaultInstance; + private InboundInvoiceReceiptDocflow() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InboundInvoiceReceiptDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = receiptAttachment_.toBuilder(); - } - receiptAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptAttachment_); - receiptAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = confirmationDocflow_.toBuilder(); - } - confirmationDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationDocflow_); - confirmationDocflow_ = 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.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceReceiptDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceReceiptDocflow_fieldAccessorTable @@ -3901,33 +4327,22 @@ private InboundInvoiceReceiptDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.class, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InboundInvoiceReceiptDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InboundInvoiceReceiptDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -3936,50 +4351,56 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment receiptAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return Whether the receiptAttachment field is set. */ + @java.lang.Override public boolean hasReceiptAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return The receiptAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getReceiptAttachment() { - return receiptAttachment_; + return receiptAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : receiptAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getReceiptAttachmentOrBuilder() { - return receiptAttachment_; + return receiptAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : receiptAttachment_; } public static final int CONFIRMATIONDOCFLOW_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ + @java.lang.Override public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowOrBuilder getConfirmationDocflowOrBuilder() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } - private void initFields() { - isFinished_ = false; - receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4001,51 +4422,109 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, receiptAttachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReceiptAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, confirmationDocflow_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getConfirmationDocflow()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receiptAttachment_); + .computeMessageSize(2, getReceiptAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, confirmationDocflow_); + .computeMessageSize(3, getConfirmationDocflow()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow other = (Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasReceiptAttachment() != other.hasReceiptAttachment()) return false; + if (hasReceiptAttachment()) { + if (!getReceiptAttachment() + .equals(other.getReceiptAttachment())) return false; + } + if (hasConfirmationDocflow() != other.hasConfirmationDocflow()) return false; + if (hasConfirmationDocflow()) { + if (!getConfirmationDocflow() + .equals(other.getConfirmationDocflow())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasReceiptAttachment()) { + hash = (37 * hash) + RECEIPTATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptAttachment().hashCode(); + } + if (hasConfirmationDocflow()) { + hash = (37 * hash) + CONFIRMATIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationDocflow().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4069,42 +4548,57 @@ public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceip } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4124,6 +4618,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceReceiptDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceReceiptDocflow_fieldAccessorTable @@ -4142,47 +4637,42 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getReceiptAttachmentFieldBuilder(); getConfirmationDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (receiptAttachmentBuilder_ == null) { - receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - } else { - receiptAttachmentBuilder_.clear(); + receiptAttachment_ = null; + if (receiptAttachmentBuilder_ != null) { + receiptAttachmentBuilder_.dispose(); + receiptAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - } else { - confirmationDocflowBuilder_.clear(); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceReceiptDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow build() { Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -4191,35 +4681,37 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflo return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow buildPartial() { Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow result = new Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptAttachment_ = receiptAttachmentBuilder_ == null + ? receiptAttachment_ + : receiptAttachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (receiptAttachmentBuilder_ == null) { - result.receiptAttachment_ = receiptAttachment_; - } else { - result.receiptAttachment_ = receiptAttachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationDocflow_ = confirmationDocflowBuilder_ == null + ? confirmationDocflow_ + : confirmationDocflowBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (confirmationDocflowBuilder_ == null) { - result.confirmationDocflow_ = confirmationDocflow_; - } else { - result.confirmationDocflow_ = confirmationDocflowBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow)other); @@ -4241,40 +4733,73 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundIn mergeConfirmationDocflow(other.getConfirmationDocflow()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasReceiptAttachment()) { if (!getReceiptAttachment().isInitialized()) { - return false; } } if (hasConfirmationDocflow()) { if (!getConfirmationDocflow().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getReceiptAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getConfirmationDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -4282,27 +4807,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -4311,21 +4844,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment receiptAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder> receiptAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return Whether the receiptAttachment field is set. */ public boolean hasReceiptAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return The receiptAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getReceiptAttachment() { if (receiptAttachmentBuilder_ == null) { - return receiptAttachment_; + return receiptAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : receiptAttachment_; } else { return receiptAttachmentBuilder_.getMessage(); } @@ -4339,11 +4874,11 @@ public Builder setReceiptAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.Si throw new NullPointerException(); } receiptAttachment_ = value; - onChanged(); } else { receiptAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4353,11 +4888,11 @@ public Builder setReceiptAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder builderForValue) { if (receiptAttachmentBuilder_ == null) { receiptAttachment_ = builderForValue.build(); - onChanged(); } else { receiptAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4365,31 +4900,33 @@ public Builder setReceiptAttachment( */ public Builder mergeReceiptAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment value) { if (receiptAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - receiptAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { - receiptAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.newBuilder(receiptAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + receiptAttachment_ != null && + receiptAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { + getReceiptAttachmentBuilder().mergeFrom(value); } else { receiptAttachment_ = value; } - onChanged(); } else { receiptAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (receiptAttachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; */ public Builder clearReceiptAttachment() { - if (receiptAttachmentBuilder_ == null) { - receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - onChanged(); - } else { - receiptAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + receiptAttachment_ = null; + if (receiptAttachmentBuilder_ != null) { + receiptAttachmentBuilder_.dispose(); + receiptAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -4407,7 +4944,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRe if (receiptAttachmentBuilder_ != null) { return receiptAttachmentBuilder_.getMessageOrBuilder(); } else { - return receiptAttachment_; + return receiptAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : receiptAttachment_; } } /** @@ -4427,21 +4965,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRe return receiptAttachmentBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowOrBuilder> confirmationDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow() { if (confirmationDocflowBuilder_ == null) { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } else { return confirmationDocflowBuilder_.getMessage(); } @@ -4455,11 +4995,11 @@ public Builder setConfirmationDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowPro throw new NullPointerException(); } confirmationDocflow_ = value; - onChanged(); } else { confirmationDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4469,11 +5009,11 @@ public Builder setConfirmationDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder builderForValue) { if (confirmationDocflowBuilder_ == null) { confirmationDocflow_ = builderForValue.build(); - onChanged(); } else { confirmationDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4481,31 +5021,33 @@ public Builder setConfirmationDocflow( */ public Builder mergeConfirmationDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow value) { if (confirmationDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - confirmationDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance()) { - confirmationDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.newBuilder(confirmationDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + confirmationDocflow_ != null && + confirmationDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance()) { + getConfirmationDocflowBuilder().mergeFrom(value); } else { confirmationDocflow_ = value; } - onChanged(); } else { confirmationDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (confirmationDocflow_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; */ public Builder clearConfirmationDocflow() { - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - onChanged(); - } else { - confirmationDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -4523,7 +5065,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowO if (confirmationDocflowBuilder_ != null) { return confirmationDocflowBuilder_.getMessageOrBuilder(); } else { - return confirmationDocflow_; + return confirmationDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } } /** @@ -4546,33 +5089,77 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowO // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow) + private static final Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow DEFAULT_INSTANCE; static { - defaultInstance = new InboundInvoiceReceiptDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InboundInvoiceReceiptDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow) } - public interface InvoiceCorrectionRequestDocflowOrBuilder extends + @java.lang.Deprecated public interface InvoiceCorrectionRequestDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment CorrectionRequestAttachment = 2; + * @return Whether the correctionRequestAttachment field is set. */ boolean hasCorrectionRequestAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment CorrectionRequestAttachment = 2; + * @return The correctionRequestAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getCorrectionRequestAttachment(); /** @@ -4582,10 +5169,12 @@ public interface InvoiceCorrectionRequestDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return Whether the receiptDocflow field is set. */ boolean hasReceiptDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return The receiptDocflow. */ Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow(); /** @@ -4596,103 +5185,33 @@ public interface InvoiceCorrectionRequestDocflowOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow} */ - public static final class InvoiceCorrectionRequestDocflow extends + @java.lang.Deprecated public static final class InvoiceCorrectionRequestDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow) InvoiceCorrectionRequestDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceCorrectionRequestDocflow.class.getName()); + } // Use InvoiceCorrectionRequestDocflow.newBuilder() to construct. private InvoiceCorrectionRequestDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private InvoiceCorrectionRequestDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InvoiceCorrectionRequestDocflow defaultInstance; - public static InvoiceCorrectionRequestDocflow getDefaultInstance() { - return defaultInstance; + private InvoiceCorrectionRequestDocflow() { } - public InvoiceCorrectionRequestDocflow getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvoiceCorrectionRequestDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = correctionRequestAttachment_.toBuilder(); - } - correctionRequestAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(correctionRequestAttachment_); - correctionRequestAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = receiptDocflow_.toBuilder(); - } - receiptDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptDocflow_); - receiptDocflow_ = 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.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionRequestDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionRequestDocflow_fieldAccessorTable @@ -4700,33 +5219,22 @@ private InvoiceCorrectionRequestDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.class, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InvoiceCorrectionRequestDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvoiceCorrectionRequestDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -4735,50 +5243,56 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment correctionRequestAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment CorrectionRequestAttachment = 2; + * @return Whether the correctionRequestAttachment field is set. */ + @java.lang.Override public boolean hasCorrectionRequestAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment CorrectionRequestAttachment = 2; + * @return The correctionRequestAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getCorrectionRequestAttachment() { - return correctionRequestAttachment_; + return correctionRequestAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : correctionRequestAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment CorrectionRequestAttachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getCorrectionRequestAttachmentOrBuilder() { - return correctionRequestAttachment_; + return correctionRequestAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : correctionRequestAttachment_; } public static final int RECEIPTDOCFLOW_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return Whether the receiptDocflow field is set. */ + @java.lang.Override public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return The receiptDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder getReceiptDocflowOrBuilder() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } - private void initFields() { - isFinished_ = false; - correctionRequestAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4800,51 +5314,109 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, correctionRequestAttachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getCorrectionRequestAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, receiptDocflow_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getReceiptDocflow()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, correctionRequestAttachment_); + .computeMessageSize(2, getCorrectionRequestAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, receiptDocflow_); + .computeMessageSize(3, getReceiptDocflow()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow other = (Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasCorrectionRequestAttachment() != other.hasCorrectionRequestAttachment()) return false; + if (hasCorrectionRequestAttachment()) { + if (!getCorrectionRequestAttachment() + .equals(other.getCorrectionRequestAttachment())) return false; + } + if (hasReceiptDocflow() != other.hasReceiptDocflow()) return false; + if (hasReceiptDocflow()) { + if (!getReceiptDocflow() + .equals(other.getReceiptDocflow())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasCorrectionRequestAttachment()) { + hash = (37 * hash) + CORRECTIONREQUESTATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getCorrectionRequestAttachment().hashCode(); + } + if (hasReceiptDocflow()) { + hash = (37 * hash) + RECEIPTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getReceiptDocflow().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4868,42 +5440,57 @@ public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionReq } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4923,6 +5510,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionRequestDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionRequestDocflow_fieldAccessorTable @@ -4941,47 +5529,42 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getCorrectionRequestAttachmentFieldBuilder(); getReceiptDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (correctionRequestAttachmentBuilder_ == null) { - correctionRequestAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - } else { - correctionRequestAttachmentBuilder_.clear(); + correctionRequestAttachment_ = null; + if (correctionRequestAttachmentBuilder_ != null) { + correctionRequestAttachmentBuilder_.dispose(); + correctionRequestAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - } else { - receiptDocflowBuilder_.clear(); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionRequestDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow build() { Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -4990,35 +5573,37 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDoc return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow buildPartial() { Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow result = new Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.correctionRequestAttachment_ = correctionRequestAttachmentBuilder_ == null + ? correctionRequestAttachment_ + : correctionRequestAttachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (correctionRequestAttachmentBuilder_ == null) { - result.correctionRequestAttachment_ = correctionRequestAttachment_; - } else { - result.correctionRequestAttachment_ = correctionRequestAttachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.receiptDocflow_ = receiptDocflowBuilder_ == null + ? receiptDocflow_ + : receiptDocflowBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (receiptDocflowBuilder_ == null) { - result.receiptDocflow_ = receiptDocflow_; - } else { - result.receiptDocflow_ = receiptDocflowBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow)other); @@ -5040,40 +5625,73 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCo mergeReceiptDocflow(other.getReceiptDocflow()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasCorrectionRequestAttachment()) { if (!getCorrectionRequestAttachment().isInitialized()) { - return false; } } if (hasReceiptDocflow()) { if (!getReceiptDocflow().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getCorrectionRequestAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getReceiptDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -5081,27 +5699,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -5110,21 +5736,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment correctionRequestAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment correctionRequestAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder> correctionRequestAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment CorrectionRequestAttachment = 2; + * @return Whether the correctionRequestAttachment field is set. */ public boolean hasCorrectionRequestAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment CorrectionRequestAttachment = 2; + * @return The correctionRequestAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getCorrectionRequestAttachment() { if (correctionRequestAttachmentBuilder_ == null) { - return correctionRequestAttachment_; + return correctionRequestAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : correctionRequestAttachment_; } else { return correctionRequestAttachmentBuilder_.getMessage(); } @@ -5138,11 +5766,11 @@ public Builder setCorrectionRequestAttachment(Diadoc.Api.Proto.Docflow.Attachmen throw new NullPointerException(); } correctionRequestAttachment_ = value; - onChanged(); } else { correctionRequestAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5152,11 +5780,11 @@ public Builder setCorrectionRequestAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder builderForValue) { if (correctionRequestAttachmentBuilder_ == null) { correctionRequestAttachment_ = builderForValue.build(); - onChanged(); } else { correctionRequestAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5164,31 +5792,33 @@ public Builder setCorrectionRequestAttachment( */ public Builder mergeCorrectionRequestAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment value) { if (correctionRequestAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - correctionRequestAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { - correctionRequestAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.newBuilder(correctionRequestAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + correctionRequestAttachment_ != null && + correctionRequestAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { + getCorrectionRequestAttachmentBuilder().mergeFrom(value); } else { correctionRequestAttachment_ = value; } - onChanged(); } else { correctionRequestAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (correctionRequestAttachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment CorrectionRequestAttachment = 2; */ public Builder clearCorrectionRequestAttachment() { - if (correctionRequestAttachmentBuilder_ == null) { - correctionRequestAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - onChanged(); - } else { - correctionRequestAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + correctionRequestAttachment_ = null; + if (correctionRequestAttachmentBuilder_ != null) { + correctionRequestAttachmentBuilder_.dispose(); + correctionRequestAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -5206,7 +5836,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getCo if (correctionRequestAttachmentBuilder_ != null) { return correctionRequestAttachmentBuilder_.getMessageOrBuilder(); } else { - return correctionRequestAttachment_; + return correctionRequestAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : correctionRequestAttachment_; } } /** @@ -5226,21 +5857,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getCo return correctionRequestAttachmentBuilder_; } - private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder> receiptDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return Whether the receiptDocflow field is set. */ public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; + * @return The receiptDocflow. */ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { if (receiptDocflowBuilder_ == null) { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } else { return receiptDocflowBuilder_.getMessage(); } @@ -5254,11 +5887,11 @@ public Builder setReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.R throw new NullPointerException(); } receiptDocflow_ = value; - onChanged(); } else { receiptDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5268,11 +5901,11 @@ public Builder setReceiptDocflow( Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder builderForValue) { if (receiptDocflowBuilder_ == null) { receiptDocflow_ = builderForValue.build(); - onChanged(); } else { receiptDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5280,31 +5913,33 @@ public Builder setReceiptDocflow( */ public Builder mergeReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow value) { if (receiptDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { - receiptDocflow_ = - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.newBuilder(receiptDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + receiptDocflow_ != null && + receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { + getReceiptDocflowBuilder().mergeFrom(value); } else { receiptDocflow_ = value; } - onChanged(); } else { receiptDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (receiptDocflow_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 3; */ public Builder clearReceiptDocflow() { - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - onChanged(); - } else { - receiptDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -5322,7 +5957,8 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get if (receiptDocflowBuilder_ != null) { return receiptDocflowBuilder_.getMessageOrBuilder(); } else { - return receiptDocflow_; + return receiptDocflow_ == null ? + Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } } /** @@ -5345,37 +5981,77 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow) + private static final Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow DEFAULT_INSTANCE; static { - defaultInstance = new InvoiceCorrectionRequestDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvoiceCorrectionRequestDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_OutboundInvoiceDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_OutboundInvoiceDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_InvoiceConfirmationDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_InvoiceConfirmationDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceReceiptDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceReceiptDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionRequestDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionRequestDocflow_fieldAccessorTable; @@ -5383,68 +6059,60 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\034Docflow/InvoiceDocflow.proto\022\030Diadoc.A" + "pi.Proto.Docflow\032\017Timestamp.proto\032\030Docfl" + "ow/Attachment.proto\032\034Docflow/ReceiptDocf" + - "low.proto\"\255\003\n\025InboundInvoiceDocflow\022\022\n\nI" + + "low.proto\"\261\003\n\025InboundInvoiceDocflow\022\022\n\nI" + "sFinished\030\001 \001(\010\022N\n\016ReceiptDocflow\030\002 \001(\0132" + "6.Diadoc.Api.Proto.Docflow.InboundInvoic" + "eReceiptDocflow\022Q\n\023ConfirmationDocflow\030\003" + " \001(\01324.Diadoc.Api.Proto.Docflow.InvoiceC" + "onfirmationDocflow\022[\n\030CorrectionRequestD" + - "ocflow\030\004 \001(\01329.Diadoc.Api.Proto.Docflow.", + "ocflow\030\004 \001(\01329.Diadoc.Api.Proto.Docflow." + "InvoiceCorrectionRequestDocflow\022:\n\025Confi" + "rmationTimestamp\030\005 \001(\0132\033.Diadoc.Api.Prot" + "o.Timestamp\022\034\n\024IsAmendmentRequested\030\006 \001(" + "\010\022\021\n\tIsRevised\030\007 \001(\010\022\023\n\013IsCorrected\030\010 \001(" + - "\010\"\305\003\n\026OutboundInvoiceDocflow\022\022\n\nIsFinish" + - "ed\030\001 \001(\010\022@\n\016ReceiptDocflow\030\002 \001(\0132(.Diado" + - "c.Api.Proto.Docflow.ReceiptDocflow\022Q\n\023Co" + - "nfirmationDocflow\030\003 \001(\01324.Diadoc.Api.Pro" + - "to.Docflow.InvoiceConfirmationDocflow\022[\n" + - "\030CorrectionRequestDocflow\030\004 \001(\01329.Diadoc", - ".Api.Proto.Docflow.InvoiceCorrectionRequ" + - "estDocflow\022:\n\025ConfirmationTimestamp\030\005 \001(" + - "\0132\033.Diadoc.Api.Proto.Timestamp\022\034\n\024IsAmen" + - "dmentRequested\030\006 \001(\010\022\021\n\tIsRevised\030\007 \001(\010\022" + - "\023\n\013IsCorrected\030\010 \001(\010\022#\n\033CanDocumentBeSig" + - "nedBySender\030\t \001(\010\"\276\001\n\032InvoiceConfirmatio" + - "nDocflow\022\022\n\nIsFinished\030\001 \001(\010\022J\n\026Confirma" + - "tionAttachment\030\002 \001(\0132*.Diadoc.Api.Proto." + - "Docflow.SignedAttachment\022@\n\016ReceiptDocfl" + - "ow\030\003 \001(\0132(.Diadoc.Api.Proto.Docflow.Rece", - "iptDocflow\"\314\001\n\034InboundInvoiceReceiptDocf" + - "low\022\022\n\nIsFinished\030\001 \001(\010\022E\n\021ReceiptAttach" + - "ment\030\002 \001(\0132*.Diadoc.Api.Proto.Docflow.Si" + - "gnedAttachment\022Q\n\023ConfirmationDocflow\030\003 " + - "\001(\01324.Diadoc.Api.Proto.Docflow.InvoiceCo" + - "nfirmationDocflow\"\310\001\n\037InvoiceCorrectionR" + - "equestDocflow\022\022\n\nIsFinished\030\001 \001(\010\022O\n\033Cor" + - "rectionRequestAttachment\030\002 \001(\0132*.Diadoc." + - "Api.Proto.Docflow.SignedAttachment\022@\n\016Re" + - "ceiptDocflow\030\003 \001(\0132(.Diadoc.Api.Proto.Do", - "cflow.ReceiptDocflowB\026B\024InvoiceDocflowPr" + - "otos" + "\010:\002\030\001\"\311\003\n\026OutboundInvoiceDocflow\022\022\n\nIsFi" + + "nished\030\001 \001(\010\022@\n\016ReceiptDocflow\030\002 \001(\0132(.D" + + "iadoc.Api.Proto.Docflow.ReceiptDocflow\022Q" + + "\n\023ConfirmationDocflow\030\003 \001(\01324.Diadoc.Api" + + ".Proto.Docflow.InvoiceConfirmationDocflo" + + "w\022[\n\030CorrectionRequestDocflow\030\004 \001(\01329.Di" + + "adoc.Api.Proto.Docflow.InvoiceCorrection" + + "RequestDocflow\022:\n\025ConfirmationTimestamp\030" + + "\005 \001(\0132\033.Diadoc.Api.Proto.Timestamp\022\034\n\024Is" + + "AmendmentRequested\030\006 \001(\010\022\021\n\tIsRevised\030\007 " + + "\001(\010\022\023\n\013IsCorrected\030\010 \001(\010\022#\n\033CanDocumentB" + + "eSignedBySender\030\t \001(\010:\002\030\001\"\302\001\n\032InvoiceCon" + + "firmationDocflow\022\022\n\nIsFinished\030\001 \001(\010\022J\n\026" + + "ConfirmationAttachment\030\002 \001(\0132*.Diadoc.Ap" + + "i.Proto.Docflow.SignedAttachment\022@\n\016Rece" + + "iptDocflow\030\003 \001(\0132(.Diadoc.Api.Proto.Docf" + + "low.ReceiptDocflow:\002\030\001\"\320\001\n\034InboundInvoic" + + "eReceiptDocflow\022\022\n\nIsFinished\030\001 \001(\010\022E\n\021R" + + "eceiptAttachment\030\002 \001(\0132*.Diadoc.Api.Prot" + + "o.Docflow.SignedAttachment\022Q\n\023Confirmati" + + "onDocflow\030\003 \001(\01324.Diadoc.Api.Proto.Docfl" + + "ow.InvoiceConfirmationDocflow:\002\030\001\"\314\001\n\037In" + + "voiceCorrectionRequestDocflow\022\022\n\nIsFinis" + + "hed\030\001 \001(\010\022O\n\033CorrectionRequestAttachment" + + "\030\002 \001(\0132*.Diadoc.Api.Proto.Docflow.Signed" + + "Attachment\022@\n\016ReceiptDocflow\030\003 \001(\0132(.Dia" + + "doc.Api.Proto.Docflow.ReceiptDocflow:\002\030\001" + + "B\026B\024InvoiceDocflowProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_InboundInvoiceDocflow_fieldAccessorTable = new @@ -5475,6 +6143,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_InvoiceCorrectionRequestDocflow_descriptor, new java.lang.String[] { "IsFinished", "CorrectionRequestAttachment", "ReceiptDocflow", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/PowerOfAttorneyAttachmentStatusProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/PowerOfAttorneyAttachmentStatusProtos.java index 10735bc7..5d068e67 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/PowerOfAttorneyAttachmentStatusProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/PowerOfAttorneyAttachmentStatusProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/PowerOfAttorneyAttachmentStatus.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class PowerOfAttorneyAttachmentStatusProtos { private PowerOfAttorneyAttachmentStatusProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + PowerOfAttorneyAttachmentStatusProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Docflow.StatusName} @@ -16,21 +33,30 @@ public enum StatusName /** * Unknown = 0; */ - Unknown(0, 0), + Unknown(0), /** * PowerOfAttorneyAttached = 1; */ - PowerOfAttorneyAttached(1, 1), + PowerOfAttorneyAttached(1), /** * PowerOfAttorneyNotRequired = 2; */ - PowerOfAttorneyNotRequired(2, 2), + PowerOfAttorneyNotRequired(2), /** * PowerOfAttorneyRequired = 3; */ - PowerOfAttorneyRequired(3, 3), + PowerOfAttorneyRequired(3), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + StatusName.class.getName()); + } /** * Unknown = 0; */ @@ -49,9 +75,25 @@ public enum StatusName public static final int PowerOfAttorneyRequired_VALUE = 3; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static StatusName valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static StatusName forNumber(int value) { switch (value) { case 0: return Unknown; case 1: return PowerOfAttorneyAttached; @@ -65,17 +107,17 @@ public static StatusName valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + StatusName> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public StatusName findValueByNumber(int number) { - return StatusName.valueOf(number); + return StatusName.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -97,11 +139,9 @@ public static StatusName valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private StatusName(int index, int value) { - this.index = index; + private StatusName(int value) { this.value = value; } @@ -114,23 +154,28 @@ public interface PowerOfAttorneyAttachmentStatusOrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.StatusName StatusName = 1 [default = Unknown]; + * @return Whether the statusName field is set. */ boolean hasStatusName(); /** * required .Diadoc.Api.Proto.Docflow.StatusName StatusName = 1 [default = Unknown]; + * @return The statusName. */ Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName getStatusName(); /** * optional string Comment = 2; + * @return Whether the comment field is set. */ boolean hasComment(); /** * optional string Comment = 2; + * @return The comment. */ java.lang.String getComment(); /** * optional string Comment = 2; + * @return The bytes for comment. */ com.google.protobuf.ByteString getCommentBytes(); @@ -142,85 +187,31 @@ public static final class PowerOfAttorneyAttachmentStatus extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus) PowerOfAttorneyAttachmentStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + PowerOfAttorneyAttachmentStatus.class.getName()); + } // Use PowerOfAttorneyAttachmentStatus.newBuilder() to construct. private PowerOfAttorneyAttachmentStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private PowerOfAttorneyAttachmentStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final PowerOfAttorneyAttachmentStatus defaultInstance; - public static PowerOfAttorneyAttachmentStatus getDefaultInstance() { - return defaultInstance; } - - public PowerOfAttorneyAttachmentStatus getDefaultInstanceForType() { - return defaultInstance; + private PowerOfAttorneyAttachmentStatus() { + statusName_ = 0; + comment_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PowerOfAttorneyAttachmentStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName value = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - statusName_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - comment_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyAttachmentStatus_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyAttachmentStatus_fieldAccessorTable @@ -228,48 +219,41 @@ private PowerOfAttorneyAttachmentStatus( Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.class, Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PowerOfAttorneyAttachmentStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PowerOfAttorneyAttachmentStatus(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int STATUSNAME_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName statusName_; + private int statusName_ = 0; /** * required .Diadoc.Api.Proto.Docflow.StatusName StatusName = 1 [default = Unknown]; + * @return Whether the statusName field is set. */ - public boolean hasStatusName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasStatusName() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.StatusName StatusName = 1 [default = Unknown]; + * @return The statusName. */ - public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName getStatusName() { - return statusName_; + @java.lang.Override public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName getStatusName() { + Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName result = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName.forNumber(statusName_); + return result == null ? Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName.Unknown : result; } public static final int COMMENT_FIELD_NUMBER = 2; - private java.lang.Object comment_; + @SuppressWarnings("serial") + private volatile java.lang.Object comment_ = ""; /** * optional string Comment = 2; + * @return Whether the comment field is set. */ + @java.lang.Override public boolean hasComment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Comment = 2; + * @return The comment. */ + @java.lang.Override public java.lang.String getComment() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { @@ -286,7 +270,9 @@ public java.lang.String getComment() { } /** * optional string Comment = 2; + * @return The bytes for comment. */ + @java.lang.Override public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; @@ -301,11 +287,8 @@ public java.lang.String getComment() { } } - private void initFields() { - statusName_ = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName.Unknown; - comment_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -319,44 +302,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, statusName_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, statusName_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getCommentBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, comment_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, statusName_.getNumber()); + .computeEnumSize(1, statusName_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getCommentBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, comment_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus other = (Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus) obj; + + if (hasStatusName() != other.hasStatusName()) return false; + if (hasStatusName()) { + if (statusName_ != other.statusName_) return false; + } + if (hasComment() != other.hasComment()) return false; + if (hasComment()) { + if (!getComment() + .equals(other.getComment())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatusName()) { + hash = (37 * hash) + STATUSNAME_FIELD_NUMBER; + hash = (53 * hash) + statusName_; + } + if (hasComment()) { + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -380,42 +409,57 @@ public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.Pow } public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -435,6 +479,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyAttachmentStatus_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyAttachmentStatus_fieldAccessorTable @@ -444,44 +489,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - statusName_ = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName.Unknown; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + statusName_ = 0; comment_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyAttachmentStatus_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus build() { Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus result = buildPartial(); if (!result.isInitialized()) { @@ -490,23 +526,29 @@ public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAtt return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus buildPartial() { Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus result = new Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.statusName_ = statusName_; to_bitField0_ |= 0x00000001; } - result.statusName_ = statusName_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.comment_ = comment_; to_bitField0_ |= 0x00000002; } - result.comment_ = comment_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus) { return mergeFrom((Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus)other); @@ -522,72 +564,111 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatu setStatusName(other.getStatusName()); } if (other.hasComment()) { - bitField0_ |= 0x00000002; comment_ = other.comment_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasStatusName()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName tmpValue = + Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + statusName_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + comment_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName statusName_ = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName.Unknown; + private int statusName_ = 0; /** * required .Diadoc.Api.Proto.Docflow.StatusName StatusName = 1 [default = Unknown]; + * @return Whether the statusName field is set. */ - public boolean hasStatusName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasStatusName() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.StatusName StatusName = 1 [default = Unknown]; + * @return The statusName. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName getStatusName() { - return statusName_; + Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName result = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName.forNumber(statusName_); + return result == null ? Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName.Unknown : result; } /** * required .Diadoc.Api.Proto.Docflow.StatusName StatusName = 1 [default = Unknown]; + * @param value The statusName to set. + * @return This builder for chaining. */ public Builder setStatusName(Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - statusName_ = value; + statusName_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Docflow.StatusName StatusName = 1 [default = Unknown]; + * @return This builder for chaining. */ public Builder clearStatusName() { bitField0_ = (bitField0_ & ~0x00000001); - statusName_ = Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.StatusName.Unknown; + statusName_ = 0; onChanged(); return this; } @@ -595,12 +676,14 @@ public Builder clearStatusName() { private java.lang.Object comment_ = ""; /** * optional string Comment = 2; + * @return Whether the comment field is set. */ public boolean hasComment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Comment = 2; + * @return The comment. */ public java.lang.String getComment() { java.lang.Object ref = comment_; @@ -618,6 +701,7 @@ public java.lang.String getComment() { } /** * optional string Comment = 2; + * @return The bytes for comment. */ public com.google.protobuf.ByteString getCommentBytes() { @@ -634,36 +718,37 @@ public java.lang.String getComment() { } /** * optional string Comment = 2; + * @param value The comment to set. + * @return This builder for chaining. */ public Builder setComment( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } comment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string Comment = 2; + * @return This builder for chaining. */ public Builder clearComment() { - bitField0_ = (bitField0_ & ~0x00000002); comment_ = getDefaultInstance().getComment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string Comment = 2; + * @param value The bytes for comment to set. + * @return This builder for chaining. */ public Builder setCommentBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } comment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -671,17 +756,57 @@ public Builder setCommentBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus) + private static final Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus DEFAULT_INSTANCE; static { - defaultInstance = new PowerOfAttorneyAttachmentStatus(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus(); + } + + public static Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PowerOfAttorneyAttachmentStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatusProtos.PowerOfAttorneyAttachmentStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.PowerOfAttorneyAttachmentStatus) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyAttachmentStatus_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyAttachmentStatus_fieldAccessorTable; @@ -689,7 +814,7 @@ public Builder setCommentBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -703,24 +828,17 @@ public Builder setCommentBytes( "\022\033\n\027PowerOfAttorneyRequired\020\003B\'B%PowerOf" + "AttorneyAttachmentStatusProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyAttachmentStatus_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyAttachmentStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyAttachmentStatus_descriptor, new java.lang.String[] { "StatusName", "Comment", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/ReceiptDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/ReceiptDocflowProtos.java index 184f5d50..86ee07bf 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/ReceiptDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/ReceiptDocflowProtos.java @@ -1,32 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/ReceiptDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class ReceiptDocflowProtos { private ReceiptDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ReceiptDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface ReceiptDocflowOrBuilder extends + @java.lang.Deprecated public interface ReceiptDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.ReceiptDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return Whether the receiptAttachment field is set. */ boolean hasReceiptAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return The receiptAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getReceiptAttachment(); /** @@ -37,90 +58,33 @@ public interface ReceiptDocflowOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.ReceiptDocflow} */ - public static final class ReceiptDocflow extends + @java.lang.Deprecated public static final class ReceiptDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ReceiptDocflow) ReceiptDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ReceiptDocflow.class.getName()); + } // Use ReceiptDocflow.newBuilder() to construct. private ReceiptDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ReceiptDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ReceiptDocflow defaultInstance; - public static ReceiptDocflow getDefaultInstance() { - return defaultInstance; } - - public ReceiptDocflow getDefaultInstanceForType() { - return defaultInstance; + private ReceiptDocflow() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = receiptAttachment_.toBuilder(); - } - receiptAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptAttachment_); - receiptAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflow_fieldAccessorTable @@ -128,33 +92,22 @@ private ReceiptDocflow( Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.class, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ReceiptDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -163,28 +116,30 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment receiptAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return Whether the receiptAttachment field is set. */ + @java.lang.Override public boolean hasReceiptAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return The receiptAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getReceiptAttachment() { - return receiptAttachment_; + return receiptAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : receiptAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getReceiptAttachmentOrBuilder() { - return receiptAttachment_; + return receiptAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : receiptAttachment_; } - private void initFields() { - isFinished_ = false; - receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -200,44 +155,93 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, receiptAttachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReceiptAttachment()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receiptAttachment_); + .computeMessageSize(2, getReceiptAttachment()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow other = (Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasReceiptAttachment() != other.hasReceiptAttachment()) return false; + if (hasReceiptAttachment()) { + if (!getReceiptAttachment() + .equals(other.getReceiptAttachment())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasReceiptAttachment()) { + hash = (37 * hash) + RECEIPTATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptAttachment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -261,42 +265,57 @@ public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parse } public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -316,6 +335,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflow_fieldAccessorTable @@ -334,40 +354,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getReceiptAttachmentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (receiptAttachmentBuilder_ == null) { - receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - } else { - receiptAttachmentBuilder_.clear(); + receiptAttachment_ = null; + if (receiptAttachmentBuilder_ != null) { + receiptAttachmentBuilder_.dispose(); + receiptAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow build() { Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -376,27 +392,31 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow buildPartial() { Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow result = new Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptAttachment_ = receiptAttachmentBuilder_ == null + ? receiptAttachment_ + : receiptAttachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (receiptAttachmentBuilder_ == null) { - result.receiptAttachment_ = receiptAttachment_; - } else { - result.receiptAttachment_ = receiptAttachmentBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow)other); @@ -415,34 +435,61 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDo mergeReceiptAttachment(other.getReceiptAttachment()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasReceiptAttachment()) { if (!getReceiptAttachment().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getReceiptAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -450,27 +497,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -479,21 +534,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment receiptAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder> receiptAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return Whether the receiptAttachment field is set. */ public boolean hasReceiptAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; + * @return The receiptAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getReceiptAttachment() { if (receiptAttachmentBuilder_ == null) { - return receiptAttachment_; + return receiptAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : receiptAttachment_; } else { return receiptAttachmentBuilder_.getMessage(); } @@ -507,11 +564,11 @@ public Builder setReceiptAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.Si throw new NullPointerException(); } receiptAttachment_ = value; - onChanged(); } else { receiptAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -521,11 +578,11 @@ public Builder setReceiptAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder builderForValue) { if (receiptAttachmentBuilder_ == null) { receiptAttachment_ = builderForValue.build(); - onChanged(); } else { receiptAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -533,31 +590,33 @@ public Builder setReceiptAttachment( */ public Builder mergeReceiptAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment value) { if (receiptAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - receiptAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { - receiptAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.newBuilder(receiptAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + receiptAttachment_ != null && + receiptAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { + getReceiptAttachmentBuilder().mergeFrom(value); } else { receiptAttachment_ = value; } - onChanged(); } else { receiptAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (receiptAttachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment ReceiptAttachment = 2; */ public Builder clearReceiptAttachment() { - if (receiptAttachmentBuilder_ == null) { - receiptAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - onChanged(); - } else { - receiptAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + receiptAttachment_ = null; + if (receiptAttachmentBuilder_ != null) { + receiptAttachmentBuilder_.dispose(); + receiptAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -575,7 +634,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRe if (receiptAttachmentBuilder_ != null) { return receiptAttachmentBuilder_.getMessageOrBuilder(); } else { - return receiptAttachment_; + return receiptAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : receiptAttachment_; } } /** @@ -598,17 +658,57 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRe // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ReceiptDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ReceiptDocflow) + private static final Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow DEFAULT_INSTANCE; static { - defaultInstance = new ReceiptDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ReceiptDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflow_fieldAccessorTable; @@ -616,36 +716,29 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRe getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\034Docflow/ReceiptDocflow.proto\022\030Diadoc.A" + "pi.Proto.Docflow\032\030Docflow/Attachment.pro" + - "to\"k\n\016ReceiptDocflow\022\022\n\nIsFinished\030\001 \001(\010" + + "to\"o\n\016ReceiptDocflow\022\022\n\nIsFinished\030\001 \001(\010" + "\022E\n\021ReceiptAttachment\030\002 \001(\0132*.Diadoc.Api" + - ".Proto.Docflow.SignedAttachmentB\026B\024Recei" + - "ptDocflowProtos" + ".Proto.Docflow.SignedAttachment:\002\030\001B\026B\024R" + + "eceiptDocflowProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_ReceiptDocflow_descriptor, new java.lang.String[] { "IsFinished", "ReceiptAttachment", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/RecipientSignatureDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/RecipientSignatureDocflowProtos.java index 62244b67..614fedaa 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/RecipientSignatureDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/RecipientSignatureDocflowProtos.java @@ -1,32 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/RecipientSignatureDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class RecipientSignatureDocflowProtos { private RecipientSignatureDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RecipientSignatureDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface RecipientSignatureDocflowOrBuilder extends + @java.lang.Deprecated public interface RecipientSignatureDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.Signature RecipientSignature = 2; + * @return Whether the recipientSignature field is set. */ boolean hasRecipientSignature(); /** * optional .Diadoc.Api.Proto.Docflow.Signature RecipientSignature = 2; + * @return The recipientSignature. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature getRecipientSignature(); /** @@ -36,10 +57,12 @@ public interface RecipientSignatureDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return Whether the deliveryTimestamp field is set. */ boolean hasDeliveryTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return The deliveryTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp(); /** @@ -50,103 +73,33 @@ public interface RecipientSignatureDocflowOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow} */ - public static final class RecipientSignatureDocflow extends + @java.lang.Deprecated public static final class RecipientSignatureDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow) RecipientSignatureDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RecipientSignatureDocflow.class.getName()); + } // Use RecipientSignatureDocflow.newBuilder() to construct. private RecipientSignatureDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private RecipientSignatureDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RecipientSignatureDocflow defaultInstance; - public static RecipientSignatureDocflow getDefaultInstance() { - return defaultInstance; + private RecipientSignatureDocflow() { } - public RecipientSignatureDocflow getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RecipientSignatureDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = recipientSignature_.toBuilder(); - } - recipientSignature_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientSignature_); - recipientSignature_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = deliveryTimestamp_.toBuilder(); - } - deliveryTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveryTimestamp_); - deliveryTimestamp_ = 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.Docflow.RecipientSignatureDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureDocflow_fieldAccessorTable @@ -154,33 +107,22 @@ private RecipientSignatureDocflow( Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.class, Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RecipientSignatureDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecipientSignatureDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -189,50 +131,56 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature recipientSignature_; /** * optional .Diadoc.Api.Proto.Docflow.Signature RecipientSignature = 2; + * @return Whether the recipientSignature field is set. */ + @java.lang.Override public boolean hasRecipientSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Signature RecipientSignature = 2; + * @return The recipientSignature. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature getRecipientSignature() { - return recipientSignature_; + return recipientSignature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance() : recipientSignature_; } /** * optional .Diadoc.Api.Proto.Docflow.Signature RecipientSignature = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignatureOrBuilder getRecipientSignatureOrBuilder() { - return recipientSignature_; + return recipientSignature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance() : recipientSignature_; } public static final int DELIVERYTIMESTAMP_FIELD_NUMBER = 3; private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return Whether the deliveryTimestamp field is set. */ + @java.lang.Override public boolean hasDeliveryTimestamp() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return The deliveryTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp() { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampOrBuilder() { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } - private void initFields() { - isFinished_ = false; - recipientSignature_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance(); - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -254,51 +202,109 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, recipientSignature_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRecipientSignature()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, deliveryTimestamp_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDeliveryTimestamp()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, recipientSignature_); + .computeMessageSize(2, getRecipientSignature()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, deliveryTimestamp_); + .computeMessageSize(3, getDeliveryTimestamp()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow other = (Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasRecipientSignature() != other.hasRecipientSignature()) return false; + if (hasRecipientSignature()) { + if (!getRecipientSignature() + .equals(other.getRecipientSignature())) return false; + } + if (hasDeliveryTimestamp() != other.hasDeliveryTimestamp()) return false; + if (hasDeliveryTimestamp()) { + if (!getDeliveryTimestamp() + .equals(other.getDeliveryTimestamp())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasRecipientSignature()) { + hash = (37 * hash) + RECIPIENTSIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getRecipientSignature().hashCode(); + } + if (hasDeliveryTimestamp()) { + hash = (37 * hash) + DELIVERYTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getDeliveryTimestamp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -322,42 +328,57 @@ public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.Recipient } public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -377,6 +398,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureDocflow_fieldAccessorTable @@ -395,47 +417,42 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getRecipientSignatureFieldBuilder(); getDeliveryTimestampFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (recipientSignatureBuilder_ == null) { - recipientSignature_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance(); - } else { - recipientSignatureBuilder_.clear(); + recipientSignature_ = null; + if (recipientSignatureBuilder_ != null) { + recipientSignatureBuilder_.dispose(); + recipientSignatureBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (deliveryTimestampBuilder_ == null) { - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveryTimestampBuilder_.clear(); + deliveryTimestamp_ = null; + if (deliveryTimestampBuilder_ != null) { + deliveryTimestampBuilder_.dispose(); + deliveryTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow build() { Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -444,35 +461,37 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatu return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow buildPartial() { Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow result = new Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.recipientSignature_ = recipientSignatureBuilder_ == null + ? recipientSignature_ + : recipientSignatureBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (recipientSignatureBuilder_ == null) { - result.recipientSignature_ = recipientSignature_; - } else { - result.recipientSignature_ = recipientSignatureBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deliveryTimestamp_ = deliveryTimestampBuilder_ == null + ? deliveryTimestamp_ + : deliveryTimestampBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (deliveryTimestampBuilder_ == null) { - result.deliveryTimestamp_ = deliveryTimestamp_; - } else { - result.deliveryTimestamp_ = deliveryTimestampBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow)other); @@ -494,40 +513,73 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProto mergeDeliveryTimestamp(other.getDeliveryTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasRecipientSignature()) { if (!getRecipientSignature().isInitialized()) { - return false; } } if (hasDeliveryTimestamp()) { if (!getDeliveryTimestamp().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getRecipientSignatureFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDeliveryTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -535,27 +587,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -564,21 +624,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature recipientSignature_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature recipientSignature_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature, Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignatureOrBuilder> recipientSignatureBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.Signature RecipientSignature = 2; + * @return Whether the recipientSignature field is set. */ public boolean hasRecipientSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.Signature RecipientSignature = 2; + * @return The recipientSignature. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature getRecipientSignature() { if (recipientSignatureBuilder_ == null) { - return recipientSignature_; + return recipientSignature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance() : recipientSignature_; } else { return recipientSignatureBuilder_.getMessage(); } @@ -592,11 +654,11 @@ public Builder setRecipientSignature(Diadoc.Api.Proto.Docflow.AttachmentProtos.S throw new NullPointerException(); } recipientSignature_ = value; - onChanged(); } else { recipientSignatureBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -606,11 +668,11 @@ public Builder setRecipientSignature( Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.Builder builderForValue) { if (recipientSignatureBuilder_ == null) { recipientSignature_ = builderForValue.build(); - onChanged(); } else { recipientSignatureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -618,31 +680,33 @@ public Builder setRecipientSignature( */ public Builder mergeRecipientSignature(Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature value) { if (recipientSignatureBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - recipientSignature_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance()) { - recipientSignature_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.newBuilder(recipientSignature_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + recipientSignature_ != null && + recipientSignature_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance()) { + getRecipientSignatureBuilder().mergeFrom(value); } else { recipientSignature_ = value; } - onChanged(); } else { recipientSignatureBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (recipientSignature_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.Signature RecipientSignature = 2; */ public Builder clearRecipientSignature() { - if (recipientSignatureBuilder_ == null) { - recipientSignature_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance(); - onChanged(); - } else { - recipientSignatureBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + recipientSignature_ = null; + if (recipientSignatureBuilder_ != null) { + recipientSignatureBuilder_.dispose(); + recipientSignatureBuilder_ = null; + } + onChanged(); return this; } /** @@ -660,7 +724,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignatureOrBuilder getRecipient if (recipientSignatureBuilder_ != null) { return recipientSignatureBuilder_.getMessageOrBuilder(); } else { - return recipientSignature_; + return recipientSignature_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Signature.getDefaultInstance() : recipientSignature_; } } /** @@ -680,21 +745,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignatureOrBuilder getRecipient return recipientSignatureBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveryTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return Whether the deliveryTimestamp field is set. */ public boolean hasDeliveryTimestamp() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return The deliveryTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp() { if (deliveryTimestampBuilder_ == null) { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } else { return deliveryTimestampBuilder_.getMessage(); } @@ -708,11 +775,11 @@ public Builder setDeliveryTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp v throw new NullPointerException(); } deliveryTimestamp_ = value; - onChanged(); } else { deliveryTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -722,11 +789,11 @@ public Builder setDeliveryTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveryTimestampBuilder_ == null) { deliveryTimestamp_ = builderForValue.build(); - onChanged(); } else { deliveryTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -734,31 +801,33 @@ public Builder setDeliveryTimestamp( */ public Builder mergeDeliveryTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveryTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - deliveryTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveryTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveryTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + deliveryTimestamp_ != null && + deliveryTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveryTimestampBuilder().mergeFrom(value); } else { deliveryTimestamp_ = value; } - onChanged(); } else { deliveryTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (deliveryTimestamp_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; */ public Builder clearDeliveryTimestamp() { - if (deliveryTimestampBuilder_ == null) { - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveryTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + deliveryTimestamp_ = null; + if (deliveryTimestampBuilder_ != null) { + deliveryTimestampBuilder_.dispose(); + deliveryTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -776,7 +845,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO if (deliveryTimestampBuilder_ != null) { return deliveryTimestampBuilder_.getMessageOrBuilder(); } else { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } } /** @@ -799,17 +869,57 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow) + private static final Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow DEFAULT_INSTANCE; static { - defaultInstance = new RecipientSignatureDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecipientSignatureDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureDocflow_fieldAccessorTable; @@ -817,39 +927,32 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\'Docflow/RecipientSignatureDocflow.prot" + "o\022\030Diadoc.Api.Proto.Docflow\032\017Timestamp.p" + - "roto\032\030Docflow/Attachment.proto\"\250\001\n\031Recip" + + "roto\032\030Docflow/Attachment.proto\"\254\001\n\031Recip" + "ientSignatureDocflow\022\022\n\nIsFinished\030\001 \001(\010" + "\022?\n\022RecipientSignature\030\002 \001(\0132#.Diadoc.Ap" + "i.Proto.Docflow.Signature\0226\n\021DeliveryTim" + "estamp\030\003 \001(\0132\033.Diadoc.Api.Proto.Timestam" + - "pB!B\037RecipientSignatureDocflowProtos" + "p:\002\030\001B!B\037RecipientSignatureDocflowProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureDocflow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureDocflow_descriptor, new java.lang.String[] { "IsFinished", "RecipientSignature", "DeliveryTimestamp", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/RecipientSignatureRejectionDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/RecipientSignatureRejectionDocflowProtos.java index eb8602d1..3dc78d70 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/RecipientSignatureRejectionDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/RecipientSignatureRejectionDocflowProtos.java @@ -1,32 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/RecipientSignatureRejectionDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; -public final class RecipientSignatureRejectionDocflowProtos { +@java.lang.Deprecated public final class RecipientSignatureRejectionDocflowProtos { private RecipientSignatureRejectionDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RecipientSignatureRejectionDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface RecipientSignatureRejectionDocflowOrBuilder extends + @java.lang.Deprecated public interface RecipientSignatureRejectionDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RecipientSignatureRejectionAttachment = 2; + * @return Whether the recipientSignatureRejectionAttachment field is set. */ boolean hasRecipientSignatureRejectionAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RecipientSignatureRejectionAttachment = 2; + * @return The recipientSignatureRejectionAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getRecipientSignatureRejectionAttachment(); /** @@ -36,10 +57,12 @@ public interface RecipientSignatureRejectionDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return Whether the deliveryTimestamp field is set. */ boolean hasDeliveryTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return The deliveryTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp(); /** @@ -50,103 +73,33 @@ public interface RecipientSignatureRejectionDocflowOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow} */ - public static final class RecipientSignatureRejectionDocflow extends + @java.lang.Deprecated public static final class RecipientSignatureRejectionDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow) RecipientSignatureRejectionDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RecipientSignatureRejectionDocflow.class.getName()); + } // Use RecipientSignatureRejectionDocflow.newBuilder() to construct. private RecipientSignatureRejectionDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private RecipientSignatureRejectionDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RecipientSignatureRejectionDocflow defaultInstance; - public static RecipientSignatureRejectionDocflow getDefaultInstance() { - return defaultInstance; + private RecipientSignatureRejectionDocflow() { } - public RecipientSignatureRejectionDocflow getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RecipientSignatureRejectionDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = recipientSignatureRejectionAttachment_.toBuilder(); - } - recipientSignatureRejectionAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientSignatureRejectionAttachment_); - recipientSignatureRejectionAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = deliveryTimestamp_.toBuilder(); - } - deliveryTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveryTimestamp_); - deliveryTimestamp_ = 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.Docflow.RecipientSignatureRejectionDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureRejectionDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureRejectionDocflow_fieldAccessorTable @@ -154,33 +107,22 @@ private RecipientSignatureRejectionDocflow( Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.class, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RecipientSignatureRejectionDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecipientSignatureRejectionDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -189,50 +131,56 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment recipientSignatureRejectionAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RecipientSignatureRejectionAttachment = 2; + * @return Whether the recipientSignatureRejectionAttachment field is set. */ + @java.lang.Override public boolean hasRecipientSignatureRejectionAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RecipientSignatureRejectionAttachment = 2; + * @return The recipientSignatureRejectionAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getRecipientSignatureRejectionAttachment() { - return recipientSignatureRejectionAttachment_; + return recipientSignatureRejectionAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : recipientSignatureRejectionAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RecipientSignatureRejectionAttachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRecipientSignatureRejectionAttachmentOrBuilder() { - return recipientSignatureRejectionAttachment_; + return recipientSignatureRejectionAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : recipientSignatureRejectionAttachment_; } public static final int DELIVERYTIMESTAMP_FIELD_NUMBER = 3; private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return Whether the deliveryTimestamp field is set. */ + @java.lang.Override public boolean hasDeliveryTimestamp() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return The deliveryTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp() { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampOrBuilder() { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } - private void initFields() { - isFinished_ = false; - recipientSignatureRejectionAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -254,51 +202,109 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, recipientSignatureRejectionAttachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRecipientSignatureRejectionAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, deliveryTimestamp_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDeliveryTimestamp()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, recipientSignatureRejectionAttachment_); + .computeMessageSize(2, getRecipientSignatureRejectionAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, deliveryTimestamp_); + .computeMessageSize(3, getDeliveryTimestamp()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow other = (Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasRecipientSignatureRejectionAttachment() != other.hasRecipientSignatureRejectionAttachment()) return false; + if (hasRecipientSignatureRejectionAttachment()) { + if (!getRecipientSignatureRejectionAttachment() + .equals(other.getRecipientSignatureRejectionAttachment())) return false; + } + if (hasDeliveryTimestamp() != other.hasDeliveryTimestamp()) return false; + if (hasDeliveryTimestamp()) { + if (!getDeliveryTimestamp() + .equals(other.getDeliveryTimestamp())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasRecipientSignatureRejectionAttachment()) { + hash = (37 * hash) + RECIPIENTSIGNATUREREJECTIONATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getRecipientSignatureRejectionAttachment().hashCode(); + } + if (hasDeliveryTimestamp()) { + hash = (37 * hash) + DELIVERYTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getDeliveryTimestamp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -322,42 +328,57 @@ public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos. } public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -377,6 +398,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureRejectionDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureRejectionDocflow_fieldAccessorTable @@ -395,47 +417,42 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getRecipientSignatureRejectionAttachmentFieldBuilder(); getDeliveryTimestampFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (recipientSignatureRejectionAttachmentBuilder_ == null) { - recipientSignatureRejectionAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - } else { - recipientSignatureRejectionAttachmentBuilder_.clear(); + recipientSignatureRejectionAttachment_ = null; + if (recipientSignatureRejectionAttachmentBuilder_ != null) { + recipientSignatureRejectionAttachmentBuilder_.dispose(); + recipientSignatureRejectionAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (deliveryTimestampBuilder_ == null) { - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveryTimestampBuilder_.clear(); + deliveryTimestamp_ = null; + if (deliveryTimestampBuilder_ != null) { + deliveryTimestampBuilder_.dispose(); + deliveryTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureRejectionDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow build() { Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -444,35 +461,37 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow buildPartial() { Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow result = new Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.recipientSignatureRejectionAttachment_ = recipientSignatureRejectionAttachmentBuilder_ == null + ? recipientSignatureRejectionAttachment_ + : recipientSignatureRejectionAttachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (recipientSignatureRejectionAttachmentBuilder_ == null) { - result.recipientSignatureRejectionAttachment_ = recipientSignatureRejectionAttachment_; - } else { - result.recipientSignatureRejectionAttachment_ = recipientSignatureRejectionAttachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deliveryTimestamp_ = deliveryTimestampBuilder_ == null + ? deliveryTimestamp_ + : deliveryTimestampBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (deliveryTimestampBuilder_ == null) { - result.deliveryTimestamp_ = deliveryTimestamp_; - } else { - result.deliveryTimestamp_ = deliveryTimestampBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow)other); @@ -494,40 +513,73 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDoc mergeDeliveryTimestamp(other.getDeliveryTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasRecipientSignatureRejectionAttachment()) { if (!getRecipientSignatureRejectionAttachment().isInitialized()) { - return false; } } if (hasDeliveryTimestamp()) { if (!getDeliveryTimestamp().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getRecipientSignatureRejectionAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDeliveryTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -535,27 +587,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -564,21 +624,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment recipientSignatureRejectionAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment recipientSignatureRejectionAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder> recipientSignatureRejectionAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RecipientSignatureRejectionAttachment = 2; + * @return Whether the recipientSignatureRejectionAttachment field is set. */ public boolean hasRecipientSignatureRejectionAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RecipientSignatureRejectionAttachment = 2; + * @return The recipientSignatureRejectionAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getRecipientSignatureRejectionAttachment() { if (recipientSignatureRejectionAttachmentBuilder_ == null) { - return recipientSignatureRejectionAttachment_; + return recipientSignatureRejectionAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : recipientSignatureRejectionAttachment_; } else { return recipientSignatureRejectionAttachmentBuilder_.getMessage(); } @@ -592,11 +654,11 @@ public Builder setRecipientSignatureRejectionAttachment(Diadoc.Api.Proto.Docflow throw new NullPointerException(); } recipientSignatureRejectionAttachment_ = value; - onChanged(); } else { recipientSignatureRejectionAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -606,11 +668,11 @@ public Builder setRecipientSignatureRejectionAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder builderForValue) { if (recipientSignatureRejectionAttachmentBuilder_ == null) { recipientSignatureRejectionAttachment_ = builderForValue.build(); - onChanged(); } else { recipientSignatureRejectionAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -618,31 +680,33 @@ public Builder setRecipientSignatureRejectionAttachment( */ public Builder mergeRecipientSignatureRejectionAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment value) { if (recipientSignatureRejectionAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - recipientSignatureRejectionAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { - recipientSignatureRejectionAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.newBuilder(recipientSignatureRejectionAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + recipientSignatureRejectionAttachment_ != null && + recipientSignatureRejectionAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { + getRecipientSignatureRejectionAttachmentBuilder().mergeFrom(value); } else { recipientSignatureRejectionAttachment_ = value; } - onChanged(); } else { recipientSignatureRejectionAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (recipientSignatureRejectionAttachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RecipientSignatureRejectionAttachment = 2; */ public Builder clearRecipientSignatureRejectionAttachment() { - if (recipientSignatureRejectionAttachmentBuilder_ == null) { - recipientSignatureRejectionAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - onChanged(); - } else { - recipientSignatureRejectionAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + recipientSignatureRejectionAttachment_ = null; + if (recipientSignatureRejectionAttachmentBuilder_ != null) { + recipientSignatureRejectionAttachmentBuilder_.dispose(); + recipientSignatureRejectionAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -660,7 +724,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRe if (recipientSignatureRejectionAttachmentBuilder_ != null) { return recipientSignatureRejectionAttachmentBuilder_.getMessageOrBuilder(); } else { - return recipientSignatureRejectionAttachment_; + return recipientSignatureRejectionAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : recipientSignatureRejectionAttachment_; } } /** @@ -680,21 +745,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRe return recipientSignatureRejectionAttachmentBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveryTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return Whether the deliveryTimestamp field is set. */ public boolean hasDeliveryTimestamp() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; + * @return The deliveryTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp() { if (deliveryTimestampBuilder_ == null) { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } else { return deliveryTimestampBuilder_.getMessage(); } @@ -708,11 +775,11 @@ public Builder setDeliveryTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp v throw new NullPointerException(); } deliveryTimestamp_ = value; - onChanged(); } else { deliveryTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -722,11 +789,11 @@ public Builder setDeliveryTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveryTimestampBuilder_ == null) { deliveryTimestamp_ = builderForValue.build(); - onChanged(); } else { deliveryTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -734,31 +801,33 @@ public Builder setDeliveryTimestamp( */ public Builder mergeDeliveryTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveryTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - deliveryTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveryTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveryTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + deliveryTimestamp_ != null && + deliveryTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveryTimestampBuilder().mergeFrom(value); } else { deliveryTimestamp_ = value; } - onChanged(); } else { deliveryTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (deliveryTimestamp_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 3; */ public Builder clearDeliveryTimestamp() { - if (deliveryTimestampBuilder_ == null) { - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveryTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + deliveryTimestamp_ = null; + if (deliveryTimestampBuilder_ != null) { + deliveryTimestampBuilder_.dispose(); + deliveryTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -776,7 +845,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO if (deliveryTimestampBuilder_ != null) { return deliveryTimestampBuilder_.getMessageOrBuilder(); } else { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } } /** @@ -799,17 +869,57 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow) + private static final Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow DEFAULT_INSTANCE; static { - defaultInstance = new RecipientSignatureRejectionDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecipientSignatureRejectionDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureRejectionDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureRejectionDocflow_fieldAccessorTable; @@ -817,41 +927,34 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n0Docflow/RecipientSignatureRejectionDoc" + "flow.proto\022\030Diadoc.Api.Proto.Docflow\032\017Ti" + "mestamp.proto\032\030Docflow/Attachment.proto\"" + - "\313\001\n\"RecipientSignatureRejectionDocflow\022\022" + + "\317\001\n\"RecipientSignatureRejectionDocflow\022\022" + "\n\nIsFinished\030\001 \001(\010\022Y\n%RecipientSignature" + "RejectionAttachment\030\002 \001(\0132*.Diadoc.Api.P" + "roto.Docflow.SignedAttachment\0226\n\021Deliver" + "yTimestamp\030\003 \001(\0132\033.Diadoc.Api.Proto.Time" + - "stampB*B(RecipientSignatureRejectionDocf" + - "lowProtos" + "stamp:\002\030\001B-B(RecipientSignatureRejection" + + "DocflowProtos\270\001\001" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureRejectionDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureRejectionDocflow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_RecipientSignatureRejectionDocflow_descriptor, new java.lang.String[] { "IsFinished", "RecipientSignatureRejectionAttachment", "DeliveryTimestamp", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/ResolutionDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/ResolutionDocflowProtos.java index 65875d7d..e24e41ff 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/ResolutionDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/ResolutionDocflowProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/ResolutionDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class ResolutionDocflowProtos { private ResolutionDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ResolutionDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface ResolutionDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.ResolutionDocflow) @@ -19,67 +36,29 @@ public static final class ResolutionDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ResolutionDocflow) ResolutionDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ResolutionDocflow.class.getName()); + } // Use ResolutionDocflow.newBuilder() to construct. private ResolutionDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ResolutionDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ResolutionDocflow defaultInstance; - public static ResolutionDocflow getDefaultInstance() { - return defaultInstance; } - - public ResolutionDocflow getDefaultInstanceForType() { - return defaultInstance; + private ResolutionDocflow() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResolutionDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.Docflow.ResolutionDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflow_fieldAccessorTable @@ -87,24 +66,8 @@ private ResolutionDocflow( Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.class, Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ResolutionDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResolutionDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private void initFields() { - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -114,30 +77,60 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow other = (Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -161,42 +154,57 @@ public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -216,6 +224,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflow_fieldAccessorTable @@ -225,40 +234,32 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow build() { Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -267,12 +268,14 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow buildPartial() { Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow result = new Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow(this); onBuilt(); return result; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow)other); @@ -285,45 +288,101 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow other) { if (other == Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ResolutionDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ResolutionDocflow) + private static final Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow DEFAULT_INSTANCE; static { - defaultInstance = new ResolutionDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResolutionDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.ResolutionDocflowProtos.ResolutionDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ResolutionDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflow_fieldAccessorTable; @@ -331,7 +390,7 @@ public Builder mergeFrom( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -341,27 +400,20 @@ public Builder mergeFrom( ".proto\"\023\n\021ResolutionDocflowB\031B\027Resolutio" + "nDocflowProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), Diadoc.Api.Proto.ResolutionTargetProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflow_descriptor, new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.ResolutionTargetProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/ResolutionDocflowV3Protos.java b/src/main/java/Diadoc/Api/Proto/Docflow/ResolutionDocflowV3Protos.java index 5d763b5c..119ee3ae 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/ResolutionDocflowV3Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/ResolutionDocflowV3Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/ResolutionDocflowV3.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class ResolutionDocflowV3Protos { private ResolutionDocflowV3Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ResolutionDocflowV3Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Docflow.ResolutionStatus} @@ -16,53 +33,62 @@ public enum ResolutionStatus /** * UnknownStatus = 0; */ - UnknownStatus(0, 0), + UnknownStatus(0), /** * None = 1; */ - None(1, 1), + None(1), /** * Approved = 2; */ - Approved(2, 2), + Approved(2), /** * Disapproved = 3; */ - Disapproved(3, 3), + Disapproved(3), /** * ApprovementRequested = 4; */ - ApprovementRequested(4, 4), + ApprovementRequested(4), /** * ApprovementSignatureRequested = 5; */ - ApprovementSignatureRequested(5, 5), + ApprovementSignatureRequested(5), /** * PrimarySignatureRequested = 6; */ - PrimarySignatureRequested(6, 6), + PrimarySignatureRequested(6), /** * SignatureRequestRejected = 7; */ - SignatureRequestRejected(7, 7), + SignatureRequestRejected(7), /** * SignedWithApprovingSignature = 8; */ - SignedWithApprovingSignature(8, 8), + SignedWithApprovingSignature(8), /** * SignedWithPrimarySignature = 9; */ - SignedWithPrimarySignature(9, 9), + SignedWithPrimarySignature(9), /** * PrimarySignatureRejected = 10; */ - PrimarySignatureRejected(10, 10), + PrimarySignatureRejected(10), /** * ActionsRequested = 11; */ - ActionsRequested(11, 11), + ActionsRequested(11), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ResolutionStatus.class.getName()); + } /** * UnknownStatus = 0; */ @@ -113,9 +139,25 @@ public enum ResolutionStatus public static final int ActionsRequested_VALUE = 11; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ResolutionStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ResolutionStatus forNumber(int value) { switch (value) { case 0: return UnknownStatus; case 1: return None; @@ -137,17 +179,17 @@ public static ResolutionStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + ResolutionStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ResolutionStatus findValueByNumber(int number) { - return ResolutionStatus.valueOf(number); + return ResolutionStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -169,11 +211,9 @@ public static ResolutionStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private ResolutionStatus(int index, int value) { - this.index = index; + private ResolutionStatus(int value) { this.value = value; } @@ -186,46 +226,56 @@ public interface ResolutionDocflowV3OrBuilder extends /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * required bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * required string ParentEntityId = 2; + * @return Whether the parentEntityId field is set. */ boolean hasParentEntityId(); /** * required string ParentEntityId = 2; + * @return The parentEntityId. */ java.lang.String getParentEntityId(); /** * required string ParentEntityId = 2; + * @return The bytes for parentEntityId. */ com.google.protobuf.ByteString getParentEntityIdBytes(); /** * required .Diadoc.Api.Proto.Docflow.ResolutionStatus ResolutionStatus = 3 [default = UnknownStatus]; + * @return Whether the resolutionStatus field is set. */ boolean hasResolutionStatus(); /** * required .Diadoc.Api.Proto.Docflow.ResolutionStatus ResolutionStatus = 3 [default = UnknownStatus]; + * @return The resolutionStatus. */ Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus getResolutionStatus(); /** * optional string ResolutionEntityId = 4; + * @return Whether the resolutionEntityId field is set. */ boolean hasResolutionEntityId(); /** * optional string ResolutionEntityId = 4; + * @return The resolutionEntityId. */ java.lang.String getResolutionEntityId(); /** * optional string ResolutionEntityId = 4; + * @return The bytes for resolutionEntityId. */ com.google.protobuf.ByteString getResolutionEntityIdBytes(); @@ -237,96 +287,32 @@ public static final class ResolutionDocflowV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ResolutionDocflowV3) ResolutionDocflowV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ResolutionDocflowV3.class.getName()); + } // Use ResolutionDocflowV3.newBuilder() to construct. private ResolutionDocflowV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private ResolutionDocflowV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ResolutionDocflowV3 defaultInstance; - public static ResolutionDocflowV3 getDefaultInstance() { - return defaultInstance; - } - - public ResolutionDocflowV3 getDefaultInstanceForType() { - return defaultInstance; + private ResolutionDocflowV3() { + parentEntityId_ = ""; + resolutionStatus_ = 0; + resolutionEntityId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResolutionDocflowV3( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - parentEntityId_ = bs; - break; - } - case 24: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus value = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - resolutionStatus_ = value; - } - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - resolutionEntityId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflowV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflowV3_fieldAccessorTable @@ -334,48 +320,42 @@ private ResolutionDocflowV3( Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.class, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ResolutionDocflowV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResolutionDocflowV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } public static final int PARENTENTITYID_FIELD_NUMBER = 2; - private java.lang.Object parentEntityId_; + @SuppressWarnings("serial") + private volatile java.lang.Object parentEntityId_ = ""; /** * required string ParentEntityId = 2; + * @return Whether the parentEntityId field is set. */ + @java.lang.Override public boolean hasParentEntityId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string ParentEntityId = 2; + * @return The parentEntityId. */ + @java.lang.Override public java.lang.String getParentEntityId() { java.lang.Object ref = parentEntityId_; if (ref instanceof java.lang.String) { @@ -392,7 +372,9 @@ public java.lang.String getParentEntityId() { } /** * required string ParentEntityId = 2; + * @return The bytes for parentEntityId. */ + @java.lang.Override public com.google.protobuf.ByteString getParentEntityIdBytes() { java.lang.Object ref = parentEntityId_; @@ -408,31 +390,39 @@ public java.lang.String getParentEntityId() { } public static final int RESOLUTIONSTATUS_FIELD_NUMBER = 3; - private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus resolutionStatus_; + private int resolutionStatus_ = 0; /** * required .Diadoc.Api.Proto.Docflow.ResolutionStatus ResolutionStatus = 3 [default = UnknownStatus]; + * @return Whether the resolutionStatus field is set. */ - public boolean hasResolutionStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasResolutionStatus() { + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.Docflow.ResolutionStatus ResolutionStatus = 3 [default = UnknownStatus]; + * @return The resolutionStatus. */ - public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus getResolutionStatus() { - return resolutionStatus_; + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus getResolutionStatus() { + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus result = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus.forNumber(resolutionStatus_); + return result == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus.UnknownStatus : result; } public static final int RESOLUTIONENTITYID_FIELD_NUMBER = 4; - private java.lang.Object resolutionEntityId_; + @SuppressWarnings("serial") + private volatile java.lang.Object resolutionEntityId_ = ""; /** * optional string ResolutionEntityId = 4; + * @return Whether the resolutionEntityId field is set. */ + @java.lang.Override public boolean hasResolutionEntityId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string ResolutionEntityId = 4; + * @return The resolutionEntityId. */ + @java.lang.Override public java.lang.String getResolutionEntityId() { java.lang.Object ref = resolutionEntityId_; if (ref instanceof java.lang.String) { @@ -449,7 +439,9 @@ public java.lang.String getResolutionEntityId() { } /** * optional string ResolutionEntityId = 4; + * @return The bytes for resolutionEntityId. */ + @java.lang.Override public com.google.protobuf.ByteString getResolutionEntityIdBytes() { java.lang.Object ref = resolutionEntityId_; @@ -464,13 +456,8 @@ public java.lang.String getResolutionEntityId() { } } - private void initFields() { - isFinished_ = false; - parentEntityId_ = ""; - resolutionStatus_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus.UnknownStatus; - resolutionEntityId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -492,58 +479,122 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getParentEntityIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, parentEntityId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, resolutionStatus_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, resolutionStatus_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getResolutionEntityIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, resolutionEntityId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getParentEntityIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, parentEntityId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, resolutionStatus_.getNumber()); + .computeEnumSize(3, resolutionStatus_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getResolutionEntityIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, resolutionEntityId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 other = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasParentEntityId() != other.hasParentEntityId()) return false; + if (hasParentEntityId()) { + if (!getParentEntityId() + .equals(other.getParentEntityId())) return false; + } + if (hasResolutionStatus() != other.hasResolutionStatus()) return false; + if (hasResolutionStatus()) { + if (resolutionStatus_ != other.resolutionStatus_) return false; + } + if (hasResolutionEntityId() != other.hasResolutionEntityId()) return false; + if (hasResolutionEntityId()) { + if (!getResolutionEntityId() + .equals(other.getResolutionEntityId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasParentEntityId()) { + hash = (37 * hash) + PARENTENTITYID_FIELD_NUMBER; + hash = (53 * hash) + getParentEntityId().hashCode(); + } + if (hasResolutionStatus()) { + hash = (37 * hash) + RESOLUTIONSTATUS_FIELD_NUMBER; + hash = (53 * hash) + resolutionStatus_; + } + if (hasResolutionEntityId()) { + hash = (37 * hash) + RESOLUTIONENTITYID_FIELD_NUMBER; + hash = (53 * hash) + getResolutionEntityId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -567,42 +618,57 @@ public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocfl } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -622,6 +688,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflowV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflowV3_fieldAccessorTable @@ -631,48 +698,37 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); parentEntityId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - resolutionStatus_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus.UnknownStatus; - bitField0_ = (bitField0_ & ~0x00000004); + resolutionStatus_ = 0; resolutionEntityId_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflowV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 build() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 result = buildPartial(); if (!result.isInitialized()) { @@ -681,31 +737,37 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 bu return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 buildPartial() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 result = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parentEntityId_ = parentEntityId_; to_bitField0_ |= 0x00000002; } - result.parentEntityId_ = parentEntityId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resolutionStatus_ = resolutionStatus_; to_bitField0_ |= 0x00000004; } - result.resolutionStatus_ = resolutionStatus_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resolutionEntityId_ = resolutionEntityId_; to_bitField0_ |= 0x00000008; } - result.resolutionEntityId_ = resolutionEntityId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3)other); @@ -721,53 +783,93 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.Reso setIsFinished(other.getIsFinished()); } if (other.hasParentEntityId()) { - bitField0_ |= 0x00000002; parentEntityId_ = other.parentEntityId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasResolutionStatus()) { setResolutionStatus(other.getResolutionStatus()); } if (other.hasResolutionEntityId()) { - bitField0_ |= 0x00000008; resolutionEntityId_ = other.resolutionEntityId_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsFinished()) { - return false; } if (!hasParentEntityId()) { - return false; } if (!hasResolutionStatus()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + parentEntityId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus tmpValue = + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + resolutionStatus_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + case 34: { + resolutionEntityId_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -775,27 +877,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * required bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * required bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -807,12 +917,14 @@ public Builder clearIsFinished() { private java.lang.Object parentEntityId_ = ""; /** * required string ParentEntityId = 2; + * @return Whether the parentEntityId field is set. */ public boolean hasParentEntityId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string ParentEntityId = 2; + * @return The parentEntityId. */ public java.lang.String getParentEntityId() { java.lang.Object ref = parentEntityId_; @@ -830,6 +942,7 @@ public java.lang.String getParentEntityId() { } /** * required string ParentEntityId = 2; + * @return The bytes for parentEntityId. */ public com.google.protobuf.ByteString getParentEntityIdBytes() { @@ -846,71 +959,79 @@ public java.lang.String getParentEntityId() { } /** * required string ParentEntityId = 2; + * @param value The parentEntityId to set. + * @return This builder for chaining. */ public Builder setParentEntityId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } parentEntityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string ParentEntityId = 2; + * @return This builder for chaining. */ public Builder clearParentEntityId() { - bitField0_ = (bitField0_ & ~0x00000002); parentEntityId_ = getDefaultInstance().getParentEntityId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string ParentEntityId = 2; + * @param value The bytes for parentEntityId to set. + * @return This builder for chaining. */ public Builder setParentEntityIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } parentEntityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - private Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus resolutionStatus_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus.UnknownStatus; + private int resolutionStatus_ = 0; /** * required .Diadoc.Api.Proto.Docflow.ResolutionStatus ResolutionStatus = 3 [default = UnknownStatus]; + * @return Whether the resolutionStatus field is set. */ - public boolean hasResolutionStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasResolutionStatus() { + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.Docflow.ResolutionStatus ResolutionStatus = 3 [default = UnknownStatus]; + * @return The resolutionStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus getResolutionStatus() { - return resolutionStatus_; + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus result = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus.forNumber(resolutionStatus_); + return result == null ? Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus.UnknownStatus : result; } /** * required .Diadoc.Api.Proto.Docflow.ResolutionStatus ResolutionStatus = 3 [default = UnknownStatus]; + * @param value The resolutionStatus to set. + * @return This builder for chaining. */ public Builder setResolutionStatus(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - resolutionStatus_ = value; + resolutionStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Docflow.ResolutionStatus ResolutionStatus = 3 [default = UnknownStatus]; + * @return This builder for chaining. */ public Builder clearResolutionStatus() { bitField0_ = (bitField0_ & ~0x00000004); - resolutionStatus_ = Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionStatus.UnknownStatus; + resolutionStatus_ = 0; onChanged(); return this; } @@ -918,12 +1039,14 @@ public Builder clearResolutionStatus() { private java.lang.Object resolutionEntityId_ = ""; /** * optional string ResolutionEntityId = 4; + * @return Whether the resolutionEntityId field is set. */ public boolean hasResolutionEntityId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string ResolutionEntityId = 4; + * @return The resolutionEntityId. */ public java.lang.String getResolutionEntityId() { java.lang.Object ref = resolutionEntityId_; @@ -941,6 +1064,7 @@ public java.lang.String getResolutionEntityId() { } /** * optional string ResolutionEntityId = 4; + * @return The bytes for resolutionEntityId. */ public com.google.protobuf.ByteString getResolutionEntityIdBytes() { @@ -957,36 +1081,37 @@ public java.lang.String getResolutionEntityId() { } /** * optional string ResolutionEntityId = 4; + * @param value The resolutionEntityId to set. + * @return This builder for chaining. */ public Builder setResolutionEntityId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } resolutionEntityId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string ResolutionEntityId = 4; + * @return This builder for chaining. */ public Builder clearResolutionEntityId() { - bitField0_ = (bitField0_ & ~0x00000008); resolutionEntityId_ = getDefaultInstance().getResolutionEntityId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string ResolutionEntityId = 4; + * @param value The bytes for resolutionEntityId to set. + * @return This builder for chaining. */ public Builder setResolutionEntityIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } resolutionEntityId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -994,12 +1119,52 @@ public Builder setResolutionEntityIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ResolutionDocflowV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ResolutionDocflowV3) + private static final Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 DEFAULT_INSTANCE; static { - defaultInstance = new ResolutionDocflowV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3(); + } + + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResolutionDocflowV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionDocflowV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ResolutionDocflowV3) } public interface ResolutionEntitiesV3OrBuilder extends @@ -1109,112 +1274,33 @@ public static final class ResolutionEntitiesV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3) ResolutionEntitiesV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ResolutionEntitiesV3.class.getName()); + } // Use ResolutionEntitiesV3.newBuilder() to construct. private ResolutionEntitiesV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private ResolutionEntitiesV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ResolutionEntitiesV3 defaultInstance; - public static ResolutionEntitiesV3 getDefaultInstance() { - return defaultInstance; - } - - public ResolutionEntitiesV3 getDefaultInstanceForType() { - return defaultInstance; + private ResolutionEntitiesV3() { + requests_ = java.util.Collections.emptyList(); + resolutions_ = java.util.Collections.emptyList(); + approvementSignatures_ = java.util.Collections.emptyList(); + signatureDenials_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResolutionEntitiesV3( - 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)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add(input.readMessage(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3.PARSER, extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - resolutions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - resolutions_.add(input.readMessage(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3.PARSER, extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - approvementSignatures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - approvementSignatures_.add(input.readMessage(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3.PARSER, extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - signatureDenials_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - signatureDenials_.add(input.readMessage(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3.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)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - resolutions_ = java.util.Collections.unmodifiableList(resolutions_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - approvementSignatures_ = java.util.Collections.unmodifiableList(approvementSignatures_); - } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - signatureDenials_ = java.util.Collections.unmodifiableList(signatureDenials_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionEntitiesV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionEntitiesV3_fieldAccessorTable @@ -1222,32 +1308,20 @@ private ResolutionEntitiesV3( Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.class, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ResolutionEntitiesV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResolutionEntitiesV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int REQUESTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List requests_; /** * repeated .Diadoc.Api.Proto.Docflow.ResolutionRequestV3 Requests = 1; */ + @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** * repeated .Diadoc.Api.Proto.Docflow.ResolutionRequestV3 Requests = 1; */ + @java.lang.Override public java.util.List getRequestsOrBuilderList() { return requests_; @@ -1255,34 +1329,40 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.ResolutionRequestV3 Requests = 1; */ + @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.ResolutionRequestV3 Requests = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 getRequests(int index) { return requests_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.ResolutionRequestV3 Requests = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3OrBuilder getRequestsOrBuilder( int index) { return requests_.get(index); } public static final int RESOLUTIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List resolutions_; /** * repeated .Diadoc.Api.Proto.Docflow.ResolutionV3 Resolutions = 2; */ + @java.lang.Override public java.util.List getResolutionsList() { return resolutions_; } /** * repeated .Diadoc.Api.Proto.Docflow.ResolutionV3 Resolutions = 2; */ + @java.lang.Override public java.util.List getResolutionsOrBuilderList() { return resolutions_; @@ -1290,34 +1370,40 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.ResolutionV3 Resolutions = 2; */ + @java.lang.Override public int getResolutionsCount() { return resolutions_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.ResolutionV3 Resolutions = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 getResolutions(int index) { return resolutions_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.ResolutionV3 Resolutions = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3OrBuilder getResolutionsOrBuilder( int index) { return resolutions_.get(index); } public static final int APPROVEMENTSIGNATURES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List approvementSignatures_; /** * repeated .Diadoc.Api.Proto.Docflow.ApprovementSignatureV3 ApprovementSignatures = 3; */ + @java.lang.Override public java.util.List getApprovementSignaturesList() { return approvementSignatures_; } /** * repeated .Diadoc.Api.Proto.Docflow.ApprovementSignatureV3 ApprovementSignatures = 3; */ + @java.lang.Override public java.util.List getApprovementSignaturesOrBuilderList() { return approvementSignatures_; @@ -1325,34 +1411,40 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.ApprovementSignatureV3 ApprovementSignatures = 3; */ + @java.lang.Override public int getApprovementSignaturesCount() { return approvementSignatures_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.ApprovementSignatureV3 ApprovementSignatures = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 getApprovementSignatures(int index) { return approvementSignatures_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.ApprovementSignatureV3 ApprovementSignatures = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3OrBuilder getApprovementSignaturesOrBuilder( int index) { return approvementSignatures_.get(index); } public static final int SIGNATUREDENIALS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List signatureDenials_; /** * repeated .Diadoc.Api.Proto.Docflow.SignatureDenialV3 SignatureDenials = 4; */ + @java.lang.Override public java.util.List getSignatureDenialsList() { return signatureDenials_; } /** * repeated .Diadoc.Api.Proto.Docflow.SignatureDenialV3 SignatureDenials = 4; */ + @java.lang.Override public java.util.List getSignatureDenialsOrBuilderList() { return signatureDenials_; @@ -1360,30 +1452,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.SignatureDenialV3 SignatureDenials = 4; */ + @java.lang.Override public int getSignatureDenialsCount() { return signatureDenials_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.SignatureDenialV3 SignatureDenials = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 getSignatureDenials(int index) { return signatureDenials_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.SignatureDenialV3 SignatureDenials = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3OrBuilder getSignatureDenialsOrBuilder( int index) { return signatureDenials_.get(index); } - private void initFields() { - requests_ = java.util.Collections.emptyList(); - resolutions_ = java.util.Collections.emptyList(); - approvementSignatures_ = java.util.Collections.emptyList(); - signatureDenials_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1417,9 +1507,9 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -1435,9 +1525,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1458,20 +1548,74 @@ public int getSerializedSize() { .computeMessageSize(4, signatureDenials_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 other = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3) obj; + + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!getResolutionsList() + .equals(other.getResolutionsList())) return false; + if (!getApprovementSignaturesList() + .equals(other.getApprovementSignaturesList())) return false; + if (!getSignatureDenialsList() + .equals(other.getSignatureDenialsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + if (getResolutionsCount() > 0) { + hash = (37 * hash) + RESOLUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getResolutionsList().hashCode(); + } + if (getApprovementSignaturesCount() > 0) { + hash = (37 * hash) + APPROVEMENTSIGNATURES_FIELD_NUMBER; + hash = (53 * hash) + getApprovementSignaturesList().hashCode(); + } + if (getSignatureDenialsCount() > 0) { + hash = (37 * hash) + SIGNATUREDENIALS_FIELD_NUMBER; + hash = (53 * hash) + getSignatureDenialsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseFrom( @@ -1492,42 +1636,57 @@ public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntit } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1547,6 +1706,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionEntitiesV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionEntitiesV3_fieldAccessorTable @@ -1556,68 +1716,61 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRequestsFieldBuilder(); - getResolutionsFieldBuilder(); - getApprovementSignaturesFieldBuilder(); - getSignatureDenialsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + requests_ = null; requestsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (resolutionsBuilder_ == null) { resolutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + resolutions_ = null; resolutionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (approvementSignaturesBuilder_ == null) { approvementSignatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + approvementSignatures_ = null; approvementSignaturesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (signatureDenialsBuilder_ == null) { signatureDenials_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); } else { + signatureDenials_ = null; signatureDenialsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionEntitiesV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 build() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 result = buildPartial(); if (!result.isInitialized()) { @@ -1626,11 +1779,18 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 b return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 buildPartial() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 result = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 result) { if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1639,7 +1799,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 b result.requests_ = requestsBuilder_.build(); } if (resolutionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { resolutions_ = java.util.Collections.unmodifiableList(resolutions_); bitField0_ = (bitField0_ & ~0x00000002); } @@ -1648,7 +1808,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 b result.resolutions_ = resolutionsBuilder_.build(); } if (approvementSignaturesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { approvementSignatures_ = java.util.Collections.unmodifiableList(approvementSignatures_); bitField0_ = (bitField0_ & ~0x00000004); } @@ -1657,7 +1817,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 b result.approvementSignatures_ = approvementSignaturesBuilder_.build(); } if (signatureDenialsBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { signatureDenials_ = java.util.Collections.unmodifiableList(signatureDenials_); bitField0_ = (bitField0_ & ~0x00000008); } @@ -1665,10 +1825,13 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 b } else { result.signatureDenials_ = signatureDenialsBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3)other); @@ -1785,52 +1948,116 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.Reso } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getRequestsCount(); i++) { if (!getRequests(i).isInitialized()) { - return false; } } for (int i = 0; i < getResolutionsCount(); i++) { if (!getResolutions(i).isInitialized()) { - return false; } } for (int i = 0; i < getApprovementSignaturesCount(); i++) { if (!getApprovementSignatures(i).isInitialized()) { - return false; } } for (int i = 0; i < getSignatureDenialsCount(); i++) { if (!getSignatureDenials(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 m = + input.readMessage( + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 m = + input.readMessage( + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3.parser(), + extensionRegistry); + if (resolutionsBuilder_ == null) { + ensureResolutionsIsMutable(); + resolutions_.add(m); + } else { + resolutionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 m = + input.readMessage( + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3.parser(), + extensionRegistry); + if (approvementSignaturesBuilder_ == null) { + ensureApprovementSignaturesIsMutable(); + approvementSignatures_.add(m); + } else { + approvementSignaturesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 m = + input.readMessage( + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3.parser(), + extensionRegistry); + if (signatureDenialsBuilder_ == null) { + ensureSignatureDenialsIsMutable(); + signatureDenials_.add(m); + } else { + signatureDenialsBuilder_.addMessage(m); + } + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1838,7 +2065,7 @@ public Builder mergeFrom( private java.util.List requests_ = java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; } @@ -2067,7 +2294,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3.Bu requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3.Builder, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3OrBuilder>( requests_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; @@ -2078,7 +2305,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3.Bu private java.util.List resolutions_ = java.util.Collections.emptyList(); private void ensureResolutionsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { resolutions_ = new java.util.ArrayList(resolutions_); bitField0_ |= 0x00000002; } @@ -2307,7 +2534,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3.Builder a resolutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3.Builder, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3OrBuilder>( resolutions_, - ((bitField0_ & 0x00000002) == 0x00000002), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); resolutions_ = null; @@ -2318,7 +2545,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3.Builder a private java.util.List approvementSignatures_ = java.util.Collections.emptyList(); private void ensureApprovementSignaturesIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000004) != 0)) { approvementSignatures_ = new java.util.ArrayList(approvementSignatures_); bitField0_ |= 0x00000004; } @@ -2547,7 +2774,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 approvementSignaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3.Builder, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3OrBuilder>( approvementSignatures_, - ((bitField0_ & 0x00000004) == 0x00000004), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); approvementSignatures_ = null; @@ -2558,7 +2785,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 private java.util.List signatureDenials_ = java.util.Collections.emptyList(); private void ensureSignatureDenialsIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { + if (!((bitField0_ & 0x00000008) != 0)) { signatureDenials_ = new java.util.ArrayList(signatureDenials_); bitField0_ |= 0x00000008; } @@ -2787,7 +3014,7 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3.Buil signatureDenialsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3.Builder, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3OrBuilder>( signatureDenials_, - ((bitField0_ & 0x00000008) == 0x00000008), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); signatureDenials_ = null; @@ -2798,12 +3025,52 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3.Buil // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3) + private static final Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 DEFAULT_INSTANCE; static { - defaultInstance = new ResolutionEntitiesV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3(); + } + + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResolutionEntitiesV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionEntitiesV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ResolutionEntitiesV3) } public interface ResolutionRequestV3OrBuilder extends @@ -2812,10 +3079,12 @@ public interface ResolutionRequestV3OrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ boolean hasEntity(); /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity(); /** @@ -2825,10 +3094,12 @@ public interface ResolutionRequestV3OrBuilder extends /** * required .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return Whether the target field is set. */ boolean hasTarget(); /** * required .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return The target. */ Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget getTarget(); /** @@ -2838,51 +3109,63 @@ public interface ResolutionRequestV3OrBuilder extends /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ boolean hasAuthorUserId(); /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ java.lang.String getAuthorUserId(); /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ com.google.protobuf.ByteString getAuthorUserIdBytes(); /** * required .Diadoc.Api.Proto.ResolutionRequestType RequestType = 4 [default = UnknownResolutionRequestType]; + * @return Whether the requestType field is set. */ boolean hasRequestType(); /** * required .Diadoc.Api.Proto.ResolutionRequestType RequestType = 4 [default = UnknownResolutionRequestType]; + * @return The requestType. */ Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType getRequestType(); /** * optional string ResolvedWith = 5; + * @return Whether the resolvedWith field is set. */ boolean hasResolvedWith(); /** * optional string ResolvedWith = 5; + * @return The resolvedWith. */ java.lang.String getResolvedWith(); /** * optional string ResolvedWith = 5; + * @return The bytes for resolvedWith. */ com.google.protobuf.ByteString getResolvedWithBytes(); /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @return A list containing the actions. */ java.util.List getActionsList(); /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @return The count of actions. */ int getActionsCount(); /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @param index The index of the element to return. + * @return The actions at the given index. */ Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction getActions(int index); } @@ -2893,153 +3176,33 @@ public static final class ResolutionRequestV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ResolutionRequestV3) ResolutionRequestV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ResolutionRequestV3.class.getName()); + } // Use ResolutionRequestV3.newBuilder() to construct. private ResolutionRequestV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ResolutionRequestV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ResolutionRequestV3 defaultInstance; - public static ResolutionRequestV3 getDefaultInstance() { - return defaultInstance; } - - public ResolutionRequestV3 getDefaultInstanceForType() { - return defaultInstance; + private ResolutionRequestV3() { + authorUserId_ = ""; + requestType_ = -1; + resolvedWith_ = ""; + actions_ = emptyIntList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResolutionRequestV3( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = entity_.toBuilder(); - } - entity_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = target_.toBuilder(); - } - target_ = input.readMessage(Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(target_); - target_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - authorUserId_ = bs; - break; - } - case 32: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType value = Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - requestType_ = value; - } - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - resolvedWith_ = bs; - break; - } - case 48: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction value = Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - actions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - actions_.add(value); - } - break; - } - case 50: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction value = Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - actions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - actions_.add(value); - } - } - input.popLimit(oldLimit); - 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_ & 0x00000020) == 0x00000020)) { - actions_ = java.util.Collections.unmodifiableList(actions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionRequestV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionRequestV3_fieldAccessorTable @@ -3047,75 +3210,75 @@ private ResolutionRequestV3( Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3.class, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ResolutionRequestV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResolutionRequestV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ + @java.lang.Override public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuilder() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } public static final int TARGET_FIELD_NUMBER = 2; private Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget target_; /** * required .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return Whether the target field is set. */ + @java.lang.Override public boolean hasTarget() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return The target. */ + @java.lang.Override public Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget getTarget() { - return target_; + return target_ == null ? Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance() : target_; } /** * required .Diadoc.Api.Proto.ResolutionTarget Target = 2; */ + @java.lang.Override public Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTargetOrBuilder getTargetOrBuilder() { - return target_; + return target_ == null ? Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance() : target_; } public static final int AUTHORUSERID_FIELD_NUMBER = 3; - private java.lang.Object authorUserId_; + @SuppressWarnings("serial") + private volatile java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ + @java.lang.Override public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ + @java.lang.Override public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; if (ref instanceof java.lang.String) { @@ -3132,7 +3295,9 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorUserIdBytes() { java.lang.Object ref = authorUserId_; @@ -3148,31 +3313,39 @@ public java.lang.String getAuthorUserId() { } public static final int REQUESTTYPE_FIELD_NUMBER = 4; - private Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType requestType_; + private int requestType_ = -1; /** * required .Diadoc.Api.Proto.ResolutionRequestType RequestType = 4 [default = UnknownResolutionRequestType]; + * @return Whether the requestType field is set. */ - public boolean hasRequestType() { - return ((bitField0_ & 0x00000008) == 0x00000008); + @java.lang.Override public boolean hasRequestType() { + return ((bitField0_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.ResolutionRequestType RequestType = 4 [default = UnknownResolutionRequestType]; + * @return The requestType. */ - public Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType getRequestType() { - return requestType_; + @java.lang.Override public Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType getRequestType() { + Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType result = Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType.forNumber(requestType_); + return result == null ? Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType.UnknownResolutionRequestType : result; } public static final int RESOLVEDWITH_FIELD_NUMBER = 5; - private java.lang.Object resolvedWith_; + @SuppressWarnings("serial") + private volatile java.lang.Object resolvedWith_ = ""; /** * optional string ResolvedWith = 5; + * @return Whether the resolvedWith field is set. */ + @java.lang.Override public boolean hasResolvedWith() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string ResolvedWith = 5; + * @return The resolvedWith. */ + @java.lang.Override public java.lang.String getResolvedWith() { java.lang.Object ref = resolvedWith_; if (ref instanceof java.lang.String) { @@ -3189,7 +3362,9 @@ public java.lang.String getResolvedWith() { } /** * optional string ResolvedWith = 5; + * @return The bytes for resolvedWith. */ + @java.lang.Override public com.google.protobuf.ByteString getResolvedWithBytes() { java.lang.Object ref = resolvedWith_; @@ -3205,35 +3380,46 @@ public java.lang.String getResolvedWith() { } public static final int ACTIONS_FIELD_NUMBER = 6; - private java.util.List actions_; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList actions_; + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction> actions_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction>() { + public Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction convert(int from) { + Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction result = Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction.forNumber(from); + return result == null ? Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction.UnknownAction : result; + } + }; /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @return A list containing the actions. */ + @java.lang.Override public java.util.List getActionsList() { - return actions_; + return new com.google.protobuf.Internal.IntListAdapter< + Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction>(actions_, actions_converter_); } /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @return The count of actions. */ + @java.lang.Override public int getActionsCount() { return actions_.size(); } /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @param index The index of the element to return. + * @return The actions at the given index. */ + @java.lang.Override public Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction getActions(int index) { - return actions_.get(index); + return actions_converter_.convert(actions_.getInt(index)); } - private void initFields() { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - target_ = Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance(); - authorUserId_ = ""; - requestType_ = Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType.UnknownResolutionRequestType; - resolvedWith_ = ""; - actions_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3259,77 +3445,154 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, entity_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, target_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTarget()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authorUserId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, requestType_.getNumber()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, requestType_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getResolvedWithBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, resolvedWith_); } for (int i = 0; i < actions_.size(); i++) { - output.writeEnum(6, actions_.get(i).getNumber()); + output.writeEnum(6, actions_.getInt(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entity_); + .computeMessageSize(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, target_); + .computeMessageSize(2, getTarget()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authorUserId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, requestType_.getNumber()); + .computeEnumSize(4, requestType_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getResolvedWithBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, resolvedWith_); } { int dataSize = 0; for (int i = 0; i < actions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(actions_.get(i).getNumber()); + .computeEnumSizeNoTag(actions_.getInt(i)); } size += dataSize; size += 1 * actions_.size(); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 other = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3) obj; + + if (hasEntity() != other.hasEntity()) return false; + if (hasEntity()) { + if (!getEntity() + .equals(other.getEntity())) return false; + } + if (hasTarget() != other.hasTarget()) return false; + if (hasTarget()) { + if (!getTarget() + .equals(other.getTarget())) return false; + } + if (hasAuthorUserId() != other.hasAuthorUserId()) return false; + if (hasAuthorUserId()) { + if (!getAuthorUserId() + .equals(other.getAuthorUserId())) return false; + } + if (hasRequestType() != other.hasRequestType()) return false; + if (hasRequestType()) { + if (requestType_ != other.requestType_) return false; + } + if (hasResolvedWith() != other.hasResolvedWith()) return false; + if (hasResolvedWith()) { + if (!getResolvedWith() + .equals(other.getResolvedWith())) return false; + } + if (!actions_.equals(other.actions_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + if (hasTarget()) { + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + } + if (hasAuthorUserId()) { + hash = (37 * hash) + AUTHORUSERID_FIELD_NUMBER; + hash = (53 * hash) + getAuthorUserId().hashCode(); + } + if (hasRequestType()) { + hash = (37 * hash) + REQUESTTYPE_FIELD_NUMBER; + hash = (53 * hash) + requestType_; + } + if (hasResolvedWith()) { + hash = (37 * hash) + RESOLVEDWITH_FIELD_NUMBER; + hash = (53 * hash) + getResolvedWith().hashCode(); + } + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + actions_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3353,42 +3616,57 @@ public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionReque } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3408,6 +3686,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionRequestV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionRequestV3_fieldAccessorTable @@ -3426,53 +3705,46 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getEntityFieldBuilder(); getTargetFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - entityBuilder_.clear(); + bitField0_ = 0; + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (targetBuilder_ == null) { - target_ = Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance(); - } else { - targetBuilder_.clear(); + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); + targetBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); authorUserId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - requestType_ = Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType.UnknownResolutionRequestType; - bitField0_ = (bitField0_ & ~0x00000008); + requestType_ = -1; resolvedWith_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - actions_ = java.util.Collections.emptyList(); + actions_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000020); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionRequestV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 build() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 result = buildPartial(); if (!result.isInitialized()) { @@ -3481,48 +3753,54 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 bu return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 buildPartial() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 result = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 result) { + if (((bitField0_ & 0x00000020) != 0)) { + actions_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.actions_ = actions_; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entity_ = entityBuilder_ == null + ? entity_ + : entityBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.target_ = targetBuilder_ == null + ? target_ + : targetBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (targetBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = targetBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authorUserId_ = authorUserId_; to_bitField0_ |= 0x00000004; } - result.authorUserId_ = authorUserId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestType_ = requestType_; to_bitField0_ |= 0x00000008; } - result.requestType_ = requestType_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resolvedWith_ = resolvedWith_; to_bitField0_ |= 0x00000010; } - result.resolvedWith_ = resolvedWith_; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - actions_ = java.util.Collections.unmodifiableList(actions_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.actions_ = actions_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3)other); @@ -3541,16 +3819,16 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.Reso mergeTarget(other.getTarget()); } if (other.hasAuthorUserId()) { - bitField0_ |= 0x00000004; authorUserId_ = other.authorUserId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasRequestType()) { setRequestType(other.getRequestType()); } if (other.hasResolvedWith()) { - bitField0_ |= 0x00000010; resolvedWith_ = other.resolvedWith_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.actions_.isEmpty()) { @@ -3564,63 +3842,142 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.Reso onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasEntity()) { - return false; } if (!hasTarget()) { - return false; } if (!hasRequestType()) { - return false; } if (!getEntity().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - return this; - } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEntityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTargetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + authorUserId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType tmpValue = + Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(4, tmpRaw); + } else { + requestType_ = tmpRaw; + bitField0_ |= 0x00000008; + } + break; + } // case 32 + case 42: { + resolvedWith_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction tmpValue = + Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + ensureActionsIsMutable(); + actions_.addInt(tmpRaw); + } + break; + } // case 48 + case 50: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction tmpValue = + Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + ensureActionsIsMutable(); + actions_.addInt(tmpRaw); + } + } + input.popLimit(oldLimit); + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> entityBuilder_; /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { if (entityBuilder_ == null) { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } else { return entityBuilder_.getMessage(); } @@ -3634,11 +3991,11 @@ public Builder setEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) throw new NullPointerException(); } entity_ = value; - onChanged(); } else { entityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -3648,11 +4005,11 @@ public Builder setEntity( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); - onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -3660,31 +4017,33 @@ public Builder setEntity( */ public Builder mergeEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (entityBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - entity_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + entity_ != null && + entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getEntityBuilder().mergeFrom(value); } else { entity_ = value; } - onChanged(); } else { entityBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (entity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - entityBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; + } + onChanged(); return this; } /** @@ -3702,7 +4061,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { - return entity_; + return entity_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } } /** @@ -3722,21 +4082,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil return entityBuilder_; } - private Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget target_ = Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance(); + private Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget target_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget, Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.Builder, Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTargetOrBuilder> targetBuilder_; /** * required .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return Whether the target field is set. */ public boolean hasTarget() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return The target. */ public Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget getTarget() { if (targetBuilder_ == null) { - return target_; + return target_ == null ? Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance() : target_; } else { return targetBuilder_.getMessage(); } @@ -3750,11 +4112,11 @@ public Builder setTarget(Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarge throw new NullPointerException(); } target_ = value; - onChanged(); } else { targetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3764,11 +4126,11 @@ public Builder setTarget( Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); - onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3776,31 +4138,33 @@ public Builder setTarget( */ public Builder mergeTarget(Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget value) { if (targetBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - target_ != Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance()) { - target_ = - Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.newBuilder(target_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + target_ != null && + target_ != Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance()) { + getTargetBuilder().mergeFrom(value); } else { target_ = value; } - onChanged(); } else { targetBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (target_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.ResolutionTarget Target = 2; */ public Builder clearTarget() { - if (targetBuilder_ == null) { - target_ = Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance(); - onChanged(); - } else { - targetBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); + targetBuilder_ = null; + } + onChanged(); return this; } /** @@ -3818,7 +4182,8 @@ public Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTargetOrBuilder getTarg if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { - return target_; + return target_ == null ? + Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance() : target_; } } /** @@ -3841,12 +4206,14 @@ public Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTargetOrBuilder getTarg private java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; @@ -3864,6 +4231,7 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ public com.google.protobuf.ByteString getAuthorUserIdBytes() { @@ -3880,71 +4248,79 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @param value The authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string AuthorUserId = 3; + * @return This builder for chaining. */ public Builder clearAuthorUserId() { - bitField0_ = (bitField0_ & ~0x00000004); authorUserId_ = getDefaultInstance().getAuthorUserId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string AuthorUserId = 3; + * @param value The bytes for authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType requestType_ = Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType.UnknownResolutionRequestType; + private int requestType_ = -1; /** * required .Diadoc.Api.Proto.ResolutionRequestType RequestType = 4 [default = UnknownResolutionRequestType]; + * @return Whether the requestType field is set. */ - public boolean hasRequestType() { - return ((bitField0_ & 0x00000008) == 0x00000008); + @java.lang.Override public boolean hasRequestType() { + return ((bitField0_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.ResolutionRequestType RequestType = 4 [default = UnknownResolutionRequestType]; + * @return The requestType. */ + @java.lang.Override public Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType getRequestType() { - return requestType_; + Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType result = Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType.forNumber(requestType_); + return result == null ? Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType.UnknownResolutionRequestType : result; } /** * required .Diadoc.Api.Proto.ResolutionRequestType RequestType = 4 [default = UnknownResolutionRequestType]; + * @param value The requestType to set. + * @return This builder for chaining. */ public Builder setRequestType(Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; - requestType_ = value; + requestType_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.ResolutionRequestType RequestType = 4 [default = UnknownResolutionRequestType]; + * @return This builder for chaining. */ public Builder clearRequestType() { bitField0_ = (bitField0_ & ~0x00000008); - requestType_ = Diadoc.Api.Proto.ResolutionRequestTypeProtos.ResolutionRequestType.UnknownResolutionRequestType; + requestType_ = -1; onChanged(); return this; } @@ -3952,12 +4328,14 @@ public Builder clearRequestType() { private java.lang.Object resolvedWith_ = ""; /** * optional string ResolvedWith = 5; + * @return Whether the resolvedWith field is set. */ public boolean hasResolvedWith() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string ResolvedWith = 5; + * @return The resolvedWith. */ public java.lang.String getResolvedWith() { java.lang.Object ref = resolvedWith_; @@ -3975,6 +4353,7 @@ public java.lang.String getResolvedWith() { } /** * optional string ResolvedWith = 5; + * @return The bytes for resolvedWith. */ public com.google.protobuf.ByteString getResolvedWithBytes() { @@ -3991,68 +4370,77 @@ public java.lang.String getResolvedWith() { } /** * optional string ResolvedWith = 5; + * @param value The resolvedWith to set. + * @return This builder for chaining. */ public Builder setResolvedWith( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } resolvedWith_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string ResolvedWith = 5; + * @return This builder for chaining. */ public Builder clearResolvedWith() { - bitField0_ = (bitField0_ & ~0x00000010); resolvedWith_ = getDefaultInstance().getResolvedWith(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string ResolvedWith = 5; + * @param value The bytes for resolvedWith to set. + * @return This builder for chaining. */ public Builder setResolvedWithBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } resolvedWith_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } - private java.util.List actions_ = - java.util.Collections.emptyList(); + private com.google.protobuf.Internal.IntList actions_ = + emptyIntList(); private void ensureActionsIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - actions_ = new java.util.ArrayList(actions_); + if (!((bitField0_ & 0x00000020) != 0)) { + actions_ = makeMutableCopy(actions_); bitField0_ |= 0x00000020; } } /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @return A list containing the actions. */ public java.util.List getActionsList() { - return java.util.Collections.unmodifiableList(actions_); + return new com.google.protobuf.Internal.IntListAdapter< + Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction>(actions_, actions_converter_); } /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @return The count of actions. */ public int getActionsCount() { return actions_.size(); } /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @param index The index of the element to return. + * @return The actions at the given index. */ public Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction getActions(int index) { - return actions_.get(index); + return actions_converter_.convert(actions_.getInt(index)); } /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @param index The index to set the value at. + * @param value The actions to set. + * @return This builder for chaining. */ public Builder setActions( int index, Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction value) { @@ -4060,38 +4448,44 @@ public Builder setActions( throw new NullPointerException(); } ensureActionsIsMutable(); - actions_.set(index, value); + actions_.setInt(index, value.getNumber()); onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @param value The actions to add. + * @return This builder for chaining. */ public Builder addActions(Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction value) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); - actions_.add(value); + actions_.addInt(value.getNumber()); onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @param values The actions to add. + * @return This builder for chaining. */ public Builder addAllActions( java.lang.Iterable values) { ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actions_); + for (Diadoc.Api.Proto.ResolutionActionProtos.ResolutionAction value : values) { + actions_.addInt(value.getNumber()); + } onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.ResolutionAction Actions = 6; + * @return This builder for chaining. */ public Builder clearActions() { - actions_ = java.util.Collections.emptyList(); + actions_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; @@ -4100,12 +4494,52 @@ public Builder clearActions() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ResolutionRequestV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ResolutionRequestV3) + private static final Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 DEFAULT_INSTANCE; static { - defaultInstance = new ResolutionRequestV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3(); + } + + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResolutionRequestV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionRequestV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ResolutionRequestV3) } public interface ResolutionV3OrBuilder extends @@ -4114,10 +4548,12 @@ public interface ResolutionV3OrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ boolean hasEntity(); /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity(); /** @@ -4127,38 +4563,46 @@ public interface ResolutionV3OrBuilder extends /** * optional string ResolutionRequestId = 2; + * @return Whether the resolutionRequestId field is set. */ boolean hasResolutionRequestId(); /** * optional string ResolutionRequestId = 2; + * @return The resolutionRequestId. */ java.lang.String getResolutionRequestId(); /** * optional string ResolutionRequestId = 2; + * @return The bytes for resolutionRequestId. */ com.google.protobuf.ByteString getResolutionRequestIdBytes(); /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ boolean hasAuthorUserId(); /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ java.lang.String getAuthorUserId(); /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ com.google.protobuf.ByteString getAuthorUserIdBytes(); /** * required .Diadoc.Api.Proto.ResolutionType ResolutionType = 4 [default = UnknownResolutionType]; + * @return Whether the resolutionType field is set. */ boolean hasResolutionType(); /** * required .Diadoc.Api.Proto.ResolutionType ResolutionType = 4 [default = UnknownResolutionType]; + * @return The resolutionType. */ Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType getResolutionType(); } @@ -4169,104 +4613,32 @@ public static final class ResolutionV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ResolutionV3) ResolutionV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ResolutionV3.class.getName()); + } // Use ResolutionV3.newBuilder() to construct. private ResolutionV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ResolutionV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ResolutionV3 defaultInstance; - public static ResolutionV3 getDefaultInstance() { - return defaultInstance; } - - public ResolutionV3 getDefaultInstanceForType() { - return defaultInstance; + private ResolutionV3() { + resolutionRequestId_ = ""; + authorUserId_ = ""; + resolutionType_ = -1; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResolutionV3( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = entity_.toBuilder(); - } - entity_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - resolutionRequestId_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - authorUserId_ = bs; - break; - } - case 32: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType value = Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - resolutionType_ = value; - } - 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.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionV3_fieldAccessorTable @@ -4274,54 +4646,49 @@ private ResolutionV3( Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3.class, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ResolutionV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResolutionV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ + @java.lang.Override public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuilder() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } public static final int RESOLUTIONREQUESTID_FIELD_NUMBER = 2; - private java.lang.Object resolutionRequestId_; + @SuppressWarnings("serial") + private volatile java.lang.Object resolutionRequestId_ = ""; /** * optional string ResolutionRequestId = 2; + * @return Whether the resolutionRequestId field is set. */ + @java.lang.Override public boolean hasResolutionRequestId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ResolutionRequestId = 2; + * @return The resolutionRequestId. */ + @java.lang.Override public java.lang.String getResolutionRequestId() { java.lang.Object ref = resolutionRequestId_; if (ref instanceof java.lang.String) { @@ -4338,7 +4705,9 @@ public java.lang.String getResolutionRequestId() { } /** * optional string ResolutionRequestId = 2; + * @return The bytes for resolutionRequestId. */ + @java.lang.Override public com.google.protobuf.ByteString getResolutionRequestIdBytes() { java.lang.Object ref = resolutionRequestId_; @@ -4354,16 +4723,21 @@ public java.lang.String getResolutionRequestId() { } public static final int AUTHORUSERID_FIELD_NUMBER = 3; - private java.lang.Object authorUserId_; + @SuppressWarnings("serial") + private volatile java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ + @java.lang.Override public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ + @java.lang.Override public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; if (ref instanceof java.lang.String) { @@ -4380,7 +4754,9 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorUserIdBytes() { java.lang.Object ref = authorUserId_; @@ -4396,27 +4772,25 @@ public java.lang.String getAuthorUserId() { } public static final int RESOLUTIONTYPE_FIELD_NUMBER = 4; - private Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType resolutionType_; + private int resolutionType_ = -1; /** * required .Diadoc.Api.Proto.ResolutionType ResolutionType = 4 [default = UnknownResolutionType]; + * @return Whether the resolutionType field is set. */ - public boolean hasResolutionType() { - return ((bitField0_ & 0x00000008) == 0x00000008); + @java.lang.Override public boolean hasResolutionType() { + return ((bitField0_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.ResolutionType ResolutionType = 4 [default = UnknownResolutionType]; + * @return The resolutionType. */ - public Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType getResolutionType() { - return resolutionType_; + @java.lang.Override public Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType getResolutionType() { + Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType result = Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType.forNumber(resolutionType_); + return result == null ? Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType.UnknownResolutionType : result; } - private void initFields() { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - resolutionRequestId_ = ""; - authorUserId_ = ""; - resolutionType_ = Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType.UnknownResolutionType; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4438,58 +4812,121 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, entity_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getResolutionRequestIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, resolutionRequestId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authorUserId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, resolutionType_.getNumber()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, resolutionType_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entity_); + .computeMessageSize(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getResolutionRequestIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, resolutionRequestId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authorUserId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, resolutionType_.getNumber()); + .computeEnumSize(4, resolutionType_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 other = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3) obj; + + if (hasEntity() != other.hasEntity()) return false; + if (hasEntity()) { + if (!getEntity() + .equals(other.getEntity())) return false; + } + if (hasResolutionRequestId() != other.hasResolutionRequestId()) return false; + if (hasResolutionRequestId()) { + if (!getResolutionRequestId() + .equals(other.getResolutionRequestId())) return false; + } + if (hasAuthorUserId() != other.hasAuthorUserId()) return false; + if (hasAuthorUserId()) { + if (!getAuthorUserId() + .equals(other.getAuthorUserId())) return false; + } + if (hasResolutionType() != other.hasResolutionType()) return false; + if (hasResolutionType()) { + if (resolutionType_ != other.resolutionType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + if (hasResolutionRequestId()) { + hash = (37 * hash) + RESOLUTIONREQUESTID_FIELD_NUMBER; + hash = (53 * hash) + getResolutionRequestId().hashCode(); + } + if (hasAuthorUserId()) { + hash = (37 * hash) + AUTHORUSERID_FIELD_NUMBER; + hash = (53 * hash) + getAuthorUserId().hashCode(); + } + if (hasResolutionType()) { + hash = (37 * hash) + RESOLUTIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + resolutionType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4513,42 +4950,57 @@ public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 pa } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4568,6 +5020,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionV3_fieldAccessorTable @@ -4586,44 +5039,38 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getEntityFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - entityBuilder_.clear(); + bitField0_ = 0; + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); resolutionRequestId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); authorUserId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - resolutionType_ = Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType.UnknownResolutionType; - bitField0_ = (bitField0_ & ~0x00000008); + resolutionType_ = -1; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ResolutionV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 build() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 result = buildPartial(); if (!result.isInitialized()) { @@ -4632,35 +5079,39 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 buildPartial() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 result = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entity_ = entityBuilder_ == null + ? entity_ + : entityBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resolutionRequestId_ = resolutionRequestId_; to_bitField0_ |= 0x00000002; } - result.resolutionRequestId_ = resolutionRequestId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authorUserId_ = authorUserId_; to_bitField0_ |= 0x00000004; } - result.authorUserId_ = authorUserId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resolutionType_ = resolutionType_; to_bitField0_ |= 0x00000008; } - result.resolutionType_ = resolutionType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3)other); @@ -4676,72 +5127,116 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.Reso mergeEntity(other.getEntity()); } if (other.hasResolutionRequestId()) { - bitField0_ |= 0x00000002; resolutionRequestId_ = other.resolutionRequestId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasAuthorUserId()) { - bitField0_ |= 0x00000004; authorUserId_ = other.authorUserId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasResolutionType()) { setResolutionType(other.getResolutionType()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasEntity()) { - return false; } if (!hasResolutionType()) { - return false; } if (!getEntity().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEntityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + resolutionRequestId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + authorUserId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType tmpValue = + Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(4, tmpRaw); + } else { + resolutionType_ = tmpRaw; + bitField0_ |= 0x00000008; + } + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> entityBuilder_; /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { if (entityBuilder_ == null) { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } else { return entityBuilder_.getMessage(); } @@ -4755,11 +5250,11 @@ public Builder setEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) throw new NullPointerException(); } entity_ = value; - onChanged(); } else { entityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -4769,11 +5264,11 @@ public Builder setEntity( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); - onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -4781,31 +5276,33 @@ public Builder setEntity( */ public Builder mergeEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (entityBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - entity_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + entity_ != null && + entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getEntityBuilder().mergeFrom(value); } else { entity_ = value; } - onChanged(); } else { entityBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (entity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - entityBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; + } + onChanged(); return this; } /** @@ -4823,7 +5320,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { - return entity_; + return entity_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } } /** @@ -4846,12 +5344,14 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil private java.lang.Object resolutionRequestId_ = ""; /** * optional string ResolutionRequestId = 2; + * @return Whether the resolutionRequestId field is set. */ public boolean hasResolutionRequestId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ResolutionRequestId = 2; + * @return The resolutionRequestId. */ public java.lang.String getResolutionRequestId() { java.lang.Object ref = resolutionRequestId_; @@ -4869,6 +5369,7 @@ public java.lang.String getResolutionRequestId() { } /** * optional string ResolutionRequestId = 2; + * @return The bytes for resolutionRequestId. */ public com.google.protobuf.ByteString getResolutionRequestIdBytes() { @@ -4885,36 +5386,37 @@ public java.lang.String getResolutionRequestId() { } /** * optional string ResolutionRequestId = 2; + * @param value The resolutionRequestId to set. + * @return This builder for chaining. */ public Builder setResolutionRequestId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } resolutionRequestId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string ResolutionRequestId = 2; + * @return This builder for chaining. */ public Builder clearResolutionRequestId() { - bitField0_ = (bitField0_ & ~0x00000002); resolutionRequestId_ = getDefaultInstance().getResolutionRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string ResolutionRequestId = 2; + * @param value The bytes for resolutionRequestId to set. + * @return This builder for chaining. */ public Builder setResolutionRequestIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } resolutionRequestId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4922,12 +5424,14 @@ public Builder setResolutionRequestIdBytes( private java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; @@ -4945,6 +5449,7 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ public com.google.protobuf.ByteString getAuthorUserIdBytes() { @@ -4961,71 +5466,79 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @param value The authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string AuthorUserId = 3; + * @return This builder for chaining. */ public Builder clearAuthorUserId() { - bitField0_ = (bitField0_ & ~0x00000004); authorUserId_ = getDefaultInstance().getAuthorUserId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string AuthorUserId = 3; + * @param value The bytes for authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType resolutionType_ = Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType.UnknownResolutionType; + private int resolutionType_ = -1; /** * required .Diadoc.Api.Proto.ResolutionType ResolutionType = 4 [default = UnknownResolutionType]; + * @return Whether the resolutionType field is set. */ - public boolean hasResolutionType() { - return ((bitField0_ & 0x00000008) == 0x00000008); + @java.lang.Override public boolean hasResolutionType() { + return ((bitField0_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.ResolutionType ResolutionType = 4 [default = UnknownResolutionType]; + * @return The resolutionType. */ + @java.lang.Override public Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType getResolutionType() { - return resolutionType_; + Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType result = Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType.forNumber(resolutionType_); + return result == null ? Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType.UnknownResolutionType : result; } /** * required .Diadoc.Api.Proto.ResolutionType ResolutionType = 4 [default = UnknownResolutionType]; + * @param value The resolutionType to set. + * @return This builder for chaining. */ public Builder setResolutionType(Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; - resolutionType_ = value; + resolutionType_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.ResolutionType ResolutionType = 4 [default = UnknownResolutionType]; + * @return This builder for chaining. */ public Builder clearResolutionType() { bitField0_ = (bitField0_ & ~0x00000008); - resolutionType_ = Diadoc.Api.Proto.ResolutionTypeProtos.ResolutionType.UnknownResolutionType; + resolutionType_ = -1; onChanged(); return this; } @@ -5033,24 +5546,66 @@ public Builder clearResolutionType() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ResolutionV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ResolutionV3) + private static final Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 DEFAULT_INSTANCE; static { - defaultInstance = new ResolutionV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3(); } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ResolutionV3) - } - - public interface ApprovementSignatureV3OrBuilder extends - // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.ApprovementSignatureV3) - com.google.protobuf.MessageOrBuilder { + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * required .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 1; - */ - boolean hasSignature(); - /** + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResolutionV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ResolutionV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ApprovementSignatureV3OrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.ApprovementSignatureV3) + com.google.protobuf.MessageOrBuilder { + + /** + * required .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 1; + * @return Whether the signature field is set. + */ + boolean hasSignature(); + /** * required .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 1; + * @return The signature. */ Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getSignature(); /** @@ -5060,28 +5615,34 @@ public interface ApprovementSignatureV3OrBuilder extends /** * optional string ResolutionRequestId = 2; + * @return Whether the resolutionRequestId field is set. */ boolean hasResolutionRequestId(); /** * optional string ResolutionRequestId = 2; + * @return The resolutionRequestId. */ java.lang.String getResolutionRequestId(); /** * optional string ResolutionRequestId = 2; + * @return The bytes for resolutionRequestId. */ com.google.protobuf.ByteString getResolutionRequestIdBytes(); /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ boolean hasAuthorUserId(); /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ java.lang.String getAuthorUserId(); /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ com.google.protobuf.ByteString getAuthorUserIdBytes(); @@ -5093,93 +5654,31 @@ public static final class ApprovementSignatureV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.ApprovementSignatureV3) ApprovementSignatureV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ApprovementSignatureV3.class.getName()); + } // Use ApprovementSignatureV3.newBuilder() to construct. private ApprovementSignatureV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ApprovementSignatureV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ApprovementSignatureV3 defaultInstance; - public static ApprovementSignatureV3 getDefaultInstance() { - return defaultInstance; } - - public ApprovementSignatureV3 getDefaultInstanceForType() { - return defaultInstance; + private ApprovementSignatureV3() { + resolutionRequestId_ = ""; + authorUserId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ApprovementSignatureV3( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = signature_.toBuilder(); - } - signature_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signature_); - signature_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - resolutionRequestId_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - authorUserId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ApprovementSignatureV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ApprovementSignatureV3_fieldAccessorTable @@ -5187,54 +5686,49 @@ private ApprovementSignatureV3( Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3.class, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ApprovementSignatureV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApprovementSignatureV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int SIGNATURE_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 signature_; /** * required .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 1; + * @return Whether the signature field is set. */ + @java.lang.Override public boolean hasSignature() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 1; + * @return The signature. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getSignature() { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } /** * required .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getSignatureOrBuilder() { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } public static final int RESOLUTIONREQUESTID_FIELD_NUMBER = 2; - private java.lang.Object resolutionRequestId_; + @SuppressWarnings("serial") + private volatile java.lang.Object resolutionRequestId_ = ""; /** * optional string ResolutionRequestId = 2; + * @return Whether the resolutionRequestId field is set. */ + @java.lang.Override public boolean hasResolutionRequestId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ResolutionRequestId = 2; + * @return The resolutionRequestId. */ + @java.lang.Override public java.lang.String getResolutionRequestId() { java.lang.Object ref = resolutionRequestId_; if (ref instanceof java.lang.String) { @@ -5251,7 +5745,9 @@ public java.lang.String getResolutionRequestId() { } /** * optional string ResolutionRequestId = 2; + * @return The bytes for resolutionRequestId. */ + @java.lang.Override public com.google.protobuf.ByteString getResolutionRequestIdBytes() { java.lang.Object ref = resolutionRequestId_; @@ -5267,16 +5763,21 @@ public java.lang.String getResolutionRequestId() { } public static final int AUTHORUSERID_FIELD_NUMBER = 3; - private java.lang.Object authorUserId_; + @SuppressWarnings("serial") + private volatile java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ + @java.lang.Override public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ + @java.lang.Override public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; if (ref instanceof java.lang.String) { @@ -5293,7 +5794,9 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorUserIdBytes() { java.lang.Object ref = authorUserId_; @@ -5308,12 +5811,8 @@ public java.lang.String getAuthorUserId() { } } - private void initFields() { - signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - resolutionRequestId_ = ""; - authorUserId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5331,51 +5830,106 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, signature_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSignature()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getResolutionRequestIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, resolutionRequestId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authorUserId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, signature_); + .computeMessageSize(1, getSignature()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getResolutionRequestIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, resolutionRequestId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authorUserId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 other = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3) obj; + + if (hasSignature() != other.hasSignature()) return false; + if (hasSignature()) { + if (!getSignature() + .equals(other.getSignature())) return false; + } + if (hasResolutionRequestId() != other.hasResolutionRequestId()) return false; + if (hasResolutionRequestId()) { + if (!getResolutionRequestId() + .equals(other.getResolutionRequestId())) return false; + } + if (hasAuthorUserId() != other.hasAuthorUserId()) return false; + if (hasAuthorUserId()) { + if (!getAuthorUserId() + .equals(other.getAuthorUserId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + if (hasResolutionRequestId()) { + hash = (37 * hash) + RESOLUTIONREQUESTID_FIELD_NUMBER; + hash = (53 * hash) + getResolutionRequestId().hashCode(); + } + if (hasAuthorUserId()) { + hash = (37 * hash) + AUTHORUSERID_FIELD_NUMBER; + hash = (53 * hash) + getAuthorUserId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5399,42 +5953,57 @@ public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSign } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5454,6 +6023,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ApprovementSignatureV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ApprovementSignatureV3_fieldAccessorTable @@ -5472,42 +6042,37 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getSignatureFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (signatureBuilder_ == null) { - signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - } else { - signatureBuilder_.clear(); + bitField0_ = 0; + signature_ = null; + if (signatureBuilder_ != null) { + signatureBuilder_.dispose(); + signatureBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); resolutionRequestId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); authorUserId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_ApprovementSignatureV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 build() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 result = buildPartial(); if (!result.isInitialized()) { @@ -5516,31 +6081,35 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 buildPartial() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 result = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.signature_ = signatureBuilder_ == null + ? signature_ + : signatureBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (signatureBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = signatureBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resolutionRequestId_ = resolutionRequestId_; to_bitField0_ |= 0x00000002; } - result.resolutionRequestId_ = resolutionRequestId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authorUserId_ = authorUserId_; to_bitField0_ |= 0x00000004; } - result.authorUserId_ = authorUserId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3)other); @@ -5556,65 +6125,98 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.Appr mergeSignature(other.getSignature()); } if (other.hasResolutionRequestId()) { - bitField0_ |= 0x00000002; resolutionRequestId_ = other.resolutionRequestId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasAuthorUserId()) { - bitField0_ |= 0x00000004; authorUserId_ = other.authorUserId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasSignature()) { - return false; } if (!getSignature().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSignatureFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + resolutionRequestId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + authorUserId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 signature_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder, Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder> signatureBuilder_; /** * required .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 1; + * @return Whether the signature field is set. */ public boolean hasSignature() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 1; + * @return The signature. */ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 getSignature() { if (signatureBuilder_ == null) { - return signature_; + return signature_ == null ? Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } else { return signatureBuilder_.getMessage(); } @@ -5628,11 +6230,11 @@ public Builder setSignature(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.Signatur throw new NullPointerException(); } signature_ = value; - onChanged(); } else { signatureBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5642,11 +6244,11 @@ public Builder setSignature( Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.Builder builderForValue) { if (signatureBuilder_ == null) { signature_ = builderForValue.build(); - onChanged(); } else { signatureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5654,31 +6256,33 @@ public Builder setSignature( */ public Builder mergeSignature(Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3 value) { if (signatureBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - signature_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance()) { - signature_ = - Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.newBuilder(signature_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + signature_ != null && + signature_ != Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance()) { + getSignatureBuilder().mergeFrom(value); } else { signature_ = value; } - onChanged(); } else { signatureBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (signature_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.SignatureV3 Signature = 1; */ public Builder clearSignature() { - if (signatureBuilder_ == null) { - signature_ = Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance(); - onChanged(); - } else { - signatureBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + signature_ = null; + if (signatureBuilder_ != null) { + signatureBuilder_.dispose(); + signatureBuilder_ = null; + } + onChanged(); return this; } /** @@ -5696,7 +6300,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getSigna if (signatureBuilder_ != null) { return signatureBuilder_.getMessageOrBuilder(); } else { - return signature_; + return signature_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3.getDefaultInstance() : signature_; } } /** @@ -5719,12 +6324,14 @@ public Diadoc.Api.Proto.Docflow.AttachmentV3Protos.SignatureV3OrBuilder getSigna private java.lang.Object resolutionRequestId_ = ""; /** * optional string ResolutionRequestId = 2; + * @return Whether the resolutionRequestId field is set. */ public boolean hasResolutionRequestId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ResolutionRequestId = 2; + * @return The resolutionRequestId. */ public java.lang.String getResolutionRequestId() { java.lang.Object ref = resolutionRequestId_; @@ -5742,6 +6349,7 @@ public java.lang.String getResolutionRequestId() { } /** * optional string ResolutionRequestId = 2; + * @return The bytes for resolutionRequestId. */ public com.google.protobuf.ByteString getResolutionRequestIdBytes() { @@ -5758,36 +6366,37 @@ public java.lang.String getResolutionRequestId() { } /** * optional string ResolutionRequestId = 2; + * @param value The resolutionRequestId to set. + * @return This builder for chaining. */ public Builder setResolutionRequestId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } resolutionRequestId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string ResolutionRequestId = 2; + * @return This builder for chaining. */ public Builder clearResolutionRequestId() { - bitField0_ = (bitField0_ & ~0x00000002); resolutionRequestId_ = getDefaultInstance().getResolutionRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string ResolutionRequestId = 2; + * @param value The bytes for resolutionRequestId to set. + * @return This builder for chaining. */ public Builder setResolutionRequestIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } resolutionRequestId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5795,12 +6404,14 @@ public Builder setResolutionRequestIdBytes( private java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; @@ -5818,6 +6429,7 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ public com.google.protobuf.ByteString getAuthorUserIdBytes() { @@ -5834,36 +6446,37 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @param value The authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string AuthorUserId = 3; + * @return This builder for chaining. */ public Builder clearAuthorUserId() { - bitField0_ = (bitField0_ & ~0x00000004); authorUserId_ = getDefaultInstance().getAuthorUserId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string AuthorUserId = 3; + * @param value The bytes for authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -5871,12 +6484,52 @@ public Builder setAuthorUserIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.ApprovementSignatureV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ApprovementSignatureV3) + private static final Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 DEFAULT_INSTANCE; static { - defaultInstance = new ApprovementSignatureV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3(); + } + + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApprovementSignatureV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.ApprovementSignatureV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.ApprovementSignatureV3) } public interface SignatureDenialV3OrBuilder extends @@ -5885,10 +6538,12 @@ public interface SignatureDenialV3OrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ boolean hasEntity(); /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity(); /** @@ -5898,28 +6553,34 @@ public interface SignatureDenialV3OrBuilder extends /** * required string ResolutionRequestId = 2; + * @return Whether the resolutionRequestId field is set. */ boolean hasResolutionRequestId(); /** * required string ResolutionRequestId = 2; + * @return The resolutionRequestId. */ java.lang.String getResolutionRequestId(); /** * required string ResolutionRequestId = 2; + * @return The bytes for resolutionRequestId. */ com.google.protobuf.ByteString getResolutionRequestIdBytes(); /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ boolean hasAuthorUserId(); /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ java.lang.String getAuthorUserId(); /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ com.google.protobuf.ByteString getAuthorUserIdBytes(); @@ -5931,93 +6592,31 @@ public static final class SignatureDenialV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SignatureDenialV3) SignatureDenialV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SignatureDenialV3.class.getName()); + } // Use SignatureDenialV3.newBuilder() to construct. private SignatureDenialV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SignatureDenialV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SignatureDenialV3 defaultInstance; - public static SignatureDenialV3 getDefaultInstance() { - return defaultInstance; } - - public SignatureDenialV3 getDefaultInstanceForType() { - return defaultInstance; + private SignatureDenialV3() { + resolutionRequestId_ = ""; + authorUserId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignatureDenialV3( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = entity_.toBuilder(); - } - entity_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - resolutionRequestId_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - authorUserId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureDenialV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureDenialV3_fieldAccessorTable @@ -6025,54 +6624,49 @@ private SignatureDenialV3( Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3.class, Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SignatureDenialV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureDenialV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ + @java.lang.Override public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuilder() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } public static final int RESOLUTIONREQUESTID_FIELD_NUMBER = 2; - private java.lang.Object resolutionRequestId_; + @SuppressWarnings("serial") + private volatile java.lang.Object resolutionRequestId_ = ""; /** * required string ResolutionRequestId = 2; + * @return Whether the resolutionRequestId field is set. */ + @java.lang.Override public boolean hasResolutionRequestId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string ResolutionRequestId = 2; + * @return The resolutionRequestId. */ + @java.lang.Override public java.lang.String getResolutionRequestId() { java.lang.Object ref = resolutionRequestId_; if (ref instanceof java.lang.String) { @@ -6089,7 +6683,9 @@ public java.lang.String getResolutionRequestId() { } /** * required string ResolutionRequestId = 2; + * @return The bytes for resolutionRequestId. */ + @java.lang.Override public com.google.protobuf.ByteString getResolutionRequestIdBytes() { java.lang.Object ref = resolutionRequestId_; @@ -6105,16 +6701,21 @@ public java.lang.String getResolutionRequestId() { } public static final int AUTHORUSERID_FIELD_NUMBER = 3; - private java.lang.Object authorUserId_; + @SuppressWarnings("serial") + private volatile java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ + @java.lang.Override public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ + @java.lang.Override public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; if (ref instanceof java.lang.String) { @@ -6131,7 +6732,9 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorUserIdBytes() { java.lang.Object ref = authorUserId_; @@ -6146,12 +6749,8 @@ public java.lang.String getAuthorUserId() { } } - private void initFields() { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - resolutionRequestId_ = ""; - authorUserId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -6173,51 +6772,106 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, entity_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getResolutionRequestIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, resolutionRequestId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authorUserId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entity_); + .computeMessageSize(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getResolutionRequestIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, resolutionRequestId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authorUserId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 other = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3) obj; + + if (hasEntity() != other.hasEntity()) return false; + if (hasEntity()) { + if (!getEntity() + .equals(other.getEntity())) return false; + } + if (hasResolutionRequestId() != other.hasResolutionRequestId()) return false; + if (hasResolutionRequestId()) { + if (!getResolutionRequestId() + .equals(other.getResolutionRequestId())) return false; + } + if (hasAuthorUserId() != other.hasAuthorUserId()) return false; + if (hasAuthorUserId()) { + if (!getAuthorUserId() + .equals(other.getAuthorUserId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + if (hasResolutionRequestId()) { + hash = (37 * hash) + RESOLUTIONREQUESTID_FIELD_NUMBER; + hash = (53 * hash) + getResolutionRequestId().hashCode(); + } + if (hasAuthorUserId()) { + hash = (37 * hash) + AUTHORUSERID_FIELD_NUMBER; + hash = (53 * hash) + getAuthorUserId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6241,42 +6895,57 @@ public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenial } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -6296,6 +6965,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureDenialV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureDenialV3_fieldAccessorTable @@ -6314,42 +6984,37 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getEntityFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - entityBuilder_.clear(); + bitField0_ = 0; + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); resolutionRequestId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); authorUserId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.internal_static_Diadoc_Api_Proto_Docflow_SignatureDenialV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 build() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 result = buildPartial(); if (!result.isInitialized()) { @@ -6358,31 +7023,35 @@ public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 buil return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 buildPartial() { Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 result = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entity_ = entityBuilder_ == null + ? entity_ + : entityBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resolutionRequestId_ = resolutionRequestId_; to_bitField0_ |= 0x00000002; } - result.resolutionRequestId_ = resolutionRequestId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authorUserId_ = authorUserId_; to_bitField0_ |= 0x00000004; } - result.authorUserId_ = authorUserId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3) { return mergeFrom((Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3)other); @@ -6398,69 +7067,101 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.Sign mergeEntity(other.getEntity()); } if (other.hasResolutionRequestId()) { - bitField0_ |= 0x00000002; resolutionRequestId_ = other.resolutionRequestId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasAuthorUserId()) { - bitField0_ |= 0x00000004; authorUserId_ = other.authorUserId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasEntity()) { - return false; } if (!hasResolutionRequestId()) { - return false; } if (!getEntity().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEntityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + resolutionRequestId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + authorUserId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> entityBuilder_; /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { if (entityBuilder_ == null) { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } else { return entityBuilder_.getMessage(); } @@ -6474,11 +7175,11 @@ public Builder setEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) throw new NullPointerException(); } entity_ = value; - onChanged(); } else { entityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -6488,11 +7189,11 @@ public Builder setEntity( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); - onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -6500,31 +7201,33 @@ public Builder setEntity( */ public Builder mergeEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (entityBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - entity_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + entity_ != null && + entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getEntityBuilder().mergeFrom(value); } else { entity_ = value; } - onChanged(); } else { entityBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (entity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - entityBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; + } + onChanged(); return this; } /** @@ -6542,7 +7245,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { - return entity_; + return entity_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } } /** @@ -6565,12 +7269,14 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil private java.lang.Object resolutionRequestId_ = ""; /** * required string ResolutionRequestId = 2; + * @return Whether the resolutionRequestId field is set. */ public boolean hasResolutionRequestId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string ResolutionRequestId = 2; + * @return The resolutionRequestId. */ public java.lang.String getResolutionRequestId() { java.lang.Object ref = resolutionRequestId_; @@ -6588,6 +7294,7 @@ public java.lang.String getResolutionRequestId() { } /** * required string ResolutionRequestId = 2; + * @return The bytes for resolutionRequestId. */ public com.google.protobuf.ByteString getResolutionRequestIdBytes() { @@ -6604,36 +7311,37 @@ public java.lang.String getResolutionRequestId() { } /** * required string ResolutionRequestId = 2; + * @param value The resolutionRequestId to set. + * @return This builder for chaining. */ public Builder setResolutionRequestId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } resolutionRequestId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string ResolutionRequestId = 2; + * @return This builder for chaining. */ public Builder clearResolutionRequestId() { - bitField0_ = (bitField0_ & ~0x00000002); resolutionRequestId_ = getDefaultInstance().getResolutionRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string ResolutionRequestId = 2; + * @param value The bytes for resolutionRequestId to set. + * @return This builder for chaining. */ public Builder setResolutionRequestIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } resolutionRequestId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6641,12 +7349,14 @@ public Builder setResolutionRequestIdBytes( private java.lang.Object authorUserId_ = ""; /** * optional string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string AuthorUserId = 3; + * @return The authorUserId. */ public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; @@ -6664,6 +7374,7 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @return The bytes for authorUserId. */ public com.google.protobuf.ByteString getAuthorUserIdBytes() { @@ -6680,36 +7391,37 @@ public java.lang.String getAuthorUserId() { } /** * optional string AuthorUserId = 3; + * @param value The authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string AuthorUserId = 3; + * @return This builder for chaining. */ public Builder clearAuthorUserId() { - bitField0_ = (bitField0_ & ~0x00000004); authorUserId_ = getDefaultInstance().getAuthorUserId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string AuthorUserId = 3; + * @param value The bytes for authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6717,42 +7429,82 @@ public Builder setAuthorUserIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SignatureDenialV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignatureDenialV3) + private static final Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 DEFAULT_INSTANCE; static { - defaultInstance = new SignatureDenialV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3(); + } + + public static Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignatureDenialV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.ResolutionDocflowV3Protos.SignatureDenialV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignatureDenialV3) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflowV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflowV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ResolutionEntitiesV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ResolutionEntitiesV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ResolutionRequestV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ResolutionRequestV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ResolutionV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ResolutionV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_ApprovementSignatureV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_ApprovementSignatureV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SignatureDenialV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SignatureDenialV3_fieldAccessorTable; @@ -6760,7 +7512,7 @@ public Builder setAuthorUserIdBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -6773,7 +7525,7 @@ public Builder setAuthorUserIdBytes( "lutionDocflowV3\022\022\n\nIsFinished\030\001 \002(\010\022\026\n\016P" + "arentEntityId\030\002 \002(\t\022S\n\020ResolutionStatus\030" + "\003 \002(\0162*.Diadoc.Api.Proto.Docflow.Resolut" + - "ionStatus:\rUnknownStatus\022\032\n\022ResolutionEn", + "ionStatus:\rUnknownStatus\022\032\n\022ResolutionEn" + "tityId\030\004 \001(\t\"\254\002\n\024ResolutionEntitiesV3\022?\n" + "\010Requests\030\001 \003(\0132-.Diadoc.Api.Proto.Docfl" + "ow.ResolutionRequestV3\022;\n\013Resolutions\030\002 " + @@ -6783,7 +7535,7 @@ public Builder setAuthorUserIdBytes( "reV3\022E\n\020SignatureDenials\030\004 \003(\0132+.Diadoc." + "Api.Proto.Docflow.SignatureDenialV3\"\270\002\n\023" + "ResolutionRequestV3\0220\n\006Entity\030\001 \002(\0132 .Di" + - "adoc.Api.Proto.Docflow.Entity\0222\n\006Target\030", + "adoc.Api.Proto.Docflow.Entity\0222\n\006Target\030" + "\002 \002(\0132\".Diadoc.Api.Proto.ResolutionTarge" + "t\022\024\n\014AuthorUserId\030\003 \001(\t\022Z\n\013RequestType\030\004" + " \002(\0162\'.Diadoc.Api.Proto.ResolutionReques" + @@ -6793,7 +7545,7 @@ public Builder setAuthorUserIdBytes( "utionV3\0220\n\006Entity\030\001 \002(\0132 .Diadoc.Api.Pro" + "to.Docflow.Entity\022\033\n\023ResolutionRequestId" + "\030\002 \001(\t\022\024\n\014AuthorUserId\030\003 \001(\t\022O\n\016Resoluti" + - "onType\030\004 \002(\0162 .Diadoc.Api.Proto.Resoluti", + "onType\030\004 \002(\0162 .Diadoc.Api.Proto.Resoluti" + "onType:\025UnknownResolutionType\"\205\001\n\026Approv" + "ementSignatureV3\0228\n\tSignature\030\001 \002(\0132%.Di" + "adoc.Api.Proto.Docflow.SignatureV3\022\033\n\023Re" + @@ -6803,7 +7555,7 @@ public Builder setAuthorUserIdBytes( "ResolutionRequestId\030\002 \002(\t\022\024\n\014AuthorUserI" + "d\030\003 \001(\t*\276\002\n\020ResolutionStatus\022\021\n\rUnknownS" + "tatus\020\000\022\010\n\004None\020\001\022\014\n\010Approved\020\002\022\017\n\013Disap" + - "proved\020\003\022\030\n\024ApprovementRequested\020\004\022!\n\035Ap", + "proved\020\003\022\030\n\024ApprovementRequested\020\004\022!\n\035Ap" + "provementSignatureRequested\020\005\022\035\n\031Primary" + "SignatureRequested\020\006\022\034\n\030SignatureRequest" + "Rejected\020\007\022 \n\034SignedWithApprovingSignatu" + @@ -6811,15 +7563,7 @@ public Builder setAuthorUserIdBytes( "PrimarySignatureRejected\020\n\022\024\n\020ActionsReq" + "uested\020\013B\033B\031ResolutionDocflowV3Protos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), @@ -6829,7 +7573,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( Diadoc.Api.Proto.ResolutionTypeProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.AttachmentV3Protos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflowV3_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_ResolutionDocflowV3_fieldAccessorTable = new @@ -6866,6 +7610,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_SignatureDenialV3_descriptor, new java.lang.String[] { "Entity", "ResolutionRequestId", "AuthorUserId", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.ResolutionActionProtos.getDescriptor(); Diadoc.Api.Proto.ResolutionRequestTypeProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/RevocationDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/RevocationDocflowProtos.java index 35ba412c..971d9b30 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/RevocationDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/RevocationDocflowProtos.java @@ -1,32 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/RevocationDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; -public final class RevocationDocflowProtos { +@java.lang.Deprecated public final class RevocationDocflowProtos { private RevocationDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RevocationDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface RevocationDocflowOrBuilder extends + @java.lang.Deprecated public interface RevocationDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.RevocationDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RevocationRequestAttachment = 2; + * @return Whether the revocationRequestAttachment field is set. */ boolean hasRevocationRequestAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RevocationRequestAttachment = 2; + * @return The revocationRequestAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getRevocationRequestAttachment(); /** @@ -36,10 +57,12 @@ public interface RevocationDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return Whether the recipientSignatureDocflow field is set. */ boolean hasRecipientSignatureDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return The recipientSignatureDocflow. */ Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow getRecipientSignatureDocflow(); /** @@ -49,10 +72,12 @@ public interface RevocationDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ boolean hasRecipientSignatureRejectionDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return The recipientSignatureRejectionDocflow. */ Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow(); /** @@ -62,165 +87,74 @@ public interface RevocationDocflowOrBuilder extends /** * optional string InitiatorBoxId = 5; + * @return Whether the initiatorBoxId field is set. */ boolean hasInitiatorBoxId(); /** * optional string InitiatorBoxId = 5; + * @return The initiatorBoxId. */ java.lang.String getInitiatorBoxId(); /** * optional string InitiatorBoxId = 5; + * @return The bytes for initiatorBoxId. */ com.google.protobuf.ByteString getInitiatorBoxIdBytes(); /** * optional bool IsRevocationAccepted = 6; + * @return Whether the isRevocationAccepted field is set. */ boolean hasIsRevocationAccepted(); /** * optional bool IsRevocationAccepted = 6; + * @return The isRevocationAccepted. */ boolean getIsRevocationAccepted(); /** * optional bool IsRevocationRejected = 7; + * @return Whether the isRevocationRejected field is set. */ boolean hasIsRevocationRejected(); /** * optional bool IsRevocationRejected = 7; + * @return The isRevocationRejected. */ boolean getIsRevocationRejected(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.RevocationDocflow} */ - public static final class RevocationDocflow extends + @java.lang.Deprecated public static final class RevocationDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.RevocationDocflow) RevocationDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RevocationDocflow.class.getName()); + } // Use RevocationDocflow.newBuilder() to construct. private RevocationDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private RevocationDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RevocationDocflow defaultInstance; - public static RevocationDocflow getDefaultInstance() { - return defaultInstance; - } - - public RevocationDocflow getDefaultInstanceForType() { - return defaultInstance; + private RevocationDocflow() { + initiatorBoxId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RevocationDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = revocationRequestAttachment_.toBuilder(); - } - revocationRequestAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revocationRequestAttachment_); - revocationRequestAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = recipientSignatureDocflow_.toBuilder(); - } - recipientSignatureDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientSignatureDocflow_); - recipientSignatureDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = recipientSignatureRejectionDocflow_.toBuilder(); - } - recipientSignatureRejectionDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientSignatureRejectionDocflow_); - recipientSignatureRejectionDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - initiatorBoxId_ = bs; - break; - } - case 48: { - bitField0_ |= 0x00000020; - isRevocationAccepted_ = input.readBool(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - isRevocationRejected_ = input.readBool(); - 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.Docflow.RevocationDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflow_fieldAccessorTable @@ -228,33 +162,22 @@ private RevocationDocflow( Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.class, Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RevocationDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevocationDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -263,76 +186,96 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment revocationRequestAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RevocationRequestAttachment = 2; + * @return Whether the revocationRequestAttachment field is set. */ + @java.lang.Override public boolean hasRevocationRequestAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RevocationRequestAttachment = 2; + * @return The revocationRequestAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getRevocationRequestAttachment() { - return revocationRequestAttachment_; + return revocationRequestAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : revocationRequestAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RevocationRequestAttachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRevocationRequestAttachmentOrBuilder() { - return revocationRequestAttachment_; + return revocationRequestAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : revocationRequestAttachment_; } public static final int RECIPIENTSIGNATUREDOCFLOW_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow recipientSignatureDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return Whether the recipientSignatureDocflow field is set. */ + @java.lang.Override public boolean hasRecipientSignatureDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return The recipientSignatureDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow getRecipientSignatureDocflow() { - return recipientSignatureDocflow_; + return recipientSignatureDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance() : recipientSignatureDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflowOrBuilder getRecipientSignatureDocflowOrBuilder() { - return recipientSignatureDocflow_; + return recipientSignatureDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance() : recipientSignatureDocflow_; } public static final int RECIPIENTSIGNATUREREJECTIONDOCFLOW_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ + @java.lang.Override public boolean hasRecipientSignatureRejectionDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return The recipientSignatureRejectionDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow() { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflowOrBuilder getRecipientSignatureRejectionDocflowOrBuilder() { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } public static final int INITIATORBOXID_FIELD_NUMBER = 5; - private java.lang.Object initiatorBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object initiatorBoxId_ = ""; /** * optional string InitiatorBoxId = 5; + * @return Whether the initiatorBoxId field is set. */ + @java.lang.Override public boolean hasInitiatorBoxId() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string InitiatorBoxId = 5; + * @return The initiatorBoxId. */ + @java.lang.Override public java.lang.String getInitiatorBoxId() { java.lang.Object ref = initiatorBoxId_; if (ref instanceof java.lang.String) { @@ -349,7 +292,9 @@ public java.lang.String getInitiatorBoxId() { } /** * optional string InitiatorBoxId = 5; + * @return The bytes for initiatorBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getInitiatorBoxIdBytes() { java.lang.Object ref = initiatorBoxId_; @@ -365,45 +310,45 @@ public java.lang.String getInitiatorBoxId() { } public static final int ISREVOCATIONACCEPTED_FIELD_NUMBER = 6; - private boolean isRevocationAccepted_; + private boolean isRevocationAccepted_ = false; /** * optional bool IsRevocationAccepted = 6; + * @return Whether the isRevocationAccepted field is set. */ + @java.lang.Override public boolean hasIsRevocationAccepted() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsRevocationAccepted = 6; + * @return The isRevocationAccepted. */ + @java.lang.Override public boolean getIsRevocationAccepted() { return isRevocationAccepted_; } public static final int ISREVOCATIONREJECTED_FIELD_NUMBER = 7; - private boolean isRevocationRejected_; + private boolean isRevocationRejected_ = false; /** * optional bool IsRevocationRejected = 7; + * @return Whether the isRevocationRejected field is set. */ + @java.lang.Override public boolean hasIsRevocationRejected() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsRevocationRejected = 7; + * @return The isRevocationRejected. */ + @java.lang.Override public boolean getIsRevocationRejected() { return isRevocationRejected_; } - private void initFields() { - isFinished_ = false; - revocationRequestAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - recipientSignatureDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance(); - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - initiatorBoxId_ = ""; - isRevocationAccepted_ = false; - isRevocationRejected_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -431,79 +376,174 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, revocationRequestAttachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRevocationRequestAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, recipientSignatureDocflow_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getRecipientSignatureDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, recipientSignatureRejectionDocflow_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getRecipientSignatureRejectionDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getInitiatorBoxIdBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, initiatorBoxId_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, isRevocationAccepted_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, isRevocationRejected_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, revocationRequestAttachment_); + .computeMessageSize(2, getRevocationRequestAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, recipientSignatureDocflow_); + .computeMessageSize(3, getRecipientSignatureDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, recipientSignatureRejectionDocflow_); + .computeMessageSize(4, getRecipientSignatureRejectionDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getInitiatorBoxIdBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, initiatorBoxId_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, isRevocationAccepted_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isRevocationRejected_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow other = (Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasRevocationRequestAttachment() != other.hasRevocationRequestAttachment()) return false; + if (hasRevocationRequestAttachment()) { + if (!getRevocationRequestAttachment() + .equals(other.getRevocationRequestAttachment())) return false; + } + if (hasRecipientSignatureDocflow() != other.hasRecipientSignatureDocflow()) return false; + if (hasRecipientSignatureDocflow()) { + if (!getRecipientSignatureDocflow() + .equals(other.getRecipientSignatureDocflow())) return false; + } + if (hasRecipientSignatureRejectionDocflow() != other.hasRecipientSignatureRejectionDocflow()) return false; + if (hasRecipientSignatureRejectionDocflow()) { + if (!getRecipientSignatureRejectionDocflow() + .equals(other.getRecipientSignatureRejectionDocflow())) return false; + } + if (hasInitiatorBoxId() != other.hasInitiatorBoxId()) return false; + if (hasInitiatorBoxId()) { + if (!getInitiatorBoxId() + .equals(other.getInitiatorBoxId())) return false; + } + if (hasIsRevocationAccepted() != other.hasIsRevocationAccepted()) return false; + if (hasIsRevocationAccepted()) { + if (getIsRevocationAccepted() + != other.getIsRevocationAccepted()) return false; + } + if (hasIsRevocationRejected() != other.hasIsRevocationRejected()) return false; + if (hasIsRevocationRejected()) { + if (getIsRevocationRejected() + != other.getIsRevocationRejected()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasRevocationRequestAttachment()) { + hash = (37 * hash) + REVOCATIONREQUESTATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getRevocationRequestAttachment().hashCode(); + } + if (hasRecipientSignatureDocflow()) { + hash = (37 * hash) + RECIPIENTSIGNATUREDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getRecipientSignatureDocflow().hashCode(); + } + if (hasRecipientSignatureRejectionDocflow()) { + hash = (37 * hash) + RECIPIENTSIGNATUREREJECTIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getRecipientSignatureRejectionDocflow().hashCode(); + } + if (hasInitiatorBoxId()) { + hash = (37 * hash) + INITIATORBOXID_FIELD_NUMBER; + hash = (53 * hash) + getInitiatorBoxId().hashCode(); + } + if (hasIsRevocationAccepted()) { + hash = (37 * hash) + ISREVOCATIONACCEPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRevocationAccepted()); + } + if (hasIsRevocationRejected()) { + hash = (37 * hash) + ISREVOCATIONREJECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRevocationRejected()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -527,42 +567,57 @@ public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow } public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -582,6 +637,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflow_fieldAccessorTable @@ -600,60 +656,51 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getRevocationRequestAttachmentFieldBuilder(); getRecipientSignatureDocflowFieldBuilder(); getRecipientSignatureRejectionDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (revocationRequestAttachmentBuilder_ == null) { - revocationRequestAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - } else { - revocationRequestAttachmentBuilder_.clear(); + revocationRequestAttachment_ = null; + if (revocationRequestAttachmentBuilder_ != null) { + revocationRequestAttachmentBuilder_.dispose(); + revocationRequestAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (recipientSignatureDocflowBuilder_ == null) { - recipientSignatureDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance(); - } else { - recipientSignatureDocflowBuilder_.clear(); + recipientSignatureDocflow_ = null; + if (recipientSignatureDocflowBuilder_ != null) { + recipientSignatureDocflowBuilder_.dispose(); + recipientSignatureDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (recipientSignatureRejectionDocflowBuilder_ == null) { - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - } else { - recipientSignatureRejectionDocflowBuilder_.clear(); + recipientSignatureRejectionDocflow_ = null; + if (recipientSignatureRejectionDocflowBuilder_ != null) { + recipientSignatureRejectionDocflowBuilder_.dispose(); + recipientSignatureRejectionDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); initiatorBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); isRevocationAccepted_ = false; - bitField0_ = (bitField0_ & ~0x00000020); isRevocationRejected_ = false; - bitField0_ = (bitField0_ & ~0x00000040); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow build() { Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -662,55 +709,55 @@ public Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow buildPartial() { Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow result = new Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revocationRequestAttachment_ = revocationRequestAttachmentBuilder_ == null + ? revocationRequestAttachment_ + : revocationRequestAttachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (revocationRequestAttachmentBuilder_ == null) { - result.revocationRequestAttachment_ = revocationRequestAttachment_; - } else { - result.revocationRequestAttachment_ = revocationRequestAttachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.recipientSignatureDocflow_ = recipientSignatureDocflowBuilder_ == null + ? recipientSignatureDocflow_ + : recipientSignatureDocflowBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (recipientSignatureDocflowBuilder_ == null) { - result.recipientSignatureDocflow_ = recipientSignatureDocflow_; - } else { - result.recipientSignatureDocflow_ = recipientSignatureDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflowBuilder_ == null + ? recipientSignatureRejectionDocflow_ + : recipientSignatureRejectionDocflowBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (recipientSignatureRejectionDocflowBuilder_ == null) { - result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflow_; - } else { - result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.initiatorBoxId_ = initiatorBoxId_; to_bitField0_ |= 0x00000010; } - result.initiatorBoxId_ = initiatorBoxId_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isRevocationAccepted_ = isRevocationAccepted_; to_bitField0_ |= 0x00000020; } - result.isRevocationAccepted_ = isRevocationAccepted_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isRevocationRejected_ = isRevocationRejected_; to_bitField0_ |= 0x00000040; } - result.isRevocationRejected_ = isRevocationRejected_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow)other); @@ -735,8 +782,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.Revoca mergeRecipientSignatureRejectionDocflow(other.getRecipientSignatureRejectionDocflow()); } if (other.hasInitiatorBoxId()) { - bitField0_ |= 0x00000010; initiatorBoxId_ = other.initiatorBoxId_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasIsRevocationAccepted()) { @@ -746,46 +793,100 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.Revoca setIsRevocationRejected(other.getIsRevocationRejected()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasRevocationRequestAttachment()) { if (!getRevocationRequestAttachment().isInitialized()) { - return false; } } if (hasRecipientSignatureDocflow()) { if (!getRecipientSignatureDocflow().isInitialized()) { - return false; } } if (hasRecipientSignatureRejectionDocflow()) { if (!getRecipientSignatureRejectionDocflow().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getRevocationRequestAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRecipientSignatureDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getRecipientSignatureRejectionDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + initiatorBoxId_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + isRevocationAccepted_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + isRevocationRejected_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -793,27 +894,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -822,21 +931,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment revocationRequestAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment revocationRequestAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder> revocationRequestAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RevocationRequestAttachment = 2; + * @return Whether the revocationRequestAttachment field is set. */ public boolean hasRevocationRequestAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RevocationRequestAttachment = 2; + * @return The revocationRequestAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getRevocationRequestAttachment() { if (revocationRequestAttachmentBuilder_ == null) { - return revocationRequestAttachment_; + return revocationRequestAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : revocationRequestAttachment_; } else { return revocationRequestAttachmentBuilder_.getMessage(); } @@ -850,11 +961,11 @@ public Builder setRevocationRequestAttachment(Diadoc.Api.Proto.Docflow.Attachmen throw new NullPointerException(); } revocationRequestAttachment_ = value; - onChanged(); } else { revocationRequestAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -864,11 +975,11 @@ public Builder setRevocationRequestAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder builderForValue) { if (revocationRequestAttachmentBuilder_ == null) { revocationRequestAttachment_ = builderForValue.build(); - onChanged(); } else { revocationRequestAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -876,31 +987,33 @@ public Builder setRevocationRequestAttachment( */ public Builder mergeRevocationRequestAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment value) { if (revocationRequestAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - revocationRequestAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { - revocationRequestAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.newBuilder(revocationRequestAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + revocationRequestAttachment_ != null && + revocationRequestAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { + getRevocationRequestAttachmentBuilder().mergeFrom(value); } else { revocationRequestAttachment_ = value; } - onChanged(); } else { revocationRequestAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (revocationRequestAttachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment RevocationRequestAttachment = 2; */ public Builder clearRevocationRequestAttachment() { - if (revocationRequestAttachmentBuilder_ == null) { - revocationRequestAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - onChanged(); - } else { - revocationRequestAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + revocationRequestAttachment_ = null; + if (revocationRequestAttachmentBuilder_ != null) { + revocationRequestAttachmentBuilder_.dispose(); + revocationRequestAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -918,7 +1031,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRe if (revocationRequestAttachmentBuilder_ != null) { return revocationRequestAttachmentBuilder_.getMessageOrBuilder(); } else { - return revocationRequestAttachment_; + return revocationRequestAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : revocationRequestAttachment_; } } /** @@ -938,21 +1052,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getRe return revocationRequestAttachmentBuilder_; } - private Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow recipientSignatureDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow recipientSignatureDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow, Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.Builder, Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflowOrBuilder> recipientSignatureDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return Whether the recipientSignatureDocflow field is set. */ public boolean hasRecipientSignatureDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; + * @return The recipientSignatureDocflow. */ public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow getRecipientSignatureDocflow() { if (recipientSignatureDocflowBuilder_ == null) { - return recipientSignatureDocflow_; + return recipientSignatureDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance() : recipientSignatureDocflow_; } else { return recipientSignatureDocflowBuilder_.getMessage(); } @@ -966,11 +1082,11 @@ public Builder setRecipientSignatureDocflow(Diadoc.Api.Proto.Docflow.RecipientSi throw new NullPointerException(); } recipientSignatureDocflow_ = value; - onChanged(); } else { recipientSignatureDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -980,11 +1096,11 @@ public Builder setRecipientSignatureDocflow( Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.Builder builderForValue) { if (recipientSignatureDocflowBuilder_ == null) { recipientSignatureDocflow_ = builderForValue.build(); - onChanged(); } else { recipientSignatureDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -992,31 +1108,33 @@ public Builder setRecipientSignatureDocflow( */ public Builder mergeRecipientSignatureDocflow(Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow value) { if (recipientSignatureDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - recipientSignatureDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance()) { - recipientSignatureDocflow_ = - Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.newBuilder(recipientSignatureDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + recipientSignatureDocflow_ != null && + recipientSignatureDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance()) { + getRecipientSignatureDocflowBuilder().mergeFrom(value); } else { recipientSignatureDocflow_ = value; } - onChanged(); } else { recipientSignatureDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (recipientSignatureDocflow_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureDocflow RecipientSignatureDocflow = 3; */ public Builder clearRecipientSignatureDocflow() { - if (recipientSignatureDocflowBuilder_ == null) { - recipientSignatureDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance(); - onChanged(); - } else { - recipientSignatureDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + recipientSignatureDocflow_ = null; + if (recipientSignatureDocflowBuilder_ != null) { + recipientSignatureDocflowBuilder_.dispose(); + recipientSignatureDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1034,7 +1152,8 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatu if (recipientSignatureDocflowBuilder_ != null) { return recipientSignatureDocflowBuilder_.getMessageOrBuilder(); } else { - return recipientSignatureDocflow_; + return recipientSignatureDocflow_ == null ? + Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatureDocflow.getDefaultInstance() : recipientSignatureDocflow_; } } /** @@ -1054,21 +1173,23 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.RecipientSignatu return recipientSignatureDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflowOrBuilder> recipientSignatureRejectionDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ public boolean hasRecipientSignatureRejectionDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return The recipientSignatureRejectionDocflow. */ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow() { if (recipientSignatureRejectionDocflowBuilder_ == null) { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } else { return recipientSignatureRejectionDocflowBuilder_.getMessage(); } @@ -1082,11 +1203,11 @@ public Builder setRecipientSignatureRejectionDocflow(Diadoc.Api.Proto.Docflow.Re throw new NullPointerException(); } recipientSignatureRejectionDocflow_ = value; - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1096,11 +1217,11 @@ public Builder setRecipientSignatureRejectionDocflow( Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder builderForValue) { if (recipientSignatureRejectionDocflowBuilder_ == null) { recipientSignatureRejectionDocflow_ = builderForValue.build(); - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1108,31 +1229,33 @@ public Builder setRecipientSignatureRejectionDocflow( */ public Builder mergeRecipientSignatureRejectionDocflow(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow value) { if (recipientSignatureRejectionDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - recipientSignatureRejectionDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance()) { - recipientSignatureRejectionDocflow_ = - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.newBuilder(recipientSignatureRejectionDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + recipientSignatureRejectionDocflow_ != null && + recipientSignatureRejectionDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance()) { + getRecipientSignatureRejectionDocflowBuilder().mergeFrom(value); } else { recipientSignatureRejectionDocflow_ = value; } - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (recipientSignatureRejectionDocflow_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; */ public Builder clearRecipientSignatureRejectionDocflow() { - if (recipientSignatureRejectionDocflowBuilder_ == null) { - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - onChanged(); - } else { - recipientSignatureRejectionDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + recipientSignatureRejectionDocflow_ = null; + if (recipientSignatureRejectionDocflowBuilder_ != null) { + recipientSignatureRejectionDocflowBuilder_.dispose(); + recipientSignatureRejectionDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1150,7 +1273,8 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie if (recipientSignatureRejectionDocflowBuilder_ != null) { return recipientSignatureRejectionDocflowBuilder_.getMessageOrBuilder(); } else { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? + Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } } /** @@ -1173,12 +1297,14 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie private java.lang.Object initiatorBoxId_ = ""; /** * optional string InitiatorBoxId = 5; + * @return Whether the initiatorBoxId field is set. */ public boolean hasInitiatorBoxId() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string InitiatorBoxId = 5; + * @return The initiatorBoxId. */ public java.lang.String getInitiatorBoxId() { java.lang.Object ref = initiatorBoxId_; @@ -1196,6 +1322,7 @@ public java.lang.String getInitiatorBoxId() { } /** * optional string InitiatorBoxId = 5; + * @return The bytes for initiatorBoxId. */ public com.google.protobuf.ByteString getInitiatorBoxIdBytes() { @@ -1212,36 +1339,37 @@ public java.lang.String getInitiatorBoxId() { } /** * optional string InitiatorBoxId = 5; + * @param value The initiatorBoxId to set. + * @return This builder for chaining. */ public Builder setInitiatorBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } initiatorBoxId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string InitiatorBoxId = 5; + * @return This builder for chaining. */ public Builder clearInitiatorBoxId() { - bitField0_ = (bitField0_ & ~0x00000010); initiatorBoxId_ = getDefaultInstance().getInitiatorBoxId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string InitiatorBoxId = 5; + * @param value The bytes for initiatorBoxId to set. + * @return This builder for chaining. */ public Builder setInitiatorBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } initiatorBoxId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1249,27 +1377,35 @@ public Builder setInitiatorBoxIdBytes( private boolean isRevocationAccepted_ ; /** * optional bool IsRevocationAccepted = 6; + * @return Whether the isRevocationAccepted field is set. */ + @java.lang.Override public boolean hasIsRevocationAccepted() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsRevocationAccepted = 6; + * @return The isRevocationAccepted. */ + @java.lang.Override public boolean getIsRevocationAccepted() { return isRevocationAccepted_; } /** * optional bool IsRevocationAccepted = 6; + * @param value The isRevocationAccepted to set. + * @return This builder for chaining. */ public Builder setIsRevocationAccepted(boolean value) { - bitField0_ |= 0x00000020; + isRevocationAccepted_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional bool IsRevocationAccepted = 6; + * @return This builder for chaining. */ public Builder clearIsRevocationAccepted() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1281,27 +1417,35 @@ public Builder clearIsRevocationAccepted() { private boolean isRevocationRejected_ ; /** * optional bool IsRevocationRejected = 7; + * @return Whether the isRevocationRejected field is set. */ + @java.lang.Override public boolean hasIsRevocationRejected() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsRevocationRejected = 7; + * @return The isRevocationRejected. */ + @java.lang.Override public boolean getIsRevocationRejected() { return isRevocationRejected_; } /** * optional bool IsRevocationRejected = 7; + * @param value The isRevocationRejected to set. + * @return This builder for chaining. */ public Builder setIsRevocationRejected(boolean value) { - bitField0_ |= 0x00000040; + isRevocationRejected_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional bool IsRevocationRejected = 7; + * @return This builder for chaining. */ public Builder clearIsRevocationRejected() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1313,17 +1457,57 @@ public Builder clearIsRevocationRejected() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.RevocationDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RevocationDocflow) + private static final Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow DEFAULT_INSTANCE; static { - defaultInstance = new RevocationDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevocationDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.RevocationDocflowProtos.RevocationDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RevocationDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflow_fieldAccessorTable; @@ -1331,7 +1515,7 @@ public Builder clearIsRevocationRejected() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1339,40 +1523,33 @@ public Builder clearIsRevocationRejected() { "c.Api.Proto.Docflow\032\030Docflow/Attachment." + "proto\032\'Docflow/RecipientSignatureDocflow" + ".proto\0320Docflow/RecipientSignatureReject" + - "ionDocflow.proto\"\216\003\n\021RevocationDocflow\022\022" + + "ionDocflow.proto\"\222\003\n\021RevocationDocflow\022\022" + "\n\nIsFinished\030\001 \001(\010\022O\n\033RevocationRequestA" + "ttachment\030\002 \001(\0132*.Diadoc.Api.Proto.Docfl" + "ow.SignedAttachment\022V\n\031RecipientSignatur" + "eDocflow\030\003 \001(\01323.Diadoc.Api.Proto.Docflo" + - "w.RecipientSignatureDocflow\022h\n\"Recipient", + "w.RecipientSignatureDocflow\022h\n\"Recipient" + "SignatureRejectionDocflow\030\004 \001(\0132<.Diadoc" + ".Api.Proto.Docflow.RecipientSignatureRej" + "ectionDocflow\022\026\n\016InitiatorBoxId\030\005 \001(\t\022\034\n" + "\024IsRevocationAccepted\030\006 \001(\010\022\034\n\024IsRevocat" + - "ionRejected\030\007 \001(\010B\031B\027RevocationDocflowPr" + - "otos" + "ionRejected\030\007 \001(\010:\002\030\001B\034B\027RevocationDocfl" + + "owProtos\270\001\001" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_RevocationDocflow_descriptor, new java.lang.String[] { "IsFinished", "RevocationRequestAttachment", "RecipientSignatureDocflow", "RecipientSignatureRejectionDocflow", "InitiatorBoxId", "IsRevocationAccepted", "IsRevocationRejected", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.RecipientSignatureDocflowProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/RoamingNotificationProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/RoamingNotificationProtos.java index 006d64fa..712584eb 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/RoamingNotificationProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/RoamingNotificationProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/RoamingNotification.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class RoamingNotificationProtos { private RoamingNotificationProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RoamingNotificationProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface RoamingNotificationOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.RoamingNotification) @@ -14,10 +31,12 @@ public interface RoamingNotificationOrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.Entity Notification = 1; + * @return Whether the notification field is set. */ boolean hasNotification(); /** * required .Diadoc.Api.Proto.Docflow.Entity Notification = 1; + * @return The notification. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getNotification(); /** @@ -27,10 +46,12 @@ public interface RoamingNotificationOrBuilder extends /** * required bool IsSuccess = 2; + * @return Whether the isSuccess field is set. */ boolean hasIsSuccess(); /** * required bool IsSuccess = 2; + * @return The isSuccess. */ boolean getIsSuccess(); } @@ -41,86 +62,29 @@ public static final class RoamingNotification extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.RoamingNotification) RoamingNotificationOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RoamingNotification.class.getName()); + } // Use RoamingNotification.newBuilder() to construct. private RoamingNotification(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private RoamingNotification(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RoamingNotification defaultInstance; - public static RoamingNotification getDefaultInstance() { - return defaultInstance; } - - public RoamingNotification getDefaultInstanceForType() { - return defaultInstance; + private RoamingNotification() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RoamingNotification( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = notification_.toBuilder(); - } - notification_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notification_); - notification_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: { - bitField0_ |= 0x00000002; - isSuccess_ = input.readBool(); - 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.Docflow.RoamingNotificationProtos.internal_static_Diadoc_Api_Proto_Docflow_RoamingNotification_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.internal_static_Diadoc_Api_Proto_Docflow_RoamingNotification_fieldAccessorTable @@ -128,63 +92,54 @@ private RoamingNotification( Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.class, Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RoamingNotification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RoamingNotification(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int NOTIFICATION_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity notification_; /** * required .Diadoc.Api.Proto.Docflow.Entity Notification = 1; + * @return Whether the notification field is set. */ + @java.lang.Override public boolean hasNotification() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Notification = 1; + * @return The notification. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getNotification() { - return notification_; + return notification_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : notification_; } /** * required .Diadoc.Api.Proto.Docflow.Entity Notification = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getNotificationOrBuilder() { - return notification_; + return notification_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : notification_; } public static final int ISSUCCESS_FIELD_NUMBER = 2; - private boolean isSuccess_; + private boolean isSuccess_ = false; /** * required bool IsSuccess = 2; + * @return Whether the isSuccess field is set. */ + @java.lang.Override public boolean hasIsSuccess() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsSuccess = 2; + * @return The isSuccess. */ + @java.lang.Override public boolean getIsSuccess() { return isSuccess_; } - private void initFields() { - notification_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - isSuccess_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -206,44 +161,93 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, notification_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getNotification()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, isSuccess_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, notification_); + .computeMessageSize(1, getNotification()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isSuccess_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification other = (Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification) obj; + + if (hasNotification() != other.hasNotification()) return false; + if (hasNotification()) { + if (!getNotification() + .equals(other.getNotification())) return false; + } + if (hasIsSuccess() != other.hasIsSuccess()) return false; + if (hasIsSuccess()) { + if (getIsSuccess() + != other.getIsSuccess()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNotification()) { + hash = (37 * hash) + NOTIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getNotification().hashCode(); + } + if (hasIsSuccess()) { + hash = (37 * hash) + ISSUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsSuccess()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -267,42 +271,57 @@ public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotifica } public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -322,6 +341,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.internal_static_Diadoc_Api_Proto_Docflow_RoamingNotification_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.internal_static_Diadoc_Api_Proto_Docflow_RoamingNotification_fieldAccessorTable @@ -340,40 +360,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getNotificationFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (notificationBuilder_ == null) { - notification_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - notificationBuilder_.clear(); + bitField0_ = 0; + notification_ = null; + if (notificationBuilder_ != null) { + notificationBuilder_.dispose(); + notificationBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); isSuccess_ = false; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.internal_static_Diadoc_Api_Proto_Docflow_RoamingNotification_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification build() { Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification result = buildPartial(); if (!result.isInitialized()) { @@ -382,27 +398,31 @@ public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification bu return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification buildPartial() { Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification result = new Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.notification_ = notificationBuilder_ == null + ? notification_ + : notificationBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (notificationBuilder_ == null) { - result.notification_ = notification_; - } else { - result.notification_ = notificationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isSuccess_ = isSuccess_; to_bitField0_ |= 0x00000002; } - result.isSuccess_ = isSuccess_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification) { return mergeFrom((Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification)other); @@ -421,59 +441,86 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.Roam setIsSuccess(other.getIsSuccess()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasNotification()) { - return false; } if (!hasIsSuccess()) { - return false; } if (!getNotification().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getNotificationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isSuccess_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity notification_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity notification_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> notificationBuilder_; /** * required .Diadoc.Api.Proto.Docflow.Entity Notification = 1; + * @return Whether the notification field is set. */ public boolean hasNotification() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Notification = 1; + * @return The notification. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getNotification() { if (notificationBuilder_ == null) { - return notification_; + return notification_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : notification_; } else { return notificationBuilder_.getMessage(); } @@ -487,11 +534,11 @@ public Builder setNotification(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity throw new NullPointerException(); } notification_ = value; - onChanged(); } else { notificationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -501,11 +548,11 @@ public Builder setNotification( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (notificationBuilder_ == null) { notification_ = builderForValue.build(); - onChanged(); } else { notificationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -513,31 +560,33 @@ public Builder setNotification( */ public Builder mergeNotification(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (notificationBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - notification_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - notification_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(notification_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + notification_ != null && + notification_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getNotificationBuilder().mergeFrom(value); } else { notification_ = value; } - onChanged(); } else { notificationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (notification_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.Entity Notification = 1; */ public Builder clearNotification() { - if (notificationBuilder_ == null) { - notification_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - notificationBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + notification_ = null; + if (notificationBuilder_ != null) { + notificationBuilder_.dispose(); + notificationBuilder_ = null; + } + onChanged(); return this; } /** @@ -555,7 +604,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getNotification if (notificationBuilder_ != null) { return notificationBuilder_.getMessageOrBuilder(); } else { - return notification_; + return notification_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : notification_; } } /** @@ -578,27 +628,35 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getNotification private boolean isSuccess_ ; /** * required bool IsSuccess = 2; + * @return Whether the isSuccess field is set. */ + @java.lang.Override public boolean hasIsSuccess() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsSuccess = 2; + * @return The isSuccess. */ + @java.lang.Override public boolean getIsSuccess() { return isSuccess_; } /** * required bool IsSuccess = 2; + * @param value The isSuccess to set. + * @return This builder for chaining. */ public Builder setIsSuccess(boolean value) { - bitField0_ |= 0x00000002; + isSuccess_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool IsSuccess = 2; + * @return This builder for chaining. */ public Builder clearIsSuccess() { bitField0_ = (bitField0_ & ~0x00000002); @@ -610,17 +668,57 @@ public Builder clearIsSuccess() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.RoamingNotification) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RoamingNotification) + private static final Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification DEFAULT_INSTANCE; static { - defaultInstance = new RoamingNotification(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification(); + } + + public static Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoamingNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.RoamingNotificationProtos.RoamingNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.RoamingNotification) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_RoamingNotification_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_RoamingNotification_fieldAccessorTable; @@ -628,7 +726,7 @@ public Builder clearIsSuccess() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -639,25 +737,18 @@ public Builder clearIsSuccess() { "Entity\022\021\n\tIsSuccess\030\002 \002(\010B\033B\031RoamingNoti" + "ficationProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_RoamingNotification_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_RoamingNotification_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_RoamingNotification_descriptor, new java.lang.String[] { "Notification", "IsSuccess", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/SignaturePowerOfAttorneyProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/SignaturePowerOfAttorneyProtos.java index ac6ee86a..283fcb12 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/SignaturePowerOfAttorneyProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/SignaturePowerOfAttorneyProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/SignaturePowerOfAttorney.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; public final class SignaturePowerOfAttorneyProtos { private SignaturePowerOfAttorneyProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SignaturePowerOfAttorneyProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface SignaturePowerOfAttorneyOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney) @@ -14,10 +31,12 @@ public interface SignaturePowerOfAttorneyOrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ boolean hasEntity(); /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity(); /** @@ -27,10 +46,12 @@ public interface SignaturePowerOfAttorneyOrBuilder extends /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyFullId FullId = 2; + * @return Whether the fullId field is set. */ boolean hasFullId(); /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyFullId FullId = 2; + * @return The fullId. */ Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId getFullId(); /** @@ -40,10 +61,12 @@ public interface SignaturePowerOfAttorneyOrBuilder extends /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus Status = 3; + * @return Whether the status field is set. */ boolean hasStatus(); /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus Status = 3; + * @return The status. */ Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus getStatus(); /** @@ -77,10 +100,12 @@ Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusCha /** * optional .Diadoc.Api.Proto.RoamingSendingStatus RoamingSendingStatus = 5; + * @return Whether the roamingSendingStatus field is set. */ boolean hasRoamingSendingStatus(); /** * optional .Diadoc.Api.Proto.RoamingSendingStatus RoamingSendingStatus = 5; + * @return The roamingSendingStatus. */ Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus getRoamingSendingStatus(); /** @@ -90,10 +115,12 @@ Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusCha /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneySendingType SendingType = 6 [default = Unknown]; + * @return Whether the sendingType field is set. */ boolean hasSendingType(); /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneySendingType SendingType = 6 [default = Unknown]; + * @return The sendingType. */ Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType getSendingType(); } @@ -104,142 +131,31 @@ public static final class SignaturePowerOfAttorney extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney) SignaturePowerOfAttorneyOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SignaturePowerOfAttorney.class.getName()); + } // Use SignaturePowerOfAttorney.newBuilder() to construct. private SignaturePowerOfAttorney(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private SignaturePowerOfAttorney(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SignaturePowerOfAttorney defaultInstance; - public static SignaturePowerOfAttorney getDefaultInstance() { - return defaultInstance; - } - - public SignaturePowerOfAttorney getDefaultInstanceForType() { - return defaultInstance; + private SignaturePowerOfAttorney() { + statusChanges_ = java.util.Collections.emptyList(); + sendingType_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignaturePowerOfAttorney( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = entity_.toBuilder(); - } - entity_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = fullId_.toBuilder(); - } - fullId_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullId_); - fullId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - statusChanges_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - statusChanges_.add(input.readMessage(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange.PARSER, extensionRegistry)); - break; - } - case 42: { - Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = roamingSendingStatus_.toBuilder(); - } - roamingSendingStatus_ = input.readMessage(Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(roamingSendingStatus_); - roamingSendingStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 48: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType value = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - bitField0_ |= 0x00000010; - sendingType_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - statusChanges_ = java.util.Collections.unmodifiableList(statusChanges_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Docflow_SignaturePowerOfAttorney_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Docflow_SignaturePowerOfAttorney_fieldAccessorTable @@ -247,96 +163,99 @@ private SignaturePowerOfAttorney( Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.class, Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SignaturePowerOfAttorney parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignaturePowerOfAttorney(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ + @java.lang.Override public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuilder() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } public static final int FULLID_FIELD_NUMBER = 2; private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId fullId_; /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyFullId FullId = 2; + * @return Whether the fullId field is set. */ + @java.lang.Override public boolean hasFullId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyFullId FullId = 2; + * @return The fullId. */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId getFullId() { - return fullId_; + return fullId_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance() : fullId_; } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyFullId FullId = 2; */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullIdOrBuilder getFullIdOrBuilder() { - return fullId_; + return fullId_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance() : fullId_; } public static final int STATUS_FIELD_NUMBER = 3; private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus status_; /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus Status = 3; + * @return Whether the status field is set. */ + @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus Status = 3; + * @return The status. */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus getStatus() { - return status_; + return status_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : status_; } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus Status = 3; */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatusOrBuilder getStatusOrBuilder() { - return status_; + return status_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : status_; } public static final int STATUSCHANGES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List statusChanges_; /** * repeated .Diadoc.Api.Proto.Docflow.PowerOfAttorneyStatusChange StatusChanges = 4; */ + @java.lang.Override public java.util.List getStatusChangesList() { return statusChanges_; } /** * repeated .Diadoc.Api.Proto.Docflow.PowerOfAttorneyStatusChange StatusChanges = 4; */ + @java.lang.Override public java.util.List getStatusChangesOrBuilderList() { return statusChanges_; @@ -344,18 +263,21 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Docflow.PowerOfAttorneyStatusChange StatusChanges = 4; */ + @java.lang.Override public int getStatusChangesCount() { return statusChanges_.size(); } /** * repeated .Diadoc.Api.Proto.Docflow.PowerOfAttorneyStatusChange StatusChanges = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange getStatusChanges(int index) { return statusChanges_.get(index); } /** * repeated .Diadoc.Api.Proto.Docflow.PowerOfAttorneyStatusChange StatusChanges = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChangeOrBuilder getStatusChangesOrBuilder( int index) { return statusChanges_.get(index); @@ -365,47 +287,48 @@ public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneySt private Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus roamingSendingStatus_; /** * optional .Diadoc.Api.Proto.RoamingSendingStatus RoamingSendingStatus = 5; + * @return Whether the roamingSendingStatus field is set. */ + @java.lang.Override public boolean hasRoamingSendingStatus() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.RoamingSendingStatus RoamingSendingStatus = 5; + * @return The roamingSendingStatus. */ + @java.lang.Override public Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus getRoamingSendingStatus() { - return roamingSendingStatus_; + return roamingSendingStatus_ == null ? Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance() : roamingSendingStatus_; } /** * optional .Diadoc.Api.Proto.RoamingSendingStatus RoamingSendingStatus = 5; */ + @java.lang.Override public Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatusOrBuilder getRoamingSendingStatusOrBuilder() { - return roamingSendingStatus_; + return roamingSendingStatus_ == null ? Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance() : roamingSendingStatus_; } public static final int SENDINGTYPE_FIELD_NUMBER = 6; - private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType sendingType_; + private int sendingType_ = 0; /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneySendingType SendingType = 6 [default = Unknown]; + * @return Whether the sendingType field is set. */ - public boolean hasSendingType() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasSendingType() { + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneySendingType SendingType = 6 [default = Unknown]; + * @return The sendingType. */ - public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType getSendingType() { - return sendingType_; + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType getSendingType() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType result = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType.forNumber(sendingType_); + return result == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType.Unknown : result; } - private void initFields() { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - fullId_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance(); - status_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); - statusChanges_ = java.util.Collections.emptyList(); - roamingSendingStatus_ = Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance(); - sendingType_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType.Unknown; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -449,72 +372,152 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, entity_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, fullId_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getFullId()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, status_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getStatus()); } for (int i = 0; i < statusChanges_.size(); i++) { output.writeMessage(4, statusChanges_.get(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(5, roamingSendingStatus_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getRoamingSendingStatus()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(6, sendingType_.getNumber()); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(6, sendingType_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entity_); + .computeMessageSize(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, fullId_); + .computeMessageSize(2, getFullId()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, status_); + .computeMessageSize(3, getStatus()); } for (int i = 0; i < statusChanges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, statusChanges_.get(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, roamingSendingStatus_); + .computeMessageSize(5, getRoamingSendingStatus()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, sendingType_.getNumber()); + .computeEnumSize(6, sendingType_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney other = (Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney) obj; + + if (hasEntity() != other.hasEntity()) return false; + if (hasEntity()) { + if (!getEntity() + .equals(other.getEntity())) return false; + } + if (hasFullId() != other.hasFullId()) return false; + if (hasFullId()) { + if (!getFullId() + .equals(other.getFullId())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getStatusChangesList() + .equals(other.getStatusChangesList())) return false; + if (hasRoamingSendingStatus() != other.hasRoamingSendingStatus()) return false; + if (hasRoamingSendingStatus()) { + if (!getRoamingSendingStatus() + .equals(other.getRoamingSendingStatus())) return false; + } + if (hasSendingType() != other.hasSendingType()) return false; + if (hasSendingType()) { + if (sendingType_ != other.sendingType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + if (hasFullId()) { + hash = (37 * hash) + FULLID_FIELD_NUMBER; + hash = (53 * hash) + getFullId().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (getStatusChangesCount() > 0) { + hash = (37 * hash) + STATUSCHANGES_FIELD_NUMBER; + hash = (53 * hash) + getStatusChangesList().hashCode(); + } + if (hasRoamingSendingStatus()) { + hash = (37 * hash) + ROAMINGSENDINGSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getRoamingSendingStatus().hashCode(); + } + if (hasSendingType()) { + hash = (37 * hash) + SENDINGTYPE_FIELD_NUMBER; + hash = (53 * hash) + sendingType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -538,42 +541,57 @@ public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignatureP } public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -593,6 +611,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Docflow_SignaturePowerOfAttorney_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Docflow_SignaturePowerOfAttorney_fieldAccessorTable @@ -611,7 +630,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getEntityFieldBuilder(); getFullIdFieldBuilder(); getStatusFieldBuilder(); @@ -619,60 +639,53 @@ private void maybeForceBuilderInitialization() { getRoamingSendingStatusFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - entityBuilder_.clear(); + bitField0_ = 0; + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (fullIdBuilder_ == null) { - fullId_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance(); - } else { - fullIdBuilder_.clear(); + fullId_ = null; + if (fullIdBuilder_ != null) { + fullIdBuilder_.dispose(); + fullIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (statusBuilder_ == null) { - status_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); - } else { - statusBuilder_.clear(); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); if (statusChangesBuilder_ == null) { statusChanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); } else { + statusChanges_ = null; statusChangesBuilder_.clear(); } - if (roamingSendingStatusBuilder_ == null) { - roamingSendingStatus_ = Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance(); - } else { - roamingSendingStatusBuilder_.clear(); + bitField0_ = (bitField0_ & ~0x00000008); + roamingSendingStatus_ = null; + if (roamingSendingStatusBuilder_ != null) { + roamingSendingStatusBuilder_.dispose(); + roamingSendingStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); - sendingType_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType.Unknown; - bitField0_ = (bitField0_ & ~0x00000020); + sendingType_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Docflow_SignaturePowerOfAttorney_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney build() { Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney result = buildPartial(); if (!result.isInitialized()) { @@ -681,36 +694,18 @@ public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfA return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney buildPartial() { Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney result = new Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (fullIdBuilder_ == null) { - result.fullId_ = fullId_; - } else { - result.fullId_ = fullIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney result) { if (statusChangesBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { statusChanges_ = java.util.Collections.unmodifiableList(statusChanges_); bitField0_ = (bitField0_ & ~0x00000008); } @@ -718,23 +713,43 @@ public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfA } else { result.statusChanges_ = statusChangesBuilder_.build(); } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entity_ = entityBuilder_ == null + ? entity_ + : entityBuilder_.build(); + to_bitField0_ |= 0x00000001; } - if (roamingSendingStatusBuilder_ == null) { - result.roamingSendingStatus_ = roamingSendingStatus_; - } else { - result.roamingSendingStatus_ = roamingSendingStatusBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fullId_ = fullIdBuilder_ == null + ? fullId_ + : fullIdBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.roamingSendingStatus_ = roamingSendingStatusBuilder_ == null + ? roamingSendingStatus_ + : roamingSendingStatusBuilder_.build(); + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sendingType_ = sendingType_; to_bitField0_ |= 0x00000010; } - result.sendingType_ = sendingType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney) { return mergeFrom((Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney)other); @@ -788,81 +803,145 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos setSendingType(other.getSendingType()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasEntity()) { - return false; } if (!hasFullId()) { - return false; } if (!getEntity().isInitialized()) { - return false; } if (!getFullId().isInitialized()) { - return false; } if (hasStatus()) { if (!getStatus().isInitialized()) { - return false; } } for (int i = 0; i < getStatusChangesCount(); i++) { if (!getStatusChanges(i).isInitialized()) { - return false; } } if (hasRoamingSendingStatus()) { if (!getRoamingSendingStatus().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEntityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getFullIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange m = + input.readMessage( + Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange.parser(), + extensionRegistry); + if (statusChangesBuilder_ == null) { + ensureStatusChangesIsMutable(); + statusChanges_.add(m); + } else { + statusChangesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getRoamingSendingStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType tmpValue = + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + sendingType_ = tmpRaw; + bitField0_ |= 0x00000020; + } + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> entityBuilder_; /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { if (entityBuilder_ == null) { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } else { return entityBuilder_.getMessage(); } @@ -876,11 +955,11 @@ public Builder setEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) throw new NullPointerException(); } entity_ = value; - onChanged(); } else { entityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -890,11 +969,11 @@ public Builder setEntity( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); - onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -902,31 +981,33 @@ public Builder setEntity( */ public Builder mergeEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (entityBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - entity_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + entity_ != null && + entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getEntityBuilder().mergeFrom(value); } else { entity_ = value; } - onChanged(); } else { entityBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (entity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - entityBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; + } + onChanged(); return this; } /** @@ -944,7 +1025,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { - return entity_; + return entity_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } } /** @@ -964,21 +1046,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil return entityBuilder_; } - private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId fullId_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance(); + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId fullId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullIdOrBuilder> fullIdBuilder_; /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyFullId FullId = 2; + * @return Whether the fullId field is set. */ public boolean hasFullId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyFullId FullId = 2; + * @return The fullId. */ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId getFullId() { if (fullIdBuilder_ == null) { - return fullId_; + return fullId_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance() : fullId_; } else { return fullIdBuilder_.getMessage(); } @@ -992,11 +1076,11 @@ public Builder setFullId(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos throw new NullPointerException(); } fullId_ = value; - onChanged(); } else { fullIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1006,11 +1090,11 @@ public Builder setFullId( Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.Builder builderForValue) { if (fullIdBuilder_ == null) { fullId_ = builderForValue.build(); - onChanged(); } else { fullIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1018,31 +1102,33 @@ public Builder setFullId( */ public Builder mergeFullId(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId value) { if (fullIdBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - fullId_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance()) { - fullId_ = - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.newBuilder(fullId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + fullId_ != null && + fullId_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance()) { + getFullIdBuilder().mergeFrom(value); } else { fullId_ = value; } - onChanged(); } else { fullIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (fullId_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyFullId FullId = 2; */ public Builder clearFullId() { - if (fullIdBuilder_ == null) { - fullId_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance(); - onChanged(); - } else { - fullIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + fullId_ = null; + if (fullIdBuilder_ != null) { + fullIdBuilder_.dispose(); + fullIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -1060,7 +1146,8 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFu if (fullIdBuilder_ != null) { return fullIdBuilder_.getMessageOrBuilder(); } else { - return fullId_; + return fullId_ == null ? + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance() : fullId_; } } /** @@ -1080,21 +1167,23 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFu return fullIdBuilder_; } - private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus status_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus status_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatusOrBuilder> statusBuilder_; /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus Status = 3; + * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus Status = 3; + * @return The status. */ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus getStatus() { if (statusBuilder_ == null) { - return status_; + return status_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } @@ -1108,11 +1197,11 @@ public Builder setStatus(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValida throw new NullPointerException(); } status_ = value; - onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1122,11 +1211,11 @@ public Builder setStatus( Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); - onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1134,31 +1223,33 @@ public Builder setStatus( */ public Builder mergeStatus(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - status_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance()) { - status_ = - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + status_ != null && + status_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); } else { status_ = value; } - onChanged(); } else { statusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (status_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus Status = 3; */ public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); - onChanged(); - } else { - statusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); return this; } /** @@ -1176,7 +1267,8 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_; + return status_ == null ? + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : status_; } } /** @@ -1199,7 +1291,7 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf private java.util.List statusChanges_ = java.util.Collections.emptyList(); private void ensureStatusChangesIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { + if (!((bitField0_ & 0x00000008) != 0)) { statusChanges_ = new java.util.ArrayList(statusChanges_); bitField0_ |= 0x00000008; } @@ -1428,7 +1520,7 @@ public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneySt statusChangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange, Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange.Builder, Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChangeOrBuilder>( statusChanges_, - ((bitField0_ & 0x00000008) == 0x00000008), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); statusChanges_ = null; @@ -1436,21 +1528,23 @@ public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneySt return statusChangesBuilder_; } - private Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus roamingSendingStatus_ = Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance(); + private Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus roamingSendingStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus, Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.Builder, Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatusOrBuilder> roamingSendingStatusBuilder_; /** * optional .Diadoc.Api.Proto.RoamingSendingStatus RoamingSendingStatus = 5; + * @return Whether the roamingSendingStatus field is set. */ public boolean hasRoamingSendingStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.RoamingSendingStatus RoamingSendingStatus = 5; + * @return The roamingSendingStatus. */ public Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus getRoamingSendingStatus() { if (roamingSendingStatusBuilder_ == null) { - return roamingSendingStatus_; + return roamingSendingStatus_ == null ? Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance() : roamingSendingStatus_; } else { return roamingSendingStatusBuilder_.getMessage(); } @@ -1464,11 +1558,11 @@ public Builder setRoamingSendingStatus(Diadoc.Api.Proto.RoamingSendingStatusProt throw new NullPointerException(); } roamingSendingStatus_ = value; - onChanged(); } else { roamingSendingStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1478,11 +1572,11 @@ public Builder setRoamingSendingStatus( Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.Builder builderForValue) { if (roamingSendingStatusBuilder_ == null) { roamingSendingStatus_ = builderForValue.build(); - onChanged(); } else { roamingSendingStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1490,31 +1584,33 @@ public Builder setRoamingSendingStatus( */ public Builder mergeRoamingSendingStatus(Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus value) { if (roamingSendingStatusBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - roamingSendingStatus_ != Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance()) { - roamingSendingStatus_ = - Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.newBuilder(roamingSendingStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + roamingSendingStatus_ != null && + roamingSendingStatus_ != Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance()) { + getRoamingSendingStatusBuilder().mergeFrom(value); } else { roamingSendingStatus_ = value; } - onChanged(); } else { roamingSendingStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (roamingSendingStatus_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.RoamingSendingStatus RoamingSendingStatus = 5; */ public Builder clearRoamingSendingStatus() { - if (roamingSendingStatusBuilder_ == null) { - roamingSendingStatus_ = Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance(); - onChanged(); - } else { - roamingSendingStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + roamingSendingStatus_ = null; + if (roamingSendingStatusBuilder_ != null) { + roamingSendingStatusBuilder_.dispose(); + roamingSendingStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -1532,7 +1628,8 @@ public Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatusOrBuilder if (roamingSendingStatusBuilder_ != null) { return roamingSendingStatusBuilder_.getMessageOrBuilder(); } else { - return roamingSendingStatus_; + return roamingSendingStatus_ == null ? + Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance() : roamingSendingStatus_; } } /** @@ -1552,37 +1649,44 @@ public Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatusOrBuilder return roamingSendingStatusBuilder_; } - private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType sendingType_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType.Unknown; + private int sendingType_ = 0; /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneySendingType SendingType = 6 [default = Unknown]; + * @return Whether the sendingType field is set. */ - public boolean hasSendingType() { - return ((bitField0_ & 0x00000020) == 0x00000020); + @java.lang.Override public boolean hasSendingType() { + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneySendingType SendingType = 6 [default = Unknown]; + * @return The sendingType. */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType getSendingType() { - return sendingType_; + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType result = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType.forNumber(sendingType_); + return result == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType.Unknown : result; } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneySendingType SendingType = 6 [default = Unknown]; + * @param value The sendingType to set. + * @return This builder for chaining. */ public Builder setSendingType(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; - sendingType_ = value; + sendingType_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneySendingType SendingType = 6 [default = Unknown]; + * @return This builder for chaining. */ public Builder clearSendingType() { bitField0_ = (bitField0_ & ~0x00000020); - sendingType_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneySendingType.Unknown; + sendingType_ = 0; onChanged(); return this; } @@ -1590,12 +1694,52 @@ public Builder clearSendingType() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney) + private static final Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney DEFAULT_INSTANCE; static { - defaultInstance = new SignaturePowerOfAttorney(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney(); + } + + public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignaturePowerOfAttorney parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.SignaturePowerOfAttorney getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorney) } public interface PowerOfAttorneyStatusChangeOrBuilder extends @@ -1604,10 +1748,12 @@ public interface PowerOfAttorneyStatusChangeOrBuilder extends /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ boolean hasEntity(); /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity(); /** @@ -1617,10 +1763,12 @@ public interface PowerOfAttorneyStatusChangeOrBuilder extends /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyStatus = 2; + * @return Whether the powerOfAttorneyStatus field is set. */ boolean hasPowerOfAttorneyStatus(); /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyStatus = 2; + * @return The powerOfAttorneyStatus. */ Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus getPowerOfAttorneyStatus(); /** @@ -1635,94 +1783,29 @@ public static final class PowerOfAttorneyStatusChange extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.PowerOfAttorneyStatusChange) PowerOfAttorneyStatusChangeOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + PowerOfAttorneyStatusChange.class.getName()); + } // Use PowerOfAttorneyStatusChange.newBuilder() to construct. private PowerOfAttorneyStatusChange(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private PowerOfAttorneyStatusChange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final PowerOfAttorneyStatusChange defaultInstance; - public static PowerOfAttorneyStatusChange getDefaultInstance() { - return defaultInstance; } - - public PowerOfAttorneyStatusChange getDefaultInstanceForType() { - return defaultInstance; + private PowerOfAttorneyStatusChange() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PowerOfAttorneyStatusChange( - 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: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = entity_.toBuilder(); - } - entity_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = powerOfAttorneyStatus_.toBuilder(); - } - powerOfAttorneyStatus_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(powerOfAttorneyStatus_); - powerOfAttorneyStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyStatusChange_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyStatusChange_fieldAccessorTable @@ -1730,69 +1813,61 @@ private PowerOfAttorneyStatusChange( Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange.class, Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PowerOfAttorneyStatusChange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PowerOfAttorneyStatusChange(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ + @java.lang.Override public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuilder() { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } public static final int POWEROFATTORNEYSTATUS_FIELD_NUMBER = 2; private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus powerOfAttorneyStatus_; /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyStatus = 2; + * @return Whether the powerOfAttorneyStatus field is set. */ + @java.lang.Override public boolean hasPowerOfAttorneyStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyStatus = 2; + * @return The powerOfAttorneyStatus. */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus getPowerOfAttorneyStatus() { - return powerOfAttorneyStatus_; + return powerOfAttorneyStatus_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : powerOfAttorneyStatus_; } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyStatus = 2; */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatusOrBuilder getPowerOfAttorneyStatusOrBuilder() { - return powerOfAttorneyStatus_; + return powerOfAttorneyStatus_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : powerOfAttorneyStatus_; } - private void initFields() { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - powerOfAttorneyStatus_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1818,44 +1893,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, entity_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, powerOfAttorneyStatus_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPowerOfAttorneyStatus()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entity_); + .computeMessageSize(1, getEntity()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, powerOfAttorneyStatus_); + .computeMessageSize(2, getPowerOfAttorneyStatus()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange other = (Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange) obj; + + if (hasEntity() != other.hasEntity()) return false; + if (hasEntity()) { + if (!getEntity() + .equals(other.getEntity())) return false; + } + if (hasPowerOfAttorneyStatus() != other.hasPowerOfAttorneyStatus()) return false; + if (hasPowerOfAttorneyStatus()) { + if (!getPowerOfAttorneyStatus() + .equals(other.getPowerOfAttorneyStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + if (hasPowerOfAttorneyStatus()) { + hash = (37 * hash) + POWEROFATTORNEYSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getPowerOfAttorneyStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1879,42 +2002,57 @@ public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAtt } public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1934,6 +2072,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyStatusChange_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyStatusChange_fieldAccessorTable @@ -1952,45 +2091,41 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getEntityFieldBuilder(); getPowerOfAttorneyStatusFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - } else { - entityBuilder_.clear(); + bitField0_ = 0; + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (powerOfAttorneyStatusBuilder_ == null) { - powerOfAttorneyStatus_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); - } else { - powerOfAttorneyStatusBuilder_.clear(); + powerOfAttorneyStatus_ = null; + if (powerOfAttorneyStatusBuilder_ != null) { + powerOfAttorneyStatusBuilder_.dispose(); + powerOfAttorneyStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyStatusChange_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange build() { Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange result = buildPartial(); if (!result.isInitialized()) { @@ -1999,31 +2134,33 @@ public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneySt return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange buildPartial() { Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange result = new Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entity_ = entityBuilder_ == null + ? entity_ + : entityBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.powerOfAttorneyStatus_ = powerOfAttorneyStatusBuilder_ == null + ? powerOfAttorneyStatus_ + : powerOfAttorneyStatusBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (powerOfAttorneyStatusBuilder_ == null) { - result.powerOfAttorneyStatus_ = powerOfAttorneyStatus_; - } else { - result.powerOfAttorneyStatus_ = powerOfAttorneyStatusBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange) { return mergeFrom((Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange)other); @@ -2042,63 +2179,91 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos mergePowerOfAttorneyStatus(other.getPowerOfAttorneyStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasEntity()) { - return false; } if (!hasPowerOfAttorneyStatus()) { - return false; } if (!getEntity().isInitialized()) { - return false; } if (!getPowerOfAttorneyStatus().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEntityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPowerOfAttorneyStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity entity_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity, Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder> entityBuilder_; /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return Whether the entity field is set. */ public boolean hasEntity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; + * @return The entity. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity getEntity() { if (entityBuilder_ == null) { - return entity_; + return entity_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } else { return entityBuilder_.getMessage(); } @@ -2112,11 +2277,11 @@ public Builder setEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) throw new NullPointerException(); } entity_ = value; - onChanged(); } else { entityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2126,11 +2291,11 @@ public Builder setEntity( Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); - onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2138,31 +2303,33 @@ public Builder setEntity( */ public Builder mergeEntity(Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity value) { if (entityBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { - entity_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + entity_ != null && + entity_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance()) { + getEntityBuilder().mergeFrom(value); } else { entity_ = value; } - onChanged(); } else { entityBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (entity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Docflow.Entity Entity = 1; */ public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance(); - onChanged(); - } else { - entityBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + entity_ = null; + if (entityBuilder_ != null) { + entityBuilder_.dispose(); + entityBuilder_ = null; + } + onChanged(); return this; } /** @@ -2180,7 +2347,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { - return entity_; + return entity_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.Entity.getDefaultInstance() : entity_; } } /** @@ -2200,21 +2368,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.EntityOrBuilder getEntityOrBuil return entityBuilder_; } - private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus powerOfAttorneyStatus_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus powerOfAttorneyStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatusOrBuilder> powerOfAttorneyStatusBuilder_; /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyStatus = 2; + * @return Whether the powerOfAttorneyStatus field is set. */ public boolean hasPowerOfAttorneyStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyStatus = 2; + * @return The powerOfAttorneyStatus. */ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus getPowerOfAttorneyStatus() { if (powerOfAttorneyStatusBuilder_ == null) { - return powerOfAttorneyStatus_; + return powerOfAttorneyStatus_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : powerOfAttorneyStatus_; } else { return powerOfAttorneyStatusBuilder_.getMessage(); } @@ -2228,11 +2398,11 @@ public Builder setPowerOfAttorneyStatus(Diadoc.Api.Proto.PowersOfAttorney.PowerO throw new NullPointerException(); } powerOfAttorneyStatus_ = value; - onChanged(); } else { powerOfAttorneyStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2242,11 +2412,11 @@ public Builder setPowerOfAttorneyStatus( Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.Builder builderForValue) { if (powerOfAttorneyStatusBuilder_ == null) { powerOfAttorneyStatus_ = builderForValue.build(); - onChanged(); } else { powerOfAttorneyStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2254,31 +2424,33 @@ public Builder setPowerOfAttorneyStatus( */ public Builder mergePowerOfAttorneyStatus(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus value) { if (powerOfAttorneyStatusBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - powerOfAttorneyStatus_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance()) { - powerOfAttorneyStatus_ = - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.newBuilder(powerOfAttorneyStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + powerOfAttorneyStatus_ != null && + powerOfAttorneyStatus_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance()) { + getPowerOfAttorneyStatusBuilder().mergeFrom(value); } else { powerOfAttorneyStatus_ = value; } - onChanged(); } else { powerOfAttorneyStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (powerOfAttorneyStatus_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyStatus = 2; */ public Builder clearPowerOfAttorneyStatus() { - if (powerOfAttorneyStatusBuilder_ == null) { - powerOfAttorneyStatus_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); - onChanged(); - } else { - powerOfAttorneyStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + powerOfAttorneyStatus_ = null; + if (powerOfAttorneyStatusBuilder_ != null) { + powerOfAttorneyStatusBuilder_.dispose(); + powerOfAttorneyStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -2296,7 +2468,8 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf if (powerOfAttorneyStatusBuilder_ != null) { return powerOfAttorneyStatusBuilder_.getMessageOrBuilder(); } else { - return powerOfAttorneyStatus_; + return powerOfAttorneyStatus_ == null ? + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : powerOfAttorneyStatus_; } } /** @@ -2319,22 +2492,62 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.PowerOfAttorneyStatusChange) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.PowerOfAttorneyStatusChange) + private static final Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange DEFAULT_INSTANCE; static { - defaultInstance = new PowerOfAttorneyStatusChange(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange(); + } + + public static Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PowerOfAttorneyStatusChange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.SignaturePowerOfAttorneyProtos.PowerOfAttorneyStatusChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.PowerOfAttorneyStatusChange) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_SignaturePowerOfAttorney_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_SignaturePowerOfAttorney_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyStatusChange_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyStatusChange_fieldAccessorTable; @@ -2342,7 +2555,7 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -2355,7 +2568,7 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf "0\n\006Entity\030\001 \002(\0132 .Diadoc.Api.Proto.Docfl" + "ow.Entity\022H\n\006FullId\030\002 \002(\01328.Diadoc.Api.P" + "roto.PowersOfAttorney.PowerOfAttorneyFul" + - "lId\022R\n\006Status\030\003 \001(\0132B.Diadoc.Api.Proto.P", + "lId\022R\n\006Status\030\003 \001(\0132B.Diadoc.Api.Proto.P" + "owersOfAttorney.PowerOfAttorneyValidatio" + "nStatus\022L\n\rStatusChanges\030\004 \003(\01325.Diadoc." + "Api.Proto.Docflow.PowerOfAttorneyStatusC" + @@ -2365,27 +2578,19 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf "rsOfAttorney.PowerOfAttorneySendingType:" + "\007Unknown\"\262\001\n\033PowerOfAttorneyStatusChange" + "\0220\n\006Entity\030\001 \002(\0132 .Diadoc.Api.Proto.Docf" + - "low.Entity\022a\n\025PowerOfAttorneyStatus\030\002 \002(", + "low.Entity\022a\n\025PowerOfAttorneyStatus\030\002 \002(" + "\0132B.Diadoc.Api.Proto.PowersOfAttorney.Po" + "werOfAttorneyValidationStatusB B\036Signatu" + "rePowerOfAttorneyProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.getDescriptor(), Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), Diadoc.Api.Proto.RoamingSendingStatusProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_SignaturePowerOfAttorney_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_SignaturePowerOfAttorney_fieldAccessorTable = new @@ -2398,6 +2603,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_PowerOfAttorneyStatusChange_descriptor, new java.lang.String[] { "Entity", "PowerOfAttorneyStatus", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.getDescriptor(); Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/UnilateralDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/UnilateralDocflowProtos.java index 8b6b7f88..1003dedf 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/UnilateralDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/UnilateralDocflowProtos.java @@ -1,32 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/UnilateralDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; -public final class UnilateralDocflowProtos { +@java.lang.Deprecated public final class UnilateralDocflowProtos { private UnilateralDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UnilateralDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface UnilateralDocflowOrBuilder extends + @java.lang.Deprecated public interface UnilateralDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.UnilateralDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ boolean hasReceiptDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow(); /** @@ -36,133 +57,67 @@ public interface UnilateralDocflowOrBuilder extends /** * optional bool IsReceiptRequested = 3; + * @return Whether the isReceiptRequested field is set. */ boolean hasIsReceiptRequested(); /** * optional bool IsReceiptRequested = 3; + * @return The isReceiptRequested. */ boolean getIsReceiptRequested(); /** * optional bool CanDocumentBeReceipted = 4; + * @return Whether the canDocumentBeReceipted field is set. */ boolean hasCanDocumentBeReceipted(); /** * optional bool CanDocumentBeReceipted = 4; + * @return The canDocumentBeReceipted. */ boolean getCanDocumentBeReceipted(); /** * optional bool CanDocumentBeSignedBySender = 5; + * @return Whether the canDocumentBeSignedBySender field is set. */ boolean hasCanDocumentBeSignedBySender(); /** * optional bool CanDocumentBeSignedBySender = 5; + * @return The canDocumentBeSignedBySender. */ boolean getCanDocumentBeSignedBySender(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.UnilateralDocflow} */ - public static final class UnilateralDocflow extends + @java.lang.Deprecated public static final class UnilateralDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.UnilateralDocflow) UnilateralDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UnilateralDocflow.class.getName()); + } // Use UnilateralDocflow.newBuilder() to construct. private UnilateralDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private UnilateralDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final UnilateralDocflow defaultInstance; - public static UnilateralDocflow getDefaultInstance() { - return defaultInstance; + private UnilateralDocflow() { } - public UnilateralDocflow getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnilateralDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = receiptDocflow_.toBuilder(); - } - receiptDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptDocflow_); - receiptDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 24: { - bitField0_ |= 0x00000004; - isReceiptRequested_ = input.readBool(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - canDocumentBeReceipted_ = input.readBool(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - canDocumentBeSignedBySender_ = input.readBool(); - 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.Docflow.UnilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_UnilateralDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_UnilateralDocflow_fieldAccessorTable @@ -170,33 +125,22 @@ private UnilateralDocflow( Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.class, Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UnilateralDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnilateralDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -205,76 +149,87 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ + @java.lang.Override public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder getReceiptDocflowOrBuilder() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } public static final int ISRECEIPTREQUESTED_FIELD_NUMBER = 3; - private boolean isReceiptRequested_; + private boolean isReceiptRequested_ = false; /** * optional bool IsReceiptRequested = 3; + * @return Whether the isReceiptRequested field is set. */ + @java.lang.Override public boolean hasIsReceiptRequested() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool IsReceiptRequested = 3; + * @return The isReceiptRequested. */ + @java.lang.Override public boolean getIsReceiptRequested() { return isReceiptRequested_; } public static final int CANDOCUMENTBERECEIPTED_FIELD_NUMBER = 4; - private boolean canDocumentBeReceipted_; + private boolean canDocumentBeReceipted_ = false; /** * optional bool CanDocumentBeReceipted = 4; + * @return Whether the canDocumentBeReceipted field is set. */ + @java.lang.Override public boolean hasCanDocumentBeReceipted() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bool CanDocumentBeReceipted = 4; + * @return The canDocumentBeReceipted. */ + @java.lang.Override public boolean getCanDocumentBeReceipted() { return canDocumentBeReceipted_; } public static final int CANDOCUMENTBESIGNEDBYSENDER_FIELD_NUMBER = 5; - private boolean canDocumentBeSignedBySender_; + private boolean canDocumentBeSignedBySender_ = false; /** * optional bool CanDocumentBeSignedBySender = 5; + * @return Whether the canDocumentBeSignedBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedBySender() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool CanDocumentBeSignedBySender = 5; + * @return The canDocumentBeSignedBySender. */ + @java.lang.Override public boolean getCanDocumentBeSignedBySender() { return canDocumentBeSignedBySender_; } - private void initFields() { - isFinished_ = false; - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - isReceiptRequested_ = false; - canDocumentBeReceipted_ = false; - canDocumentBeSignedBySender_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -290,65 +245,144 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, receiptDocflow_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, isReceiptRequested_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, canDocumentBeReceipted_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, canDocumentBeSignedBySender_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receiptDocflow_); + .computeMessageSize(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isReceiptRequested_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, canDocumentBeReceipted_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, canDocumentBeSignedBySender_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow other = (Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasReceiptDocflow() != other.hasReceiptDocflow()) return false; + if (hasReceiptDocflow()) { + if (!getReceiptDocflow() + .equals(other.getReceiptDocflow())) return false; + } + if (hasIsReceiptRequested() != other.hasIsReceiptRequested()) return false; + if (hasIsReceiptRequested()) { + if (getIsReceiptRequested() + != other.getIsReceiptRequested()) return false; + } + if (hasCanDocumentBeReceipted() != other.hasCanDocumentBeReceipted()) return false; + if (hasCanDocumentBeReceipted()) { + if (getCanDocumentBeReceipted() + != other.getCanDocumentBeReceipted()) return false; + } + if (hasCanDocumentBeSignedBySender() != other.hasCanDocumentBeSignedBySender()) return false; + if (hasCanDocumentBeSignedBySender()) { + if (getCanDocumentBeSignedBySender() + != other.getCanDocumentBeSignedBySender()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasReceiptDocflow()) { + hash = (37 * hash) + RECEIPTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getReceiptDocflow().hashCode(); + } + if (hasIsReceiptRequested()) { + hash = (37 * hash) + ISRECEIPTREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsReceiptRequested()); + } + if (hasCanDocumentBeReceipted()) { + hash = (37 * hash) + CANDOCUMENTBERECEIPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeReceipted()); + } + if (hasCanDocumentBeSignedBySender()) { + hash = (37 * hash) + CANDOCUMENTBESIGNEDBYSENDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeSignedBySender()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -372,42 +406,57 @@ public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow } public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -427,6 +476,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_UnilateralDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_UnilateralDocflow_fieldAccessorTable @@ -445,46 +495,39 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getReceiptDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - } else { - receiptDocflowBuilder_.clear(); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); isReceiptRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000004); canDocumentBeReceipted_ = false; - bitField0_ = (bitField0_ & ~0x00000008); canDocumentBeSignedBySender_ = false; - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_UnilateralDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow build() { Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -493,39 +536,43 @@ public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow buildPartial() { Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow result = new Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptDocflow_ = receiptDocflowBuilder_ == null + ? receiptDocflow_ + : receiptDocflowBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (receiptDocflowBuilder_ == null) { - result.receiptDocflow_ = receiptDocflow_; - } else { - result.receiptDocflow_ = receiptDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isReceiptRequested_ = isReceiptRequested_; to_bitField0_ |= 0x00000004; } - result.isReceiptRequested_ = isReceiptRequested_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.canDocumentBeReceipted_ = canDocumentBeReceipted_; to_bitField0_ |= 0x00000008; } - result.canDocumentBeReceipted_ = canDocumentBeReceipted_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.canDocumentBeSignedBySender_ = canDocumentBeSignedBySender_; to_bitField0_ |= 0x00000010; } - result.canDocumentBeSignedBySender_ = canDocumentBeSignedBySender_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow)other); @@ -553,34 +600,76 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.Unilat setCanDocumentBeSignedBySender(other.getCanDocumentBeSignedBySender()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasReceiptDocflow()) { if (!getReceiptDocflow().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getReceiptDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + isReceiptRequested_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + canDocumentBeReceipted_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + canDocumentBeSignedBySender_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -588,27 +677,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -617,21 +714,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder> receiptDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { if (receiptDocflowBuilder_ == null) { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } else { return receiptDocflowBuilder_.getMessage(); } @@ -645,11 +744,11 @@ public Builder setReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.R throw new NullPointerException(); } receiptDocflow_ = value; - onChanged(); } else { receiptDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -659,11 +758,11 @@ public Builder setReceiptDocflow( Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder builderForValue) { if (receiptDocflowBuilder_ == null) { receiptDocflow_ = builderForValue.build(); - onChanged(); } else { receiptDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -671,31 +770,33 @@ public Builder setReceiptDocflow( */ public Builder mergeReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow value) { if (receiptDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { - receiptDocflow_ = - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.newBuilder(receiptDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + receiptDocflow_ != null && + receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { + getReceiptDocflowBuilder().mergeFrom(value); } else { receiptDocflow_ = value; } - onChanged(); } else { receiptDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (receiptDocflow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; */ public Builder clearReceiptDocflow() { - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - onChanged(); - } else { - receiptDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -713,7 +814,8 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get if (receiptDocflowBuilder_ != null) { return receiptDocflowBuilder_.getMessageOrBuilder(); } else { - return receiptDocflow_; + return receiptDocflow_ == null ? + Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } } /** @@ -736,27 +838,35 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get private boolean isReceiptRequested_ ; /** * optional bool IsReceiptRequested = 3; + * @return Whether the isReceiptRequested field is set. */ + @java.lang.Override public boolean hasIsReceiptRequested() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool IsReceiptRequested = 3; + * @return The isReceiptRequested. */ + @java.lang.Override public boolean getIsReceiptRequested() { return isReceiptRequested_; } /** * optional bool IsReceiptRequested = 3; + * @param value The isReceiptRequested to set. + * @return This builder for chaining. */ public Builder setIsReceiptRequested(boolean value) { - bitField0_ |= 0x00000004; + isReceiptRequested_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional bool IsReceiptRequested = 3; + * @return This builder for chaining. */ public Builder clearIsReceiptRequested() { bitField0_ = (bitField0_ & ~0x00000004); @@ -768,27 +878,35 @@ public Builder clearIsReceiptRequested() { private boolean canDocumentBeReceipted_ ; /** * optional bool CanDocumentBeReceipted = 4; + * @return Whether the canDocumentBeReceipted field is set. */ + @java.lang.Override public boolean hasCanDocumentBeReceipted() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bool CanDocumentBeReceipted = 4; + * @return The canDocumentBeReceipted. */ + @java.lang.Override public boolean getCanDocumentBeReceipted() { return canDocumentBeReceipted_; } /** * optional bool CanDocumentBeReceipted = 4; + * @param value The canDocumentBeReceipted to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeReceipted(boolean value) { - bitField0_ |= 0x00000008; + canDocumentBeReceipted_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional bool CanDocumentBeReceipted = 4; + * @return This builder for chaining. */ public Builder clearCanDocumentBeReceipted() { bitField0_ = (bitField0_ & ~0x00000008); @@ -800,27 +918,35 @@ public Builder clearCanDocumentBeReceipted() { private boolean canDocumentBeSignedBySender_ ; /** * optional bool CanDocumentBeSignedBySender = 5; + * @return Whether the canDocumentBeSignedBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedBySender() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool CanDocumentBeSignedBySender = 5; + * @return The canDocumentBeSignedBySender. */ + @java.lang.Override public boolean getCanDocumentBeSignedBySender() { return canDocumentBeSignedBySender_; } /** * optional bool CanDocumentBeSignedBySender = 5; + * @param value The canDocumentBeSignedBySender to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeSignedBySender(boolean value) { - bitField0_ |= 0x00000010; + canDocumentBeSignedBySender_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional bool CanDocumentBeSignedBySender = 5; + * @return This builder for chaining. */ public Builder clearCanDocumentBeSignedBySender() { bitField0_ = (bitField0_ & ~0x00000010); @@ -832,17 +958,57 @@ public Builder clearCanDocumentBeSignedBySender() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.UnilateralDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.UnilateralDocflow) + private static final Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow DEFAULT_INSTANCE; static { - defaultInstance = new UnilateralDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnilateralDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.UnilateralDocflowProtos.UnilateralDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.UnilateralDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_UnilateralDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_UnilateralDocflow_fieldAccessorTable; @@ -850,39 +1016,32 @@ public Builder clearCanDocumentBeSignedBySender() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\037Docflow/UnilateralDocflow.proto\022\030Diado" + "c.Api.Proto.Docflow\032\034Docflow/ReceiptDocf" + - "low.proto\"\312\001\n\021UnilateralDocflow\022\022\n\nIsFin" + + "low.proto\"\316\001\n\021UnilateralDocflow\022\022\n\nIsFin" + "ished\030\001 \001(\010\022@\n\016ReceiptDocflow\030\002 \001(\0132(.Di" + "adoc.Api.Proto.Docflow.ReceiptDocflow\022\032\n" + "\022IsReceiptRequested\030\003 \001(\010\022\036\n\026CanDocument" + "BeReceipted\030\004 \001(\010\022#\n\033CanDocumentBeSigned" + - "BySender\030\005 \001(\010B\031B\027UnilateralDocflowProto" + - "s" + "BySender\030\005 \001(\010:\002\030\001B\034B\027UnilateralDocflowP" + + "rotos\270\001\001" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_UnilateralDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_UnilateralDocflow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_UnilateralDocflow_descriptor, new java.lang.String[] { "IsFinished", "ReceiptDocflow", "IsReceiptRequested", "CanDocumentBeReceipted", "CanDocumentBeSignedBySender", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/UniversalTransferDocumentDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/UniversalTransferDocumentDocflowProtos.java index 31c04d0e..8956afa0 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/UniversalTransferDocumentDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/UniversalTransferDocumentDocflowProtos.java @@ -1,32 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/UniversalTransferDocumentDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; -public final class UniversalTransferDocumentDocflowProtos { +@java.lang.Deprecated public final class UniversalTransferDocumentDocflowProtos { private UniversalTransferDocumentDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UniversalTransferDocumentDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface InboundUniversalTransferDocumentDocflowOrBuilder extends + @java.lang.Deprecated public interface InboundUniversalTransferDocumentDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ boolean hasReceiptDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow getReceiptDocflow(); /** @@ -36,10 +57,12 @@ public interface InboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ boolean hasConfirmationDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow(); /** @@ -49,10 +72,12 @@ public interface InboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ boolean hasCorrectionRequestDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow(); /** @@ -62,10 +87,12 @@ public interface InboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ boolean hasConfirmationTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp(); /** @@ -75,37 +102,45 @@ public interface InboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ boolean hasIsAmendmentRequested(); /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ boolean getIsAmendmentRequested(); /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ boolean hasIsRevised(); /** * optional bool IsRevised = 7; + * @return The isRevised. */ boolean getIsRevised(); /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ boolean hasIsCorrected(); /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ boolean getIsCorrected(); /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 9; + * @return Whether the buyerTitleDocflow field is set. */ boolean hasBuyerTitleDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 9; + * @return The buyerTitleDocflow. */ Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getBuyerTitleDocflow(); /** @@ -115,10 +150,12 @@ public interface InboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 10; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ boolean hasRecipientSignatureRejectionDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 10; + * @return The recipientSignatureRejectionDocflow. */ Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow(); /** @@ -128,255 +165,100 @@ public interface InboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional bool IsReceiptRequested = 11; + * @return Whether the isReceiptRequested field is set. */ boolean hasIsReceiptRequested(); /** * optional bool IsReceiptRequested = 11; + * @return The isReceiptRequested. */ boolean getIsReceiptRequested(); /** * optional bool IsRecipientSignatureRequested = 12; + * @return Whether the isRecipientSignatureRequested field is set. */ boolean hasIsRecipientSignatureRequested(); /** * optional bool IsRecipientSignatureRequested = 12; + * @return The isRecipientSignatureRequested. */ boolean getIsRecipientSignatureRequested(); /** * optional bool IsDocumentSignedByRecipient = 13; + * @return Whether the isDocumentSignedByRecipient field is set. */ boolean hasIsDocumentSignedByRecipient(); /** * optional bool IsDocumentSignedByRecipient = 13; + * @return The isDocumentSignedByRecipient. */ boolean getIsDocumentSignedByRecipient(); /** * optional bool IsDocumentRejectedByRecipient = 14; + * @return Whether the isDocumentRejectedByRecipient field is set. */ boolean hasIsDocumentRejectedByRecipient(); /** * optional bool IsDocumentRejectedByRecipient = 14; + * @return The isDocumentRejectedByRecipient. */ boolean getIsDocumentRejectedByRecipient(); /** * optional bool CanDocumentBeReceipted = 15; + * @return Whether the canDocumentBeReceipted field is set. */ boolean hasCanDocumentBeReceipted(); /** * optional bool CanDocumentBeReceipted = 15; + * @return The canDocumentBeReceipted. */ boolean getCanDocumentBeReceipted(); /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 16; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ boolean hasCanDocumentBeSignedOrRejectedByRecipient(); /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 16; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ boolean getCanDocumentBeSignedOrRejectedByRecipient(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow} */ - public static final class InboundUniversalTransferDocumentDocflow extends + @java.lang.Deprecated public static final class InboundUniversalTransferDocumentDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow) InboundUniversalTransferDocumentDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InboundUniversalTransferDocumentDocflow.class.getName()); + } // Use InboundUniversalTransferDocumentDocflow.newBuilder() to construct. private InboundUniversalTransferDocumentDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private InboundUniversalTransferDocumentDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InboundUniversalTransferDocumentDocflow defaultInstance; - public static InboundUniversalTransferDocumentDocflow getDefaultInstance() { - return defaultInstance; + private InboundUniversalTransferDocumentDocflow() { } - public InboundUniversalTransferDocumentDocflow getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InboundUniversalTransferDocumentDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = receiptDocflow_.toBuilder(); - } - receiptDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptDocflow_); - receiptDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = confirmationDocflow_.toBuilder(); - } - confirmationDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationDocflow_); - confirmationDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = correctionRequestDocflow_.toBuilder(); - } - correctionRequestDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(correctionRequestDocflow_); - correctionRequestDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = confirmationTimestamp_.toBuilder(); - } - confirmationTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationTimestamp_); - confirmationTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 48: { - bitField0_ |= 0x00000020; - isAmendmentRequested_ = input.readBool(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - isRevised_ = input.readBool(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - isCorrected_ = input.readBool(); - break; - } - case 74: { - Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = buyerTitleDocflow_.toBuilder(); - } - buyerTitleDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(buyerTitleDocflow_); - buyerTitleDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 82: { - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) == 0x00000200)) { - subBuilder = recipientSignatureRejectionDocflow_.toBuilder(); - } - recipientSignatureRejectionDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientSignatureRejectionDocflow_); - recipientSignatureRejectionDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - break; - } - case 88: { - bitField0_ |= 0x00000400; - isReceiptRequested_ = input.readBool(); - break; - } - case 96: { - bitField0_ |= 0x00000800; - isRecipientSignatureRequested_ = input.readBool(); - break; - } - case 104: { - bitField0_ |= 0x00001000; - isDocumentSignedByRecipient_ = input.readBool(); - break; - } - case 112: { - bitField0_ |= 0x00002000; - isDocumentRejectedByRecipient_ = input.readBool(); - break; - } - case 120: { - bitField0_ |= 0x00004000; - canDocumentBeReceipted_ = input.readBool(); - break; - } - case 128: { - bitField0_ |= 0x00008000; - canDocumentBeSignedOrRejectedByRecipient_ = input.readBool(); - 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.Docflow.UniversalTransferDocumentDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundUniversalTransferDocumentDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundUniversalTransferDocumentDocflow_fieldAccessorTable @@ -384,33 +266,22 @@ private InboundUniversalTransferDocumentDocflow( Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.class, Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InboundUniversalTransferDocumentDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InboundUniversalTransferDocumentDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -419,127 +290,159 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow receiptDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ + @java.lang.Override public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow getReceiptDocflow() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance() : receiptDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflowOrBuilder getReceiptDocflowOrBuilder() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance() : receiptDocflow_; } public static final int CONFIRMATIONDOCFLOW_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ + @java.lang.Override public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowOrBuilder getConfirmationDocflowOrBuilder() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } public static final int CORRECTIONREQUESTDOCFLOW_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ + @java.lang.Override public boolean hasCorrectionRequestDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow() { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflowOrBuilder getCorrectionRequestDocflowOrBuilder() { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } public static final int CONFIRMATIONTIMESTAMP_FIELD_NUMBER = 5; private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ + @java.lang.Override public boolean hasConfirmationTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp() { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimestampOrBuilder() { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } public static final int ISAMENDMENTREQUESTED_FIELD_NUMBER = 6; - private boolean isAmendmentRequested_; + private boolean isAmendmentRequested_ = false; /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ + @java.lang.Override public boolean hasIsAmendmentRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ + @java.lang.Override public boolean getIsAmendmentRequested() { return isAmendmentRequested_; } public static final int ISREVISED_FIELD_NUMBER = 7; - private boolean isRevised_; + private boolean isRevised_ = false; /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ + @java.lang.Override public boolean hasIsRevised() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsRevised = 7; + * @return The isRevised. */ + @java.lang.Override public boolean getIsRevised() { return isRevised_; } public static final int ISCORRECTED_FIELD_NUMBER = 8; - private boolean isCorrected_; + private boolean isCorrected_ = false; /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ + @java.lang.Override public boolean hasIsCorrected() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ + @java.lang.Override public boolean getIsCorrected() { return isCorrected_; } @@ -548,153 +451,170 @@ public boolean getIsCorrected() { private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buyerTitleDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 9; + * @return Whether the buyerTitleDocflow field is set. */ + @java.lang.Override public boolean hasBuyerTitleDocflow() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 9; + * @return The buyerTitleDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getBuyerTitleDocflow() { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 9; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBuilder getBuyerTitleDocflowOrBuilder() { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } public static final int RECIPIENTSIGNATUREREJECTIONDOCFLOW_FIELD_NUMBER = 10; private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 10; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ + @java.lang.Override public boolean hasRecipientSignatureRejectionDocflow() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 10; + * @return The recipientSignatureRejectionDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow() { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 10; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflowOrBuilder getRecipientSignatureRejectionDocflowOrBuilder() { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } public static final int ISRECEIPTREQUESTED_FIELD_NUMBER = 11; - private boolean isReceiptRequested_; + private boolean isReceiptRequested_ = false; /** * optional bool IsReceiptRequested = 11; + * @return Whether the isReceiptRequested field is set. */ + @java.lang.Override public boolean hasIsReceiptRequested() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional bool IsReceiptRequested = 11; + * @return The isReceiptRequested. */ + @java.lang.Override public boolean getIsReceiptRequested() { return isReceiptRequested_; } public static final int ISRECIPIENTSIGNATUREREQUESTED_FIELD_NUMBER = 12; - private boolean isRecipientSignatureRequested_; + private boolean isRecipientSignatureRequested_ = false; /** * optional bool IsRecipientSignatureRequested = 12; + * @return Whether the isRecipientSignatureRequested field is set. */ + @java.lang.Override public boolean hasIsRecipientSignatureRequested() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional bool IsRecipientSignatureRequested = 12; + * @return The isRecipientSignatureRequested. */ + @java.lang.Override public boolean getIsRecipientSignatureRequested() { return isRecipientSignatureRequested_; } public static final int ISDOCUMENTSIGNEDBYRECIPIENT_FIELD_NUMBER = 13; - private boolean isDocumentSignedByRecipient_; + private boolean isDocumentSignedByRecipient_ = false; /** * optional bool IsDocumentSignedByRecipient = 13; + * @return Whether the isDocumentSignedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentSignedByRecipient() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional bool IsDocumentSignedByRecipient = 13; + * @return The isDocumentSignedByRecipient. */ + @java.lang.Override public boolean getIsDocumentSignedByRecipient() { return isDocumentSignedByRecipient_; } public static final int ISDOCUMENTREJECTEDBYRECIPIENT_FIELD_NUMBER = 14; - private boolean isDocumentRejectedByRecipient_; + private boolean isDocumentRejectedByRecipient_ = false; /** * optional bool IsDocumentRejectedByRecipient = 14; + * @return Whether the isDocumentRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentRejectedByRecipient() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional bool IsDocumentRejectedByRecipient = 14; + * @return The isDocumentRejectedByRecipient. */ + @java.lang.Override public boolean getIsDocumentRejectedByRecipient() { return isDocumentRejectedByRecipient_; } public static final int CANDOCUMENTBERECEIPTED_FIELD_NUMBER = 15; - private boolean canDocumentBeReceipted_; + private boolean canDocumentBeReceipted_ = false; /** * optional bool CanDocumentBeReceipted = 15; + * @return Whether the canDocumentBeReceipted field is set. */ + @java.lang.Override public boolean hasCanDocumentBeReceipted() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional bool CanDocumentBeReceipted = 15; + * @return The canDocumentBeReceipted. */ + @java.lang.Override public boolean getCanDocumentBeReceipted() { return canDocumentBeReceipted_; } public static final int CANDOCUMENTBESIGNEDORREJECTEDBYRECIPIENT_FIELD_NUMBER = 16; - private boolean canDocumentBeSignedOrRejectedByRecipient_; + private boolean canDocumentBeSignedOrRejectedByRecipient_ = false; /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 16; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedOrRejectedByRecipient() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 16; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ + @java.lang.Override public boolean getCanDocumentBeSignedOrRejectedByRecipient() { return canDocumentBeSignedOrRejectedByRecipient_; } - private void initFields() { - isFinished_ = false; - receiptDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance(); - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - isAmendmentRequested_ = false; - isRevised_ = false; - isCorrected_ = false; - buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - isReceiptRequested_ = false; - isRecipientSignatureRequested_ = false; - isDocumentSignedByRecipient_ = false; - isDocumentRejectedByRecipient_ = false; - canDocumentBeReceipted_ = false; - canDocumentBeSignedOrRejectedByRecipient_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -740,142 +660,326 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, receiptDocflow_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, confirmationDocflow_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getConfirmationDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, correctionRequestDocflow_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getCorrectionRequestDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, confirmationTimestamp_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getConfirmationTimestamp()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, isAmendmentRequested_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, isRevised_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(8, isCorrected_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, buyerTitleDocflow_); + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getBuyerTitleDocflow()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(10, recipientSignatureRejectionDocflow_); + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(10, getRecipientSignatureRejectionDocflow()); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeBool(11, isReceiptRequested_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(12, isRecipientSignatureRequested_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(13, isDocumentSignedByRecipient_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(14, isDocumentRejectedByRecipient_); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(15, canDocumentBeReceipted_); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { + if (((bitField0_ & 0x00008000) != 0)) { output.writeBool(16, canDocumentBeSignedOrRejectedByRecipient_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receiptDocflow_); + .computeMessageSize(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, confirmationDocflow_); + .computeMessageSize(3, getConfirmationDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, correctionRequestDocflow_); + .computeMessageSize(4, getCorrectionRequestDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, confirmationTimestamp_); + .computeMessageSize(5, getConfirmationTimestamp()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, isAmendmentRequested_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isRevised_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, isCorrected_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, buyerTitleDocflow_); + .computeMessageSize(9, getBuyerTitleDocflow()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, recipientSignatureRejectionDocflow_); + .computeMessageSize(10, getRecipientSignatureRejectionDocflow()); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, isReceiptRequested_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, isRecipientSignatureRequested_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, isDocumentSignedByRecipient_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, isDocumentRejectedByRecipient_); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, canDocumentBeReceipted_); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, canDocumentBeSignedOrRejectedByRecipient_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow other = (Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasReceiptDocflow() != other.hasReceiptDocflow()) return false; + if (hasReceiptDocflow()) { + if (!getReceiptDocflow() + .equals(other.getReceiptDocflow())) return false; + } + if (hasConfirmationDocflow() != other.hasConfirmationDocflow()) return false; + if (hasConfirmationDocflow()) { + if (!getConfirmationDocflow() + .equals(other.getConfirmationDocflow())) return false; + } + if (hasCorrectionRequestDocflow() != other.hasCorrectionRequestDocflow()) return false; + if (hasCorrectionRequestDocflow()) { + if (!getCorrectionRequestDocflow() + .equals(other.getCorrectionRequestDocflow())) return false; + } + if (hasConfirmationTimestamp() != other.hasConfirmationTimestamp()) return false; + if (hasConfirmationTimestamp()) { + if (!getConfirmationTimestamp() + .equals(other.getConfirmationTimestamp())) return false; + } + if (hasIsAmendmentRequested() != other.hasIsAmendmentRequested()) return false; + if (hasIsAmendmentRequested()) { + if (getIsAmendmentRequested() + != other.getIsAmendmentRequested()) return false; + } + if (hasIsRevised() != other.hasIsRevised()) return false; + if (hasIsRevised()) { + if (getIsRevised() + != other.getIsRevised()) return false; + } + if (hasIsCorrected() != other.hasIsCorrected()) return false; + if (hasIsCorrected()) { + if (getIsCorrected() + != other.getIsCorrected()) return false; + } + if (hasBuyerTitleDocflow() != other.hasBuyerTitleDocflow()) return false; + if (hasBuyerTitleDocflow()) { + if (!getBuyerTitleDocflow() + .equals(other.getBuyerTitleDocflow())) return false; + } + if (hasRecipientSignatureRejectionDocflow() != other.hasRecipientSignatureRejectionDocflow()) return false; + if (hasRecipientSignatureRejectionDocflow()) { + if (!getRecipientSignatureRejectionDocflow() + .equals(other.getRecipientSignatureRejectionDocflow())) return false; + } + if (hasIsReceiptRequested() != other.hasIsReceiptRequested()) return false; + if (hasIsReceiptRequested()) { + if (getIsReceiptRequested() + != other.getIsReceiptRequested()) return false; + } + if (hasIsRecipientSignatureRequested() != other.hasIsRecipientSignatureRequested()) return false; + if (hasIsRecipientSignatureRequested()) { + if (getIsRecipientSignatureRequested() + != other.getIsRecipientSignatureRequested()) return false; + } + if (hasIsDocumentSignedByRecipient() != other.hasIsDocumentSignedByRecipient()) return false; + if (hasIsDocumentSignedByRecipient()) { + if (getIsDocumentSignedByRecipient() + != other.getIsDocumentSignedByRecipient()) return false; + } + if (hasIsDocumentRejectedByRecipient() != other.hasIsDocumentRejectedByRecipient()) return false; + if (hasIsDocumentRejectedByRecipient()) { + if (getIsDocumentRejectedByRecipient() + != other.getIsDocumentRejectedByRecipient()) return false; + } + if (hasCanDocumentBeReceipted() != other.hasCanDocumentBeReceipted()) return false; + if (hasCanDocumentBeReceipted()) { + if (getCanDocumentBeReceipted() + != other.getCanDocumentBeReceipted()) return false; + } + if (hasCanDocumentBeSignedOrRejectedByRecipient() != other.hasCanDocumentBeSignedOrRejectedByRecipient()) return false; + if (hasCanDocumentBeSignedOrRejectedByRecipient()) { + if (getCanDocumentBeSignedOrRejectedByRecipient() + != other.getCanDocumentBeSignedOrRejectedByRecipient()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasReceiptDocflow()) { + hash = (37 * hash) + RECEIPTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getReceiptDocflow().hashCode(); + } + if (hasConfirmationDocflow()) { + hash = (37 * hash) + CONFIRMATIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationDocflow().hashCode(); + } + if (hasCorrectionRequestDocflow()) { + hash = (37 * hash) + CORRECTIONREQUESTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getCorrectionRequestDocflow().hashCode(); + } + if (hasConfirmationTimestamp()) { + hash = (37 * hash) + CONFIRMATIONTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationTimestamp().hashCode(); + } + if (hasIsAmendmentRequested()) { + hash = (37 * hash) + ISAMENDMENTREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAmendmentRequested()); + } + if (hasIsRevised()) { + hash = (37 * hash) + ISREVISED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRevised()); + } + if (hasIsCorrected()) { + hash = (37 * hash) + ISCORRECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsCorrected()); + } + if (hasBuyerTitleDocflow()) { + hash = (37 * hash) + BUYERTITLEDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getBuyerTitleDocflow().hashCode(); + } + if (hasRecipientSignatureRejectionDocflow()) { + hash = (37 * hash) + RECIPIENTSIGNATUREREJECTIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getRecipientSignatureRejectionDocflow().hashCode(); + } + if (hasIsReceiptRequested()) { + hash = (37 * hash) + ISRECEIPTREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsReceiptRequested()); + } + if (hasIsRecipientSignatureRequested()) { + hash = (37 * hash) + ISRECIPIENTSIGNATUREREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRecipientSignatureRequested()); + } + if (hasIsDocumentSignedByRecipient()) { + hash = (37 * hash) + ISDOCUMENTSIGNEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDocumentSignedByRecipient()); + } + if (hasIsDocumentRejectedByRecipient()) { + hash = (37 * hash) + ISDOCUMENTREJECTEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDocumentRejectedByRecipient()); + } + if (hasCanDocumentBeReceipted()) { + hash = (37 * hash) + CANDOCUMENTBERECEIPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeReceipted()); + } + if (hasCanDocumentBeSignedOrRejectedByRecipient()) { + hash = (37 * hash) + CANDOCUMENTBESIGNEDORREJECTEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeSignedOrRejectedByRecipient()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -899,42 +1003,57 @@ public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.In } public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -954,6 +1073,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundUniversalTransferDocumentDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundUniversalTransferDocumentDocflow_fieldAccessorTable @@ -972,7 +1092,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getReceiptDocflowFieldBuilder(); getConfirmationDocflowFieldBuilder(); getCorrectionRequestDocflowFieldBuilder(); @@ -981,84 +1102,65 @@ private void maybeForceBuilderInitialization() { getRecipientSignatureRejectionDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance(); - } else { - receiptDocflowBuilder_.clear(); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - } else { - confirmationDocflowBuilder_.clear(); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (correctionRequestDocflowBuilder_ == null) { - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - } else { - correctionRequestDocflowBuilder_.clear(); + correctionRequestDocflow_ = null; + if (correctionRequestDocflowBuilder_ != null) { + correctionRequestDocflowBuilder_.dispose(); + correctionRequestDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (confirmationTimestampBuilder_ == null) { - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - confirmationTimestampBuilder_.clear(); + confirmationTimestamp_ = null; + if (confirmationTimestampBuilder_ != null) { + confirmationTimestampBuilder_.dispose(); + confirmationTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); isAmendmentRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000020); isRevised_ = false; - bitField0_ = (bitField0_ & ~0x00000040); isCorrected_ = false; - bitField0_ = (bitField0_ & ~0x00000080); - if (buyerTitleDocflowBuilder_ == null) { - buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); - } else { - buyerTitleDocflowBuilder_.clear(); + buyerTitleDocflow_ = null; + if (buyerTitleDocflowBuilder_ != null) { + buyerTitleDocflowBuilder_.dispose(); + buyerTitleDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000100); - if (recipientSignatureRejectionDocflowBuilder_ == null) { - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - } else { - recipientSignatureRejectionDocflowBuilder_.clear(); + recipientSignatureRejectionDocflow_ = null; + if (recipientSignatureRejectionDocflowBuilder_ != null) { + recipientSignatureRejectionDocflowBuilder_.dispose(); + recipientSignatureRejectionDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000200); isReceiptRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000400); isRecipientSignatureRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000800); isDocumentSignedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00001000); isDocumentRejectedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00002000); canDocumentBeReceipted_ = false; - bitField0_ = (bitField0_ & ~0x00004000); canDocumentBeSignedOrRejectedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00008000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_InboundUniversalTransferDocumentDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow build() { Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -1067,103 +1169,97 @@ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUn return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow buildPartial() { Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow result = new Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptDocflow_ = receiptDocflowBuilder_ == null + ? receiptDocflow_ + : receiptDocflowBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (receiptDocflowBuilder_ == null) { - result.receiptDocflow_ = receiptDocflow_; - } else { - result.receiptDocflow_ = receiptDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationDocflow_ = confirmationDocflowBuilder_ == null + ? confirmationDocflow_ + : confirmationDocflowBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (confirmationDocflowBuilder_ == null) { - result.confirmationDocflow_ = confirmationDocflow_; - } else { - result.confirmationDocflow_ = confirmationDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.correctionRequestDocflow_ = correctionRequestDocflowBuilder_ == null + ? correctionRequestDocflow_ + : correctionRequestDocflowBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (correctionRequestDocflowBuilder_ == null) { - result.correctionRequestDocflow_ = correctionRequestDocflow_; - } else { - result.correctionRequestDocflow_ = correctionRequestDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confirmationTimestamp_ = confirmationTimestampBuilder_ == null + ? confirmationTimestamp_ + : confirmationTimestampBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (confirmationTimestampBuilder_ == null) { - result.confirmationTimestamp_ = confirmationTimestamp_; - } else { - result.confirmationTimestamp_ = confirmationTimestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isAmendmentRequested_ = isAmendmentRequested_; to_bitField0_ |= 0x00000020; } - result.isAmendmentRequested_ = isAmendmentRequested_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isRevised_ = isRevised_; to_bitField0_ |= 0x00000040; } - result.isRevised_ = isRevised_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.isCorrected_ = isCorrected_; to_bitField0_ |= 0x00000080; } - result.isCorrected_ = isCorrected_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.buyerTitleDocflow_ = buyerTitleDocflowBuilder_ == null + ? buyerTitleDocflow_ + : buyerTitleDocflowBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (buyerTitleDocflowBuilder_ == null) { - result.buyerTitleDocflow_ = buyerTitleDocflow_; - } else { - result.buyerTitleDocflow_ = buyerTitleDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflowBuilder_ == null + ? recipientSignatureRejectionDocflow_ + : recipientSignatureRejectionDocflowBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (recipientSignatureRejectionDocflowBuilder_ == null) { - result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflow_; - } else { - result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.isReceiptRequested_ = isReceiptRequested_; to_bitField0_ |= 0x00000400; } - result.isReceiptRequested_ = isReceiptRequested_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.isRecipientSignatureRequested_ = isRecipientSignatureRequested_; to_bitField0_ |= 0x00000800; } - result.isRecipientSignatureRequested_ = isRecipientSignatureRequested_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + if (((from_bitField0_ & 0x00001000) != 0)) { + result.isDocumentSignedByRecipient_ = isDocumentSignedByRecipient_; to_bitField0_ |= 0x00001000; } - result.isDocumentSignedByRecipient_ = isDocumentSignedByRecipient_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.isDocumentRejectedByRecipient_ = isDocumentRejectedByRecipient_; to_bitField0_ |= 0x00002000; } - result.isDocumentRejectedByRecipient_ = isDocumentRejectedByRecipient_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + if (((from_bitField0_ & 0x00004000) != 0)) { + result.canDocumentBeReceipted_ = canDocumentBeReceipted_; to_bitField0_ |= 0x00004000; } - result.canDocumentBeReceipted_ = canDocumentBeReceipted_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00008000) != 0)) { + result.canDocumentBeSignedOrRejectedByRecipient_ = canDocumentBeSignedOrRejectedByRecipient_; to_bitField0_ |= 0x00008000; } - result.canDocumentBeSignedOrRejectedByRecipient_ = canDocumentBeSignedOrRejectedByRecipient_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow)other); @@ -1224,64 +1320,166 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocfl setCanDocumentBeSignedOrRejectedByRecipient(other.getCanDocumentBeSignedOrRejectedByRecipient()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasReceiptDocflow()) { if (!getReceiptDocflow().isInitialized()) { - return false; } } if (hasConfirmationDocflow()) { if (!getConfirmationDocflow().isInitialized()) { - return false; } } if (hasCorrectionRequestDocflow()) { if (!getCorrectionRequestDocflow().isInitialized()) { - return false; } } if (hasConfirmationTimestamp()) { if (!getConfirmationTimestamp().isInitialized()) { - return false; } } if (hasBuyerTitleDocflow()) { if (!getBuyerTitleDocflow().isInitialized()) { - return false; } } if (hasRecipientSignatureRejectionDocflow()) { if (!getRecipientSignatureRejectionDocflow().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getReceiptDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getConfirmationDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCorrectionRequestDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getConfirmationTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + isAmendmentRequested_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + isRevised_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + isCorrected_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: { + input.readMessage( + getBuyerTitleDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getRecipientSignatureRejectionDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: { + isReceiptRequested_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: { + isRecipientSignatureRequested_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: { + isDocumentSignedByRecipient_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: { + isDocumentRejectedByRecipient_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: { + canDocumentBeReceipted_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128: { + canDocumentBeSignedOrRejectedByRecipient_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 128 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1289,27 +1487,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1318,21 +1524,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow receiptDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow receiptDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflowOrBuilder> receiptDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow getReceiptDocflow() { if (receiptDocflowBuilder_ == null) { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance() : receiptDocflow_; } else { return receiptDocflowBuilder_.getMessage(); } @@ -1346,11 +1554,11 @@ public Builder setReceiptDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.I throw new NullPointerException(); } receiptDocflow_ = value; - onChanged(); } else { receiptDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1360,11 +1568,11 @@ public Builder setReceiptDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.Builder builderForValue) { if (receiptDocflowBuilder_ == null) { receiptDocflow_ = builderForValue.build(); - onChanged(); } else { receiptDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1372,31 +1580,33 @@ public Builder setReceiptDocflow( */ public Builder mergeReceiptDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow value) { if (receiptDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - receiptDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance()) { - receiptDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.newBuilder(receiptDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + receiptDocflow_ != null && + receiptDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance()) { + getReceiptDocflowBuilder().mergeFrom(value); } else { receiptDocflow_ = value; } - onChanged(); } else { receiptDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (receiptDocflow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InboundInvoiceReceiptDocflow ReceiptDocflow = 2; */ public Builder clearReceiptDocflow() { - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance(); - onChanged(); - } else { - receiptDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1414,7 +1624,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflo if (receiptDocflowBuilder_ != null) { return receiptDocflowBuilder_.getMessageOrBuilder(); } else { - return receiptDocflow_; + return receiptDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflow.getDefaultInstance() : receiptDocflow_; } } /** @@ -1434,21 +1645,23 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InboundInvoiceReceiptDocflo return receiptDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowOrBuilder> confirmationDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow() { if (confirmationDocflowBuilder_ == null) { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } else { return confirmationDocflowBuilder_.getMessage(); } @@ -1462,11 +1675,11 @@ public Builder setConfirmationDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowPro throw new NullPointerException(); } confirmationDocflow_ = value; - onChanged(); } else { confirmationDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1476,11 +1689,11 @@ public Builder setConfirmationDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder builderForValue) { if (confirmationDocflowBuilder_ == null) { confirmationDocflow_ = builderForValue.build(); - onChanged(); } else { confirmationDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1488,31 +1701,33 @@ public Builder setConfirmationDocflow( */ public Builder mergeConfirmationDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow value) { if (confirmationDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - confirmationDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance()) { - confirmationDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.newBuilder(confirmationDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + confirmationDocflow_ != null && + confirmationDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance()) { + getConfirmationDocflowBuilder().mergeFrom(value); } else { confirmationDocflow_ = value; } - onChanged(); } else { confirmationDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (confirmationDocflow_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; */ public Builder clearConfirmationDocflow() { - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - onChanged(); - } else { - confirmationDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1530,7 +1745,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowO if (confirmationDocflowBuilder_ != null) { return confirmationDocflowBuilder_.getMessageOrBuilder(); } else { - return confirmationDocflow_; + return confirmationDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } } /** @@ -1550,21 +1766,23 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowO return confirmationDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflowOrBuilder> correctionRequestDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ public boolean hasCorrectionRequestDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow() { if (correctionRequestDocflowBuilder_ == null) { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } else { return correctionRequestDocflowBuilder_.getMessage(); } @@ -1578,11 +1796,11 @@ public Builder setCorrectionRequestDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocfl throw new NullPointerException(); } correctionRequestDocflow_ = value; - onChanged(); } else { correctionRequestDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1592,11 +1810,11 @@ public Builder setCorrectionRequestDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder builderForValue) { if (correctionRequestDocflowBuilder_ == null) { correctionRequestDocflow_ = builderForValue.build(); - onChanged(); } else { correctionRequestDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1604,31 +1822,33 @@ public Builder setCorrectionRequestDocflow( */ public Builder mergeCorrectionRequestDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow value) { if (correctionRequestDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - correctionRequestDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance()) { - correctionRequestDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.newBuilder(correctionRequestDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + correctionRequestDocflow_ != null && + correctionRequestDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance()) { + getCorrectionRequestDocflowBuilder().mergeFrom(value); } else { correctionRequestDocflow_ = value; } - onChanged(); } else { correctionRequestDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (correctionRequestDocflow_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; */ public Builder clearCorrectionRequestDocflow() { - if (correctionRequestDocflowBuilder_ == null) { - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - onChanged(); - } else { - correctionRequestDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + correctionRequestDocflow_ = null; + if (correctionRequestDocflowBuilder_ != null) { + correctionRequestDocflowBuilder_.dispose(); + correctionRequestDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1646,7 +1866,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDoc if (correctionRequestDocflowBuilder_ != null) { return correctionRequestDocflowBuilder_.getMessageOrBuilder(); } else { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } } /** @@ -1666,21 +1887,23 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDoc return correctionRequestDocflowBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> confirmationTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ public boolean hasConfirmationTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp() { if (confirmationTimestampBuilder_ == null) { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } else { return confirmationTimestampBuilder_.getMessage(); } @@ -1694,11 +1917,11 @@ public Builder setConfirmationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timesta throw new NullPointerException(); } confirmationTimestamp_ = value; - onChanged(); } else { confirmationTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1708,11 +1931,11 @@ public Builder setConfirmationTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (confirmationTimestampBuilder_ == null) { confirmationTimestamp_ = builderForValue.build(); - onChanged(); } else { confirmationTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1720,31 +1943,33 @@ public Builder setConfirmationTimestamp( */ public Builder mergeConfirmationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (confirmationTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - confirmationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - confirmationTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(confirmationTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + confirmationTimestamp_ != null && + confirmationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getConfirmationTimestampBuilder().mergeFrom(value); } else { confirmationTimestamp_ = value; } - onChanged(); } else { confirmationTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (confirmationTimestamp_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; */ public Builder clearConfirmationTimestamp() { - if (confirmationTimestampBuilder_ == null) { - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - confirmationTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + confirmationTimestamp_ = null; + if (confirmationTimestampBuilder_ != null) { + confirmationTimestampBuilder_.dispose(); + confirmationTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -1762,7 +1987,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimest if (confirmationTimestampBuilder_ != null) { return confirmationTimestampBuilder_.getMessageOrBuilder(); } else { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } } /** @@ -1785,27 +2011,35 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimest private boolean isAmendmentRequested_ ; /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ + @java.lang.Override public boolean hasIsAmendmentRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ + @java.lang.Override public boolean getIsAmendmentRequested() { return isAmendmentRequested_; } /** * optional bool IsAmendmentRequested = 6; + * @param value The isAmendmentRequested to set. + * @return This builder for chaining. */ public Builder setIsAmendmentRequested(boolean value) { - bitField0_ |= 0x00000020; + isAmendmentRequested_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional bool IsAmendmentRequested = 6; + * @return This builder for chaining. */ public Builder clearIsAmendmentRequested() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1817,27 +2051,35 @@ public Builder clearIsAmendmentRequested() { private boolean isRevised_ ; /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ + @java.lang.Override public boolean hasIsRevised() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsRevised = 7; + * @return The isRevised. */ + @java.lang.Override public boolean getIsRevised() { return isRevised_; } /** * optional bool IsRevised = 7; + * @param value The isRevised to set. + * @return This builder for chaining. */ public Builder setIsRevised(boolean value) { - bitField0_ |= 0x00000040; + isRevised_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional bool IsRevised = 7; + * @return This builder for chaining. */ public Builder clearIsRevised() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1849,27 +2091,35 @@ public Builder clearIsRevised() { private boolean isCorrected_ ; /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ + @java.lang.Override public boolean hasIsCorrected() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ + @java.lang.Override public boolean getIsCorrected() { return isCorrected_; } /** * optional bool IsCorrected = 8; + * @param value The isCorrected to set. + * @return This builder for chaining. */ public Builder setIsCorrected(boolean value) { - bitField0_ |= 0x00000080; + isCorrected_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional bool IsCorrected = 8; + * @return This builder for chaining. */ public Builder clearIsCorrected() { bitField0_ = (bitField0_ & ~0x00000080); @@ -1878,21 +2128,23 @@ public Builder clearIsCorrected() { return this; } - private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buyerTitleDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.Builder, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBuilder> buyerTitleDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 9; + * @return Whether the buyerTitleDocflow field is set. */ public boolean hasBuyerTitleDocflow() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 9; + * @return The buyerTitleDocflow. */ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getBuyerTitleDocflow() { if (buyerTitleDocflowBuilder_ == null) { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } else { return buyerTitleDocflowBuilder_.getMessage(); } @@ -1906,11 +2158,11 @@ public Builder setBuyerTitleDocflow(Diadoc.Api.Proto.Docflow.XmlBilateralDocflow throw new NullPointerException(); } buyerTitleDocflow_ = value; - onChanged(); } else { buyerTitleDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -1920,11 +2172,11 @@ public Builder setBuyerTitleDocflow( Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.Builder builderForValue) { if (buyerTitleDocflowBuilder_ == null) { buyerTitleDocflow_ = builderForValue.build(); - onChanged(); } else { buyerTitleDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -1932,31 +2184,33 @@ public Builder setBuyerTitleDocflow( */ public Builder mergeBuyerTitleDocflow(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow value) { if (buyerTitleDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - buyerTitleDocflow_ != Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance()) { - buyerTitleDocflow_ = - Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.newBuilder(buyerTitleDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) && + buyerTitleDocflow_ != null && + buyerTitleDocflow_ != Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance()) { + getBuyerTitleDocflowBuilder().mergeFrom(value); } else { buyerTitleDocflow_ = value; } - onChanged(); } else { buyerTitleDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + if (buyerTitleDocflow_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 9; */ public Builder clearBuyerTitleDocflow() { - if (buyerTitleDocflowBuilder_ == null) { - buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); - onChanged(); - } else { - buyerTitleDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000100); + buyerTitleDocflow_ = null; + if (buyerTitleDocflowBuilder_ != null) { + buyerTitleDocflowBuilder_.dispose(); + buyerTitleDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1974,7 +2228,8 @@ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBui if (buyerTitleDocflowBuilder_ != null) { return buyerTitleDocflowBuilder_.getMessageOrBuilder(); } else { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? + Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } } /** @@ -1994,21 +2249,23 @@ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBui return buyerTitleDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflowOrBuilder> recipientSignatureRejectionDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 10; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ public boolean hasRecipientSignatureRejectionDocflow() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 10; + * @return The recipientSignatureRejectionDocflow. */ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow() { if (recipientSignatureRejectionDocflowBuilder_ == null) { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } else { return recipientSignatureRejectionDocflowBuilder_.getMessage(); } @@ -2022,11 +2279,11 @@ public Builder setRecipientSignatureRejectionDocflow(Diadoc.Api.Proto.Docflow.Re throw new NullPointerException(); } recipientSignatureRejectionDocflow_ = value; - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2036,11 +2293,11 @@ public Builder setRecipientSignatureRejectionDocflow( Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder builderForValue) { if (recipientSignatureRejectionDocflowBuilder_ == null) { recipientSignatureRejectionDocflow_ = builderForValue.build(); - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2048,31 +2305,33 @@ public Builder setRecipientSignatureRejectionDocflow( */ public Builder mergeRecipientSignatureRejectionDocflow(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow value) { if (recipientSignatureRejectionDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - recipientSignatureRejectionDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance()) { - recipientSignatureRejectionDocflow_ = - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.newBuilder(recipientSignatureRejectionDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) && + recipientSignatureRejectionDocflow_ != null && + recipientSignatureRejectionDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance()) { + getRecipientSignatureRejectionDocflowBuilder().mergeFrom(value); } else { recipientSignatureRejectionDocflow_ = value; } - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; + if (recipientSignatureRejectionDocflow_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 10; */ public Builder clearRecipientSignatureRejectionDocflow() { - if (recipientSignatureRejectionDocflowBuilder_ == null) { - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - onChanged(); - } else { - recipientSignatureRejectionDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000200); + recipientSignatureRejectionDocflow_ = null; + if (recipientSignatureRejectionDocflowBuilder_ != null) { + recipientSignatureRejectionDocflowBuilder_.dispose(); + recipientSignatureRejectionDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -2090,7 +2349,8 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie if (recipientSignatureRejectionDocflowBuilder_ != null) { return recipientSignatureRejectionDocflowBuilder_.getMessageOrBuilder(); } else { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? + Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } } /** @@ -2113,27 +2373,35 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie private boolean isReceiptRequested_ ; /** * optional bool IsReceiptRequested = 11; + * @return Whether the isReceiptRequested field is set. */ + @java.lang.Override public boolean hasIsReceiptRequested() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional bool IsReceiptRequested = 11; + * @return The isReceiptRequested. */ + @java.lang.Override public boolean getIsReceiptRequested() { return isReceiptRequested_; } /** * optional bool IsReceiptRequested = 11; + * @param value The isReceiptRequested to set. + * @return This builder for chaining. */ public Builder setIsReceiptRequested(boolean value) { - bitField0_ |= 0x00000400; + isReceiptRequested_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * optional bool IsReceiptRequested = 11; + * @return This builder for chaining. */ public Builder clearIsReceiptRequested() { bitField0_ = (bitField0_ & ~0x00000400); @@ -2145,27 +2413,35 @@ public Builder clearIsReceiptRequested() { private boolean isRecipientSignatureRequested_ ; /** * optional bool IsRecipientSignatureRequested = 12; + * @return Whether the isRecipientSignatureRequested field is set. */ + @java.lang.Override public boolean hasIsRecipientSignatureRequested() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional bool IsRecipientSignatureRequested = 12; + * @return The isRecipientSignatureRequested. */ + @java.lang.Override public boolean getIsRecipientSignatureRequested() { return isRecipientSignatureRequested_; } /** * optional bool IsRecipientSignatureRequested = 12; + * @param value The isRecipientSignatureRequested to set. + * @return This builder for chaining. */ public Builder setIsRecipientSignatureRequested(boolean value) { - bitField0_ |= 0x00000800; + isRecipientSignatureRequested_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * optional bool IsRecipientSignatureRequested = 12; + * @return This builder for chaining. */ public Builder clearIsRecipientSignatureRequested() { bitField0_ = (bitField0_ & ~0x00000800); @@ -2177,27 +2453,35 @@ public Builder clearIsRecipientSignatureRequested() { private boolean isDocumentSignedByRecipient_ ; /** * optional bool IsDocumentSignedByRecipient = 13; + * @return Whether the isDocumentSignedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentSignedByRecipient() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional bool IsDocumentSignedByRecipient = 13; + * @return The isDocumentSignedByRecipient. */ + @java.lang.Override public boolean getIsDocumentSignedByRecipient() { return isDocumentSignedByRecipient_; } /** * optional bool IsDocumentSignedByRecipient = 13; + * @param value The isDocumentSignedByRecipient to set. + * @return This builder for chaining. */ public Builder setIsDocumentSignedByRecipient(boolean value) { - bitField0_ |= 0x00001000; + isDocumentSignedByRecipient_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } /** * optional bool IsDocumentSignedByRecipient = 13; + * @return This builder for chaining. */ public Builder clearIsDocumentSignedByRecipient() { bitField0_ = (bitField0_ & ~0x00001000); @@ -2209,27 +2493,35 @@ public Builder clearIsDocumentSignedByRecipient() { private boolean isDocumentRejectedByRecipient_ ; /** * optional bool IsDocumentRejectedByRecipient = 14; + * @return Whether the isDocumentRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentRejectedByRecipient() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional bool IsDocumentRejectedByRecipient = 14; + * @return The isDocumentRejectedByRecipient. */ + @java.lang.Override public boolean getIsDocumentRejectedByRecipient() { return isDocumentRejectedByRecipient_; } /** * optional bool IsDocumentRejectedByRecipient = 14; + * @param value The isDocumentRejectedByRecipient to set. + * @return This builder for chaining. */ public Builder setIsDocumentRejectedByRecipient(boolean value) { - bitField0_ |= 0x00002000; + isDocumentRejectedByRecipient_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } /** * optional bool IsDocumentRejectedByRecipient = 14; + * @return This builder for chaining. */ public Builder clearIsDocumentRejectedByRecipient() { bitField0_ = (bitField0_ & ~0x00002000); @@ -2241,27 +2533,35 @@ public Builder clearIsDocumentRejectedByRecipient() { private boolean canDocumentBeReceipted_ ; /** * optional bool CanDocumentBeReceipted = 15; + * @return Whether the canDocumentBeReceipted field is set. */ + @java.lang.Override public boolean hasCanDocumentBeReceipted() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional bool CanDocumentBeReceipted = 15; + * @return The canDocumentBeReceipted. */ + @java.lang.Override public boolean getCanDocumentBeReceipted() { return canDocumentBeReceipted_; } /** * optional bool CanDocumentBeReceipted = 15; + * @param value The canDocumentBeReceipted to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeReceipted(boolean value) { - bitField0_ |= 0x00004000; + canDocumentBeReceipted_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } /** * optional bool CanDocumentBeReceipted = 15; + * @return This builder for chaining. */ public Builder clearCanDocumentBeReceipted() { bitField0_ = (bitField0_ & ~0x00004000); @@ -2273,27 +2573,35 @@ public Builder clearCanDocumentBeReceipted() { private boolean canDocumentBeSignedOrRejectedByRecipient_ ; /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 16; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedOrRejectedByRecipient() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 16; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ + @java.lang.Override public boolean getCanDocumentBeSignedOrRejectedByRecipient() { return canDocumentBeSignedOrRejectedByRecipient_; } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 16; + * @param value The canDocumentBeSignedOrRejectedByRecipient to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeSignedOrRejectedByRecipient(boolean value) { - bitField0_ |= 0x00008000; + canDocumentBeSignedOrRejectedByRecipient_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 16; + * @return This builder for chaining. */ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { bitField0_ = (bitField0_ & ~0x00008000); @@ -2305,33 +2613,77 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow) + private static final Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow DEFAULT_INSTANCE; static { - defaultInstance = new InboundUniversalTransferDocumentDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InboundUniversalTransferDocumentDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.InboundUniversalTransferDocumentDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.InboundUniversalTransferDocumentDocflow) } - public interface OutboundUniversalTransferDocumentDocflowOrBuilder extends + @java.lang.Deprecated public interface OutboundUniversalTransferDocumentDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ boolean hasReceiptDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow(); /** @@ -2341,10 +2693,12 @@ public interface OutboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ boolean hasConfirmationDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow(); /** @@ -2354,10 +2708,12 @@ public interface OutboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ boolean hasCorrectionRequestDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow(); /** @@ -2367,10 +2723,12 @@ public interface OutboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ boolean hasConfirmationTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp(); /** @@ -2380,46 +2738,56 @@ public interface OutboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ boolean hasIsAmendmentRequested(); /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ boolean getIsAmendmentRequested(); /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ boolean hasIsRevised(); /** * optional bool IsRevised = 7; + * @return The isRevised. */ boolean getIsRevised(); /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ boolean hasIsCorrected(); /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ boolean getIsCorrected(); /** * optional bool CanDocumentBeSignedBySender = 9; + * @return Whether the canDocumentBeSignedBySender field is set. */ boolean hasCanDocumentBeSignedBySender(); /** * optional bool CanDocumentBeSignedBySender = 9; + * @return The canDocumentBeSignedBySender. */ boolean getCanDocumentBeSignedBySender(); /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 10; + * @return Whether the buyerTitleDocflow field is set. */ boolean hasBuyerTitleDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 10; + * @return The buyerTitleDocflow. */ Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getBuyerTitleDocflow(); /** @@ -2429,10 +2797,12 @@ public interface OutboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 11; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ boolean hasRecipientSignatureRejectionDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 11; + * @return The recipientSignatureRejectionDocflow. */ Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow(); /** @@ -2442,260 +2812,100 @@ public interface OutboundUniversalTransferDocumentDocflowOrBuilder extends /** * optional bool IsReceiptRequested = 12; + * @return Whether the isReceiptRequested field is set. */ boolean hasIsReceiptRequested(); /** * optional bool IsReceiptRequested = 12; + * @return The isReceiptRequested. */ boolean getIsReceiptRequested(); /** * optional bool IsRecipientSignatureRequested = 13; + * @return Whether the isRecipientSignatureRequested field is set. */ boolean hasIsRecipientSignatureRequested(); /** * optional bool IsRecipientSignatureRequested = 13; + * @return The isRecipientSignatureRequested. */ boolean getIsRecipientSignatureRequested(); /** * optional bool IsDocumentSignedByRecipient = 14; + * @return Whether the isDocumentSignedByRecipient field is set. */ boolean hasIsDocumentSignedByRecipient(); /** * optional bool IsDocumentSignedByRecipient = 14; + * @return The isDocumentSignedByRecipient. */ boolean getIsDocumentSignedByRecipient(); /** * optional bool IsDocumentRejectedByRecipient = 15; + * @return Whether the isDocumentRejectedByRecipient field is set. */ boolean hasIsDocumentRejectedByRecipient(); /** * optional bool IsDocumentRejectedByRecipient = 15; + * @return The isDocumentRejectedByRecipient. */ boolean getIsDocumentRejectedByRecipient(); /** * optional bool CanDocumentBeReceipted = 16; + * @return Whether the canDocumentBeReceipted field is set. */ boolean hasCanDocumentBeReceipted(); /** * optional bool CanDocumentBeReceipted = 16; + * @return The canDocumentBeReceipted. */ boolean getCanDocumentBeReceipted(); /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 17; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ boolean hasCanDocumentBeSignedOrRejectedByRecipient(); /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 17; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ boolean getCanDocumentBeSignedOrRejectedByRecipient(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow} */ - public static final class OutboundUniversalTransferDocumentDocflow extends + @java.lang.Deprecated public static final class OutboundUniversalTransferDocumentDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow) OutboundUniversalTransferDocumentDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + OutboundUniversalTransferDocumentDocflow.class.getName()); + } // Use OutboundUniversalTransferDocumentDocflow.newBuilder() to construct. private OutboundUniversalTransferDocumentDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private OutboundUniversalTransferDocumentDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final OutboundUniversalTransferDocumentDocflow defaultInstance; - public static OutboundUniversalTransferDocumentDocflow getDefaultInstance() { - return defaultInstance; + private OutboundUniversalTransferDocumentDocflow() { } - public OutboundUniversalTransferDocumentDocflow getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OutboundUniversalTransferDocumentDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = receiptDocflow_.toBuilder(); - } - receiptDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptDocflow_); - receiptDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = confirmationDocflow_.toBuilder(); - } - confirmationDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationDocflow_); - confirmationDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = correctionRequestDocflow_.toBuilder(); - } - correctionRequestDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(correctionRequestDocflow_); - correctionRequestDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = confirmationTimestamp_.toBuilder(); - } - confirmationTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationTimestamp_); - confirmationTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 48: { - bitField0_ |= 0x00000020; - isAmendmentRequested_ = input.readBool(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - isRevised_ = input.readBool(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - isCorrected_ = input.readBool(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - canDocumentBeSignedBySender_ = input.readBool(); - break; - } - case 82: { - Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) == 0x00000200)) { - subBuilder = buyerTitleDocflow_.toBuilder(); - } - buyerTitleDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(buyerTitleDocflow_); - buyerTitleDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - break; - } - case 90: { - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000400) == 0x00000400)) { - subBuilder = recipientSignatureRejectionDocflow_.toBuilder(); - } - recipientSignatureRejectionDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientSignatureRejectionDocflow_); - recipientSignatureRejectionDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000400; - break; - } - case 96: { - bitField0_ |= 0x00000800; - isReceiptRequested_ = input.readBool(); - break; - } - case 104: { - bitField0_ |= 0x00001000; - isRecipientSignatureRequested_ = input.readBool(); - break; - } - case 112: { - bitField0_ |= 0x00002000; - isDocumentSignedByRecipient_ = input.readBool(); - break; - } - case 120: { - bitField0_ |= 0x00004000; - isDocumentRejectedByRecipient_ = input.readBool(); - break; - } - case 128: { - bitField0_ |= 0x00008000; - canDocumentBeReceipted_ = input.readBool(); - break; - } - case 136: { - bitField0_ |= 0x00010000; - canDocumentBeSignedOrRejectedByRecipient_ = input.readBool(); - 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.Docflow.UniversalTransferDocumentDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundUniversalTransferDocumentDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundUniversalTransferDocumentDocflow_fieldAccessorTable @@ -2703,33 +2913,22 @@ private OutboundUniversalTransferDocumentDocflow( Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.class, Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public OutboundUniversalTransferDocumentDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutboundUniversalTransferDocumentDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -2738,142 +2937,178 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ + @java.lang.Override public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder getReceiptDocflowOrBuilder() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } public static final int CONFIRMATIONDOCFLOW_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ + @java.lang.Override public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowOrBuilder getConfirmationDocflowOrBuilder() { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } public static final int CORRECTIONREQUESTDOCFLOW_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ + @java.lang.Override public boolean hasCorrectionRequestDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow() { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflowOrBuilder getCorrectionRequestDocflowOrBuilder() { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } public static final int CONFIRMATIONTIMESTAMP_FIELD_NUMBER = 5; private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ + @java.lang.Override public boolean hasConfirmationTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp() { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimestampOrBuilder() { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } public static final int ISAMENDMENTREQUESTED_FIELD_NUMBER = 6; - private boolean isAmendmentRequested_; + private boolean isAmendmentRequested_ = false; /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ + @java.lang.Override public boolean hasIsAmendmentRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ + @java.lang.Override public boolean getIsAmendmentRequested() { return isAmendmentRequested_; } public static final int ISREVISED_FIELD_NUMBER = 7; - private boolean isRevised_; + private boolean isRevised_ = false; /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ + @java.lang.Override public boolean hasIsRevised() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsRevised = 7; + * @return The isRevised. */ + @java.lang.Override public boolean getIsRevised() { return isRevised_; } public static final int ISCORRECTED_FIELD_NUMBER = 8; - private boolean isCorrected_; + private boolean isCorrected_ = false; /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ + @java.lang.Override public boolean hasIsCorrected() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ + @java.lang.Override public boolean getIsCorrected() { return isCorrected_; } public static final int CANDOCUMENTBESIGNEDBYSENDER_FIELD_NUMBER = 9; - private boolean canDocumentBeSignedBySender_; + private boolean canDocumentBeSignedBySender_ = false; /** * optional bool CanDocumentBeSignedBySender = 9; + * @return Whether the canDocumentBeSignedBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedBySender() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional bool CanDocumentBeSignedBySender = 9; + * @return The canDocumentBeSignedBySender. */ + @java.lang.Override public boolean getCanDocumentBeSignedBySender() { return canDocumentBeSignedBySender_; } @@ -2882,154 +3117,170 @@ public boolean getCanDocumentBeSignedBySender() { private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buyerTitleDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 10; + * @return Whether the buyerTitleDocflow field is set. */ + @java.lang.Override public boolean hasBuyerTitleDocflow() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 10; + * @return The buyerTitleDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getBuyerTitleDocflow() { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 10; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBuilder getBuyerTitleDocflowOrBuilder() { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } public static final int RECIPIENTSIGNATUREREJECTIONDOCFLOW_FIELD_NUMBER = 11; private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 11; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ + @java.lang.Override public boolean hasRecipientSignatureRejectionDocflow() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 11; + * @return The recipientSignatureRejectionDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow() { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 11; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflowOrBuilder getRecipientSignatureRejectionDocflowOrBuilder() { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } public static final int ISRECEIPTREQUESTED_FIELD_NUMBER = 12; - private boolean isReceiptRequested_; + private boolean isReceiptRequested_ = false; /** * optional bool IsReceiptRequested = 12; + * @return Whether the isReceiptRequested field is set. */ + @java.lang.Override public boolean hasIsReceiptRequested() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional bool IsReceiptRequested = 12; + * @return The isReceiptRequested. */ + @java.lang.Override public boolean getIsReceiptRequested() { return isReceiptRequested_; } public static final int ISRECIPIENTSIGNATUREREQUESTED_FIELD_NUMBER = 13; - private boolean isRecipientSignatureRequested_; + private boolean isRecipientSignatureRequested_ = false; /** * optional bool IsRecipientSignatureRequested = 13; + * @return Whether the isRecipientSignatureRequested field is set. */ + @java.lang.Override public boolean hasIsRecipientSignatureRequested() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional bool IsRecipientSignatureRequested = 13; + * @return The isRecipientSignatureRequested. */ + @java.lang.Override public boolean getIsRecipientSignatureRequested() { return isRecipientSignatureRequested_; } public static final int ISDOCUMENTSIGNEDBYRECIPIENT_FIELD_NUMBER = 14; - private boolean isDocumentSignedByRecipient_; + private boolean isDocumentSignedByRecipient_ = false; /** * optional bool IsDocumentSignedByRecipient = 14; + * @return Whether the isDocumentSignedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentSignedByRecipient() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional bool IsDocumentSignedByRecipient = 14; + * @return The isDocumentSignedByRecipient. */ + @java.lang.Override public boolean getIsDocumentSignedByRecipient() { return isDocumentSignedByRecipient_; } public static final int ISDOCUMENTREJECTEDBYRECIPIENT_FIELD_NUMBER = 15; - private boolean isDocumentRejectedByRecipient_; + private boolean isDocumentRejectedByRecipient_ = false; /** * optional bool IsDocumentRejectedByRecipient = 15; + * @return Whether the isDocumentRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentRejectedByRecipient() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional bool IsDocumentRejectedByRecipient = 15; + * @return The isDocumentRejectedByRecipient. */ + @java.lang.Override public boolean getIsDocumentRejectedByRecipient() { return isDocumentRejectedByRecipient_; } public static final int CANDOCUMENTBERECEIPTED_FIELD_NUMBER = 16; - private boolean canDocumentBeReceipted_; + private boolean canDocumentBeReceipted_ = false; /** * optional bool CanDocumentBeReceipted = 16; + * @return Whether the canDocumentBeReceipted field is set. */ + @java.lang.Override public boolean hasCanDocumentBeReceipted() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional bool CanDocumentBeReceipted = 16; + * @return The canDocumentBeReceipted. */ + @java.lang.Override public boolean getCanDocumentBeReceipted() { return canDocumentBeReceipted_; } public static final int CANDOCUMENTBESIGNEDORREJECTEDBYRECIPIENT_FIELD_NUMBER = 17; - private boolean canDocumentBeSignedOrRejectedByRecipient_; + private boolean canDocumentBeSignedOrRejectedByRecipient_ = false; /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 17; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedOrRejectedByRecipient() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 17; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ + @java.lang.Override public boolean getCanDocumentBeSignedOrRejectedByRecipient() { return canDocumentBeSignedOrRejectedByRecipient_; } - private void initFields() { - isFinished_ = false; - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - isAmendmentRequested_ = false; - isRevised_ = false; - isCorrected_ = false; - canDocumentBeSignedBySender_ = false; - buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - isReceiptRequested_ = false; - isRecipientSignatureRequested_ = false; - isDocumentSignedByRecipient_ = false; - isDocumentRejectedByRecipient_ = false; - canDocumentBeReceipted_ = false; - canDocumentBeSignedOrRejectedByRecipient_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3075,149 +3326,343 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, receiptDocflow_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, confirmationDocflow_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getConfirmationDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, correctionRequestDocflow_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getCorrectionRequestDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, confirmationTimestamp_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getConfirmationTimestamp()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, isAmendmentRequested_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, isRevised_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(8, isCorrected_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(9, canDocumentBeSignedBySender_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(10, buyerTitleDocflow_); + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(10, getBuyerTitleDocflow()); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(11, recipientSignatureRejectionDocflow_); + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(11, getRecipientSignatureRejectionDocflow()); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(12, isReceiptRequested_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(13, isRecipientSignatureRequested_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(14, isDocumentSignedByRecipient_); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(15, isDocumentRejectedByRecipient_); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { + if (((bitField0_ & 0x00008000) != 0)) { output.writeBool(16, canDocumentBeReceipted_); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { + if (((bitField0_ & 0x00010000) != 0)) { output.writeBool(17, canDocumentBeSignedOrRejectedByRecipient_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receiptDocflow_); + .computeMessageSize(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, confirmationDocflow_); + .computeMessageSize(3, getConfirmationDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, correctionRequestDocflow_); + .computeMessageSize(4, getCorrectionRequestDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, confirmationTimestamp_); + .computeMessageSize(5, getConfirmationTimestamp()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, isAmendmentRequested_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isRevised_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, isCorrected_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, canDocumentBeSignedBySender_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getBuyerTitleDocflow()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getRecipientSignatureRejectionDocflow()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, isReceiptRequested_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, isRecipientSignatureRequested_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, isDocumentSignedByRecipient_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, isDocumentRejectedByRecipient_); + } + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, buyerTitleDocflow_); + .computeBoolSize(16, canDocumentBeReceipted_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, recipientSignatureRejectionDocflow_); + .computeBoolSize(17, canDocumentBeSignedOrRejectedByRecipient_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow other = (Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasReceiptDocflow() != other.hasReceiptDocflow()) return false; + if (hasReceiptDocflow()) { + if (!getReceiptDocflow() + .equals(other.getReceiptDocflow())) return false; + } + if (hasConfirmationDocflow() != other.hasConfirmationDocflow()) return false; + if (hasConfirmationDocflow()) { + if (!getConfirmationDocflow() + .equals(other.getConfirmationDocflow())) return false; + } + if (hasCorrectionRequestDocflow() != other.hasCorrectionRequestDocflow()) return false; + if (hasCorrectionRequestDocflow()) { + if (!getCorrectionRequestDocflow() + .equals(other.getCorrectionRequestDocflow())) return false; + } + if (hasConfirmationTimestamp() != other.hasConfirmationTimestamp()) return false; + if (hasConfirmationTimestamp()) { + if (!getConfirmationTimestamp() + .equals(other.getConfirmationTimestamp())) return false; + } + if (hasIsAmendmentRequested() != other.hasIsAmendmentRequested()) return false; + if (hasIsAmendmentRequested()) { + if (getIsAmendmentRequested() + != other.getIsAmendmentRequested()) return false; + } + if (hasIsRevised() != other.hasIsRevised()) return false; + if (hasIsRevised()) { + if (getIsRevised() + != other.getIsRevised()) return false; + } + if (hasIsCorrected() != other.hasIsCorrected()) return false; + if (hasIsCorrected()) { + if (getIsCorrected() + != other.getIsCorrected()) return false; + } + if (hasCanDocumentBeSignedBySender() != other.hasCanDocumentBeSignedBySender()) return false; + if (hasCanDocumentBeSignedBySender()) { + if (getCanDocumentBeSignedBySender() + != other.getCanDocumentBeSignedBySender()) return false; + } + if (hasBuyerTitleDocflow() != other.hasBuyerTitleDocflow()) return false; + if (hasBuyerTitleDocflow()) { + if (!getBuyerTitleDocflow() + .equals(other.getBuyerTitleDocflow())) return false; + } + if (hasRecipientSignatureRejectionDocflow() != other.hasRecipientSignatureRejectionDocflow()) return false; + if (hasRecipientSignatureRejectionDocflow()) { + if (!getRecipientSignatureRejectionDocflow() + .equals(other.getRecipientSignatureRejectionDocflow())) return false; + } + if (hasIsReceiptRequested() != other.hasIsReceiptRequested()) return false; + if (hasIsReceiptRequested()) { + if (getIsReceiptRequested() + != other.getIsReceiptRequested()) return false; + } + if (hasIsRecipientSignatureRequested() != other.hasIsRecipientSignatureRequested()) return false; + if (hasIsRecipientSignatureRequested()) { + if (getIsRecipientSignatureRequested() + != other.getIsRecipientSignatureRequested()) return false; + } + if (hasIsDocumentSignedByRecipient() != other.hasIsDocumentSignedByRecipient()) return false; + if (hasIsDocumentSignedByRecipient()) { + if (getIsDocumentSignedByRecipient() + != other.getIsDocumentSignedByRecipient()) return false; + } + if (hasIsDocumentRejectedByRecipient() != other.hasIsDocumentRejectedByRecipient()) return false; + if (hasIsDocumentRejectedByRecipient()) { + if (getIsDocumentRejectedByRecipient() + != other.getIsDocumentRejectedByRecipient()) return false; + } + if (hasCanDocumentBeReceipted() != other.hasCanDocumentBeReceipted()) return false; + if (hasCanDocumentBeReceipted()) { + if (getCanDocumentBeReceipted() + != other.getCanDocumentBeReceipted()) return false; + } + if (hasCanDocumentBeSignedOrRejectedByRecipient() != other.hasCanDocumentBeSignedOrRejectedByRecipient()) return false; + if (hasCanDocumentBeSignedOrRejectedByRecipient()) { + if (getCanDocumentBeSignedOrRejectedByRecipient() + != other.getCanDocumentBeSignedOrRejectedByRecipient()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasReceiptDocflow()) { + hash = (37 * hash) + RECEIPTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getReceiptDocflow().hashCode(); + } + if (hasConfirmationDocflow()) { + hash = (37 * hash) + CONFIRMATIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationDocflow().hashCode(); + } + if (hasCorrectionRequestDocflow()) { + hash = (37 * hash) + CORRECTIONREQUESTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getCorrectionRequestDocflow().hashCode(); + } + if (hasConfirmationTimestamp()) { + hash = (37 * hash) + CONFIRMATIONTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationTimestamp().hashCode(); + } + if (hasIsAmendmentRequested()) { + hash = (37 * hash) + ISAMENDMENTREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAmendmentRequested()); + } + if (hasIsRevised()) { + hash = (37 * hash) + ISREVISED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRevised()); + } + if (hasIsCorrected()) { + hash = (37 * hash) + ISCORRECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsCorrected()); + } + if (hasCanDocumentBeSignedBySender()) { + hash = (37 * hash) + CANDOCUMENTBESIGNEDBYSENDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeSignedBySender()); + } + if (hasBuyerTitleDocflow()) { + hash = (37 * hash) + BUYERTITLEDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getBuyerTitleDocflow().hashCode(); + } + if (hasRecipientSignatureRejectionDocflow()) { + hash = (37 * hash) + RECIPIENTSIGNATUREREJECTIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getRecipientSignatureRejectionDocflow().hashCode(); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, isReceiptRequested_); + if (hasIsReceiptRequested()) { + hash = (37 * hash) + ISRECEIPTREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsReceiptRequested()); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, isRecipientSignatureRequested_); + if (hasIsRecipientSignatureRequested()) { + hash = (37 * hash) + ISRECIPIENTSIGNATUREREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRecipientSignatureRequested()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, isDocumentSignedByRecipient_); + if (hasIsDocumentSignedByRecipient()) { + hash = (37 * hash) + ISDOCUMENTSIGNEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDocumentSignedByRecipient()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, isDocumentRejectedByRecipient_); + if (hasIsDocumentRejectedByRecipient()) { + hash = (37 * hash) + ISDOCUMENTREJECTEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDocumentRejectedByRecipient()); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, canDocumentBeReceipted_); + if (hasCanDocumentBeReceipted()) { + hash = (37 * hash) + CANDOCUMENTBERECEIPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeReceipted()); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, canDocumentBeSignedOrRejectedByRecipient_); + if (hasCanDocumentBeSignedOrRejectedByRecipient()) { + hash = (37 * hash) + CANDOCUMENTBESIGNEDORREJECTEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeSignedOrRejectedByRecipient()); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - 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.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3241,42 +3686,57 @@ public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.Ou } public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3296,6 +3756,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundUniversalTransferDocumentDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundUniversalTransferDocumentDocflow_fieldAccessorTable @@ -3314,7 +3775,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getReceiptDocflowFieldBuilder(); getConfirmationDocflowFieldBuilder(); getCorrectionRequestDocflowFieldBuilder(); @@ -3323,86 +3785,66 @@ private void maybeForceBuilderInitialization() { getRecipientSignatureRejectionDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - } else { - receiptDocflowBuilder_.clear(); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - } else { - confirmationDocflowBuilder_.clear(); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (correctionRequestDocflowBuilder_ == null) { - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - } else { - correctionRequestDocflowBuilder_.clear(); + correctionRequestDocflow_ = null; + if (correctionRequestDocflowBuilder_ != null) { + correctionRequestDocflowBuilder_.dispose(); + correctionRequestDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); - if (confirmationTimestampBuilder_ == null) { - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - confirmationTimestampBuilder_.clear(); + confirmationTimestamp_ = null; + if (confirmationTimestampBuilder_ != null) { + confirmationTimestampBuilder_.dispose(); + confirmationTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); isAmendmentRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000020); isRevised_ = false; - bitField0_ = (bitField0_ & ~0x00000040); isCorrected_ = false; - bitField0_ = (bitField0_ & ~0x00000080); canDocumentBeSignedBySender_ = false; - bitField0_ = (bitField0_ & ~0x00000100); - if (buyerTitleDocflowBuilder_ == null) { - buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); - } else { - buyerTitleDocflowBuilder_.clear(); + buyerTitleDocflow_ = null; + if (buyerTitleDocflowBuilder_ != null) { + buyerTitleDocflowBuilder_.dispose(); + buyerTitleDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000200); - if (recipientSignatureRejectionDocflowBuilder_ == null) { - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - } else { - recipientSignatureRejectionDocflowBuilder_.clear(); + recipientSignatureRejectionDocflow_ = null; + if (recipientSignatureRejectionDocflowBuilder_ != null) { + recipientSignatureRejectionDocflowBuilder_.dispose(); + recipientSignatureRejectionDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000400); isReceiptRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000800); isRecipientSignatureRequested_ = false; - bitField0_ = (bitField0_ & ~0x00001000); isDocumentSignedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00002000); isDocumentRejectedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00004000); canDocumentBeReceipted_ = false; - bitField0_ = (bitField0_ & ~0x00008000); canDocumentBeSignedOrRejectedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00010000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_OutboundUniversalTransferDocumentDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow build() { Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -3411,107 +3853,101 @@ public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundU return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow buildPartial() { Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow result = new Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptDocflow_ = receiptDocflowBuilder_ == null + ? receiptDocflow_ + : receiptDocflowBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (receiptDocflowBuilder_ == null) { - result.receiptDocflow_ = receiptDocflow_; - } else { - result.receiptDocflow_ = receiptDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationDocflow_ = confirmationDocflowBuilder_ == null + ? confirmationDocflow_ + : confirmationDocflowBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (confirmationDocflowBuilder_ == null) { - result.confirmationDocflow_ = confirmationDocflow_; - } else { - result.confirmationDocflow_ = confirmationDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.correctionRequestDocflow_ = correctionRequestDocflowBuilder_ == null + ? correctionRequestDocflow_ + : correctionRequestDocflowBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (correctionRequestDocflowBuilder_ == null) { - result.correctionRequestDocflow_ = correctionRequestDocflow_; - } else { - result.correctionRequestDocflow_ = correctionRequestDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confirmationTimestamp_ = confirmationTimestampBuilder_ == null + ? confirmationTimestamp_ + : confirmationTimestampBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (confirmationTimestampBuilder_ == null) { - result.confirmationTimestamp_ = confirmationTimestamp_; - } else { - result.confirmationTimestamp_ = confirmationTimestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isAmendmentRequested_ = isAmendmentRequested_; to_bitField0_ |= 0x00000020; } - result.isAmendmentRequested_ = isAmendmentRequested_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isRevised_ = isRevised_; to_bitField0_ |= 0x00000040; } - result.isRevised_ = isRevised_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.isCorrected_ = isCorrected_; to_bitField0_ |= 0x00000080; } - result.isCorrected_ = isCorrected_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.canDocumentBeSignedBySender_ = canDocumentBeSignedBySender_; to_bitField0_ |= 0x00000100; } - result.canDocumentBeSignedBySender_ = canDocumentBeSignedBySender_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.buyerTitleDocflow_ = buyerTitleDocflowBuilder_ == null + ? buyerTitleDocflow_ + : buyerTitleDocflowBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (buyerTitleDocflowBuilder_ == null) { - result.buyerTitleDocflow_ = buyerTitleDocflow_; - } else { - result.buyerTitleDocflow_ = buyerTitleDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflowBuilder_ == null + ? recipientSignatureRejectionDocflow_ + : recipientSignatureRejectionDocflowBuilder_.build(); to_bitField0_ |= 0x00000400; } - if (recipientSignatureRejectionDocflowBuilder_ == null) { - result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflow_; - } else { - result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.isReceiptRequested_ = isReceiptRequested_; to_bitField0_ |= 0x00000800; } - result.isReceiptRequested_ = isReceiptRequested_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + if (((from_bitField0_ & 0x00001000) != 0)) { + result.isRecipientSignatureRequested_ = isRecipientSignatureRequested_; to_bitField0_ |= 0x00001000; } - result.isRecipientSignatureRequested_ = isRecipientSignatureRequested_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.isDocumentSignedByRecipient_ = isDocumentSignedByRecipient_; to_bitField0_ |= 0x00002000; } - result.isDocumentSignedByRecipient_ = isDocumentSignedByRecipient_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + if (((from_bitField0_ & 0x00004000) != 0)) { + result.isDocumentRejectedByRecipient_ = isDocumentRejectedByRecipient_; to_bitField0_ |= 0x00004000; } - result.isDocumentRejectedByRecipient_ = isDocumentRejectedByRecipient_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00008000) != 0)) { + result.canDocumentBeReceipted_ = canDocumentBeReceipted_; to_bitField0_ |= 0x00008000; } - result.canDocumentBeReceipted_ = canDocumentBeReceipted_; - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { + if (((from_bitField0_ & 0x00010000) != 0)) { + result.canDocumentBeSignedOrRejectedByRecipient_ = canDocumentBeSignedOrRejectedByRecipient_; to_bitField0_ |= 0x00010000; } - result.canDocumentBeSignedOrRejectedByRecipient_ = canDocumentBeSignedOrRejectedByRecipient_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow)other); @@ -3575,64 +4011,171 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocfl setCanDocumentBeSignedOrRejectedByRecipient(other.getCanDocumentBeSignedOrRejectedByRecipient()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasReceiptDocflow()) { if (!getReceiptDocflow().isInitialized()) { - return false; } } if (hasConfirmationDocflow()) { if (!getConfirmationDocflow().isInitialized()) { - return false; } } if (hasCorrectionRequestDocflow()) { if (!getCorrectionRequestDocflow().isInitialized()) { - return false; } } if (hasConfirmationTimestamp()) { if (!getConfirmationTimestamp().isInitialized()) { - return false; } } if (hasBuyerTitleDocflow()) { if (!getBuyerTitleDocflow().isInitialized()) { - return false; } } if (hasRecipientSignatureRejectionDocflow()) { if (!getRecipientSignatureRejectionDocflow().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getReceiptDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getConfirmationDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCorrectionRequestDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getConfirmationTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + isAmendmentRequested_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + isRevised_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + isCorrected_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + canDocumentBeSignedBySender_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + input.readMessage( + getBuyerTitleDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + input.readMessage( + getRecipientSignatureRejectionDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: { + isReceiptRequested_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: { + isRecipientSignatureRequested_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: { + isDocumentSignedByRecipient_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: { + isDocumentRejectedByRecipient_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128: { + canDocumentBeReceipted_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136: { + canDocumentBeSignedOrRejectedByRecipient_ = input.readBool(); + bitField0_ |= 0x00010000; + break; + } // case 136 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3640,27 +4183,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -3669,21 +4220,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder> receiptDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { if (receiptDocflowBuilder_ == null) { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } else { return receiptDocflowBuilder_.getMessage(); } @@ -3697,11 +4250,11 @@ public Builder setReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.R throw new NullPointerException(); } receiptDocflow_ = value; - onChanged(); } else { receiptDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3711,11 +4264,11 @@ public Builder setReceiptDocflow( Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder builderForValue) { if (receiptDocflowBuilder_ == null) { receiptDocflow_ = builderForValue.build(); - onChanged(); } else { receiptDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3723,31 +4276,33 @@ public Builder setReceiptDocflow( */ public Builder mergeReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow value) { if (receiptDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { - receiptDocflow_ = - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.newBuilder(receiptDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + receiptDocflow_ != null && + receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { + getReceiptDocflowBuilder().mergeFrom(value); } else { receiptDocflow_ = value; } - onChanged(); } else { receiptDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (receiptDocflow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; */ public Builder clearReceiptDocflow() { - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - onChanged(); - } else { - receiptDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -3765,7 +4320,8 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get if (receiptDocflowBuilder_ != null) { return receiptDocflowBuilder_.getMessageOrBuilder(); } else { - return receiptDocflow_; + return receiptDocflow_ == null ? + Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } } /** @@ -3785,21 +4341,23 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get return receiptDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow confirmationDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowOrBuilder> confirmationDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return Whether the confirmationDocflow field is set. */ public boolean hasConfirmationDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; + * @return The confirmationDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow getConfirmationDocflow() { if (confirmationDocflowBuilder_ == null) { - return confirmationDocflow_; + return confirmationDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } else { return confirmationDocflowBuilder_.getMessage(); } @@ -3813,11 +4371,11 @@ public Builder setConfirmationDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowPro throw new NullPointerException(); } confirmationDocflow_ = value; - onChanged(); } else { confirmationDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3827,11 +4385,11 @@ public Builder setConfirmationDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.Builder builderForValue) { if (confirmationDocflowBuilder_ == null) { confirmationDocflow_ = builderForValue.build(); - onChanged(); } else { confirmationDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3839,31 +4397,33 @@ public Builder setConfirmationDocflow( */ public Builder mergeConfirmationDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow value) { if (confirmationDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - confirmationDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance()) { - confirmationDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.newBuilder(confirmationDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + confirmationDocflow_ != null && + confirmationDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance()) { + getConfirmationDocflowBuilder().mergeFrom(value); } else { confirmationDocflow_ = value; } - onChanged(); } else { confirmationDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (confirmationDocflow_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceConfirmationDocflow ConfirmationDocflow = 3; */ public Builder clearConfirmationDocflow() { - if (confirmationDocflowBuilder_ == null) { - confirmationDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance(); - onChanged(); - } else { - confirmationDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + confirmationDocflow_ = null; + if (confirmationDocflowBuilder_ != null) { + confirmationDocflowBuilder_.dispose(); + confirmationDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -3881,7 +4441,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowO if (confirmationDocflowBuilder_ != null) { return confirmationDocflowBuilder_.getMessageOrBuilder(); } else { - return confirmationDocflow_; + return confirmationDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflow.getDefaultInstance() : confirmationDocflow_; } } /** @@ -3901,21 +4462,23 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceConfirmationDocflowO return confirmationDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow correctionRequestDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder, Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflowOrBuilder> correctionRequestDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return Whether the correctionRequestDocflow field is set. */ public boolean hasCorrectionRequestDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; + * @return The correctionRequestDocflow. */ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow getCorrectionRequestDocflow() { if (correctionRequestDocflowBuilder_ == null) { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } else { return correctionRequestDocflowBuilder_.getMessage(); } @@ -3929,11 +4492,11 @@ public Builder setCorrectionRequestDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocfl throw new NullPointerException(); } correctionRequestDocflow_ = value; - onChanged(); } else { correctionRequestDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3943,11 +4506,11 @@ public Builder setCorrectionRequestDocflow( Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.Builder builderForValue) { if (correctionRequestDocflowBuilder_ == null) { correctionRequestDocflow_ = builderForValue.build(); - onChanged(); } else { correctionRequestDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3955,31 +4518,33 @@ public Builder setCorrectionRequestDocflow( */ public Builder mergeCorrectionRequestDocflow(Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow value) { if (correctionRequestDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - correctionRequestDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance()) { - correctionRequestDocflow_ = - Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.newBuilder(correctionRequestDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + correctionRequestDocflow_ != null && + correctionRequestDocflow_ != Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance()) { + getCorrectionRequestDocflowBuilder().mergeFrom(value); } else { correctionRequestDocflow_ = value; } - onChanged(); } else { correctionRequestDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (correctionRequestDocflow_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.InvoiceCorrectionRequestDocflow CorrectionRequestDocflow = 4; */ public Builder clearCorrectionRequestDocflow() { - if (correctionRequestDocflowBuilder_ == null) { - correctionRequestDocflow_ = Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance(); - onChanged(); - } else { - correctionRequestDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + correctionRequestDocflow_ = null; + if (correctionRequestDocflowBuilder_ != null) { + correctionRequestDocflowBuilder_.dispose(); + correctionRequestDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -3997,7 +4562,8 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDoc if (correctionRequestDocflowBuilder_ != null) { return correctionRequestDocflowBuilder_.getMessageOrBuilder(); } else { - return correctionRequestDocflow_; + return correctionRequestDocflow_ == null ? + Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDocflow.getDefaultInstance() : correctionRequestDocflow_; } } /** @@ -4017,21 +4583,23 @@ public Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.InvoiceCorrectionRequestDoc return correctionRequestDocflowBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp confirmationTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> confirmationTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return Whether the confirmationTimestamp field is set. */ public boolean hasConfirmationTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; + * @return The confirmationTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getConfirmationTimestamp() { if (confirmationTimestampBuilder_ == null) { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } else { return confirmationTimestampBuilder_.getMessage(); } @@ -4045,11 +4613,11 @@ public Builder setConfirmationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timesta throw new NullPointerException(); } confirmationTimestamp_ = value; - onChanged(); } else { confirmationTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4059,11 +4627,11 @@ public Builder setConfirmationTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (confirmationTimestampBuilder_ == null) { confirmationTimestamp_ = builderForValue.build(); - onChanged(); } else { confirmationTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4071,31 +4639,33 @@ public Builder setConfirmationTimestamp( */ public Builder mergeConfirmationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (confirmationTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - confirmationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - confirmationTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(confirmationTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + confirmationTimestamp_ != null && + confirmationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getConfirmationTimestampBuilder().mergeFrom(value); } else { confirmationTimestamp_ = value; } - onChanged(); } else { confirmationTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (confirmationTimestamp_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp ConfirmationTimestamp = 5; */ public Builder clearConfirmationTimestamp() { - if (confirmationTimestampBuilder_ == null) { - confirmationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - confirmationTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + confirmationTimestamp_ = null; + if (confirmationTimestampBuilder_ != null) { + confirmationTimestampBuilder_.dispose(); + confirmationTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -4113,7 +4683,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimest if (confirmationTimestampBuilder_ != null) { return confirmationTimestampBuilder_.getMessageOrBuilder(); } else { - return confirmationTimestamp_; + return confirmationTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : confirmationTimestamp_; } } /** @@ -4136,27 +4707,35 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getConfirmationTimest private boolean isAmendmentRequested_ ; /** * optional bool IsAmendmentRequested = 6; + * @return Whether the isAmendmentRequested field is set. */ + @java.lang.Override public boolean hasIsAmendmentRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsAmendmentRequested = 6; + * @return The isAmendmentRequested. */ + @java.lang.Override public boolean getIsAmendmentRequested() { return isAmendmentRequested_; } /** * optional bool IsAmendmentRequested = 6; + * @param value The isAmendmentRequested to set. + * @return This builder for chaining. */ public Builder setIsAmendmentRequested(boolean value) { - bitField0_ |= 0x00000020; + isAmendmentRequested_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional bool IsAmendmentRequested = 6; + * @return This builder for chaining. */ public Builder clearIsAmendmentRequested() { bitField0_ = (bitField0_ & ~0x00000020); @@ -4168,27 +4747,35 @@ public Builder clearIsAmendmentRequested() { private boolean isRevised_ ; /** * optional bool IsRevised = 7; + * @return Whether the isRevised field is set. */ + @java.lang.Override public boolean hasIsRevised() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsRevised = 7; + * @return The isRevised. */ + @java.lang.Override public boolean getIsRevised() { return isRevised_; } /** * optional bool IsRevised = 7; + * @param value The isRevised to set. + * @return This builder for chaining. */ public Builder setIsRevised(boolean value) { - bitField0_ |= 0x00000040; + isRevised_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional bool IsRevised = 7; + * @return This builder for chaining. */ public Builder clearIsRevised() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4200,27 +4787,35 @@ public Builder clearIsRevised() { private boolean isCorrected_ ; /** * optional bool IsCorrected = 8; + * @return Whether the isCorrected field is set. */ + @java.lang.Override public boolean hasIsCorrected() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsCorrected = 8; + * @return The isCorrected. */ + @java.lang.Override public boolean getIsCorrected() { return isCorrected_; } /** * optional bool IsCorrected = 8; + * @param value The isCorrected to set. + * @return This builder for chaining. */ public Builder setIsCorrected(boolean value) { - bitField0_ |= 0x00000080; + isCorrected_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional bool IsCorrected = 8; + * @return This builder for chaining. */ public Builder clearIsCorrected() { bitField0_ = (bitField0_ & ~0x00000080); @@ -4232,27 +4827,35 @@ public Builder clearIsCorrected() { private boolean canDocumentBeSignedBySender_ ; /** * optional bool CanDocumentBeSignedBySender = 9; + * @return Whether the canDocumentBeSignedBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedBySender() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional bool CanDocumentBeSignedBySender = 9; + * @return The canDocumentBeSignedBySender. */ + @java.lang.Override public boolean getCanDocumentBeSignedBySender() { return canDocumentBeSignedBySender_; } /** * optional bool CanDocumentBeSignedBySender = 9; + * @param value The canDocumentBeSignedBySender to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeSignedBySender(boolean value) { - bitField0_ |= 0x00000100; + canDocumentBeSignedBySender_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional bool CanDocumentBeSignedBySender = 9; + * @return This builder for chaining. */ public Builder clearCanDocumentBeSignedBySender() { bitField0_ = (bitField0_ & ~0x00000100); @@ -4261,21 +4864,23 @@ public Builder clearCanDocumentBeSignedBySender() { return this; } - private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buyerTitleDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.Builder, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBuilder> buyerTitleDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 10; + * @return Whether the buyerTitleDocflow field is set. */ public boolean hasBuyerTitleDocflow() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 10; + * @return The buyerTitleDocflow. */ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getBuyerTitleDocflow() { if (buyerTitleDocflowBuilder_ == null) { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } else { return buyerTitleDocflowBuilder_.getMessage(); } @@ -4289,11 +4894,11 @@ public Builder setBuyerTitleDocflow(Diadoc.Api.Proto.Docflow.XmlBilateralDocflow throw new NullPointerException(); } buyerTitleDocflow_ = value; - onChanged(); } else { buyerTitleDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -4303,11 +4908,11 @@ public Builder setBuyerTitleDocflow( Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.Builder builderForValue) { if (buyerTitleDocflowBuilder_ == null) { buyerTitleDocflow_ = builderForValue.build(); - onChanged(); } else { buyerTitleDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -4315,31 +4920,33 @@ public Builder setBuyerTitleDocflow( */ public Builder mergeBuyerTitleDocflow(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow value) { if (buyerTitleDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - buyerTitleDocflow_ != Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance()) { - buyerTitleDocflow_ = - Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.newBuilder(buyerTitleDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) && + buyerTitleDocflow_ != null && + buyerTitleDocflow_ != Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance()) { + getBuyerTitleDocflowBuilder().mergeFrom(value); } else { buyerTitleDocflow_ = value; } - onChanged(); } else { buyerTitleDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; + if (buyerTitleDocflow_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 10; */ public Builder clearBuyerTitleDocflow() { - if (buyerTitleDocflowBuilder_ == null) { - buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); - onChanged(); - } else { - buyerTitleDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000200); + buyerTitleDocflow_ = null; + if (buyerTitleDocflowBuilder_ != null) { + buyerTitleDocflowBuilder_.dispose(); + buyerTitleDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -4357,7 +4964,8 @@ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBui if (buyerTitleDocflowBuilder_ != null) { return buyerTitleDocflowBuilder_.getMessageOrBuilder(); } else { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? + Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } } /** @@ -4377,21 +4985,23 @@ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBui return buyerTitleDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflowOrBuilder> recipientSignatureRejectionDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 11; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ public boolean hasRecipientSignatureRejectionDocflow() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 11; + * @return The recipientSignatureRejectionDocflow. */ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow() { if (recipientSignatureRejectionDocflowBuilder_ == null) { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } else { return recipientSignatureRejectionDocflowBuilder_.getMessage(); } @@ -4405,11 +5015,11 @@ public Builder setRecipientSignatureRejectionDocflow(Diadoc.Api.Proto.Docflow.Re throw new NullPointerException(); } recipientSignatureRejectionDocflow_ = value; - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -4419,11 +5029,11 @@ public Builder setRecipientSignatureRejectionDocflow( Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder builderForValue) { if (recipientSignatureRejectionDocflowBuilder_ == null) { recipientSignatureRejectionDocflow_ = builderForValue.build(); - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -4431,31 +5041,33 @@ public Builder setRecipientSignatureRejectionDocflow( */ public Builder mergeRecipientSignatureRejectionDocflow(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow value) { if (recipientSignatureRejectionDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400) && - recipientSignatureRejectionDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance()) { - recipientSignatureRejectionDocflow_ = - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.newBuilder(recipientSignatureRejectionDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) && + recipientSignatureRejectionDocflow_ != null && + recipientSignatureRejectionDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance()) { + getRecipientSignatureRejectionDocflowBuilder().mergeFrom(value); } else { recipientSignatureRejectionDocflow_ = value; } - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; + if (recipientSignatureRejectionDocflow_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 11; */ public Builder clearRecipientSignatureRejectionDocflow() { - if (recipientSignatureRejectionDocflowBuilder_ == null) { - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - onChanged(); - } else { - recipientSignatureRejectionDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000400); + recipientSignatureRejectionDocflow_ = null; + if (recipientSignatureRejectionDocflowBuilder_ != null) { + recipientSignatureRejectionDocflowBuilder_.dispose(); + recipientSignatureRejectionDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -4473,7 +5085,8 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie if (recipientSignatureRejectionDocflowBuilder_ != null) { return recipientSignatureRejectionDocflowBuilder_.getMessageOrBuilder(); } else { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? + Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } } /** @@ -4496,27 +5109,35 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie private boolean isReceiptRequested_ ; /** * optional bool IsReceiptRequested = 12; + * @return Whether the isReceiptRequested field is set. */ + @java.lang.Override public boolean hasIsReceiptRequested() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional bool IsReceiptRequested = 12; + * @return The isReceiptRequested. */ + @java.lang.Override public boolean getIsReceiptRequested() { return isReceiptRequested_; } /** * optional bool IsReceiptRequested = 12; + * @param value The isReceiptRequested to set. + * @return This builder for chaining. */ public Builder setIsReceiptRequested(boolean value) { - bitField0_ |= 0x00000800; + isReceiptRequested_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * optional bool IsReceiptRequested = 12; + * @return This builder for chaining. */ public Builder clearIsReceiptRequested() { bitField0_ = (bitField0_ & ~0x00000800); @@ -4528,27 +5149,35 @@ public Builder clearIsReceiptRequested() { private boolean isRecipientSignatureRequested_ ; /** * optional bool IsRecipientSignatureRequested = 13; + * @return Whether the isRecipientSignatureRequested field is set. */ + @java.lang.Override public boolean hasIsRecipientSignatureRequested() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional bool IsRecipientSignatureRequested = 13; + * @return The isRecipientSignatureRequested. */ + @java.lang.Override public boolean getIsRecipientSignatureRequested() { return isRecipientSignatureRequested_; } /** * optional bool IsRecipientSignatureRequested = 13; + * @param value The isRecipientSignatureRequested to set. + * @return This builder for chaining. */ public Builder setIsRecipientSignatureRequested(boolean value) { - bitField0_ |= 0x00001000; + isRecipientSignatureRequested_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } /** * optional bool IsRecipientSignatureRequested = 13; + * @return This builder for chaining. */ public Builder clearIsRecipientSignatureRequested() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4560,27 +5189,35 @@ public Builder clearIsRecipientSignatureRequested() { private boolean isDocumentSignedByRecipient_ ; /** * optional bool IsDocumentSignedByRecipient = 14; + * @return Whether the isDocumentSignedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentSignedByRecipient() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional bool IsDocumentSignedByRecipient = 14; + * @return The isDocumentSignedByRecipient. */ + @java.lang.Override public boolean getIsDocumentSignedByRecipient() { return isDocumentSignedByRecipient_; } /** * optional bool IsDocumentSignedByRecipient = 14; + * @param value The isDocumentSignedByRecipient to set. + * @return This builder for chaining. */ public Builder setIsDocumentSignedByRecipient(boolean value) { - bitField0_ |= 0x00002000; + isDocumentSignedByRecipient_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } /** * optional bool IsDocumentSignedByRecipient = 14; + * @return This builder for chaining. */ public Builder clearIsDocumentSignedByRecipient() { bitField0_ = (bitField0_ & ~0x00002000); @@ -4592,27 +5229,35 @@ public Builder clearIsDocumentSignedByRecipient() { private boolean isDocumentRejectedByRecipient_ ; /** * optional bool IsDocumentRejectedByRecipient = 15; + * @return Whether the isDocumentRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentRejectedByRecipient() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional bool IsDocumentRejectedByRecipient = 15; + * @return The isDocumentRejectedByRecipient. */ + @java.lang.Override public boolean getIsDocumentRejectedByRecipient() { return isDocumentRejectedByRecipient_; } /** * optional bool IsDocumentRejectedByRecipient = 15; + * @param value The isDocumentRejectedByRecipient to set. + * @return This builder for chaining. */ public Builder setIsDocumentRejectedByRecipient(boolean value) { - bitField0_ |= 0x00004000; + isDocumentRejectedByRecipient_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } /** * optional bool IsDocumentRejectedByRecipient = 15; + * @return This builder for chaining. */ public Builder clearIsDocumentRejectedByRecipient() { bitField0_ = (bitField0_ & ~0x00004000); @@ -4624,27 +5269,35 @@ public Builder clearIsDocumentRejectedByRecipient() { private boolean canDocumentBeReceipted_ ; /** * optional bool CanDocumentBeReceipted = 16; + * @return Whether the canDocumentBeReceipted field is set. */ + @java.lang.Override public boolean hasCanDocumentBeReceipted() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional bool CanDocumentBeReceipted = 16; + * @return The canDocumentBeReceipted. */ + @java.lang.Override public boolean getCanDocumentBeReceipted() { return canDocumentBeReceipted_; } /** * optional bool CanDocumentBeReceipted = 16; + * @param value The canDocumentBeReceipted to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeReceipted(boolean value) { - bitField0_ |= 0x00008000; + canDocumentBeReceipted_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } /** * optional bool CanDocumentBeReceipted = 16; + * @return This builder for chaining. */ public Builder clearCanDocumentBeReceipted() { bitField0_ = (bitField0_ & ~0x00008000); @@ -4656,27 +5309,35 @@ public Builder clearCanDocumentBeReceipted() { private boolean canDocumentBeSignedOrRejectedByRecipient_ ; /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 17; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedOrRejectedByRecipient() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 17; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ + @java.lang.Override public boolean getCanDocumentBeSignedOrRejectedByRecipient() { return canDocumentBeSignedOrRejectedByRecipient_; } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 17; + * @param value The canDocumentBeSignedOrRejectedByRecipient to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeSignedOrRejectedByRecipient(boolean value) { - bitField0_ |= 0x00010000; + canDocumentBeSignedOrRejectedByRecipient_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 17; + * @return This builder for chaining. */ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { bitField0_ = (bitField0_ & ~0x00010000); @@ -4688,22 +5349,62 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow) + private static final Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow DEFAULT_INSTANCE; static { - defaultInstance = new OutboundUniversalTransferDocumentDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutboundUniversalTransferDocumentDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.UniversalTransferDocumentDocflowProtos.OutboundUniversalTransferDocumentDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.OutboundUniversalTransferDocumentDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_InboundUniversalTransferDocumentDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_InboundUniversalTransferDocumentDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_OutboundUniversalTransferDocumentDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_OutboundUniversalTransferDocumentDocflow_fieldAccessorTable; @@ -4711,7 +5412,7 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -4721,10 +5422,10 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { "ocflow/ReceiptDocflow.proto\032!Docflow/Xml" + "BilateralDocflow.proto\0320Docflow/Recipien" + "tSignatureRejectionDocflow.proto\032\034Docflo" + - "w/InvoiceDocflow.proto\"\322\006\n\'InboundUniver" + + "w/InvoiceDocflow.proto\"\326\006\n\'InboundUniver" + "salTransferDocumentDocflow\022\022\n\nIsFinished" + "\030\001 \001(\010\022N\n\016ReceiptDocflow\030\002 \001(\01326.Diadoc." + - "Api.Proto.Docflow.InboundInvoiceReceiptD", + "Api.Proto.Docflow.InboundInvoiceReceiptD" + "ocflow\022Q\n\023ConfirmationDocflow\030\003 \001(\01324.Di" + "adoc.Api.Proto.Docflow.InvoiceConfirmati" + "onDocflow\022[\n\030CorrectionRequestDocflow\030\004 " + @@ -4734,7 +5435,7 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { "mp\022\034\n\024IsAmendmentRequested\030\006 \001(\010\022\021\n\tIsRe" + "vised\030\007 \001(\010\022\023\n\013IsCorrected\030\010 \001(\010\022F\n\021Buye" + "rTitleDocflow\030\t \001(\0132+.Diadoc.Api.Proto.D" + - "ocflow.BuyerTitleDocflow\022h\n\"RecipientSig", + "ocflow.BuyerTitleDocflow\022h\n\"RecipientSig" + "natureRejectionDocflow\030\n \001(\0132<.Diadoc.Ap" + "i.Proto.Docflow.RecipientSignatureReject" + "ionDocflow\022\032\n\022IsReceiptRequested\030\013 \001(\010\022%" + @@ -4742,40 +5443,33 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { "\033IsDocumentSignedByRecipient\030\r \001(\010\022%\n\035Is" + "DocumentRejectedByRecipient\030\016 \001(\010\022\036\n\026Can" + "DocumentBeReceipted\030\017 \001(\010\0220\n(CanDocument" + - "BeSignedOrRejectedByRecipient\030\020 \001(\010\"\352\006\n(" + - "OutboundUniversalTransferDocumentDocflow" + - "\022\022\n\nIsFinished\030\001 \001(\010\022@\n\016ReceiptDocflow\030\002", - " \001(\0132(.Diadoc.Api.Proto.Docflow.ReceiptD" + - "ocflow\022Q\n\023ConfirmationDocflow\030\003 \001(\01324.Di" + - "adoc.Api.Proto.Docflow.InvoiceConfirmati" + - "onDocflow\022[\n\030CorrectionRequestDocflow\030\004 " + - "\001(\01329.Diadoc.Api.Proto.Docflow.InvoiceCo" + - "rrectionRequestDocflow\022:\n\025ConfirmationTi" + - "mestamp\030\005 \001(\0132\033.Diadoc.Api.Proto.Timesta" + - "mp\022\034\n\024IsAmendmentRequested\030\006 \001(\010\022\021\n\tIsRe" + - "vised\030\007 \001(\010\022\023\n\013IsCorrected\030\010 \001(\010\022#\n\033CanD" + - "ocumentBeSignedBySender\030\t \001(\010\022F\n\021BuyerTi", - "tleDocflow\030\n \001(\0132+.Diadoc.Api.Proto.Docf" + - "low.BuyerTitleDocflow\022h\n\"RecipientSignat" + - "ureRejectionDocflow\030\013 \001(\0132<.Diadoc.Api.P" + - "roto.Docflow.RecipientSignatureRejection" + - "Docflow\022\032\n\022IsReceiptRequested\030\014 \001(\010\022%\n\035I" + - "sRecipientSignatureRequested\030\r \001(\010\022#\n\033Is" + - "DocumentSignedByRecipient\030\016 \001(\010\022%\n\035IsDoc" + - "umentRejectedByRecipient\030\017 \001(\010\022\036\n\026CanDoc" + - "umentBeReceipted\030\020 \001(\010\0220\n(CanDocumentBeS" + - "ignedOrRejectedByRecipient\030\021 \001(\010B(B&Univ", - "ersalTransferDocumentDocflowProtos" + "BeSignedOrRejectedByRecipient\030\020 \001(\010:\002\030\001\"" + + "\356\006\n(OutboundUniversalTransferDocumentDoc" + + "flow\022\022\n\nIsFinished\030\001 \001(\010\022@\n\016ReceiptDocfl" + + "ow\030\002 \001(\0132(.Diadoc.Api.Proto.Docflow.Rece" + + "iptDocflow\022Q\n\023ConfirmationDocflow\030\003 \001(\0132" + + "4.Diadoc.Api.Proto.Docflow.InvoiceConfir" + + "mationDocflow\022[\n\030CorrectionRequestDocflo" + + "w\030\004 \001(\01329.Diadoc.Api.Proto.Docflow.Invoi" + + "ceCorrectionRequestDocflow\022:\n\025Confirmati" + + "onTimestamp\030\005 \001(\0132\033.Diadoc.Api.Proto.Tim" + + "estamp\022\034\n\024IsAmendmentRequested\030\006 \001(\010\022\021\n\t" + + "IsRevised\030\007 \001(\010\022\023\n\013IsCorrected\030\010 \001(\010\022#\n\033" + + "CanDocumentBeSignedBySender\030\t \001(\010\022F\n\021Buy" + + "erTitleDocflow\030\n \001(\0132+.Diadoc.Api.Proto." + + "Docflow.BuyerTitleDocflow\022h\n\"RecipientSi" + + "gnatureRejectionDocflow\030\013 \001(\0132<.Diadoc.A" + + "pi.Proto.Docflow.RecipientSignatureRejec" + + "tionDocflow\022\032\n\022IsReceiptRequested\030\014 \001(\010\022" + + "%\n\035IsRecipientSignatureRequested\030\r \001(\010\022#" + + "\n\033IsDocumentSignedByRecipient\030\016 \001(\010\022%\n\035I" + + "sDocumentRejectedByRecipient\030\017 \001(\010\022\036\n\026Ca" + + "nDocumentBeReceipted\030\020 \001(\010\0220\n(CanDocumen" + + "tBeSignedOrRejectedByRecipient\030\021 \001(\010:\002\030\001" + + "B+B&UniversalTransferDocumentDocflowProt" + + "os\270\001\001" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), @@ -4784,7 +5478,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.InvoiceDocflowProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_InboundUniversalTransferDocumentDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_InboundUniversalTransferDocumentDocflow_fieldAccessorTable = new @@ -4797,6 +5491,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_OutboundUniversalTransferDocumentDocflow_descriptor, new java.lang.String[] { "IsFinished", "ReceiptDocflow", "ConfirmationDocflow", "CorrectionRequestDocflow", "ConfirmationTimestamp", "IsAmendmentRequested", "IsRevised", "IsCorrected", "CanDocumentBeSignedBySender", "BuyerTitleDocflow", "RecipientSignatureRejectionDocflow", "IsReceiptRequested", "IsRecipientSignatureRequested", "IsDocumentSignedByRecipient", "IsDocumentRejectedByRecipient", "CanDocumentBeReceipted", "CanDocumentBeSignedOrRejectedByRecipient", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/XmlBilateralDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/XmlBilateralDocflowProtos.java index f4abb6b3..a2502834 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/XmlBilateralDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/XmlBilateralDocflowProtos.java @@ -1,32 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Docflow/XmlBilateralDocflow.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Docflow; -public final class XmlBilateralDocflowProtos { +@java.lang.Deprecated public final class XmlBilateralDocflowProtos { private XmlBilateralDocflowProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + XmlBilateralDocflowProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface XmlBilateralDocflowOrBuilder extends + @java.lang.Deprecated public interface XmlBilateralDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.XmlBilateralDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ boolean hasReceiptDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow(); /** @@ -36,10 +57,12 @@ public interface XmlBilateralDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 3; + * @return Whether the buyerTitleDocflow field is set. */ boolean hasBuyerTitleDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 3; + * @return The buyerTitleDocflow. */ Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getBuyerTitleDocflow(); /** @@ -49,10 +72,12 @@ public interface XmlBilateralDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ boolean hasRecipientSignatureRejectionDocflow(); /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return The recipientSignatureRejectionDocflow. */ Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow(); /** @@ -62,201 +87,100 @@ public interface XmlBilateralDocflowOrBuilder extends /** * optional bool IsReceiptRequested = 5; + * @return Whether the isReceiptRequested field is set. */ boolean hasIsReceiptRequested(); /** * optional bool IsReceiptRequested = 5; + * @return The isReceiptRequested. */ boolean getIsReceiptRequested(); /** * optional bool IsDocumentSignedByRecipient = 6; + * @return Whether the isDocumentSignedByRecipient field is set. */ boolean hasIsDocumentSignedByRecipient(); /** * optional bool IsDocumentSignedByRecipient = 6; + * @return The isDocumentSignedByRecipient. */ boolean getIsDocumentSignedByRecipient(); /** * optional bool IsDocumentRejectedByRecipient = 7; + * @return Whether the isDocumentRejectedByRecipient field is set. */ boolean hasIsDocumentRejectedByRecipient(); /** * optional bool IsDocumentRejectedByRecipient = 7; + * @return The isDocumentRejectedByRecipient. */ boolean getIsDocumentRejectedByRecipient(); /** * optional bool CanDocumentBeReceipted = 8; + * @return Whether the canDocumentBeReceipted field is set. */ boolean hasCanDocumentBeReceipted(); /** * optional bool CanDocumentBeReceipted = 8; + * @return The canDocumentBeReceipted. */ boolean getCanDocumentBeReceipted(); /** * optional bool CanDocumentBeSignedBySender = 9; + * @return Whether the canDocumentBeSignedBySender field is set. */ boolean hasCanDocumentBeSignedBySender(); /** * optional bool CanDocumentBeSignedBySender = 9; + * @return The canDocumentBeSignedBySender. */ boolean getCanDocumentBeSignedBySender(); /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 10; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ boolean hasCanDocumentBeSignedOrRejectedByRecipient(); /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 10; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ boolean getCanDocumentBeSignedOrRejectedByRecipient(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.XmlBilateralDocflow} */ - public static final class XmlBilateralDocflow extends + @java.lang.Deprecated public static final class XmlBilateralDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.XmlBilateralDocflow) XmlBilateralDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + XmlBilateralDocflow.class.getName()); + } // Use XmlBilateralDocflow.newBuilder() to construct. private XmlBilateralDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private XmlBilateralDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final XmlBilateralDocflow defaultInstance; - public static XmlBilateralDocflow getDefaultInstance() { - return defaultInstance; - } - - public XmlBilateralDocflow getDefaultInstanceForType() { - return defaultInstance; + private XmlBilateralDocflow() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private XmlBilateralDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = receiptDocflow_.toBuilder(); - } - receiptDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptDocflow_); - receiptDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = buyerTitleDocflow_.toBuilder(); - } - buyerTitleDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(buyerTitleDocflow_); - buyerTitleDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = recipientSignatureRejectionDocflow_.toBuilder(); - } - recipientSignatureRejectionDocflow_ = input.readMessage(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientSignatureRejectionDocflow_); - recipientSignatureRejectionDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 40: { - bitField0_ |= 0x00000010; - isReceiptRequested_ = input.readBool(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - isDocumentSignedByRecipient_ = input.readBool(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - isDocumentRejectedByRecipient_ = input.readBool(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - canDocumentBeReceipted_ = input.readBool(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - canDocumentBeSignedBySender_ = input.readBool(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - canDocumentBeSignedOrRejectedByRecipient_ = input.readBool(); - 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.Docflow.XmlBilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_XmlBilateralDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_XmlBilateralDocflow_fieldAccessorTable @@ -264,33 +188,22 @@ private XmlBilateralDocflow( Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.class, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public XmlBilateralDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new XmlBilateralDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -299,168 +212,196 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ + @java.lang.Override public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder getReceiptDocflowOrBuilder() { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } public static final int BUYERTITLEDOCFLOW_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buyerTitleDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 3; + * @return Whether the buyerTitleDocflow field is set. */ + @java.lang.Override public boolean hasBuyerTitleDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 3; + * @return The buyerTitleDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getBuyerTitleDocflow() { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBuilder getBuyerTitleDocflowOrBuilder() { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } public static final int RECIPIENTSIGNATUREREJECTIONDOCFLOW_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ + @java.lang.Override public boolean hasRecipientSignatureRejectionDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return The recipientSignatureRejectionDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow() { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflowOrBuilder getRecipientSignatureRejectionDocflowOrBuilder() { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } public static final int ISRECEIPTREQUESTED_FIELD_NUMBER = 5; - private boolean isReceiptRequested_; + private boolean isReceiptRequested_ = false; /** * optional bool IsReceiptRequested = 5; + * @return Whether the isReceiptRequested field is set. */ + @java.lang.Override public boolean hasIsReceiptRequested() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool IsReceiptRequested = 5; + * @return The isReceiptRequested. */ + @java.lang.Override public boolean getIsReceiptRequested() { return isReceiptRequested_; } public static final int ISDOCUMENTSIGNEDBYRECIPIENT_FIELD_NUMBER = 6; - private boolean isDocumentSignedByRecipient_; + private boolean isDocumentSignedByRecipient_ = false; /** * optional bool IsDocumentSignedByRecipient = 6; + * @return Whether the isDocumentSignedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentSignedByRecipient() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsDocumentSignedByRecipient = 6; + * @return The isDocumentSignedByRecipient. */ + @java.lang.Override public boolean getIsDocumentSignedByRecipient() { return isDocumentSignedByRecipient_; } public static final int ISDOCUMENTREJECTEDBYRECIPIENT_FIELD_NUMBER = 7; - private boolean isDocumentRejectedByRecipient_; + private boolean isDocumentRejectedByRecipient_ = false; /** * optional bool IsDocumentRejectedByRecipient = 7; + * @return Whether the isDocumentRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentRejectedByRecipient() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsDocumentRejectedByRecipient = 7; + * @return The isDocumentRejectedByRecipient. */ + @java.lang.Override public boolean getIsDocumentRejectedByRecipient() { return isDocumentRejectedByRecipient_; } public static final int CANDOCUMENTBERECEIPTED_FIELD_NUMBER = 8; - private boolean canDocumentBeReceipted_; + private boolean canDocumentBeReceipted_ = false; /** * optional bool CanDocumentBeReceipted = 8; + * @return Whether the canDocumentBeReceipted field is set. */ + @java.lang.Override public boolean hasCanDocumentBeReceipted() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool CanDocumentBeReceipted = 8; + * @return The canDocumentBeReceipted. */ + @java.lang.Override public boolean getCanDocumentBeReceipted() { return canDocumentBeReceipted_; } public static final int CANDOCUMENTBESIGNEDBYSENDER_FIELD_NUMBER = 9; - private boolean canDocumentBeSignedBySender_; + private boolean canDocumentBeSignedBySender_ = false; /** * optional bool CanDocumentBeSignedBySender = 9; + * @return Whether the canDocumentBeSignedBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedBySender() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional bool CanDocumentBeSignedBySender = 9; + * @return The canDocumentBeSignedBySender. */ + @java.lang.Override public boolean getCanDocumentBeSignedBySender() { return canDocumentBeSignedBySender_; } public static final int CANDOCUMENTBESIGNEDORREJECTEDBYRECIPIENT_FIELD_NUMBER = 10; - private boolean canDocumentBeSignedOrRejectedByRecipient_; + private boolean canDocumentBeSignedOrRejectedByRecipient_ = false; /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 10; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedOrRejectedByRecipient() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 10; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ + @java.lang.Override public boolean getCanDocumentBeSignedOrRejectedByRecipient() { return canDocumentBeSignedOrRejectedByRecipient_; } - private void initFields() { - isFinished_ = false; - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - isReceiptRequested_ = false; - isDocumentSignedByRecipient_ = false; - isDocumentRejectedByRecipient_ = false; - canDocumentBeReceipted_ = false; - canDocumentBeSignedBySender_ = false; - canDocumentBeSignedOrRejectedByRecipient_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -488,100 +429,227 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, receiptDocflow_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, buyerTitleDocflow_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getBuyerTitleDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, recipientSignatureRejectionDocflow_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getRecipientSignatureRejectionDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, isReceiptRequested_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, isDocumentSignedByRecipient_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, isDocumentRejectedByRecipient_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(8, canDocumentBeReceipted_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(9, canDocumentBeSignedBySender_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(10, canDocumentBeSignedOrRejectedByRecipient_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receiptDocflow_); + .computeMessageSize(2, getReceiptDocflow()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, buyerTitleDocflow_); + .computeMessageSize(3, getBuyerTitleDocflow()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, recipientSignatureRejectionDocflow_); + .computeMessageSize(4, getRecipientSignatureRejectionDocflow()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isReceiptRequested_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, isDocumentSignedByRecipient_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isDocumentRejectedByRecipient_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, canDocumentBeReceipted_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, canDocumentBeSignedBySender_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, canDocumentBeSignedOrRejectedByRecipient_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow other = (Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasReceiptDocflow() != other.hasReceiptDocflow()) return false; + if (hasReceiptDocflow()) { + if (!getReceiptDocflow() + .equals(other.getReceiptDocflow())) return false; + } + if (hasBuyerTitleDocflow() != other.hasBuyerTitleDocflow()) return false; + if (hasBuyerTitleDocflow()) { + if (!getBuyerTitleDocflow() + .equals(other.getBuyerTitleDocflow())) return false; + } + if (hasRecipientSignatureRejectionDocflow() != other.hasRecipientSignatureRejectionDocflow()) return false; + if (hasRecipientSignatureRejectionDocflow()) { + if (!getRecipientSignatureRejectionDocflow() + .equals(other.getRecipientSignatureRejectionDocflow())) return false; + } + if (hasIsReceiptRequested() != other.hasIsReceiptRequested()) return false; + if (hasIsReceiptRequested()) { + if (getIsReceiptRequested() + != other.getIsReceiptRequested()) return false; + } + if (hasIsDocumentSignedByRecipient() != other.hasIsDocumentSignedByRecipient()) return false; + if (hasIsDocumentSignedByRecipient()) { + if (getIsDocumentSignedByRecipient() + != other.getIsDocumentSignedByRecipient()) return false; + } + if (hasIsDocumentRejectedByRecipient() != other.hasIsDocumentRejectedByRecipient()) return false; + if (hasIsDocumentRejectedByRecipient()) { + if (getIsDocumentRejectedByRecipient() + != other.getIsDocumentRejectedByRecipient()) return false; + } + if (hasCanDocumentBeReceipted() != other.hasCanDocumentBeReceipted()) return false; + if (hasCanDocumentBeReceipted()) { + if (getCanDocumentBeReceipted() + != other.getCanDocumentBeReceipted()) return false; + } + if (hasCanDocumentBeSignedBySender() != other.hasCanDocumentBeSignedBySender()) return false; + if (hasCanDocumentBeSignedBySender()) { + if (getCanDocumentBeSignedBySender() + != other.getCanDocumentBeSignedBySender()) return false; + } + if (hasCanDocumentBeSignedOrRejectedByRecipient() != other.hasCanDocumentBeSignedOrRejectedByRecipient()) return false; + if (hasCanDocumentBeSignedOrRejectedByRecipient()) { + if (getCanDocumentBeSignedOrRejectedByRecipient() + != other.getCanDocumentBeSignedOrRejectedByRecipient()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasReceiptDocflow()) { + hash = (37 * hash) + RECEIPTDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getReceiptDocflow().hashCode(); + } + if (hasBuyerTitleDocflow()) { + hash = (37 * hash) + BUYERTITLEDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getBuyerTitleDocflow().hashCode(); + } + if (hasRecipientSignatureRejectionDocflow()) { + hash = (37 * hash) + RECIPIENTSIGNATUREREJECTIONDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getRecipientSignatureRejectionDocflow().hashCode(); + } + if (hasIsReceiptRequested()) { + hash = (37 * hash) + ISRECEIPTREQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsReceiptRequested()); + } + if (hasIsDocumentSignedByRecipient()) { + hash = (37 * hash) + ISDOCUMENTSIGNEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDocumentSignedByRecipient()); + } + if (hasIsDocumentRejectedByRecipient()) { + hash = (37 * hash) + ISDOCUMENTREJECTEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDocumentRejectedByRecipient()); + } + if (hasCanDocumentBeReceipted()) { + hash = (37 * hash) + CANDOCUMENTBERECEIPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeReceipted()); + } + if (hasCanDocumentBeSignedBySender()) { + hash = (37 * hash) + CANDOCUMENTBESIGNEDBYSENDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeSignedBySender()); + } + if (hasCanDocumentBeSignedOrRejectedByRecipient()) { + hash = (37 * hash) + CANDOCUMENTBESIGNEDORREJECTEDBYRECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanDocumentBeSignedOrRejectedByRecipient()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -605,42 +673,57 @@ public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDoc } public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -660,6 +743,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_XmlBilateralDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_XmlBilateralDocflow_fieldAccessorTable @@ -678,66 +762,54 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getReceiptDocflowFieldBuilder(); getBuyerTitleDocflowFieldBuilder(); getRecipientSignatureRejectionDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - } else { - receiptDocflowBuilder_.clear(); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (buyerTitleDocflowBuilder_ == null) { - buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); - } else { - buyerTitleDocflowBuilder_.clear(); + buyerTitleDocflow_ = null; + if (buyerTitleDocflowBuilder_ != null) { + buyerTitleDocflowBuilder_.dispose(); + buyerTitleDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (recipientSignatureRejectionDocflowBuilder_ == null) { - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - } else { - recipientSignatureRejectionDocflowBuilder_.clear(); + recipientSignatureRejectionDocflow_ = null; + if (recipientSignatureRejectionDocflowBuilder_ != null) { + recipientSignatureRejectionDocflowBuilder_.dispose(); + recipientSignatureRejectionDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); isReceiptRequested_ = false; - bitField0_ = (bitField0_ & ~0x00000010); isDocumentSignedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00000020); isDocumentRejectedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00000040); canDocumentBeReceipted_ = false; - bitField0_ = (bitField0_ & ~0x00000080); canDocumentBeSignedBySender_ = false; - bitField0_ = (bitField0_ & ~0x00000100); canDocumentBeSignedOrRejectedByRecipient_ = false; - bitField0_ = (bitField0_ & ~0x00000200); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_XmlBilateralDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow build() { Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -746,67 +818,67 @@ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow bu return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow buildPartial() { Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow result = new Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptDocflow_ = receiptDocflowBuilder_ == null + ? receiptDocflow_ + : receiptDocflowBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (receiptDocflowBuilder_ == null) { - result.receiptDocflow_ = receiptDocflow_; - } else { - result.receiptDocflow_ = receiptDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.buyerTitleDocflow_ = buyerTitleDocflowBuilder_ == null + ? buyerTitleDocflow_ + : buyerTitleDocflowBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (buyerTitleDocflowBuilder_ == null) { - result.buyerTitleDocflow_ = buyerTitleDocflow_; - } else { - result.buyerTitleDocflow_ = buyerTitleDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflowBuilder_ == null + ? recipientSignatureRejectionDocflow_ + : recipientSignatureRejectionDocflowBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (recipientSignatureRejectionDocflowBuilder_ == null) { - result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflow_; - } else { - result.recipientSignatureRejectionDocflow_ = recipientSignatureRejectionDocflowBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isReceiptRequested_ = isReceiptRequested_; to_bitField0_ |= 0x00000010; } - result.isReceiptRequested_ = isReceiptRequested_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isDocumentSignedByRecipient_ = isDocumentSignedByRecipient_; to_bitField0_ |= 0x00000020; } - result.isDocumentSignedByRecipient_ = isDocumentSignedByRecipient_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isDocumentRejectedByRecipient_ = isDocumentRejectedByRecipient_; to_bitField0_ |= 0x00000040; } - result.isDocumentRejectedByRecipient_ = isDocumentRejectedByRecipient_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.canDocumentBeReceipted_ = canDocumentBeReceipted_; to_bitField0_ |= 0x00000080; } - result.canDocumentBeReceipted_ = canDocumentBeReceipted_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.canDocumentBeSignedBySender_ = canDocumentBeSignedBySender_; to_bitField0_ |= 0x00000100; } - result.canDocumentBeSignedBySender_ = canDocumentBeSignedBySender_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.canDocumentBeSignedOrRejectedByRecipient_ = canDocumentBeSignedOrRejectedByRecipient_; to_bitField0_ |= 0x00000200; } - result.canDocumentBeSignedOrRejectedByRecipient_ = canDocumentBeSignedOrRejectedByRecipient_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow)other); @@ -849,46 +921,115 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlB setCanDocumentBeSignedOrRejectedByRecipient(other.getCanDocumentBeSignedOrRejectedByRecipient()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasReceiptDocflow()) { if (!getReceiptDocflow().isInitialized()) { - return false; } } if (hasBuyerTitleDocflow()) { if (!getBuyerTitleDocflow().isInitialized()) { - return false; } } if (hasRecipientSignatureRejectionDocflow()) { if (!getRecipientSignatureRejectionDocflow().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getReceiptDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getBuyerTitleDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getRecipientSignatureRejectionDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + isReceiptRequested_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + isDocumentSignedByRecipient_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + isDocumentRejectedByRecipient_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + canDocumentBeReceipted_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + canDocumentBeSignedBySender_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + canDocumentBeSignedOrRejectedByRecipient_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -896,27 +1037,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -925,21 +1074,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow receiptDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder, Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder> receiptDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return Whether the receiptDocflow field is set. */ public boolean hasReceiptDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; + * @return The receiptDocflow. */ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow getReceiptDocflow() { if (receiptDocflowBuilder_ == null) { - return receiptDocflow_; + return receiptDocflow_ == null ? Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } else { return receiptDocflowBuilder_.getMessage(); } @@ -953,11 +1104,11 @@ public Builder setReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.R throw new NullPointerException(); } receiptDocflow_ = value; - onChanged(); } else { receiptDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -967,11 +1118,11 @@ public Builder setReceiptDocflow( Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.Builder builderForValue) { if (receiptDocflowBuilder_ == null) { receiptDocflow_ = builderForValue.build(); - onChanged(); } else { receiptDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -979,31 +1130,33 @@ public Builder setReceiptDocflow( */ public Builder mergeReceiptDocflow(Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow value) { if (receiptDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { - receiptDocflow_ = - Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.newBuilder(receiptDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + receiptDocflow_ != null && + receiptDocflow_ != Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance()) { + getReceiptDocflowBuilder().mergeFrom(value); } else { receiptDocflow_ = value; } - onChanged(); } else { receiptDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (receiptDocflow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.ReceiptDocflow ReceiptDocflow = 2; */ public Builder clearReceiptDocflow() { - if (receiptDocflowBuilder_ == null) { - receiptDocflow_ = Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance(); - onChanged(); - } else { - receiptDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + receiptDocflow_ = null; + if (receiptDocflowBuilder_ != null) { + receiptDocflowBuilder_.dispose(); + receiptDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1021,7 +1174,8 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get if (receiptDocflowBuilder_ != null) { return receiptDocflowBuilder_.getMessageOrBuilder(); } else { - return receiptDocflow_; + return receiptDocflow_ == null ? + Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflow.getDefaultInstance() : receiptDocflow_; } } /** @@ -1041,21 +1195,23 @@ public Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.ReceiptDocflowOrBuilder get return receiptDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buyerTitleDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.Builder, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBuilder> buyerTitleDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 3; + * @return Whether the buyerTitleDocflow field is set. */ public boolean hasBuyerTitleDocflow() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 3; + * @return The buyerTitleDocflow. */ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getBuyerTitleDocflow() { if (buyerTitleDocflowBuilder_ == null) { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } else { return buyerTitleDocflowBuilder_.getMessage(); } @@ -1069,11 +1225,11 @@ public Builder setBuyerTitleDocflow(Diadoc.Api.Proto.Docflow.XmlBilateralDocflow throw new NullPointerException(); } buyerTitleDocflow_ = value; - onChanged(); } else { buyerTitleDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1083,11 +1239,11 @@ public Builder setBuyerTitleDocflow( Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.Builder builderForValue) { if (buyerTitleDocflowBuilder_ == null) { buyerTitleDocflow_ = builderForValue.build(); - onChanged(); } else { buyerTitleDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1095,31 +1251,33 @@ public Builder setBuyerTitleDocflow( */ public Builder mergeBuyerTitleDocflow(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow value) { if (buyerTitleDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - buyerTitleDocflow_ != Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance()) { - buyerTitleDocflow_ = - Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.newBuilder(buyerTitleDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + buyerTitleDocflow_ != null && + buyerTitleDocflow_ != Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance()) { + getBuyerTitleDocflowBuilder().mergeFrom(value); } else { buyerTitleDocflow_ = value; } - onChanged(); } else { buyerTitleDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (buyerTitleDocflow_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.BuyerTitleDocflow BuyerTitleDocflow = 3; */ public Builder clearBuyerTitleDocflow() { - if (buyerTitleDocflowBuilder_ == null) { - buyerTitleDocflow_ = Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); - onChanged(); - } else { - buyerTitleDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + buyerTitleDocflow_ = null; + if (buyerTitleDocflowBuilder_ != null) { + buyerTitleDocflowBuilder_.dispose(); + buyerTitleDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1137,7 +1295,8 @@ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBui if (buyerTitleDocflowBuilder_ != null) { return buyerTitleDocflowBuilder_.getMessageOrBuilder(); } else { - return buyerTitleDocflow_; + return buyerTitleDocflow_ == null ? + Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance() : buyerTitleDocflow_; } } /** @@ -1157,21 +1316,23 @@ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflowOrBui return buyerTitleDocflowBuilder_; } - private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow recipientSignatureRejectionDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder, Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflowOrBuilder> recipientSignatureRejectionDocflowBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return Whether the recipientSignatureRejectionDocflow field is set. */ public boolean hasRecipientSignatureRejectionDocflow() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; + * @return The recipientSignatureRejectionDocflow. */ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow getRecipientSignatureRejectionDocflow() { if (recipientSignatureRejectionDocflowBuilder_ == null) { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } else { return recipientSignatureRejectionDocflowBuilder_.getMessage(); } @@ -1185,11 +1346,11 @@ public Builder setRecipientSignatureRejectionDocflow(Diadoc.Api.Proto.Docflow.Re throw new NullPointerException(); } recipientSignatureRejectionDocflow_ = value; - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1199,11 +1360,11 @@ public Builder setRecipientSignatureRejectionDocflow( Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.Builder builderForValue) { if (recipientSignatureRejectionDocflowBuilder_ == null) { recipientSignatureRejectionDocflow_ = builderForValue.build(); - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1211,31 +1372,33 @@ public Builder setRecipientSignatureRejectionDocflow( */ public Builder mergeRecipientSignatureRejectionDocflow(Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow value) { if (recipientSignatureRejectionDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - recipientSignatureRejectionDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance()) { - recipientSignatureRejectionDocflow_ = - Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.newBuilder(recipientSignatureRejectionDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + recipientSignatureRejectionDocflow_ != null && + recipientSignatureRejectionDocflow_ != Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance()) { + getRecipientSignatureRejectionDocflowBuilder().mergeFrom(value); } else { recipientSignatureRejectionDocflow_ = value; } - onChanged(); } else { recipientSignatureRejectionDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (recipientSignatureRejectionDocflow_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflow RecipientSignatureRejectionDocflow = 4; */ public Builder clearRecipientSignatureRejectionDocflow() { - if (recipientSignatureRejectionDocflowBuilder_ == null) { - recipientSignatureRejectionDocflow_ = Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance(); - onChanged(); - } else { - recipientSignatureRejectionDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + recipientSignatureRejectionDocflow_ = null; + if (recipientSignatureRejectionDocflowBuilder_ != null) { + recipientSignatureRejectionDocflowBuilder_.dispose(); + recipientSignatureRejectionDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -1253,7 +1416,8 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie if (recipientSignatureRejectionDocflowBuilder_ != null) { return recipientSignatureRejectionDocflowBuilder_.getMessageOrBuilder(); } else { - return recipientSignatureRejectionDocflow_; + return recipientSignatureRejectionDocflow_ == null ? + Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.RecipientSignatureRejectionDocflow.getDefaultInstance() : recipientSignatureRejectionDocflow_; } } /** @@ -1276,27 +1440,35 @@ public Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.Recipie private boolean isReceiptRequested_ ; /** * optional bool IsReceiptRequested = 5; + * @return Whether the isReceiptRequested field is set. */ + @java.lang.Override public boolean hasIsReceiptRequested() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional bool IsReceiptRequested = 5; + * @return The isReceiptRequested. */ + @java.lang.Override public boolean getIsReceiptRequested() { return isReceiptRequested_; } /** * optional bool IsReceiptRequested = 5; + * @param value The isReceiptRequested to set. + * @return This builder for chaining. */ public Builder setIsReceiptRequested(boolean value) { - bitField0_ |= 0x00000010; + isReceiptRequested_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional bool IsReceiptRequested = 5; + * @return This builder for chaining. */ public Builder clearIsReceiptRequested() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1308,27 +1480,35 @@ public Builder clearIsReceiptRequested() { private boolean isDocumentSignedByRecipient_ ; /** * optional bool IsDocumentSignedByRecipient = 6; + * @return Whether the isDocumentSignedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentSignedByRecipient() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional bool IsDocumentSignedByRecipient = 6; + * @return The isDocumentSignedByRecipient. */ + @java.lang.Override public boolean getIsDocumentSignedByRecipient() { return isDocumentSignedByRecipient_; } /** * optional bool IsDocumentSignedByRecipient = 6; + * @param value The isDocumentSignedByRecipient to set. + * @return This builder for chaining. */ public Builder setIsDocumentSignedByRecipient(boolean value) { - bitField0_ |= 0x00000020; + isDocumentSignedByRecipient_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional bool IsDocumentSignedByRecipient = 6; + * @return This builder for chaining. */ public Builder clearIsDocumentSignedByRecipient() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1340,27 +1520,35 @@ public Builder clearIsDocumentSignedByRecipient() { private boolean isDocumentRejectedByRecipient_ ; /** * optional bool IsDocumentRejectedByRecipient = 7; + * @return Whether the isDocumentRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasIsDocumentRejectedByRecipient() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional bool IsDocumentRejectedByRecipient = 7; + * @return The isDocumentRejectedByRecipient. */ + @java.lang.Override public boolean getIsDocumentRejectedByRecipient() { return isDocumentRejectedByRecipient_; } /** * optional bool IsDocumentRejectedByRecipient = 7; + * @param value The isDocumentRejectedByRecipient to set. + * @return This builder for chaining. */ public Builder setIsDocumentRejectedByRecipient(boolean value) { - bitField0_ |= 0x00000040; + isDocumentRejectedByRecipient_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional bool IsDocumentRejectedByRecipient = 7; + * @return This builder for chaining. */ public Builder clearIsDocumentRejectedByRecipient() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1372,27 +1560,35 @@ public Builder clearIsDocumentRejectedByRecipient() { private boolean canDocumentBeReceipted_ ; /** * optional bool CanDocumentBeReceipted = 8; + * @return Whether the canDocumentBeReceipted field is set. */ + @java.lang.Override public boolean hasCanDocumentBeReceipted() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool CanDocumentBeReceipted = 8; + * @return The canDocumentBeReceipted. */ + @java.lang.Override public boolean getCanDocumentBeReceipted() { return canDocumentBeReceipted_; } /** * optional bool CanDocumentBeReceipted = 8; + * @param value The canDocumentBeReceipted to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeReceipted(boolean value) { - bitField0_ |= 0x00000080; + canDocumentBeReceipted_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional bool CanDocumentBeReceipted = 8; + * @return This builder for chaining. */ public Builder clearCanDocumentBeReceipted() { bitField0_ = (bitField0_ & ~0x00000080); @@ -1404,27 +1600,35 @@ public Builder clearCanDocumentBeReceipted() { private boolean canDocumentBeSignedBySender_ ; /** * optional bool CanDocumentBeSignedBySender = 9; + * @return Whether the canDocumentBeSignedBySender field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedBySender() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional bool CanDocumentBeSignedBySender = 9; + * @return The canDocumentBeSignedBySender. */ + @java.lang.Override public boolean getCanDocumentBeSignedBySender() { return canDocumentBeSignedBySender_; } /** * optional bool CanDocumentBeSignedBySender = 9; + * @param value The canDocumentBeSignedBySender to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeSignedBySender(boolean value) { - bitField0_ |= 0x00000100; + canDocumentBeSignedBySender_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional bool CanDocumentBeSignedBySender = 9; + * @return This builder for chaining. */ public Builder clearCanDocumentBeSignedBySender() { bitField0_ = (bitField0_ & ~0x00000100); @@ -1436,27 +1640,35 @@ public Builder clearCanDocumentBeSignedBySender() { private boolean canDocumentBeSignedOrRejectedByRecipient_ ; /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 10; + * @return Whether the canDocumentBeSignedOrRejectedByRecipient field is set. */ + @java.lang.Override public boolean hasCanDocumentBeSignedOrRejectedByRecipient() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 10; + * @return The canDocumentBeSignedOrRejectedByRecipient. */ + @java.lang.Override public boolean getCanDocumentBeSignedOrRejectedByRecipient() { return canDocumentBeSignedOrRejectedByRecipient_; } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 10; + * @param value The canDocumentBeSignedOrRejectedByRecipient to set. + * @return This builder for chaining. */ public Builder setCanDocumentBeSignedOrRejectedByRecipient(boolean value) { - bitField0_ |= 0x00000200; + canDocumentBeSignedOrRejectedByRecipient_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional bool CanDocumentBeSignedOrRejectedByRecipient = 10; + * @return This builder for chaining. */ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { bitField0_ = (bitField0_ & ~0x00000200); @@ -1468,33 +1680,77 @@ public Builder clearCanDocumentBeSignedOrRejectedByRecipient() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.XmlBilateralDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.XmlBilateralDocflow) + private static final Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow DEFAULT_INSTANCE; static { - defaultInstance = new XmlBilateralDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public XmlBilateralDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.XmlBilateralDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.XmlBilateralDocflow) } - public interface BuyerTitleDocflowOrBuilder extends + @java.lang.Deprecated public interface BuyerTitleDocflowOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Docflow.BuyerTitleDocflow) com.google.protobuf.MessageOrBuilder { /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ boolean hasIsFinished(); /** * optional bool IsFinished = 1; + * @return The isFinished. */ boolean getIsFinished(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment BuyerTitleAttachment = 2; + * @return Whether the buyerTitleAttachment field is set. */ boolean hasBuyerTitleAttachment(); /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment BuyerTitleAttachment = 2; + * @return The buyerTitleAttachment. */ Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getBuyerTitleAttachment(); /** @@ -1504,10 +1760,12 @@ public interface BuyerTitleDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 3; + * @return Whether the sendTimestamp field is set. */ boolean hasSendTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 3; + * @return The sendTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getSendTimestamp(); /** @@ -1517,10 +1775,12 @@ public interface BuyerTitleDocflowOrBuilder extends /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 4; + * @return Whether the deliveryTimestamp field is set. */ boolean hasDeliveryTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 4; + * @return The deliveryTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp(); /** @@ -1531,116 +1791,33 @@ public interface BuyerTitleDocflowOrBuilder extends /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.BuyerTitleDocflow} */ - public static final class BuyerTitleDocflow extends + @java.lang.Deprecated public static final class BuyerTitleDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Docflow.BuyerTitleDocflow) BuyerTitleDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BuyerTitleDocflow.class.getName()); + } // Use BuyerTitleDocflow.newBuilder() to construct. private BuyerTitleDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private BuyerTitleDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final BuyerTitleDocflow defaultInstance; - public static BuyerTitleDocflow getDefaultInstance() { - return defaultInstance; - } - - public BuyerTitleDocflow getDefaultInstanceForType() { - return defaultInstance; + private BuyerTitleDocflow() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BuyerTitleDocflow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isFinished_ = input.readBool(); - break; - } - case 18: { - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = buyerTitleAttachment_.toBuilder(); - } - buyerTitleAttachment_ = input.readMessage(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(buyerTitleAttachment_); - buyerTitleAttachment_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = sendTimestamp_.toBuilder(); - } - sendTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sendTimestamp_); - sendTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = deliveryTimestamp_.toBuilder(); - } - deliveryTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveryTimestamp_); - deliveryTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - 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.Docflow.XmlBilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_BuyerTitleDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_BuyerTitleDocflow_fieldAccessorTable @@ -1648,33 +1825,22 @@ private BuyerTitleDocflow( Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.class, Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BuyerTitleDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BuyerTitleDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISFINISHED_FIELD_NUMBER = 1; - private boolean isFinished_; + private boolean isFinished_ = false; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } @@ -1683,72 +1849,82 @@ public boolean getIsFinished() { private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment buyerTitleAttachment_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment BuyerTitleAttachment = 2; + * @return Whether the buyerTitleAttachment field is set. */ + @java.lang.Override public boolean hasBuyerTitleAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment BuyerTitleAttachment = 2; + * @return The buyerTitleAttachment. */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getBuyerTitleAttachment() { - return buyerTitleAttachment_; + return buyerTitleAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : buyerTitleAttachment_; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment BuyerTitleAttachment = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getBuyerTitleAttachmentOrBuilder() { - return buyerTitleAttachment_; + return buyerTitleAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : buyerTitleAttachment_; } public static final int SENDTIMESTAMP_FIELD_NUMBER = 3; private Diadoc.Api.Proto.TimestampProtos.Timestamp sendTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 3; + * @return Whether the sendTimestamp field is set. */ + @java.lang.Override public boolean hasSendTimestamp() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 3; + * @return The sendTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getSendTimestamp() { - return sendTimestamp_; + return sendTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sendTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 3; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSendTimestampOrBuilder() { - return sendTimestamp_; + return sendTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sendTimestamp_; } public static final int DELIVERYTIMESTAMP_FIELD_NUMBER = 4; private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 4; + * @return Whether the deliveryTimestamp field is set. */ + @java.lang.Override public boolean hasDeliveryTimestamp() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 4; + * @return The deliveryTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp() { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 4; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampOrBuilder() { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } - private void initFields() { - isFinished_ = false; - buyerTitleAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - sendTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1776,58 +1952,125 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, buyerTitleAttachment_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getBuyerTitleAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, sendTimestamp_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getSendTimestamp()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, deliveryTimestamp_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getDeliveryTimestamp()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFinished_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, buyerTitleAttachment_); + .computeMessageSize(2, getBuyerTitleAttachment()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, sendTimestamp_); + .computeMessageSize(3, getSendTimestamp()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, deliveryTimestamp_); + .computeMessageSize(4, getDeliveryTimestamp()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow other = (Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow) obj; + + if (hasIsFinished() != other.hasIsFinished()) return false; + if (hasIsFinished()) { + if (getIsFinished() + != other.getIsFinished()) return false; + } + if (hasBuyerTitleAttachment() != other.hasBuyerTitleAttachment()) return false; + if (hasBuyerTitleAttachment()) { + if (!getBuyerTitleAttachment() + .equals(other.getBuyerTitleAttachment())) return false; + } + if (hasSendTimestamp() != other.hasSendTimestamp()) return false; + if (hasSendTimestamp()) { + if (!getSendTimestamp() + .equals(other.getSendTimestamp())) return false; + } + if (hasDeliveryTimestamp() != other.hasDeliveryTimestamp()) return false; + if (hasDeliveryTimestamp()) { + if (!getDeliveryTimestamp() + .equals(other.getDeliveryTimestamp())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsFinished()) { + hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinished()); + } + if (hasBuyerTitleAttachment()) { + hash = (37 * hash) + BUYERTITLEATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getBuyerTitleAttachment().hashCode(); + } + if (hasSendTimestamp()) { + hash = (37 * hash) + SENDTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getSendTimestamp().hashCode(); + } + if (hasDeliveryTimestamp()) { + hash = (37 * hash) + DELIVERYTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getDeliveryTimestamp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1851,42 +2094,57 @@ public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocfl } public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1906,6 +2164,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_BuyerTitleDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_BuyerTitleDocflow_fieldAccessorTable @@ -1924,54 +2183,48 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getBuyerTitleAttachmentFieldBuilder(); getSendTimestampFieldBuilder(); getDeliveryTimestampFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isFinished_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (buyerTitleAttachmentBuilder_ == null) { - buyerTitleAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - } else { - buyerTitleAttachmentBuilder_.clear(); + buyerTitleAttachment_ = null; + if (buyerTitleAttachmentBuilder_ != null) { + buyerTitleAttachmentBuilder_.dispose(); + buyerTitleAttachmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (sendTimestampBuilder_ == null) { - sendTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - sendTimestampBuilder_.clear(); + sendTimestamp_ = null; + if (sendTimestampBuilder_ != null) { + sendTimestampBuilder_.dispose(); + sendTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (deliveryTimestampBuilder_ == null) { - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - deliveryTimestampBuilder_.clear(); + deliveryTimestamp_ = null; + if (deliveryTimestampBuilder_ != null) { + deliveryTimestampBuilder_.dispose(); + deliveryTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.internal_static_Diadoc_Api_Proto_Docflow_BuyerTitleDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow build() { Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -1980,43 +2233,43 @@ public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buil return result; } + @java.lang.Override public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow buildPartial() { Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow result = new Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isFinished_ = isFinished_; to_bitField0_ |= 0x00000001; } - result.isFinished_ = isFinished_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.buyerTitleAttachment_ = buyerTitleAttachmentBuilder_ == null + ? buyerTitleAttachment_ + : buyerTitleAttachmentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (buyerTitleAttachmentBuilder_ == null) { - result.buyerTitleAttachment_ = buyerTitleAttachment_; - } else { - result.buyerTitleAttachment_ = buyerTitleAttachmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sendTimestamp_ = sendTimestampBuilder_ == null + ? sendTimestamp_ + : sendTimestampBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (sendTimestampBuilder_ == null) { - result.sendTimestamp_ = sendTimestamp_; - } else { - result.sendTimestamp_ = sendTimestampBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deliveryTimestamp_ = deliveryTimestampBuilder_ == null + ? deliveryTimestamp_ + : deliveryTimestampBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (deliveryTimestampBuilder_ == null) { - result.deliveryTimestamp_ = deliveryTimestamp_; - } else { - result.deliveryTimestamp_ = deliveryTimestampBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow) { return mergeFrom((Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow)other); @@ -2041,46 +2294,85 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.Buye mergeDeliveryTimestamp(other.getDeliveryTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasBuyerTitleAttachment()) { if (!getBuyerTitleAttachment().isInitialized()) { - return false; } } if (hasSendTimestamp()) { if (!getSendTimestamp().isInitialized()) { - return false; } } if (hasDeliveryTimestamp()) { if (!getDeliveryTimestamp().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFinished_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getBuyerTitleAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSendTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDeliveryTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2088,27 +2380,35 @@ public Builder mergeFrom( private boolean isFinished_ ; /** * optional bool IsFinished = 1; + * @return Whether the isFinished field is set. */ + @java.lang.Override public boolean hasIsFinished() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional bool IsFinished = 1; + * @return The isFinished. */ + @java.lang.Override public boolean getIsFinished() { return isFinished_; } /** * optional bool IsFinished = 1; + * @param value The isFinished to set. + * @return This builder for chaining. */ public Builder setIsFinished(boolean value) { - bitField0_ |= 0x00000001; + isFinished_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool IsFinished = 1; + * @return This builder for chaining. */ public Builder clearIsFinished() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2117,21 +2417,23 @@ public Builder clearIsFinished() { return this; } - private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment buyerTitleAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); + private Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment buyerTitleAttachment_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder, Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder> buyerTitleAttachmentBuilder_; /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment BuyerTitleAttachment = 2; + * @return Whether the buyerTitleAttachment field is set. */ public boolean hasBuyerTitleAttachment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment BuyerTitleAttachment = 2; + * @return The buyerTitleAttachment. */ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment getBuyerTitleAttachment() { if (buyerTitleAttachmentBuilder_ == null) { - return buyerTitleAttachment_; + return buyerTitleAttachment_ == null ? Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : buyerTitleAttachment_; } else { return buyerTitleAttachmentBuilder_.getMessage(); } @@ -2145,11 +2447,11 @@ public Builder setBuyerTitleAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos throw new NullPointerException(); } buyerTitleAttachment_ = value; - onChanged(); } else { buyerTitleAttachmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2159,11 +2461,11 @@ public Builder setBuyerTitleAttachment( Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.Builder builderForValue) { if (buyerTitleAttachmentBuilder_ == null) { buyerTitleAttachment_ = builderForValue.build(); - onChanged(); } else { buyerTitleAttachmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2171,31 +2473,33 @@ public Builder setBuyerTitleAttachment( */ public Builder mergeBuyerTitleAttachment(Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment value) { if (buyerTitleAttachmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - buyerTitleAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { - buyerTitleAttachment_ = - Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.newBuilder(buyerTitleAttachment_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + buyerTitleAttachment_ != null && + buyerTitleAttachment_ != Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance()) { + getBuyerTitleAttachmentBuilder().mergeFrom(value); } else { buyerTitleAttachment_ = value; } - onChanged(); } else { buyerTitleAttachmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (buyerTitleAttachment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Docflow.SignedAttachment BuyerTitleAttachment = 2; */ public Builder clearBuyerTitleAttachment() { - if (buyerTitleAttachmentBuilder_ == null) { - buyerTitleAttachment_ = Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance(); - onChanged(); - } else { - buyerTitleAttachmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + buyerTitleAttachment_ = null; + if (buyerTitleAttachmentBuilder_ != null) { + buyerTitleAttachmentBuilder_.dispose(); + buyerTitleAttachmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -2213,7 +2517,8 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getBu if (buyerTitleAttachmentBuilder_ != null) { return buyerTitleAttachmentBuilder_.getMessageOrBuilder(); } else { - return buyerTitleAttachment_; + return buyerTitleAttachment_ == null ? + Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachment.getDefaultInstance() : buyerTitleAttachment_; } } /** @@ -2233,21 +2538,23 @@ public Diadoc.Api.Proto.Docflow.AttachmentProtos.SignedAttachmentOrBuilder getBu return buyerTitleAttachmentBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp sendTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp sendTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> sendTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 3; + * @return Whether the sendTimestamp field is set. */ public boolean hasSendTimestamp() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 3; + * @return The sendTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getSendTimestamp() { if (sendTimestampBuilder_ == null) { - return sendTimestamp_; + return sendTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sendTimestamp_; } else { return sendTimestampBuilder_.getMessage(); } @@ -2261,11 +2568,11 @@ public Builder setSendTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value throw new NullPointerException(); } sendTimestamp_ = value; - onChanged(); } else { sendTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2275,11 +2582,11 @@ public Builder setSendTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (sendTimestampBuilder_ == null) { sendTimestamp_ = builderForValue.build(); - onChanged(); } else { sendTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2287,31 +2594,33 @@ public Builder setSendTimestamp( */ public Builder mergeSendTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (sendTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - sendTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - sendTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(sendTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + sendTimestamp_ != null && + sendTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getSendTimestampBuilder().mergeFrom(value); } else { sendTimestamp_ = value; } - onChanged(); } else { sendTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (sendTimestamp_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp SendTimestamp = 3; */ public Builder clearSendTimestamp() { - if (sendTimestampBuilder_ == null) { - sendTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - sendTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + sendTimestamp_ = null; + if (sendTimestampBuilder_ != null) { + sendTimestampBuilder_.dispose(); + sendTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -2329,7 +2638,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSendTimestampOrBui if (sendTimestampBuilder_ != null) { return sendTimestampBuilder_.getMessageOrBuilder(); } else { - return sendTimestamp_; + return sendTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : sendTimestamp_; } } /** @@ -2349,21 +2659,23 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getSendTimestampOrBui return sendTimestampBuilder_; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp deliveryTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> deliveryTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 4; + * @return Whether the deliveryTimestamp field is set. */ public boolean hasDeliveryTimestamp() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 4; + * @return The deliveryTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getDeliveryTimestamp() { if (deliveryTimestampBuilder_ == null) { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } else { return deliveryTimestampBuilder_.getMessage(); } @@ -2377,11 +2689,11 @@ public Builder setDeliveryTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp v throw new NullPointerException(); } deliveryTimestamp_ = value; - onChanged(); } else { deliveryTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2391,11 +2703,11 @@ public Builder setDeliveryTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (deliveryTimestampBuilder_ == null) { deliveryTimestamp_ = builderForValue.build(); - onChanged(); } else { deliveryTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2403,31 +2715,33 @@ public Builder setDeliveryTimestamp( */ public Builder mergeDeliveryTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (deliveryTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - deliveryTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - deliveryTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(deliveryTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + deliveryTimestamp_ != null && + deliveryTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getDeliveryTimestampBuilder().mergeFrom(value); } else { deliveryTimestamp_ = value; } - onChanged(); } else { deliveryTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (deliveryTimestamp_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp DeliveryTimestamp = 4; */ public Builder clearDeliveryTimestamp() { - if (deliveryTimestampBuilder_ == null) { - deliveryTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - deliveryTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + deliveryTimestamp_ = null; + if (deliveryTimestampBuilder_ != null) { + deliveryTimestampBuilder_.dispose(); + deliveryTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -2445,7 +2759,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO if (deliveryTimestampBuilder_ != null) { return deliveryTimestampBuilder_.getMessageOrBuilder(); } else { - return deliveryTimestamp_; + return deliveryTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : deliveryTimestamp_; } } /** @@ -2468,22 +2783,62 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.BuyerTitleDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.BuyerTitleDocflow) + private static final Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow DEFAULT_INSTANCE; static { - defaultInstance = new BuyerTitleDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow(); + } + + public static Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuyerTitleDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Docflow.XmlBilateralDocflowProtos.BuyerTitleDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Docflow.BuyerTitleDocflow) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_XmlBilateralDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_XmlBilateralDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Docflow_BuyerTitleDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Docflow_BuyerTitleDocflow_fieldAccessorTable; @@ -2491,7 +2846,7 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -2499,12 +2854,12 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO "doc.Api.Proto.Docflow\032\017Timestamp.proto\032\030" + "Docflow/Attachment.proto\032\034Docflow/Receip" + "tDocflow.proto\0320Docflow/RecipientSignatu" + - "reRejectionDocflow.proto\"\374\003\n\023XmlBilatera" + + "reRejectionDocflow.proto\"\200\004\n\023XmlBilatera" + "lDocflow\022\022\n\nIsFinished\030\001 \001(\010\022@\n\016ReceiptD" + "ocflow\030\002 \001(\0132(.Diadoc.Api.Proto.Docflow." + "ReceiptDocflow\022F\n\021BuyerTitleDocflow\030\003 \001(" + "\0132+.Diadoc.Api.Proto.Docflow.BuyerTitleD" + - "ocflow\022h\n\"RecipientSignatureRejectionDoc", + "ocflow\022h\n\"RecipientSignatureRejectionDoc" + "flow\030\004 \001(\0132<.Diadoc.Api.Proto.Docflow.Re" + "cipientSignatureRejectionDocflow\022\032\n\022IsRe" + "ceiptRequested\030\005 \001(\010\022#\n\033IsDocumentSigned" + @@ -2512,30 +2867,22 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getDeliveryTimestampO "yRecipient\030\007 \001(\010\022\036\n\026CanDocumentBeReceipt" + "ed\030\010 \001(\010\022#\n\033CanDocumentBeSignedBySender\030" + "\t \001(\010\0220\n(CanDocumentBeSignedOrRejectedBy" + - "Recipient\030\n \001(\010\"\335\001\n\021BuyerTitleDocflow\022\022\n" + - "\nIsFinished\030\001 \001(\010\022H\n\024BuyerTitleAttachmen" + - "t\030\002 \001(\0132*.Diadoc.Api.Proto.Docflow.Signe", - "dAttachment\0222\n\rSendTimestamp\030\003 \001(\0132\033.Dia" + - "doc.Api.Proto.Timestamp\0226\n\021DeliveryTimes" + - "tamp\030\004 \001(\0132\033.Diadoc.Api.Proto.TimestampB" + - "\033B\031XmlBilateralDocflowProtos" + "Recipient\030\n \001(\010:\002\030\001\"\341\001\n\021BuyerTitleDocflo" + + "w\022\022\n\nIsFinished\030\001 \001(\010\022H\n\024BuyerTitleAttac" + + "hment\030\002 \001(\0132*.Diadoc.Api.Proto.Docflow.S" + + "ignedAttachment\0222\n\rSendTimestamp\030\003 \001(\0132\033" + + ".Diadoc.Api.Proto.Timestamp\0226\n\021DeliveryT" + + "imestamp\030\004 \001(\0132\033.Diadoc.Api.Proto.Timest" + + "amp:\002\030\001B\036B\031XmlBilateralDocflowProtos\270\001\001" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.TimestampProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.getDescriptor(), Diadoc.Api.Proto.Docflow.RecipientSignatureRejectionDocflowProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Docflow_XmlBilateralDocflow_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Docflow_XmlBilateralDocflow_fieldAccessorTable = new @@ -2548,6 +2895,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_BuyerTitleDocflow_descriptor, new java.lang.String[] { "IsFinished", "BuyerTitleAttachment", "SendTimestamp", "DeliveryTimestamp", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); Diadoc.Api.Proto.Docflow.ReceiptDocflowProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/DocflowStatusV3Protos.java b/src/main/java/Diadoc/Api/Proto/DocflowStatusV3Protos.java index eac0f27c..adc493ba 100644 --- a/src/main/java/Diadoc/Api/Proto/DocflowStatusV3Protos.java +++ b/src/main/java/Diadoc/Api/Proto/DocflowStatusV3Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: DocflowStatusV3.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class DocflowStatusV3Protos { private DocflowStatusV3Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowStatusV3Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DocflowStatusV3OrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.DocflowStatusV3) @@ -14,10 +31,12 @@ public interface DocflowStatusV3OrBuilder extends /** * required .Diadoc.Api.Proto.DocflowStatusModelV3 PrimaryStatus = 1; + * @return Whether the primaryStatus field is set. */ boolean hasPrimaryStatus(); /** * required .Diadoc.Api.Proto.DocflowStatusModelV3 PrimaryStatus = 1; + * @return The primaryStatus. */ Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 getPrimaryStatus(); /** @@ -27,10 +46,12 @@ public interface DocflowStatusV3OrBuilder extends /** * optional .Diadoc.Api.Proto.DocflowStatusModelV3 SecondaryStatus = 2; + * @return Whether the secondaryStatus field is set. */ boolean hasSecondaryStatus(); /** * optional .Diadoc.Api.Proto.DocflowStatusModelV3 SecondaryStatus = 2; + * @return The secondaryStatus. */ Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 getSecondaryStatus(); /** @@ -40,10 +61,12 @@ public interface DocflowStatusV3OrBuilder extends /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyGeneralStatus = 3; + * @return Whether the powerOfAttorneyGeneralStatus field is set. */ boolean hasPowerOfAttorneyGeneralStatus(); /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyGeneralStatus = 3; + * @return The powerOfAttorneyGeneralStatus. */ Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus getPowerOfAttorneyGeneralStatus(); /** @@ -53,10 +76,12 @@ public interface DocflowStatusV3OrBuilder extends /** * optional .Diadoc.Api.Proto.RoamingSendingStatus GeneralRoamingSendingStatus = 4; + * @return Whether the generalRoamingSendingStatus field is set. */ boolean hasGeneralRoamingSendingStatus(); /** * optional .Diadoc.Api.Proto.RoamingSendingStatus GeneralRoamingSendingStatus = 4; + * @return The generalRoamingSendingStatus. */ Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus getGeneralRoamingSendingStatus(); /** @@ -71,120 +96,29 @@ public static final class DocflowStatusV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.DocflowStatusV3) DocflowStatusV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowStatusV3.class.getName()); + } // Use DocflowStatusV3.newBuilder() to construct. private DocflowStatusV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocflowStatusV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocflowStatusV3 defaultInstance; - public static DocflowStatusV3 getDefaultInstance() { - return defaultInstance; } - - public DocflowStatusV3 getDefaultInstanceForType() { - return defaultInstance; + private DocflowStatusV3() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocflowStatusV3( - 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: { - Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = primaryStatus_.toBuilder(); - } - primaryStatus_ = input.readMessage(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(primaryStatus_); - primaryStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = secondaryStatus_.toBuilder(); - } - secondaryStatus_ = input.readMessage(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secondaryStatus_); - secondaryStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = powerOfAttorneyGeneralStatus_.toBuilder(); - } - powerOfAttorneyGeneralStatus_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(powerOfAttorneyGeneralStatus_); - powerOfAttorneyGeneralStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = generalRoamingSendingStatus_.toBuilder(); - } - generalRoamingSendingStatus_ = input.readMessage(Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(generalRoamingSendingStatus_); - generalRoamingSendingStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - 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.DocflowStatusV3Protos.internal_static_Diadoc_Api_Proto_DocflowStatusV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.DocflowStatusV3Protos.internal_static_Diadoc_Api_Proto_DocflowStatusV3_fieldAccessorTable @@ -192,113 +126,113 @@ private DocflowStatusV3( Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.class, Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocflowStatusV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocflowStatusV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PRIMARYSTATUS_FIELD_NUMBER = 1; private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 primaryStatus_; /** * required .Diadoc.Api.Proto.DocflowStatusModelV3 PrimaryStatus = 1; + * @return Whether the primaryStatus field is set. */ + @java.lang.Override public boolean hasPrimaryStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.DocflowStatusModelV3 PrimaryStatus = 1; + * @return The primaryStatus. */ + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 getPrimaryStatus() { - return primaryStatus_; + return primaryStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance() : primaryStatus_; } /** * required .Diadoc.Api.Proto.DocflowStatusModelV3 PrimaryStatus = 1; */ + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3OrBuilder getPrimaryStatusOrBuilder() { - return primaryStatus_; + return primaryStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance() : primaryStatus_; } public static final int SECONDARYSTATUS_FIELD_NUMBER = 2; private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 secondaryStatus_; /** * optional .Diadoc.Api.Proto.DocflowStatusModelV3 SecondaryStatus = 2; + * @return Whether the secondaryStatus field is set. */ + @java.lang.Override public boolean hasSecondaryStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.DocflowStatusModelV3 SecondaryStatus = 2; + * @return The secondaryStatus. */ + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 getSecondaryStatus() { - return secondaryStatus_; + return secondaryStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance() : secondaryStatus_; } /** * optional .Diadoc.Api.Proto.DocflowStatusModelV3 SecondaryStatus = 2; */ + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3OrBuilder getSecondaryStatusOrBuilder() { - return secondaryStatus_; + return secondaryStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance() : secondaryStatus_; } public static final int POWEROFATTORNEYGENERALSTATUS_FIELD_NUMBER = 3; private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus powerOfAttorneyGeneralStatus_; /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyGeneralStatus = 3; + * @return Whether the powerOfAttorneyGeneralStatus field is set. */ + @java.lang.Override public boolean hasPowerOfAttorneyGeneralStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyGeneralStatus = 3; + * @return The powerOfAttorneyGeneralStatus. */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus getPowerOfAttorneyGeneralStatus() { - return powerOfAttorneyGeneralStatus_; + return powerOfAttorneyGeneralStatus_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : powerOfAttorneyGeneralStatus_; } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyGeneralStatus = 3; */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatusOrBuilder getPowerOfAttorneyGeneralStatusOrBuilder() { - return powerOfAttorneyGeneralStatus_; + return powerOfAttorneyGeneralStatus_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : powerOfAttorneyGeneralStatus_; } public static final int GENERALROAMINGSENDINGSTATUS_FIELD_NUMBER = 4; private Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus generalRoamingSendingStatus_; /** * optional .Diadoc.Api.Proto.RoamingSendingStatus GeneralRoamingSendingStatus = 4; + * @return Whether the generalRoamingSendingStatus field is set. */ + @java.lang.Override public boolean hasGeneralRoamingSendingStatus() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.RoamingSendingStatus GeneralRoamingSendingStatus = 4; + * @return The generalRoamingSendingStatus. */ + @java.lang.Override public Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus getGeneralRoamingSendingStatus() { - return generalRoamingSendingStatus_; + return generalRoamingSendingStatus_ == null ? Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance() : generalRoamingSendingStatus_; } /** * optional .Diadoc.Api.Proto.RoamingSendingStatus GeneralRoamingSendingStatus = 4; */ + @java.lang.Override public Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatusOrBuilder getGeneralRoamingSendingStatusOrBuilder() { - return generalRoamingSendingStatus_; + return generalRoamingSendingStatus_ == null ? Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance() : generalRoamingSendingStatus_; } - private void initFields() { - primaryStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance(); - secondaryStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance(); - powerOfAttorneyGeneralStatus_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); - generalRoamingSendingStatus_ = Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -324,58 +258,124 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, primaryStatus_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPrimaryStatus()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, secondaryStatus_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSecondaryStatus()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, powerOfAttorneyGeneralStatus_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getPowerOfAttorneyGeneralStatus()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, generalRoamingSendingStatus_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getGeneralRoamingSendingStatus()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, primaryStatus_); + .computeMessageSize(1, getPrimaryStatus()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, secondaryStatus_); + .computeMessageSize(2, getSecondaryStatus()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, powerOfAttorneyGeneralStatus_); + .computeMessageSize(3, getPowerOfAttorneyGeneralStatus()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, generalRoamingSendingStatus_); + .computeMessageSize(4, getGeneralRoamingSendingStatus()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 other = (Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3) obj; + + if (hasPrimaryStatus() != other.hasPrimaryStatus()) return false; + if (hasPrimaryStatus()) { + if (!getPrimaryStatus() + .equals(other.getPrimaryStatus())) return false; + } + if (hasSecondaryStatus() != other.hasSecondaryStatus()) return false; + if (hasSecondaryStatus()) { + if (!getSecondaryStatus() + .equals(other.getSecondaryStatus())) return false; + } + if (hasPowerOfAttorneyGeneralStatus() != other.hasPowerOfAttorneyGeneralStatus()) return false; + if (hasPowerOfAttorneyGeneralStatus()) { + if (!getPowerOfAttorneyGeneralStatus() + .equals(other.getPowerOfAttorneyGeneralStatus())) return false; + } + if (hasGeneralRoamingSendingStatus() != other.hasGeneralRoamingSendingStatus()) return false; + if (hasGeneralRoamingSendingStatus()) { + if (!getGeneralRoamingSendingStatus() + .equals(other.getGeneralRoamingSendingStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrimaryStatus()) { + hash = (37 * hash) + PRIMARYSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryStatus().hashCode(); + } + if (hasSecondaryStatus()) { + hash = (37 * hash) + SECONDARYSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryStatus().hashCode(); + } + if (hasPowerOfAttorneyGeneralStatus()) { + hash = (37 * hash) + POWEROFATTORNEYGENERALSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getPowerOfAttorneyGeneralStatus().hashCode(); + } + if (hasGeneralRoamingSendingStatus()) { + hash = (37 * hash) + GENERALROAMINGSENDINGSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getGeneralRoamingSendingStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -399,42 +399,57 @@ public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parseFrom( } public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -454,6 +469,7 @@ public static final class Builder extends return Diadoc.Api.Proto.DocflowStatusV3Protos.internal_static_Diadoc_Api_Proto_DocflowStatusV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.DocflowStatusV3Protos.internal_static_Diadoc_Api_Proto_DocflowStatusV3_fieldAccessorTable @@ -472,59 +488,53 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getPrimaryStatusFieldBuilder(); getSecondaryStatusFieldBuilder(); getPowerOfAttorneyGeneralStatusFieldBuilder(); getGeneralRoamingSendingStatusFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (primaryStatusBuilder_ == null) { - primaryStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance(); - } else { - primaryStatusBuilder_.clear(); + bitField0_ = 0; + primaryStatus_ = null; + if (primaryStatusBuilder_ != null) { + primaryStatusBuilder_.dispose(); + primaryStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (secondaryStatusBuilder_ == null) { - secondaryStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance(); - } else { - secondaryStatusBuilder_.clear(); + secondaryStatus_ = null; + if (secondaryStatusBuilder_ != null) { + secondaryStatusBuilder_.dispose(); + secondaryStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (powerOfAttorneyGeneralStatusBuilder_ == null) { - powerOfAttorneyGeneralStatus_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); - } else { - powerOfAttorneyGeneralStatusBuilder_.clear(); + powerOfAttorneyGeneralStatus_ = null; + if (powerOfAttorneyGeneralStatusBuilder_ != null) { + powerOfAttorneyGeneralStatusBuilder_.dispose(); + powerOfAttorneyGeneralStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (generalRoamingSendingStatusBuilder_ == null) { - generalRoamingSendingStatus_ = Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance(); - } else { - generalRoamingSendingStatusBuilder_.clear(); + generalRoamingSendingStatus_ = null; + if (generalRoamingSendingStatusBuilder_ != null) { + generalRoamingSendingStatusBuilder_.dispose(); + generalRoamingSendingStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.DocflowStatusV3Protos.internal_static_Diadoc_Api_Proto_DocflowStatusV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 build() { Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 result = buildPartial(); if (!result.isInitialized()) { @@ -533,47 +543,45 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 buildPartial() { Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 result = new Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.primaryStatus_ = primaryStatusBuilder_ == null + ? primaryStatus_ + : primaryStatusBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (primaryStatusBuilder_ == null) { - result.primaryStatus_ = primaryStatus_; - } else { - result.primaryStatus_ = primaryStatusBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.secondaryStatus_ = secondaryStatusBuilder_ == null + ? secondaryStatus_ + : secondaryStatusBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (secondaryStatusBuilder_ == null) { - result.secondaryStatus_ = secondaryStatus_; - } else { - result.secondaryStatus_ = secondaryStatusBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.powerOfAttorneyGeneralStatus_ = powerOfAttorneyGeneralStatusBuilder_ == null + ? powerOfAttorneyGeneralStatus_ + : powerOfAttorneyGeneralStatusBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (powerOfAttorneyGeneralStatusBuilder_ == null) { - result.powerOfAttorneyGeneralStatus_ = powerOfAttorneyGeneralStatus_; - } else { - result.powerOfAttorneyGeneralStatus_ = powerOfAttorneyGeneralStatusBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.generalRoamingSendingStatus_ = generalRoamingSendingStatusBuilder_ == null + ? generalRoamingSendingStatus_ + : generalRoamingSendingStatusBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (generalRoamingSendingStatusBuilder_ == null) { - result.generalRoamingSendingStatus_ = generalRoamingSendingStatus_; - } else { - result.generalRoamingSendingStatus_ = generalRoamingSendingStatusBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3) { return mergeFrom((Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3)other); @@ -598,63 +606,106 @@ public Builder mergeFrom(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 mergeGeneralRoamingSendingStatus(other.getGeneralRoamingSendingStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasPrimaryStatus()) { - return false; } if (hasPowerOfAttorneyGeneralStatus()) { if (!getPowerOfAttorneyGeneralStatus().isInitialized()) { - return false; } } if (hasGeneralRoamingSendingStatus()) { if (!getGeneralRoamingSendingStatus().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPrimaryStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSecondaryStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPowerOfAttorneyGeneralStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getGeneralRoamingSendingStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 primaryStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance(); + private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 primaryStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3, Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.Builder, Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3OrBuilder> primaryStatusBuilder_; /** * required .Diadoc.Api.Proto.DocflowStatusModelV3 PrimaryStatus = 1; + * @return Whether the primaryStatus field is set. */ public boolean hasPrimaryStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.DocflowStatusModelV3 PrimaryStatus = 1; + * @return The primaryStatus. */ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 getPrimaryStatus() { if (primaryStatusBuilder_ == null) { - return primaryStatus_; + return primaryStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance() : primaryStatus_; } else { return primaryStatusBuilder_.getMessage(); } @@ -668,11 +719,11 @@ public Builder setPrimaryStatus(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowSt throw new NullPointerException(); } primaryStatus_ = value; - onChanged(); } else { primaryStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -682,11 +733,11 @@ public Builder setPrimaryStatus( Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.Builder builderForValue) { if (primaryStatusBuilder_ == null) { primaryStatus_ = builderForValue.build(); - onChanged(); } else { primaryStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -694,31 +745,33 @@ public Builder setPrimaryStatus( */ public Builder mergePrimaryStatus(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 value) { if (primaryStatusBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - primaryStatus_ != Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance()) { - primaryStatus_ = - Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.newBuilder(primaryStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + primaryStatus_ != null && + primaryStatus_ != Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance()) { + getPrimaryStatusBuilder().mergeFrom(value); } else { primaryStatus_ = value; } - onChanged(); } else { primaryStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (primaryStatus_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.DocflowStatusModelV3 PrimaryStatus = 1; */ public Builder clearPrimaryStatus() { - if (primaryStatusBuilder_ == null) { - primaryStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance(); - onChanged(); - } else { - primaryStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + primaryStatus_ = null; + if (primaryStatusBuilder_ != null) { + primaryStatusBuilder_.dispose(); + primaryStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -736,7 +789,8 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3OrBuilder getP if (primaryStatusBuilder_ != null) { return primaryStatusBuilder_.getMessageOrBuilder(); } else { - return primaryStatus_; + return primaryStatus_ == null ? + Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance() : primaryStatus_; } } /** @@ -756,21 +810,23 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3OrBuilder getP return primaryStatusBuilder_; } - private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 secondaryStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance(); + private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 secondaryStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3, Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.Builder, Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3OrBuilder> secondaryStatusBuilder_; /** * optional .Diadoc.Api.Proto.DocflowStatusModelV3 SecondaryStatus = 2; + * @return Whether the secondaryStatus field is set. */ public boolean hasSecondaryStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.DocflowStatusModelV3 SecondaryStatus = 2; + * @return The secondaryStatus. */ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 getSecondaryStatus() { if (secondaryStatusBuilder_ == null) { - return secondaryStatus_; + return secondaryStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance() : secondaryStatus_; } else { return secondaryStatusBuilder_.getMessage(); } @@ -784,11 +840,11 @@ public Builder setSecondaryStatus(Diadoc.Api.Proto.DocflowStatusV3Protos.Docflow throw new NullPointerException(); } secondaryStatus_ = value; - onChanged(); } else { secondaryStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -798,11 +854,11 @@ public Builder setSecondaryStatus( Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.Builder builderForValue) { if (secondaryStatusBuilder_ == null) { secondaryStatus_ = builderForValue.build(); - onChanged(); } else { secondaryStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -810,31 +866,33 @@ public Builder setSecondaryStatus( */ public Builder mergeSecondaryStatus(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 value) { if (secondaryStatusBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - secondaryStatus_ != Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance()) { - secondaryStatus_ = - Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.newBuilder(secondaryStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + secondaryStatus_ != null && + secondaryStatus_ != Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance()) { + getSecondaryStatusBuilder().mergeFrom(value); } else { secondaryStatus_ = value; } - onChanged(); } else { secondaryStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (secondaryStatus_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.DocflowStatusModelV3 SecondaryStatus = 2; */ public Builder clearSecondaryStatus() { - if (secondaryStatusBuilder_ == null) { - secondaryStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance(); - onChanged(); - } else { - secondaryStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + secondaryStatus_ = null; + if (secondaryStatusBuilder_ != null) { + secondaryStatusBuilder_.dispose(); + secondaryStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -852,7 +910,8 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3OrBuilder getS if (secondaryStatusBuilder_ != null) { return secondaryStatusBuilder_.getMessageOrBuilder(); } else { - return secondaryStatus_; + return secondaryStatus_ == null ? + Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance() : secondaryStatus_; } } /** @@ -872,21 +931,23 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3OrBuilder getS return secondaryStatusBuilder_; } - private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus powerOfAttorneyGeneralStatus_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus powerOfAttorneyGeneralStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatusOrBuilder> powerOfAttorneyGeneralStatusBuilder_; /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyGeneralStatus = 3; + * @return Whether the powerOfAttorneyGeneralStatus field is set. */ public boolean hasPowerOfAttorneyGeneralStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyGeneralStatus = 3; + * @return The powerOfAttorneyGeneralStatus. */ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus getPowerOfAttorneyGeneralStatus() { if (powerOfAttorneyGeneralStatusBuilder_ == null) { - return powerOfAttorneyGeneralStatus_; + return powerOfAttorneyGeneralStatus_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : powerOfAttorneyGeneralStatus_; } else { return powerOfAttorneyGeneralStatusBuilder_.getMessage(); } @@ -900,11 +961,11 @@ public Builder setPowerOfAttorneyGeneralStatus(Diadoc.Api.Proto.PowersOfAttorney throw new NullPointerException(); } powerOfAttorneyGeneralStatus_ = value; - onChanged(); } else { powerOfAttorneyGeneralStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -914,11 +975,11 @@ public Builder setPowerOfAttorneyGeneralStatus( Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.Builder builderForValue) { if (powerOfAttorneyGeneralStatusBuilder_ == null) { powerOfAttorneyGeneralStatus_ = builderForValue.build(); - onChanged(); } else { powerOfAttorneyGeneralStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -926,31 +987,33 @@ public Builder setPowerOfAttorneyGeneralStatus( */ public Builder mergePowerOfAttorneyGeneralStatus(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus value) { if (powerOfAttorneyGeneralStatusBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - powerOfAttorneyGeneralStatus_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance()) { - powerOfAttorneyGeneralStatus_ = - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.newBuilder(powerOfAttorneyGeneralStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + powerOfAttorneyGeneralStatus_ != null && + powerOfAttorneyGeneralStatus_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance()) { + getPowerOfAttorneyGeneralStatusBuilder().mergeFrom(value); } else { powerOfAttorneyGeneralStatus_ = value; } - onChanged(); } else { powerOfAttorneyGeneralStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (powerOfAttorneyGeneralStatus_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus PowerOfAttorneyGeneralStatus = 3; */ public Builder clearPowerOfAttorneyGeneralStatus() { - if (powerOfAttorneyGeneralStatusBuilder_ == null) { - powerOfAttorneyGeneralStatus_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance(); - onChanged(); - } else { - powerOfAttorneyGeneralStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + powerOfAttorneyGeneralStatus_ = null; + if (powerOfAttorneyGeneralStatusBuilder_ != null) { + powerOfAttorneyGeneralStatusBuilder_.dispose(); + powerOfAttorneyGeneralStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -968,7 +1031,8 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf if (powerOfAttorneyGeneralStatusBuilder_ != null) { return powerOfAttorneyGeneralStatusBuilder_.getMessageOrBuilder(); } else { - return powerOfAttorneyGeneralStatus_; + return powerOfAttorneyGeneralStatus_ == null ? + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatus.getDefaultInstance() : powerOfAttorneyGeneralStatus_; } } /** @@ -988,21 +1052,23 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf return powerOfAttorneyGeneralStatusBuilder_; } - private Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus generalRoamingSendingStatus_ = Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance(); + private Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus generalRoamingSendingStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus, Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.Builder, Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatusOrBuilder> generalRoamingSendingStatusBuilder_; /** * optional .Diadoc.Api.Proto.RoamingSendingStatus GeneralRoamingSendingStatus = 4; + * @return Whether the generalRoamingSendingStatus field is set. */ public boolean hasGeneralRoamingSendingStatus() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.RoamingSendingStatus GeneralRoamingSendingStatus = 4; + * @return The generalRoamingSendingStatus. */ public Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus getGeneralRoamingSendingStatus() { if (generalRoamingSendingStatusBuilder_ == null) { - return generalRoamingSendingStatus_; + return generalRoamingSendingStatus_ == null ? Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance() : generalRoamingSendingStatus_; } else { return generalRoamingSendingStatusBuilder_.getMessage(); } @@ -1016,11 +1082,11 @@ public Builder setGeneralRoamingSendingStatus(Diadoc.Api.Proto.RoamingSendingSta throw new NullPointerException(); } generalRoamingSendingStatus_ = value; - onChanged(); } else { generalRoamingSendingStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1030,11 +1096,11 @@ public Builder setGeneralRoamingSendingStatus( Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.Builder builderForValue) { if (generalRoamingSendingStatusBuilder_ == null) { generalRoamingSendingStatus_ = builderForValue.build(); - onChanged(); } else { generalRoamingSendingStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1042,31 +1108,33 @@ public Builder setGeneralRoamingSendingStatus( */ public Builder mergeGeneralRoamingSendingStatus(Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus value) { if (generalRoamingSendingStatusBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - generalRoamingSendingStatus_ != Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance()) { - generalRoamingSendingStatus_ = - Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.newBuilder(generalRoamingSendingStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + generalRoamingSendingStatus_ != null && + generalRoamingSendingStatus_ != Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance()) { + getGeneralRoamingSendingStatusBuilder().mergeFrom(value); } else { generalRoamingSendingStatus_ = value; } - onChanged(); } else { generalRoamingSendingStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (generalRoamingSendingStatus_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.RoamingSendingStatus GeneralRoamingSendingStatus = 4; */ public Builder clearGeneralRoamingSendingStatus() { - if (generalRoamingSendingStatusBuilder_ == null) { - generalRoamingSendingStatus_ = Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance(); - onChanged(); - } else { - generalRoamingSendingStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + generalRoamingSendingStatus_ = null; + if (generalRoamingSendingStatusBuilder_ != null) { + generalRoamingSendingStatusBuilder_.dispose(); + generalRoamingSendingStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -1084,7 +1152,8 @@ public Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatusOrBuilder if (generalRoamingSendingStatusBuilder_ != null) { return generalRoamingSendingStatusBuilder_.getMessageOrBuilder(); } else { - return generalRoamingSendingStatus_; + return generalRoamingSendingStatus_ == null ? + Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatus.getDefaultInstance() : generalRoamingSendingStatus_; } } /** @@ -1107,12 +1176,52 @@ public Diadoc.Api.Proto.RoamingSendingStatusProtos.RoamingSendingStatusOrBuilder // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.DocflowStatusV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.DocflowStatusV3) + private static final Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 DEFAULT_INSTANCE; static { - defaultInstance = new DocflowStatusV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3(); + } + + public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocflowStatusV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.DocflowStatusV3) } public interface DocflowStatusModelV3OrBuilder extends @@ -1121,28 +1230,34 @@ public interface DocflowStatusModelV3OrBuilder extends /** * optional string Severity = 1; + * @return Whether the severity field is set. */ boolean hasSeverity(); /** * optional string Severity = 1; + * @return The severity. */ java.lang.String getSeverity(); /** * optional string Severity = 1; + * @return The bytes for severity. */ com.google.protobuf.ByteString getSeverityBytes(); /** * optional string StatusText = 2; + * @return Whether the statusText field is set. */ boolean hasStatusText(); /** * optional string StatusText = 2; + * @return The statusText. */ java.lang.String getStatusText(); /** * optional string StatusText = 2; + * @return The bytes for statusText. */ com.google.protobuf.ByteString getStatusTextBytes(); @@ -1154,80 +1269,31 @@ public static final class DocflowStatusModelV3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.DocflowStatusModelV3) DocflowStatusModelV3OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocflowStatusModelV3.class.getName()); + } // Use DocflowStatusModelV3.newBuilder() to construct. private DocflowStatusModelV3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocflowStatusModelV3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocflowStatusModelV3 defaultInstance; - public static DocflowStatusModelV3 getDefaultInstance() { - return defaultInstance; } - - public DocflowStatusModelV3 getDefaultInstanceForType() { - return defaultInstance; + private DocflowStatusModelV3() { + severity_ = ""; + statusText_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocflowStatusModelV3( - 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; - severity_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - statusText_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.DocflowStatusV3Protos.internal_static_Diadoc_Api_Proto_DocflowStatusModelV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.DocflowStatusV3Protos.internal_static_Diadoc_Api_Proto_DocflowStatusModelV3_fieldAccessorTable @@ -1235,33 +1301,23 @@ private DocflowStatusModelV3( Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.class, Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocflowStatusModelV3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocflowStatusModelV3(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int SEVERITY_FIELD_NUMBER = 1; - private java.lang.Object severity_; + @SuppressWarnings("serial") + private volatile java.lang.Object severity_ = ""; /** * optional string Severity = 1; + * @return Whether the severity field is set. */ + @java.lang.Override public boolean hasSeverity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Severity = 1; + * @return The severity. */ + @java.lang.Override public java.lang.String getSeverity() { java.lang.Object ref = severity_; if (ref instanceof java.lang.String) { @@ -1278,7 +1334,9 @@ public java.lang.String getSeverity() { } /** * optional string Severity = 1; + * @return The bytes for severity. */ + @java.lang.Override public com.google.protobuf.ByteString getSeverityBytes() { java.lang.Object ref = severity_; @@ -1294,16 +1352,21 @@ public java.lang.String getSeverity() { } public static final int STATUSTEXT_FIELD_NUMBER = 2; - private java.lang.Object statusText_; + @SuppressWarnings("serial") + private volatile java.lang.Object statusText_ = ""; /** * optional string StatusText = 2; + * @return Whether the statusText field is set. */ + @java.lang.Override public boolean hasStatusText() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string StatusText = 2; + * @return The statusText. */ + @java.lang.Override public java.lang.String getStatusText() { java.lang.Object ref = statusText_; if (ref instanceof java.lang.String) { @@ -1320,7 +1383,9 @@ public java.lang.String getStatusText() { } /** * optional string StatusText = 2; + * @return The bytes for statusText. */ + @java.lang.Override public com.google.protobuf.ByteString getStatusTextBytes() { java.lang.Object ref = statusText_; @@ -1335,11 +1400,8 @@ public java.lang.String getStatusText() { } } - private void initFields() { - severity_ = ""; - statusText_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1349,44 +1411,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getSeverityBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, severity_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getStatusTextBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, statusText_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getSeverityBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, severity_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getStatusTextBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, statusText_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3)) { + return super.equals(obj); + } + Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 other = (Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3) obj; + + if (hasSeverity() != other.hasSeverity()) return false; + if (hasSeverity()) { + if (!getSeverity() + .equals(other.getSeverity())) return false; + } + if (hasStatusText() != other.hasStatusText()) return false; + if (hasStatusText()) { + if (!getStatusText() + .equals(other.getStatusText())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSeverity()) { + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + getSeverity().hashCode(); + } + if (hasStatusText()) { + hash = (37 * hash) + STATUSTEXT_FIELD_NUMBER; + hash = (53 * hash) + getStatusText().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1410,42 +1518,57 @@ public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parseF } public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1465,6 +1588,7 @@ public static final class Builder extends return Diadoc.Api.Proto.DocflowStatusV3Protos.internal_static_Diadoc_Api_Proto_DocflowStatusModelV3_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.DocflowStatusV3Protos.internal_static_Diadoc_Api_Proto_DocflowStatusModelV3_fieldAccessorTable @@ -1474,44 +1598,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; severity_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); statusText_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.DocflowStatusV3Protos.internal_static_Diadoc_Api_Proto_DocflowStatusModelV3_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 getDefaultInstanceForType() { return Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 build() { Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 result = buildPartial(); if (!result.isInitialized()) { @@ -1520,23 +1635,29 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 buildPartial() { Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 result = new Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.severity_ = severity_; to_bitField0_ |= 0x00000001; } - result.severity_ = severity_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.statusText_ = statusText_; to_bitField0_ |= 0x00000002; } - result.statusText_ = statusText_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3) { return mergeFrom((Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3)other); @@ -1549,38 +1670,64 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 other) { if (other == Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3.getDefaultInstance()) return this; if (other.hasSeverity()) { - bitField0_ |= 0x00000001; severity_ = other.severity_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasStatusText()) { - bitField0_ |= 0x00000002; statusText_ = other.statusText_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + severity_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + statusText_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1588,12 +1735,14 @@ public Builder mergeFrom( private java.lang.Object severity_ = ""; /** * optional string Severity = 1; + * @return Whether the severity field is set. */ public boolean hasSeverity() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Severity = 1; + * @return The severity. */ public java.lang.String getSeverity() { java.lang.Object ref = severity_; @@ -1611,6 +1760,7 @@ public java.lang.String getSeverity() { } /** * optional string Severity = 1; + * @return The bytes for severity. */ public com.google.protobuf.ByteString getSeverityBytes() { @@ -1627,36 +1777,37 @@ public java.lang.String getSeverity() { } /** * optional string Severity = 1; + * @param value The severity to set. + * @return This builder for chaining. */ public Builder setSeverity( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } severity_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string Severity = 1; + * @return This builder for chaining. */ public Builder clearSeverity() { - bitField0_ = (bitField0_ & ~0x00000001); severity_ = getDefaultInstance().getSeverity(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string Severity = 1; + * @param value The bytes for severity to set. + * @return This builder for chaining. */ public Builder setSeverityBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } severity_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1664,12 +1815,14 @@ public Builder setSeverityBytes( private java.lang.Object statusText_ = ""; /** * optional string StatusText = 2; + * @return Whether the statusText field is set. */ public boolean hasStatusText() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string StatusText = 2; + * @return The statusText. */ public java.lang.String getStatusText() { java.lang.Object ref = statusText_; @@ -1687,6 +1840,7 @@ public java.lang.String getStatusText() { } /** * optional string StatusText = 2; + * @return The bytes for statusText. */ public com.google.protobuf.ByteString getStatusTextBytes() { @@ -1703,36 +1857,37 @@ public java.lang.String getStatusText() { } /** * optional string StatusText = 2; + * @param value The statusText to set. + * @return This builder for chaining. */ public Builder setStatusText( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } statusText_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string StatusText = 2; + * @return This builder for chaining. */ public Builder clearStatusText() { - bitField0_ = (bitField0_ & ~0x00000002); statusText_ = getDefaultInstance().getStatusText(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string StatusText = 2; + * @param value The bytes for statusText to set. + * @return This builder for chaining. */ public Builder setStatusTextBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } statusText_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1740,22 +1895,62 @@ public Builder setStatusTextBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.DocflowStatusModelV3) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.DocflowStatusModelV3) + private static final Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 DEFAULT_INSTANCE; static { - defaultInstance = new DocflowStatusModelV3(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3(); + } + + public static Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocflowStatusModelV3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusModelV3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.DocflowStatusModelV3) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_DocflowStatusV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_DocflowStatusV3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_DocflowStatusModelV3_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_DocflowStatusModelV3_fieldAccessorTable; @@ -1763,7 +1958,7 @@ public Builder setStatusTextBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1776,26 +1971,18 @@ public Builder setStatusTextBytes( ".Proto.DocflowStatusModelV3\022h\n\034PowerOfAt" + "torneyGeneralStatus\030\003 \001(\0132B.Diadoc.Api.P" + "roto.PowersOfAttorney.PowerOfAttorneyVal" + - "idationStatus\022K\n\033GeneralRoamingSendingSt", + "idationStatus\022K\n\033GeneralRoamingSendingSt" + "atus\030\004 \001(\0132&.Diadoc.Api.Proto.RoamingSen" + "dingStatus\"<\n\024DocflowStatusModelV3\022\020\n\010Se" + "verity\030\001 \001(\t\022\022\n\nStatusText\030\002 \001(\tB\027B\025Docf" + "lowStatusV3Protos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.getDescriptor(), Diadoc.Api.Proto.RoamingSendingStatusProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_DocflowStatusV3_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_DocflowStatusV3_fieldAccessorTable = new @@ -1808,6 +1995,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_DocflowStatusModelV3_descriptor, new java.lang.String[] { "Severity", "StatusText", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.getDescriptor(); Diadoc.Api.Proto.RoamingSendingStatusProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/DocumentDirectionProtos.java b/src/main/java/Diadoc/Api/Proto/DocumentDirectionProtos.java index 03b50b5d..d5ada38d 100644 --- a/src/main/java/Diadoc/Api/Proto/DocumentDirectionProtos.java +++ b/src/main/java/Diadoc/Api/Proto/DocumentDirectionProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: DocumentDirection.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class DocumentDirectionProtos { private DocumentDirectionProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentDirectionProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.DocumentDirection} @@ -14,33 +31,42 @@ public static void registerAllExtensions( public enum DocumentDirection implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownDocumentDirection = 0; - * *
      * reserved for backward compatibility
      * 
+ * + * UnknownDocumentDirection = 0; */ - UnknownDocumentDirection(0, 0), + UnknownDocumentDirection(0), /** * Inbound = 1; */ - Inbound(1, 1), + Inbound(1), /** * Outbound = 2; */ - Outbound(2, 2), + Outbound(2), /** * Internal = 3; */ - Internal(3, 3), + Internal(3), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentDirection.class.getName()); + } /** - * UnknownDocumentDirection = 0; - * *
      * reserved for backward compatibility
      * 
+ * + * UnknownDocumentDirection = 0; */ public static final int UnknownDocumentDirection_VALUE = 0; /** @@ -57,9 +83,25 @@ public enum DocumentDirection public static final int Internal_VALUE = 3; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static DocumentDirection valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DocumentDirection forNumber(int value) { switch (value) { case 0: return UnknownDocumentDirection; case 1: return Inbound; @@ -73,17 +115,17 @@ public static DocumentDirection valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + DocumentDirection> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DocumentDirection findValueByNumber(int number) { - return DocumentDirection.valueOf(number); + return DocumentDirection.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -105,11 +147,9 @@ public static DocumentDirection valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private DocumentDirection(int index, int value) { - this.index = index; + private DocumentDirection(int value) { this.value = value; } @@ -121,7 +161,7 @@ private DocumentDirection(int index, int value) { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -131,18 +171,11 @@ private DocumentDirection(int index, int value) { "\002\022\014\n\010Internal\020\003B\031B\027DocumentDirectionProt" + "os" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/DocumentIdProtos.java b/src/main/java/Diadoc/Api/Proto/DocumentIdProtos.java index 9d565ecd..7f386548 100644 --- a/src/main/java/Diadoc/Api/Proto/DocumentIdProtos.java +++ b/src/main/java/Diadoc/Api/Proto/DocumentIdProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: DocumentId.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class DocumentIdProtos { private DocumentIdProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentIdProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DocumentIdOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.DocumentId) @@ -14,28 +31,34 @@ public interface DocumentIdOrBuilder extends /** * required string MessageId = 1; + * @return Whether the messageId field is set. */ boolean hasMessageId(); /** * required string MessageId = 1; + * @return The messageId. */ java.lang.String getMessageId(); /** * required string MessageId = 1; + * @return The bytes for messageId. */ com.google.protobuf.ByteString getMessageIdBytes(); /** * required string EntityId = 2; + * @return Whether the entityId field is set. */ boolean hasEntityId(); /** * required string EntityId = 2; + * @return The entityId. */ java.lang.String getEntityId(); /** * required string EntityId = 2; + * @return The bytes for entityId. */ com.google.protobuf.ByteString getEntityIdBytes(); @@ -47,80 +70,31 @@ public static final class DocumentId extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.DocumentId) DocumentIdOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentId.class.getName()); + } // Use DocumentId.newBuilder() to construct. private DocumentId(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentId(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentId defaultInstance; - public static DocumentId getDefaultInstance() { - return defaultInstance; } - - public DocumentId getDefaultInstanceForType() { - return defaultInstance; + private DocumentId() { + messageId_ = ""; + entityId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentId( - 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; - messageId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - entityId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.DocumentIdProtos.internal_static_Diadoc_Api_Proto_DocumentId_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.DocumentIdProtos.internal_static_Diadoc_Api_Proto_DocumentId_fieldAccessorTable @@ -128,33 +102,23 @@ private DocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.class, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentId(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int MESSAGEID_FIELD_NUMBER = 1; - private java.lang.Object messageId_; + @SuppressWarnings("serial") + private volatile java.lang.Object messageId_ = ""; /** * required string MessageId = 1; + * @return Whether the messageId field is set. */ + @java.lang.Override public boolean hasMessageId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string MessageId = 1; + * @return The messageId. */ + @java.lang.Override public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { @@ -171,7 +135,9 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 1; + * @return The bytes for messageId. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; @@ -187,16 +153,21 @@ public java.lang.String getMessageId() { } public static final int ENTITYID_FIELD_NUMBER = 2; - private java.lang.Object entityId_; + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; /** * required string EntityId = 2; + * @return Whether the entityId field is set. */ + @java.lang.Override public boolean hasEntityId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string EntityId = 2; + * @return The entityId. */ + @java.lang.Override public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { @@ -213,7 +184,9 @@ public java.lang.String getEntityId() { } /** * required string EntityId = 2; + * @return The bytes for entityId. */ + @java.lang.Override public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -228,11 +201,8 @@ public java.lang.String getEntityId() { } } - private void initFields() { - messageId_ = ""; - entityId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -250,44 +220,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getMessageIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, messageId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getEntityIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, entityId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getMessageIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, messageId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getEntityIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, entityId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.DocumentIdProtos.DocumentId)) { + return super.equals(obj); + } + Diadoc.Api.Proto.DocumentIdProtos.DocumentId other = (Diadoc.Api.Proto.DocumentIdProtos.DocumentId) obj; + + if (hasMessageId() != other.hasMessageId()) return false; + if (hasMessageId()) { + if (!getMessageId() + .equals(other.getMessageId())) return false; + } + if (hasEntityId() != other.hasEntityId()) return false; + if (hasEntityId()) { + if (!getEntityId() + .equals(other.getEntityId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMessageId()) { + hash = (37 * hash) + MESSAGEID_FIELD_NUMBER; + hash = (53 * hash) + getMessageId().hashCode(); + } + if (hasEntityId()) { + hash = (37 * hash) + ENTITYID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -311,42 +327,57 @@ public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId parseFrom( } public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.DocumentIdProtos.DocumentId prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -366,6 +397,7 @@ public static final class Builder extends return Diadoc.Api.Proto.DocumentIdProtos.internal_static_Diadoc_Api_Proto_DocumentId_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.DocumentIdProtos.internal_static_Diadoc_Api_Proto_DocumentId_fieldAccessorTable @@ -375,44 +407,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; messageId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); entityId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.DocumentIdProtos.internal_static_Diadoc_Api_Proto_DocumentId_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDefaultInstanceForType() { return Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId build() { Diadoc.Api.Proto.DocumentIdProtos.DocumentId result = buildPartial(); if (!result.isInitialized()) { @@ -421,23 +444,29 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId buildPartial() { Diadoc.Api.Proto.DocumentIdProtos.DocumentId result = new Diadoc.Api.Proto.DocumentIdProtos.DocumentId(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.DocumentIdProtos.DocumentId result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.messageId_ = messageId_; to_bitField0_ |= 0x00000001; } - result.messageId_ = messageId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityId_ = entityId_; to_bitField0_ |= 0x00000002; } - result.entityId_ = entityId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.DocumentIdProtos.DocumentId) { return mergeFrom((Diadoc.Api.Proto.DocumentIdProtos.DocumentId)other); @@ -450,46 +479,70 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.DocumentIdProtos.DocumentId other) { if (other == Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) return this; if (other.hasMessageId()) { - bitField0_ |= 0x00000001; messageId_ = other.messageId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasEntityId()) { - bitField0_ |= 0x00000002; entityId_ = other.entityId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasMessageId()) { - return false; } if (!hasEntityId()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + messageId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + entityId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.DocumentIdProtos.DocumentId) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -497,12 +550,14 @@ public Builder mergeFrom( private java.lang.Object messageId_ = ""; /** * required string MessageId = 1; + * @return Whether the messageId field is set. */ public boolean hasMessageId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string MessageId = 1; + * @return The messageId. */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; @@ -520,6 +575,7 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 1; + * @return The bytes for messageId. */ public com.google.protobuf.ByteString getMessageIdBytes() { @@ -536,36 +592,37 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 1; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } messageId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string MessageId = 1; + * @return This builder for chaining. */ public Builder clearMessageId() { - bitField0_ = (bitField0_ & ~0x00000001); messageId_ = getDefaultInstance().getMessageId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string MessageId = 1; + * @param value The bytes for messageId to set. + * @return This builder for chaining. */ public Builder setMessageIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } messageId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -573,12 +630,14 @@ public Builder setMessageIdBytes( private java.lang.Object entityId_ = ""; /** * required string EntityId = 2; + * @return Whether the entityId field is set. */ public boolean hasEntityId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string EntityId = 2; + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -596,6 +655,7 @@ public java.lang.String getEntityId() { } /** * required string EntityId = 2; + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { @@ -612,36 +672,37 @@ public java.lang.String getEntityId() { } /** * required string EntityId = 2; + * @param value The entityId to set. + * @return This builder for chaining. */ public Builder setEntityId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } entityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string EntityId = 2; + * @return This builder for chaining. */ public Builder clearEntityId() { - bitField0_ = (bitField0_ & ~0x00000002); entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string EntityId = 2; + * @param value The bytes for entityId to set. + * @return This builder for chaining. */ public Builder setEntityIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } entityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -649,12 +710,52 @@ public Builder setEntityIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.DocumentId) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.DocumentId) + private static final Diadoc.Api.Proto.DocumentIdProtos.DocumentId DEFAULT_INSTANCE; static { - defaultInstance = new DocumentId(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.DocumentIdProtos.DocumentId(); + } + + public static Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.DocumentId) } public interface DocumentIdExOrBuilder extends @@ -663,42 +764,51 @@ public interface DocumentIdExOrBuilder extends /** * required string MessageId = 1; + * @return Whether the messageId field is set. */ boolean hasMessageId(); /** * required string MessageId = 1; + * @return The messageId. */ java.lang.String getMessageId(); /** * required string MessageId = 1; + * @return The bytes for messageId. */ com.google.protobuf.ByteString getMessageIdBytes(); /** * required string EntityId = 2; + * @return Whether the entityId field is set. */ boolean hasEntityId(); /** * required string EntityId = 2; + * @return The entityId. */ java.lang.String getEntityId(); /** * required string EntityId = 2; + * @return The bytes for entityId. */ com.google.protobuf.ByteString getEntityIdBytes(); /** * required string BoxId = 3; + * @return Whether the boxId field is set. */ boolean hasBoxId(); /** * required string BoxId = 3; + * @return The boxId. */ java.lang.String getBoxId(); /** * required string BoxId = 3; + * @return The bytes for boxId. */ com.google.protobuf.ByteString getBoxIdBytes(); @@ -710,86 +820,32 @@ public static final class DocumentIdEx extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.DocumentIdEx) DocumentIdExOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentIdEx.class.getName()); + } // Use DocumentIdEx.newBuilder() to construct. private DocumentIdEx(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentIdEx(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentIdEx defaultInstance; - public static DocumentIdEx getDefaultInstance() { - return defaultInstance; } - - public DocumentIdEx getDefaultInstanceForType() { - return defaultInstance; + private DocumentIdEx() { + messageId_ = ""; + entityId_ = ""; + boxId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentIdEx( - 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; - messageId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - entityId_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - boxId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.DocumentIdProtos.internal_static_Diadoc_Api_Proto_DocumentIdEx_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.DocumentIdProtos.internal_static_Diadoc_Api_Proto_DocumentIdEx_fieldAccessorTable @@ -797,33 +853,23 @@ private DocumentIdEx( Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.class, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentIdEx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentIdEx(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int MESSAGEID_FIELD_NUMBER = 1; - private java.lang.Object messageId_; + @SuppressWarnings("serial") + private volatile java.lang.Object messageId_ = ""; /** * required string MessageId = 1; + * @return Whether the messageId field is set. */ + @java.lang.Override public boolean hasMessageId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string MessageId = 1; + * @return The messageId. */ + @java.lang.Override public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { @@ -840,7 +886,9 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 1; + * @return The bytes for messageId. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; @@ -856,16 +904,21 @@ public java.lang.String getMessageId() { } public static final int ENTITYID_FIELD_NUMBER = 2; - private java.lang.Object entityId_; + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; /** * required string EntityId = 2; + * @return Whether the entityId field is set. */ + @java.lang.Override public boolean hasEntityId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string EntityId = 2; + * @return The entityId. */ + @java.lang.Override public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { @@ -882,7 +935,9 @@ public java.lang.String getEntityId() { } /** * required string EntityId = 2; + * @return The bytes for entityId. */ + @java.lang.Override public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -898,16 +953,21 @@ public java.lang.String getEntityId() { } public static final int BOXID_FIELD_NUMBER = 3; - private java.lang.Object boxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object boxId_ = ""; /** * required string BoxId = 3; + * @return Whether the boxId field is set. */ + @java.lang.Override public boolean hasBoxId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string BoxId = 3; + * @return The boxId. */ + @java.lang.Override public java.lang.String getBoxId() { java.lang.Object ref = boxId_; if (ref instanceof java.lang.String) { @@ -924,7 +984,9 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 3; + * @return The bytes for boxId. */ + @java.lang.Override public com.google.protobuf.ByteString getBoxIdBytes() { java.lang.Object ref = boxId_; @@ -939,12 +1001,8 @@ public java.lang.String getBoxId() { } } - private void initFields() { - messageId_ = ""; - entityId_ = ""; - boxId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -966,51 +1024,105 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getMessageIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, messageId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getEntityIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, entityId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getBoxIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, boxId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getMessageIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, messageId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getEntityIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, entityId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getBoxIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, boxId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx)) { + return super.equals(obj); + } + Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx other = (Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx) obj; + + if (hasMessageId() != other.hasMessageId()) return false; + if (hasMessageId()) { + if (!getMessageId() + .equals(other.getMessageId())) return false; + } + if (hasEntityId() != other.hasEntityId()) return false; + if (hasEntityId()) { + if (!getEntityId() + .equals(other.getEntityId())) return false; + } + if (hasBoxId() != other.hasBoxId()) return false; + if (hasBoxId()) { + if (!getBoxId() + .equals(other.getBoxId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMessageId()) { + hash = (37 * hash) + MESSAGEID_FIELD_NUMBER; + hash = (53 * hash) + getMessageId().hashCode(); + } + if (hasEntityId()) { + hash = (37 * hash) + ENTITYID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + } + if (hasBoxId()) { + hash = (37 * hash) + BOXID_FIELD_NUMBER; + hash = (53 * hash) + getBoxId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1034,42 +1146,57 @@ public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parseFrom( } public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1089,6 +1216,7 @@ public static final class Builder extends return Diadoc.Api.Proto.DocumentIdProtos.internal_static_Diadoc_Api_Proto_DocumentIdEx_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.DocumentIdProtos.internal_static_Diadoc_Api_Proto_DocumentIdEx_fieldAccessorTable @@ -1098,46 +1226,36 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; messageId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); entityId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); boxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.DocumentIdProtos.internal_static_Diadoc_Api_Proto_DocumentIdEx_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx getDefaultInstanceForType() { return Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx build() { Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx result = buildPartial(); if (!result.isInitialized()) { @@ -1146,27 +1264,33 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx buildPartial() { Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx result = new Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.messageId_ = messageId_; to_bitField0_ |= 0x00000001; } - result.messageId_ = messageId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityId_ = entityId_; to_bitField0_ |= 0x00000002; } - result.entityId_ = entityId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.boxId_ = boxId_; to_bitField0_ |= 0x00000004; } - result.boxId_ = boxId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx) { return mergeFrom((Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx)other); @@ -1179,55 +1303,83 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx other) { if (other == Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance()) return this; if (other.hasMessageId()) { - bitField0_ |= 0x00000001; messageId_ = other.messageId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasEntityId()) { - bitField0_ |= 0x00000002; entityId_ = other.entityId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasBoxId()) { - bitField0_ |= 0x00000004; boxId_ = other.boxId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasMessageId()) { - return false; } if (!hasEntityId()) { - return false; } if (!hasBoxId()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + messageId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + entityId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + boxId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1235,12 +1387,14 @@ public Builder mergeFrom( private java.lang.Object messageId_ = ""; /** * required string MessageId = 1; + * @return Whether the messageId field is set. */ public boolean hasMessageId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string MessageId = 1; + * @return The messageId. */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; @@ -1258,6 +1412,7 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 1; + * @return The bytes for messageId. */ public com.google.protobuf.ByteString getMessageIdBytes() { @@ -1274,36 +1429,37 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 1; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } messageId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string MessageId = 1; + * @return This builder for chaining. */ public Builder clearMessageId() { - bitField0_ = (bitField0_ & ~0x00000001); messageId_ = getDefaultInstance().getMessageId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string MessageId = 1; + * @param value The bytes for messageId to set. + * @return This builder for chaining. */ public Builder setMessageIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } messageId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1311,12 +1467,14 @@ public Builder setMessageIdBytes( private java.lang.Object entityId_ = ""; /** * required string EntityId = 2; + * @return Whether the entityId field is set. */ public boolean hasEntityId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string EntityId = 2; + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -1334,6 +1492,7 @@ public java.lang.String getEntityId() { } /** * required string EntityId = 2; + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { @@ -1350,36 +1509,37 @@ public java.lang.String getEntityId() { } /** * required string EntityId = 2; + * @param value The entityId to set. + * @return This builder for chaining. */ public Builder setEntityId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } entityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string EntityId = 2; + * @return This builder for chaining. */ public Builder clearEntityId() { - bitField0_ = (bitField0_ & ~0x00000002); entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string EntityId = 2; + * @param value The bytes for entityId to set. + * @return This builder for chaining. */ public Builder setEntityIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } entityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1387,12 +1547,14 @@ public Builder setEntityIdBytes( private java.lang.Object boxId_ = ""; /** * required string BoxId = 3; + * @return Whether the boxId field is set. */ public boolean hasBoxId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string BoxId = 3; + * @return The boxId. */ public java.lang.String getBoxId() { java.lang.Object ref = boxId_; @@ -1410,6 +1572,7 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 3; + * @return The bytes for boxId. */ public com.google.protobuf.ByteString getBoxIdBytes() { @@ -1426,36 +1589,37 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 3; + * @param value The boxId to set. + * @return This builder for chaining. */ public Builder setBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string BoxId = 3; + * @return This builder for chaining. */ public Builder clearBoxId() { - bitField0_ = (bitField0_ & ~0x00000004); boxId_ = getDefaultInstance().getBoxId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string BoxId = 3; + * @param value The bytes for boxId to set. + * @return This builder for chaining. */ public Builder setBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1463,22 +1627,62 @@ public Builder setBoxIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.DocumentIdEx) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.DocumentIdEx) + private static final Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx DEFAULT_INSTANCE; static { - defaultInstance = new DocumentIdEx(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx(); + } + + public static Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentIdEx parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.DocumentIdEx) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_DocumentId_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_DocumentId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_DocumentIdEx_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_DocumentIdEx_fieldAccessorTable; @@ -1486,7 +1690,7 @@ public Builder setBoxIdBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1496,18 +1700,10 @@ public Builder setBoxIdBytes( "(\t\022\020\n\010EntityId\030\002 \002(\t\022\r\n\005BoxId\030\003 \002(\tB\022B\020D" + "ocumentIdProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_DocumentId_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_DocumentId_fieldAccessorTable = new @@ -1520,6 +1716,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_DocumentIdEx_descriptor, new java.lang.String[] { "MessageId", "EntityId", "BoxId", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/DocumentTypeProtos.java b/src/main/java/Diadoc/Api/Proto/DocumentTypeProtos.java index 2a963c8b..949196c3 100644 --- a/src/main/java/Diadoc/Api/Proto/DocumentTypeProtos.java +++ b/src/main/java/Diadoc/Api/Proto/DocumentTypeProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: DocumentType.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto; public final class DocumentTypeProtos { private DocumentTypeProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentTypeProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.DocumentType} @@ -14,117 +31,126 @@ public static void registerAllExtensions( public enum DocumentType implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownDocumentType = -1; - * *
      * reserved for backward compatibility
      * 
+ * + * UnknownDocumentType = -1; */ - UnknownDocumentType(0, -1), + UnknownDocumentType(-1), /** * Nonformalized = 0; */ - Nonformalized(1, 0), + Nonformalized(0), /** * Invoice = 1; */ - Invoice(2, 1), + Invoice(1), /** * TrustConnectionRequest = 11; */ - TrustConnectionRequest(3, 11), + TrustConnectionRequest(11), /** * Torg12 = 12; */ - Torg12(4, 12), + Torg12(12), /** * InvoiceRevision = 13; */ - InvoiceRevision(5, 13), + InvoiceRevision(13), /** * InvoiceCorrection = 14; */ - InvoiceCorrection(6, 14), + InvoiceCorrection(14), /** * InvoiceCorrectionRevision = 15; */ - InvoiceCorrectionRevision(7, 15), + InvoiceCorrectionRevision(15), /** * AcceptanceCertificate = 16; */ - AcceptanceCertificate(8, 16), + AcceptanceCertificate(16), /** * ProformaInvoice = 18; */ - ProformaInvoice(9, 18), + ProformaInvoice(18), /** * XmlTorg12 = 19; */ - XmlTorg12(10, 19), + XmlTorg12(19), /** * XmlAcceptanceCertificate = 20; */ - XmlAcceptanceCertificate(11, 20), + XmlAcceptanceCertificate(20), /** * PriceList = 26; */ - PriceList(12, 26), + PriceList(26), /** * PriceListAgreement = 30; */ - PriceListAgreement(13, 30), + PriceListAgreement(30), /** * CertificateRegistry = 34; */ - CertificateRegistry(14, 34), + CertificateRegistry(34), /** * ReconciliationAct = 35; */ - ReconciliationAct(15, 35), + ReconciliationAct(35), /** * Contract = 36; */ - Contract(16, 36), + Contract(36), /** * Torg13 = 37; */ - Torg13(17, 37), + Torg13(37), /** * ServiceDetails = 38; */ - ServiceDetails(18, 38), + ServiceDetails(38), /** * SupplementaryAgreement = 40; */ - SupplementaryAgreement(19, 40), + SupplementaryAgreement(40), /** * UniversalTransferDocument = 41; */ - UniversalTransferDocument(20, 41), + UniversalTransferDocument(41), /** * UniversalTransferDocumentRevision = 45; */ - UniversalTransferDocumentRevision(21, 45), + UniversalTransferDocumentRevision(45), /** * MesNotification = 46; */ - MesNotification(22, 46), + MesNotification(46), /** * UniversalCorrectionDocument = 49; */ - UniversalCorrectionDocument(23, 49), + UniversalCorrectionDocument(49), /** * UniversalCorrectionDocumentRevision = 50; */ - UniversalCorrectionDocumentRevision(24, 50), + UniversalCorrectionDocumentRevision(50), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentType.class.getName()); + } /** - * UnknownDocumentType = -1; - * *
      * reserved for backward compatibility
      * 
+ * + * UnknownDocumentType = -1; */ public static final int UnknownDocumentType_VALUE = -1; /** @@ -225,9 +251,25 @@ public enum DocumentType public static final int UniversalCorrectionDocumentRevision_VALUE = 50; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static DocumentType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DocumentType forNumber(int value) { switch (value) { case -1: return UnknownDocumentType; case 0: return Nonformalized; @@ -262,17 +304,17 @@ public static DocumentType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + DocumentType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DocumentType findValueByNumber(int number) { - return DocumentType.valueOf(number); + return DocumentType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -294,11 +336,9 @@ public static DocumentType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private DocumentType(int index, int value) { - this.index = index; + private DocumentType(int value) { this.value = value; } @@ -310,7 +350,7 @@ private DocumentType(int index, int value) { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -323,7 +363,7 @@ private DocumentType(int index, int value) { "AcceptanceCertificate\020\020\022\023\n\017ProformaInvoi" + "ce\020\022\022\r\n\tXmlTorg12\020\023\022\034\n\030XmlAcceptanceCert" + "ificate\020\024\022\r\n\tPriceList\020\032\022\026\n\022PriceListAgr" + - "eement\020\036\022\027\n\023CertificateRegistry\020\"\022\025\n\021Rec", + "eement\020\036\022\027\n\023CertificateRegistry\020\"\022\025\n\021Rec" + "onciliationAct\020#\022\014\n\010Contract\020$\022\n\n\006Torg13" + "\020%\022\022\n\016ServiceDetails\020&\022\032\n\026SupplementaryA" + "greement\020(\022\035\n\031UniversalTransferDocument\020" + @@ -332,18 +372,11 @@ private DocumentType(int index, int value) { "tionDocument\0201\022\'\n#UniversalCorrectionDoc" + "umentRevision\0202B\024B\022DocumentTypeProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Documents/AcceptanceCertificateDocument/AcceptanceCertificateDocumentProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/AcceptanceCertificateDocument/AcceptanceCertificateDocumentProtos.java index 9c4179ae..aef1a55d 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/AcceptanceCertificateDocument/AcceptanceCertificateDocumentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/AcceptanceCertificateDocument/AcceptanceCertificateDocumentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/AcceptanceCertificateDocument.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument; public final class AcceptanceCertificateDocumentProtos { private AcceptanceCertificateDocumentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AcceptanceCertificateDocumentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentStatus} @@ -14,105 +31,114 @@ public static void registerAllExtensions( public enum AcceptanceCertificateDocumentStatus implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownAcceptanceCertificateDocumentStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownAcceptanceCertificateDocumentStatus = 0; */ - UnknownAcceptanceCertificateDocumentStatus(0, 0), + UnknownAcceptanceCertificateDocumentStatus(0), /** * OutboundWaitingForRecipientSignature = 1; */ - OutboundWaitingForRecipientSignature(1, 1), + OutboundWaitingForRecipientSignature(1), /** * OutboundWithRecipientSignature = 2; */ - OutboundWithRecipientSignature(2, 2), + OutboundWithRecipientSignature(2), /** * OutboundWithRecipientPartiallySignature = 19; */ - OutboundWithRecipientPartiallySignature(3, 19), + OutboundWithRecipientPartiallySignature(19), /** * OutboundRecipientSignatureRequestRejected = 3; */ - OutboundRecipientSignatureRequestRejected(4, 3), + OutboundRecipientSignatureRequestRejected(3), /** * OutboundWaitingForSenderSignature = 10; */ - OutboundWaitingForSenderSignature(5, 10), + OutboundWaitingForSenderSignature(10), /** * OutboundInvalidSenderSignature = 11; */ - OutboundInvalidSenderSignature(6, 11), + OutboundInvalidSenderSignature(11), /** * OutboundNoRecipientSignatureRequest = 16; */ - OutboundNoRecipientSignatureRequest(7, 16), + OutboundNoRecipientSignatureRequest(16), /** * InboundWaitingForRecipientSignature = 4; */ - InboundWaitingForRecipientSignature(8, 4), + InboundWaitingForRecipientSignature(4), /** * InboundWithRecipientSignature = 5; */ - InboundWithRecipientSignature(9, 5), + InboundWithRecipientSignature(5), /** * InboundWithRecipientPartiallySignature = 20; */ - InboundWithRecipientPartiallySignature(10, 20), + InboundWithRecipientPartiallySignature(20), /** * InboundRecipientSignatureRequestRejected = 6; */ - InboundRecipientSignatureRequestRejected(11, 6), + InboundRecipientSignatureRequestRejected(6), /** * InboundInvalidRecipientSignature = 12; */ - InboundInvalidRecipientSignature(12, 12), + InboundInvalidRecipientSignature(12), /** * InboundNoRecipientSignatureRequest = 17; */ - InboundNoRecipientSignatureRequest(13, 17), + InboundNoRecipientSignatureRequest(17), /** * InternalWaitingForRecipientSignature = 7; */ - InternalWaitingForRecipientSignature(14, 7), + InternalWaitingForRecipientSignature(7), /** * InternalWithRecipientSignature = 8; */ - InternalWithRecipientSignature(15, 8), + InternalWithRecipientSignature(8), /** * InternalWithRecipientPartiallySignature = 21; */ - InternalWithRecipientPartiallySignature(16, 21), + InternalWithRecipientPartiallySignature(21), /** * InternalRecipientSignatureRequestRejected = 9; */ - InternalRecipientSignatureRequestRejected(17, 9), + InternalRecipientSignatureRequestRejected(9), /** * InternalWaitingForSenderSignature = 13; */ - InternalWaitingForSenderSignature(18, 13), + InternalWaitingForSenderSignature(13), /** * InternalInvalidSenderSignature = 14; */ - InternalInvalidSenderSignature(19, 14), + InternalInvalidSenderSignature(14), /** * InternalInvalidRecipientSignature = 15; */ - InternalInvalidRecipientSignature(20, 15), + InternalInvalidRecipientSignature(15), /** * InternalNoRecipientSignatureRequest = 18; */ - InternalNoRecipientSignatureRequest(21, 18), + InternalNoRecipientSignatureRequest(18), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AcceptanceCertificateDocumentStatus.class.getName()); + } /** - * UnknownAcceptanceCertificateDocumentStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownAcceptanceCertificateDocumentStatus = 0; */ public static final int UnknownAcceptanceCertificateDocumentStatus_VALUE = 0; /** @@ -201,9 +227,25 @@ public enum AcceptanceCertificateDocumentStatus public static final int InternalNoRecipientSignatureRequest_VALUE = 18; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static AcceptanceCertificateDocumentStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AcceptanceCertificateDocumentStatus forNumber(int value) { switch (value) { case 0: return UnknownAcceptanceCertificateDocumentStatus; case 1: return OutboundWaitingForRecipientSignature; @@ -235,17 +277,17 @@ public static AcceptanceCertificateDocumentStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + AcceptanceCertificateDocumentStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AcceptanceCertificateDocumentStatus findValueByNumber(int number) { - return AcceptanceCertificateDocumentStatus.valueOf(number); + return AcceptanceCertificateDocumentStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -267,11 +309,9 @@ public static AcceptanceCertificateDocumentStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private AcceptanceCertificateDocumentStatus(int index, int value) { - this.index = index; + private AcceptanceCertificateDocumentStatus(int value) { this.value = value; } @@ -284,61 +324,74 @@ public interface AcceptanceCertificateMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentStatus DocumentStatus = 1 [default = UnknownAcceptanceCertificateDocumentStatus]; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentStatus DocumentStatus = 1 [default = UnknownAcceptanceCertificateDocumentStatus]; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus getDocumentStatus(); /** * required string Total = 2; + * @return Whether the total field is set. */ boolean hasTotal(); /** * required string Total = 2; + * @return The total. */ java.lang.String getTotal(); /** * required string Total = 2; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** * optional string Vat = 3; + * @return Whether the vat field is set. */ boolean hasVat(); /** * optional string Vat = 3; + * @return The vat. */ java.lang.String getVat(); /** * optional string Vat = 3; + * @return The bytes for vat. */ com.google.protobuf.ByteString getVatBytes(); /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ boolean hasGrounds(); /** * optional string Grounds = 4; + * @return The grounds. */ java.lang.String getGrounds(); /** * optional string Grounds = 4; + * @return The bytes for grounds. */ com.google.protobuf.ByteString getGroundsBytes(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus(); } @@ -349,108 +402,34 @@ public static final class AcceptanceCertificateMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata) AcceptanceCertificateMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AcceptanceCertificateMetadata.class.getName()); + } // Use AcceptanceCertificateMetadata.newBuilder() to construct. private AcceptanceCertificateMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private AcceptanceCertificateMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AcceptanceCertificateMetadata defaultInstance; - public static AcceptanceCertificateMetadata getDefaultInstance() { - return defaultInstance; - } - - public AcceptanceCertificateMetadata getDefaultInstanceForType() { - return defaultInstance; + private AcceptanceCertificateMetadata() { + documentStatus_ = 0; + total_ = ""; + vat_ = ""; + grounds_ = ""; + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AcceptanceCertificateMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus value = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - total_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - vat_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - grounds_ = bs; - break; - } - case 40: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - receiptStatus_ = value; - } - 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.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_AcceptanceCertificateDocument_AcceptanceCertificateMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_AcceptanceCertificateDocument_AcceptanceCertificateMetadata_fieldAccessorTable @@ -458,48 +437,41 @@ private AcceptanceCertificateMetadata( Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.class, Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AcceptanceCertificateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AcceptanceCertificateMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentStatus DocumentStatus = 1 [default = UnknownAcceptanceCertificateDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentStatus DocumentStatus = 1 [default = UnknownAcceptanceCertificateDocumentStatus]; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus result = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus.UnknownAcceptanceCertificateDocumentStatus : result; } public static final int TOTAL_FIELD_NUMBER = 2; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** * required string Total = 2; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Total = 2; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -516,7 +488,9 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -532,16 +506,21 @@ public java.lang.String getTotal() { } public static final int VAT_FIELD_NUMBER = 3; - private java.lang.Object vat_; + @SuppressWarnings("serial") + private volatile java.lang.Object vat_ = ""; /** * optional string Vat = 3; + * @return Whether the vat field is set. */ + @java.lang.Override public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Vat = 3; + * @return The vat. */ + @java.lang.Override public java.lang.String getVat() { java.lang.Object ref = vat_; if (ref instanceof java.lang.String) { @@ -558,7 +537,9 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @return The bytes for vat. */ + @java.lang.Override public com.google.protobuf.ByteString getVatBytes() { java.lang.Object ref = vat_; @@ -574,16 +555,21 @@ public java.lang.String getVat() { } public static final int GROUNDS_FIELD_NUMBER = 4; - private java.lang.Object grounds_; + @SuppressWarnings("serial") + private volatile java.lang.Object grounds_ = ""; /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ + @java.lang.Override public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Grounds = 4; + * @return The grounds. */ + @java.lang.Override public java.lang.String getGrounds() { java.lang.Object ref = grounds_; if (ref instanceof java.lang.String) { @@ -600,7 +586,9 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @return The bytes for grounds. */ + @java.lang.Override public com.google.protobuf.ByteString getGroundsBytes() { java.lang.Object ref = grounds_; @@ -616,28 +604,25 @@ public java.lang.String getGrounds() { } public static final int RECEIPTSTATUS_FIELD_NUMBER = 5; - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus.UnknownAcceptanceCertificateDocumentStatus; - total_ = ""; - vat_ = ""; - grounds_ = ""; - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -651,65 +636,135 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, receiptStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, receiptStatus_.getNumber()); + .computeEnumSize(5, receiptStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata other = (Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (hasVat() != other.hasVat()) return false; + if (hasVat()) { + if (!getVat() + .equals(other.getVat())) return false; + } + if (hasGrounds() != other.hasGrounds()) return false; + if (hasGrounds()) { + if (!getGrounds() + .equals(other.getGrounds())) return false; + } + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + if (hasVat()) { + hash = (37 * hash) + VAT_FIELD_NUMBER; + hash = (53 * hash) + getVat().hashCode(); + } + if (hasGrounds()) { + hash = (37 * hash) + GROUNDS_FIELD_NUMBER; + hash = (53 * hash) + getGrounds().hashCode(); + } + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -733,42 +788,57 @@ public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.Acceptanc } public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -788,6 +858,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_AcceptanceCertificateDocument_AcceptanceCertificateMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_AcceptanceCertificateDocument_AcceptanceCertificateMetadata_fieldAccessorTable @@ -797,50 +868,38 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus.UnknownAcceptanceCertificateDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentStatus_ = 0; total_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); vat_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); grounds_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - bitField0_ = (bitField0_ & ~0x00000010); + receiptStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_AcceptanceCertificateDocument_AcceptanceCertificateMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata build() { Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -849,35 +908,41 @@ public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertif return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata buildPartial() { Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata result = new Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000002; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vat_ = vat_; to_bitField0_ |= 0x00000004; } - result.vat_ = vat_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.grounds_ = grounds_; to_bitField0_ |= 0x00000008; } - result.grounds_ = grounds_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000010; } - result.receiptStatus_ = receiptStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata)other); @@ -893,85 +958,146 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.AcceptanceCertificateDocumen setDocumentStatus(other.getDocumentStatus()); } if (other.hasTotal()) { - bitField0_ |= 0x00000002; total_ = other.total_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasVat()) { - bitField0_ |= 0x00000004; vat_ = other.vat_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasGrounds()) { - bitField0_ |= 0x00000008; grounds_ = other.grounds_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReceiptStatus()) { setReceiptStatus(other.getReceiptStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotal()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + total_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + vat_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + grounds_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus.UnknownAcceptanceCertificateDocumentStatus; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentStatus DocumentStatus = 1 [default = UnknownAcceptanceCertificateDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentStatus DocumentStatus = 1 [default = UnknownAcceptanceCertificateDocumentStatus]; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus result = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus.UnknownAcceptanceCertificateDocumentStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentStatus DocumentStatus = 1 [default = UnknownAcceptanceCertificateDocumentStatus]; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentStatus DocumentStatus = 1 [default = UnknownAcceptanceCertificateDocumentStatus]; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateDocumentStatus.UnknownAcceptanceCertificateDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } @@ -979,12 +1105,14 @@ public Builder clearDocumentStatus() { private java.lang.Object total_ = ""; /** * required string Total = 2; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Total = 2; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -1002,6 +1130,7 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -1018,36 +1147,37 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string Total = 2; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000002); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string Total = 2; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1055,12 +1185,14 @@ public Builder setTotalBytes( private java.lang.Object vat_ = ""; /** * optional string Vat = 3; + * @return Whether the vat field is set. */ public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Vat = 3; + * @return The vat. */ public java.lang.String getVat() { java.lang.Object ref = vat_; @@ -1078,6 +1210,7 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @return The bytes for vat. */ public com.google.protobuf.ByteString getVatBytes() { @@ -1094,36 +1227,37 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @param value The vat to set. + * @return This builder for chaining. */ public Builder setVat( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string Vat = 3; + * @return This builder for chaining. */ public Builder clearVat() { - bitField0_ = (bitField0_ & ~0x00000004); vat_ = getDefaultInstance().getVat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string Vat = 3; + * @param value The bytes for vat to set. + * @return This builder for chaining. */ public Builder setVatBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1131,12 +1265,14 @@ public Builder setVatBytes( private java.lang.Object grounds_ = ""; /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Grounds = 4; + * @return The grounds. */ public java.lang.String getGrounds() { java.lang.Object ref = grounds_; @@ -1154,6 +1290,7 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @return The bytes for grounds. */ public com.google.protobuf.ByteString getGroundsBytes() { @@ -1170,71 +1307,79 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @param value The grounds to set. + * @return This builder for chaining. */ public Builder setGrounds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string Grounds = 4; + * @return This builder for chaining. */ public Builder clearGrounds() { - bitField0_ = (bitField0_ & ~0x00000008); grounds_ = getDefaultInstance().getGrounds(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string Grounds = 4; + * @param value The bytes for grounds to set. + * @return This builder for chaining. */ public Builder setGroundsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000010); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + receiptStatus_ = 0; onChanged(); return this; } @@ -1242,17 +1387,57 @@ public Builder clearReceiptStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata) + private static final Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata DEFAULT_INSTANCE; static { - defaultInstance = new AcceptanceCertificateMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata(); + } + + public static Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceptanceCertificateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_AcceptanceCertificateDocument_AcceptanceCertificateMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_AcceptanceCertificateDocument_AcceptanceCertificateMetadata_fieldAccessorTable; @@ -1260,7 +1445,7 @@ public Builder clearReceiptStatus() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1273,7 +1458,7 @@ public Builder clearReceiptStatus() { "ficateDocument.AcceptanceCertificateDocu" + "mentStatus:*UnknownAcceptanceCertificate" + "DocumentStatus\022\r\n\005Total\030\002 \002(\t\022\013\n\003Vat\030\003 \001" + - "(\t\022\017\n\007Grounds\030\004 \001(\t\022V\n\rReceiptStatus\030\005 \001", + "(\t\022\017\n\007Grounds\030\004 \001(\t\022V\n\rReceiptStatus\030\005 \001" + "(\0162).Diadoc.Api.Proto.Documents.ReceiptS" + "tatus:\024UnknownReceiptStatus*\254\007\n#Acceptan" + "ceCertificateDocumentStatus\022.\n*UnknownAc" + @@ -1283,7 +1468,7 @@ public Builder clearReceiptStatus() { "boundWithRecipientPartiallySignature\020\023\022-" + "\n)OutboundRecipientSignatureRequestRejec" + "ted\020\003\022%\n!OutboundWaitingForSenderSignatu" + - "re\020\n\022\"\n\036OutboundInvalidSenderSignature\020\013", + "re\020\n\022\"\n\036OutboundInvalidSenderSignature\020\013" + "\022\'\n#OutboundNoRecipientSignatureRequest\020" + "\020\022\'\n#InboundWaitingForRecipientSignature" + "\020\004\022!\n\035InboundWithRecipientSignature\020\005\022*\n" + @@ -1293,7 +1478,7 @@ public Builder clearReceiptStatus() { "ure\020\014\022&\n\"InboundNoRecipientSignatureRequ" + "est\020\021\022(\n$InternalWaitingForRecipientSign" + "ature\020\007\022\"\n\036InternalWithRecipientSignatur" + - "e\020\010\022+\n\'InternalWithRecipientPartiallySig", + "e\020\010\022+\n\'InternalWithRecipientPartiallySig" + "nature\020\025\022-\n)InternalRecipientSignatureRe" + "questRejected\020\t\022%\n!InternalWaitingForSen" + "derSignature\020\r\022\"\n\036InternalInvalidSenderS" + @@ -1302,25 +1487,18 @@ public Builder clearReceiptStatus() { "eRequest\020\022B%B#AcceptanceCertificateDocum" + "entProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Documents.ReceiptStatusProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_AcceptanceCertificateDocument_AcceptanceCertificateMetadata_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_AcceptanceCertificateDocument_AcceptanceCertificateMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_AcceptanceCertificateDocument_AcceptanceCertificateMetadata_descriptor, new java.lang.String[] { "DocumentStatus", "Total", "Vat", "Grounds", "ReceiptStatus", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Documents.ReceiptStatusProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Documents/BilateralDocument/BilateralDocumentProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/BilateralDocument/BilateralDocumentProtos.java index e6837c75..2e5ee3ba 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/BilateralDocument/BilateralDocumentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/BilateralDocument/BilateralDocumentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/BilateralDocument.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents.BilateralDocument; public final class BilateralDocumentProtos { private BilateralDocumentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BilateralDocumentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus} @@ -14,93 +31,102 @@ public static void registerAllExtensions( public enum BilateralDocumentStatus implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownBilateralDocumentStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownBilateralDocumentStatus = 0; */ - UnknownBilateralDocumentStatus(0, 0), + UnknownBilateralDocumentStatus(0), /** * OutboundWaitingForRecipientSignature = 1; */ - OutboundWaitingForRecipientSignature(1, 1), + OutboundWaitingForRecipientSignature(1), /** * OutboundWithRecipientSignature = 2; */ - OutboundWithRecipientSignature(2, 2), + OutboundWithRecipientSignature(2), /** * OutboundWithRecipientPartiallySignature = 19; */ - OutboundWithRecipientPartiallySignature(3, 19), + OutboundWithRecipientPartiallySignature(19), /** * OutboundRecipientSignatureRequestRejected = 3; */ - OutboundRecipientSignatureRequestRejected(4, 3), + OutboundRecipientSignatureRequestRejected(3), /** * OutboundWaitingForSenderSignature = 10; */ - OutboundWaitingForSenderSignature(5, 10), + OutboundWaitingForSenderSignature(10), /** * OutboundInvalidSenderSignature = 11; */ - OutboundInvalidSenderSignature(6, 11), + OutboundInvalidSenderSignature(11), /** * InboundWaitingForRecipientSignature = 4; */ - InboundWaitingForRecipientSignature(7, 4), + InboundWaitingForRecipientSignature(4), /** * InboundWithRecipientSignature = 5; */ - InboundWithRecipientSignature(8, 5), + InboundWithRecipientSignature(5), /** * InboundWithRecipientPartiallySignature = 20; */ - InboundWithRecipientPartiallySignature(9, 20), + InboundWithRecipientPartiallySignature(20), /** * InboundRecipientSignatureRequestRejected = 6; */ - InboundRecipientSignatureRequestRejected(10, 6), + InboundRecipientSignatureRequestRejected(6), /** * InboundInvalidRecipientSignature = 12; */ - InboundInvalidRecipientSignature(11, 12), + InboundInvalidRecipientSignature(12), /** * InternalWaitingForRecipientSignature = 7; */ - InternalWaitingForRecipientSignature(12, 7), + InternalWaitingForRecipientSignature(7), /** * InternalWithRecipientSignature = 8; */ - InternalWithRecipientSignature(13, 8), + InternalWithRecipientSignature(8), /** * InternalWithRecipientPartiallySignature = 21; */ - InternalWithRecipientPartiallySignature(14, 21), + InternalWithRecipientPartiallySignature(21), /** * InternalRecipientSignatureRequestRejected = 9; */ - InternalRecipientSignatureRequestRejected(15, 9), + InternalRecipientSignatureRequestRejected(9), /** * InternalWaitingForSenderSignature = 13; */ - InternalWaitingForSenderSignature(16, 13), + InternalWaitingForSenderSignature(13), /** * InternalInvalidSenderSignature = 14; */ - InternalInvalidSenderSignature(17, 14), + InternalInvalidSenderSignature(14), /** * InternalInvalidRecipientSignature = 15; */ - InternalInvalidRecipientSignature(18, 15), + InternalInvalidRecipientSignature(15), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BilateralDocumentStatus.class.getName()); + } /** - * UnknownBilateralDocumentStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownBilateralDocumentStatus = 0; */ public static final int UnknownBilateralDocumentStatus_VALUE = 0; /** @@ -177,9 +203,25 @@ public enum BilateralDocumentStatus public static final int InternalInvalidRecipientSignature_VALUE = 15; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static BilateralDocumentStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BilateralDocumentStatus forNumber(int value) { switch (value) { case 0: return UnknownBilateralDocumentStatus; case 1: return OutboundWaitingForRecipientSignature; @@ -208,17 +250,17 @@ public static BilateralDocumentStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + BilateralDocumentStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public BilateralDocumentStatus findValueByNumber(int number) { - return BilateralDocumentStatus.valueOf(number); + return BilateralDocumentStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -240,11 +282,9 @@ public static BilateralDocumentStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private BilateralDocumentStatus(int index, int value) { - this.index = index; + private BilateralDocumentStatus(int value) { this.value = value; } @@ -257,10 +297,12 @@ public interface TrustConnectionRequestMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus TrustConnectionRequestStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the trustConnectionRequestStatus field is set. */ boolean hasTrustConnectionRequestStatus(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus TrustConnectionRequestStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The trustConnectionRequestStatus. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getTrustConnectionRequestStatus(); } @@ -271,79 +313,30 @@ public static final class TrustConnectionRequestMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata) TrustConnectionRequestMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + TrustConnectionRequestMetadata.class.getName()); + } // Use TrustConnectionRequestMetadata.newBuilder() to construct. private TrustConnectionRequestMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private TrustConnectionRequestMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final TrustConnectionRequestMetadata defaultInstance; - public static TrustConnectionRequestMetadata getDefaultInstance() { - return defaultInstance; + private TrustConnectionRequestMetadata() { + trustConnectionRequestStatus_ = 0; } - public TrustConnectionRequestMetadata getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrustConnectionRequestMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - trustConnectionRequestStatus_ = value; - } - 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.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_TrustConnectionRequestMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_TrustConnectionRequestMetadata_fieldAccessorTable @@ -351,41 +344,27 @@ private TrustConnectionRequestMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.class, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TrustConnectionRequestMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrustConnectionRequestMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TRUSTCONNECTIONREQUESTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus trustConnectionRequestStatus_; + private int trustConnectionRequestStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus TrustConnectionRequestStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the trustConnectionRequestStatus field is set. */ - public boolean hasTrustConnectionRequestStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasTrustConnectionRequestStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus TrustConnectionRequestStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The trustConnectionRequestStatus. */ - public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getTrustConnectionRequestStatus() { - return trustConnectionRequestStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getTrustConnectionRequestStatus() { + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(trustConnectionRequestStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } - private void initFields() { - trustConnectionRequestStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -395,37 +374,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, trustConnectionRequestStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, trustConnectionRequestStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, trustConnectionRequestStatus_.getNumber()); + .computeEnumSize(1, trustConnectionRequestStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata other = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata) obj; + + if (hasTrustConnectionRequestStatus() != other.hasTrustConnectionRequestStatus()) return false; + if (hasTrustConnectionRequestStatus()) { + if (trustConnectionRequestStatus_ != other.trustConnectionRequestStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrustConnectionRequestStatus()) { + hash = (37 * hash) + TRUSTCONNECTIONREQUESTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + trustConnectionRequestStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -449,42 +466,57 @@ public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProt } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -504,6 +536,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_TrustConnectionRequestMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_TrustConnectionRequestMetadata_fieldAccessorTable @@ -513,42 +546,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - trustConnectionRequestStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + trustConnectionRequestStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_TrustConnectionRequestMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata build() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -557,19 +582,25 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Trus return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata buildPartial() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata result = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trustConnectionRequestStatus_ = trustConnectionRequestStatus_; to_bitField0_ |= 0x00000001; } - result.trustConnectionRequestStatus_ = trustConnectionRequestStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata)other); @@ -585,63 +616,98 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralD setTrustConnectionRequestStatus(other.getTrustConnectionRequestStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + trustConnectionRequestStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus trustConnectionRequestStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + private int trustConnectionRequestStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus TrustConnectionRequestStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the trustConnectionRequestStatus field is set. */ - public boolean hasTrustConnectionRequestStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasTrustConnectionRequestStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus TrustConnectionRequestStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The trustConnectionRequestStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getTrustConnectionRequestStatus() { - return trustConnectionRequestStatus_; + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(trustConnectionRequestStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus TrustConnectionRequestStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @param value The trustConnectionRequestStatus to set. + * @return This builder for chaining. */ public Builder setTrustConnectionRequestStatus(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - trustConnectionRequestStatus_ = value; + trustConnectionRequestStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus TrustConnectionRequestStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return This builder for chaining. */ public Builder clearTrustConnectionRequestStatus() { bitField0_ = (bitField0_ & ~0x00000001); - trustConnectionRequestStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + trustConnectionRequestStatus_ = 0; onChanged(); return this; } @@ -649,12 +715,52 @@ public Builder clearTrustConnectionRequestStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata) + private static final Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata DEFAULT_INSTANCE; static { - defaultInstance = new TrustConnectionRequestMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata(); + } + + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrustConnectionRequestMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata) } public interface BasicDocumentMetadataOrBuilder extends @@ -663,88 +769,107 @@ public interface BasicDocumentMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus(); /** * required string Total = 2; + * @return Whether the total field is set. */ boolean hasTotal(); /** * required string Total = 2; + * @return The total. */ java.lang.String getTotal(); /** * required string Total = 2; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** * optional string Vat = 3; + * @return Whether the vat field is set. */ boolean hasVat(); /** * optional string Vat = 3; + * @return The vat. */ java.lang.String getVat(); /** * optional string Vat = 3; + * @return The bytes for vat. */ com.google.protobuf.ByteString getVatBytes(); /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ boolean hasGrounds(); /** * optional string Grounds = 4; + * @return The grounds. */ java.lang.String getGrounds(); /** * optional string Grounds = 4; + * @return The bytes for grounds. */ com.google.protobuf.ByteString getGroundsBytes(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus(); /** * optional string RevisionDate = 6; + * @return Whether the revisionDate field is set. */ boolean hasRevisionDate(); /** * optional string RevisionDate = 6; + * @return The revisionDate. */ java.lang.String getRevisionDate(); /** * optional string RevisionDate = 6; + * @return The bytes for revisionDate. */ com.google.protobuf.ByteString getRevisionDateBytes(); /** * optional string RevisionNumber = 7; + * @return Whether the revisionNumber field is set. */ boolean hasRevisionNumber(); /** * optional string RevisionNumber = 7; + * @return The revisionNumber. */ java.lang.String getRevisionNumber(); /** * optional string RevisionNumber = 7; + * @return The bytes for revisionNumber. */ com.google.protobuf.ByteString getRevisionNumberBytes(); @@ -756,120 +881,36 @@ public static final class BasicDocumentMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata) BasicDocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BasicDocumentMetadata.class.getName()); + } // Use BasicDocumentMetadata.newBuilder() to construct. private BasicDocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private BasicDocumentMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final BasicDocumentMetadata defaultInstance; - public static BasicDocumentMetadata getDefaultInstance() { - return defaultInstance; - } - - public BasicDocumentMetadata getDefaultInstanceForType() { - return defaultInstance; + private BasicDocumentMetadata() { + documentStatus_ = 0; + total_ = ""; + vat_ = ""; + grounds_ = ""; + receiptStatus_ = 0; + revisionDate_ = ""; + revisionNumber_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BasicDocumentMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - total_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - vat_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - grounds_ = bs; - break; - } - case 40: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - receiptStatus_ = value; - } - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - revisionDate_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - revisionNumber_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BasicDocumentMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BasicDocumentMetadata_fieldAccessorTable @@ -877,48 +918,41 @@ private BasicDocumentMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.class, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BasicDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BasicDocumentMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } public static final int TOTAL_FIELD_NUMBER = 2; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** * required string Total = 2; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Total = 2; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -935,7 +969,9 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -951,16 +987,21 @@ public java.lang.String getTotal() { } public static final int VAT_FIELD_NUMBER = 3; - private java.lang.Object vat_; + @SuppressWarnings("serial") + private volatile java.lang.Object vat_ = ""; /** * optional string Vat = 3; + * @return Whether the vat field is set. */ + @java.lang.Override public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Vat = 3; + * @return The vat. */ + @java.lang.Override public java.lang.String getVat() { java.lang.Object ref = vat_; if (ref instanceof java.lang.String) { @@ -977,7 +1018,9 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @return The bytes for vat. */ + @java.lang.Override public com.google.protobuf.ByteString getVatBytes() { java.lang.Object ref = vat_; @@ -993,16 +1036,21 @@ public java.lang.String getVat() { } public static final int GROUNDS_FIELD_NUMBER = 4; - private java.lang.Object grounds_; + @SuppressWarnings("serial") + private volatile java.lang.Object grounds_ = ""; /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ + @java.lang.Override public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Grounds = 4; + * @return The grounds. */ + @java.lang.Override public java.lang.String getGrounds() { java.lang.Object ref = grounds_; if (ref instanceof java.lang.String) { @@ -1019,7 +1067,9 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @return The bytes for grounds. */ + @java.lang.Override public com.google.protobuf.ByteString getGroundsBytes() { java.lang.Object ref = grounds_; @@ -1035,31 +1085,39 @@ public java.lang.String getGrounds() { } public static final int RECEIPTSTATUS_FIELD_NUMBER = 5; - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } public static final int REVISIONDATE_FIELD_NUMBER = 6; - private java.lang.Object revisionDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object revisionDate_ = ""; /** * optional string RevisionDate = 6; + * @return Whether the revisionDate field is set. */ + @java.lang.Override public boolean hasRevisionDate() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string RevisionDate = 6; + * @return The revisionDate. */ + @java.lang.Override public java.lang.String getRevisionDate() { java.lang.Object ref = revisionDate_; if (ref instanceof java.lang.String) { @@ -1076,7 +1134,9 @@ public java.lang.String getRevisionDate() { } /** * optional string RevisionDate = 6; + * @return The bytes for revisionDate. */ + @java.lang.Override public com.google.protobuf.ByteString getRevisionDateBytes() { java.lang.Object ref = revisionDate_; @@ -1092,16 +1152,21 @@ public java.lang.String getRevisionDate() { } public static final int REVISIONNUMBER_FIELD_NUMBER = 7; - private java.lang.Object revisionNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object revisionNumber_ = ""; /** * optional string RevisionNumber = 7; + * @return Whether the revisionNumber field is set. */ + @java.lang.Override public boolean hasRevisionNumber() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string RevisionNumber = 7; + * @return The revisionNumber. */ + @java.lang.Override public java.lang.String getRevisionNumber() { java.lang.Object ref = revisionNumber_; if (ref instanceof java.lang.String) { @@ -1118,7 +1183,9 @@ public java.lang.String getRevisionNumber() { } /** * optional string RevisionNumber = 7; + * @return The bytes for revisionNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getRevisionNumberBytes() { java.lang.Object ref = revisionNumber_; @@ -1133,16 +1200,8 @@ public java.lang.String getRevisionNumber() { } } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - total_ = ""; - vat_ = ""; - grounds_ = ""; - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - revisionDate_ = ""; - revisionNumber_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1156,79 +1215,165 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, receiptStatus_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getRevisionDateBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, revisionDate_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getRevisionNumberBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, revisionNumber_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, receiptStatus_.getNumber()); + .computeEnumSize(5, receiptStatus_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getRevisionDateBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, revisionDate_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getRevisionNumberBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, revisionNumber_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata other = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (hasVat() != other.hasVat()) return false; + if (hasVat()) { + if (!getVat() + .equals(other.getVat())) return false; + } + if (hasGrounds() != other.hasGrounds()) return false; + if (hasGrounds()) { + if (!getGrounds() + .equals(other.getGrounds())) return false; + } + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (hasRevisionDate() != other.hasRevisionDate()) return false; + if (hasRevisionDate()) { + if (!getRevisionDate() + .equals(other.getRevisionDate())) return false; + } + if (hasRevisionNumber() != other.hasRevisionNumber()) return false; + if (hasRevisionNumber()) { + if (!getRevisionNumber() + .equals(other.getRevisionNumber())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + if (hasVat()) { + hash = (37 * hash) + VAT_FIELD_NUMBER; + hash = (53 * hash) + getVat().hashCode(); + } + if (hasGrounds()) { + hash = (37 * hash) + GROUNDS_FIELD_NUMBER; + hash = (53 * hash) + getGrounds().hashCode(); + } + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + if (hasRevisionDate()) { + hash = (37 * hash) + REVISIONDATE_FIELD_NUMBER; + hash = (53 * hash) + getRevisionDate().hashCode(); + } + if (hasRevisionNumber()) { + hash = (37 * hash) + REVISIONNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getRevisionNumber().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1252,42 +1397,57 @@ public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProt } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1307,6 +1467,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BasicDocumentMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BasicDocumentMetadata_fieldAccessorTable @@ -1316,54 +1477,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentStatus_ = 0; total_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); vat_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); grounds_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - bitField0_ = (bitField0_ & ~0x00000010); + receiptStatus_ = 0; revisionDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); revisionNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BasicDocumentMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata build() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -1372,43 +1519,49 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Basi return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata buildPartial() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata result = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000002; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vat_ = vat_; to_bitField0_ |= 0x00000004; } - result.vat_ = vat_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.grounds_ = grounds_; to_bitField0_ |= 0x00000008; } - result.grounds_ = grounds_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000010; } - result.receiptStatus_ = receiptStatus_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.revisionDate_ = revisionDate_; to_bitField0_ |= 0x00000020; } - result.revisionDate_ = revisionDate_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.revisionNumber_ = revisionNumber_; to_bitField0_ |= 0x00000040; } - result.revisionNumber_ = revisionNumber_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata)other); @@ -1424,95 +1577,166 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralD setDocumentStatus(other.getDocumentStatus()); } if (other.hasTotal()) { - bitField0_ |= 0x00000002; total_ = other.total_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasVat()) { - bitField0_ |= 0x00000004; vat_ = other.vat_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasGrounds()) { - bitField0_ |= 0x00000008; grounds_ = other.grounds_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReceiptStatus()) { setReceiptStatus(other.getReceiptStatus()); } if (other.hasRevisionDate()) { - bitField0_ |= 0x00000020; revisionDate_ = other.revisionDate_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasRevisionNumber()) { - bitField0_ |= 0x00000040; revisionNumber_ = other.revisionNumber_; + bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotal()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + total_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + vat_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + grounds_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + case 50: { + revisionDate_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + revisionNumber_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } @@ -1520,12 +1744,14 @@ public Builder clearDocumentStatus() { private java.lang.Object total_ = ""; /** * required string Total = 2; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Total = 2; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -1543,6 +1769,7 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -1559,36 +1786,37 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string Total = 2; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000002); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string Total = 2; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1596,12 +1824,14 @@ public Builder setTotalBytes( private java.lang.Object vat_ = ""; /** * optional string Vat = 3; + * @return Whether the vat field is set. */ public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Vat = 3; + * @return The vat. */ public java.lang.String getVat() { java.lang.Object ref = vat_; @@ -1619,6 +1849,7 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @return The bytes for vat. */ public com.google.protobuf.ByteString getVatBytes() { @@ -1635,36 +1866,37 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @param value The vat to set. + * @return This builder for chaining. */ public Builder setVat( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string Vat = 3; + * @return This builder for chaining. */ public Builder clearVat() { - bitField0_ = (bitField0_ & ~0x00000004); vat_ = getDefaultInstance().getVat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string Vat = 3; + * @param value The bytes for vat to set. + * @return This builder for chaining. */ public Builder setVatBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1672,12 +1904,14 @@ public Builder setVatBytes( private java.lang.Object grounds_ = ""; /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Grounds = 4; + * @return The grounds. */ public java.lang.String getGrounds() { java.lang.Object ref = grounds_; @@ -1695,6 +1929,7 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @return The bytes for grounds. */ public com.google.protobuf.ByteString getGroundsBytes() { @@ -1711,71 +1946,79 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @param value The grounds to set. + * @return This builder for chaining. */ public Builder setGrounds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string Grounds = 4; + * @return This builder for chaining. */ public Builder clearGrounds() { - bitField0_ = (bitField0_ & ~0x00000008); grounds_ = getDefaultInstance().getGrounds(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string Grounds = 4; + * @param value The bytes for grounds to set. + * @return This builder for chaining. */ public Builder setGroundsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000010); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + receiptStatus_ = 0; onChanged(); return this; } @@ -1783,12 +2026,14 @@ public Builder clearReceiptStatus() { private java.lang.Object revisionDate_ = ""; /** * optional string RevisionDate = 6; + * @return Whether the revisionDate field is set. */ public boolean hasRevisionDate() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string RevisionDate = 6; + * @return The revisionDate. */ public java.lang.String getRevisionDate() { java.lang.Object ref = revisionDate_; @@ -1806,6 +2051,7 @@ public java.lang.String getRevisionDate() { } /** * optional string RevisionDate = 6; + * @return The bytes for revisionDate. */ public com.google.protobuf.ByteString getRevisionDateBytes() { @@ -1822,36 +2068,37 @@ public java.lang.String getRevisionDate() { } /** * optional string RevisionDate = 6; + * @param value The revisionDate to set. + * @return This builder for chaining. */ public Builder setRevisionDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } revisionDate_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional string RevisionDate = 6; + * @return This builder for chaining. */ public Builder clearRevisionDate() { - bitField0_ = (bitField0_ & ~0x00000020); revisionDate_ = getDefaultInstance().getRevisionDate(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * optional string RevisionDate = 6; + * @param value The bytes for revisionDate to set. + * @return This builder for chaining. */ public Builder setRevisionDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } revisionDate_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1859,12 +2106,14 @@ public Builder setRevisionDateBytes( private java.lang.Object revisionNumber_ = ""; /** * optional string RevisionNumber = 7; + * @return Whether the revisionNumber field is set. */ public boolean hasRevisionNumber() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string RevisionNumber = 7; + * @return The revisionNumber. */ public java.lang.String getRevisionNumber() { java.lang.Object ref = revisionNumber_; @@ -1882,6 +2131,7 @@ public java.lang.String getRevisionNumber() { } /** * optional string RevisionNumber = 7; + * @return The bytes for revisionNumber. */ public com.google.protobuf.ByteString getRevisionNumberBytes() { @@ -1898,36 +2148,37 @@ public java.lang.String getRevisionNumber() { } /** * optional string RevisionNumber = 7; + * @param value The revisionNumber to set. + * @return This builder for chaining. */ public Builder setRevisionNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } revisionNumber_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional string RevisionNumber = 7; + * @return This builder for chaining. */ public Builder clearRevisionNumber() { - bitField0_ = (bitField0_ & ~0x00000040); revisionNumber_ = getDefaultInstance().getRevisionNumber(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * optional string RevisionNumber = 7; + * @param value The bytes for revisionNumber to set. + * @return This builder for chaining. */ public Builder setRevisionNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } revisionNumber_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1935,12 +2186,52 @@ public Builder setRevisionNumberBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata) + private static final Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata DEFAULT_INSTANCE; static { - defaultInstance = new BasicDocumentMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata(); + } + + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasicDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata) } public interface PriceListMetadataOrBuilder extends @@ -1949,61 +2240,74 @@ public interface PriceListMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus(); /** * optional string PriceListEffectiveDate = 2; + * @return Whether the priceListEffectiveDate field is set. */ boolean hasPriceListEffectiveDate(); /** * optional string PriceListEffectiveDate = 2; + * @return The priceListEffectiveDate. */ java.lang.String getPriceListEffectiveDate(); /** * optional string PriceListEffectiveDate = 2; + * @return The bytes for priceListEffectiveDate. */ com.google.protobuf.ByteString getPriceListEffectiveDateBytes(); /** * optional string ContractDocumentDate = 3; + * @return Whether the contractDocumentDate field is set. */ boolean hasContractDocumentDate(); /** * optional string ContractDocumentDate = 3; + * @return The contractDocumentDate. */ java.lang.String getContractDocumentDate(); /** * optional string ContractDocumentDate = 3; + * @return The bytes for contractDocumentDate. */ com.google.protobuf.ByteString getContractDocumentDateBytes(); /** * optional string ContractDocumentNumber = 4; + * @return Whether the contractDocumentNumber field is set. */ boolean hasContractDocumentNumber(); /** * optional string ContractDocumentNumber = 4; + * @return The contractDocumentNumber. */ java.lang.String getContractDocumentNumber(); /** * optional string ContractDocumentNumber = 4; + * @return The bytes for contractDocumentNumber. */ com.google.protobuf.ByteString getContractDocumentNumberBytes(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus(); } @@ -2014,108 +2318,34 @@ public static final class PriceListMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata) PriceListMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + PriceListMetadata.class.getName()); + } // Use PriceListMetadata.newBuilder() to construct. private PriceListMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private PriceListMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final PriceListMetadata defaultInstance; - public static PriceListMetadata getDefaultInstance() { - return defaultInstance; - } - - public PriceListMetadata getDefaultInstanceForType() { - return defaultInstance; + private PriceListMetadata() { + documentStatus_ = 0; + priceListEffectiveDate_ = ""; + contractDocumentDate_ = ""; + contractDocumentNumber_ = ""; + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PriceListMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - priceListEffectiveDate_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - contractDocumentDate_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - contractDocumentNumber_ = bs; - break; - } - case 40: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - receiptStatus_ = value; - } - 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.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_PriceListMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_PriceListMetadata_fieldAccessorTable @@ -2123,48 +2353,41 @@ private PriceListMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.class, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PriceListMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PriceListMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } public static final int PRICELISTEFFECTIVEDATE_FIELD_NUMBER = 2; - private java.lang.Object priceListEffectiveDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object priceListEffectiveDate_ = ""; /** * optional string PriceListEffectiveDate = 2; + * @return Whether the priceListEffectiveDate field is set. */ + @java.lang.Override public boolean hasPriceListEffectiveDate() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string PriceListEffectiveDate = 2; + * @return The priceListEffectiveDate. */ + @java.lang.Override public java.lang.String getPriceListEffectiveDate() { java.lang.Object ref = priceListEffectiveDate_; if (ref instanceof java.lang.String) { @@ -2181,7 +2404,9 @@ public java.lang.String getPriceListEffectiveDate() { } /** * optional string PriceListEffectiveDate = 2; + * @return The bytes for priceListEffectiveDate. */ + @java.lang.Override public com.google.protobuf.ByteString getPriceListEffectiveDateBytes() { java.lang.Object ref = priceListEffectiveDate_; @@ -2197,16 +2422,21 @@ public java.lang.String getPriceListEffectiveDate() { } public static final int CONTRACTDOCUMENTDATE_FIELD_NUMBER = 3; - private java.lang.Object contractDocumentDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object contractDocumentDate_ = ""; /** * optional string ContractDocumentDate = 3; + * @return Whether the contractDocumentDate field is set. */ + @java.lang.Override public boolean hasContractDocumentDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string ContractDocumentDate = 3; + * @return The contractDocumentDate. */ + @java.lang.Override public java.lang.String getContractDocumentDate() { java.lang.Object ref = contractDocumentDate_; if (ref instanceof java.lang.String) { @@ -2223,7 +2453,9 @@ public java.lang.String getContractDocumentDate() { } /** * optional string ContractDocumentDate = 3; + * @return The bytes for contractDocumentDate. */ + @java.lang.Override public com.google.protobuf.ByteString getContractDocumentDateBytes() { java.lang.Object ref = contractDocumentDate_; @@ -2239,16 +2471,21 @@ public java.lang.String getContractDocumentDate() { } public static final int CONTRACTDOCUMENTNUMBER_FIELD_NUMBER = 4; - private java.lang.Object contractDocumentNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object contractDocumentNumber_ = ""; /** * optional string ContractDocumentNumber = 4; + * @return Whether the contractDocumentNumber field is set. */ + @java.lang.Override public boolean hasContractDocumentNumber() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string ContractDocumentNumber = 4; + * @return The contractDocumentNumber. */ + @java.lang.Override public java.lang.String getContractDocumentNumber() { java.lang.Object ref = contractDocumentNumber_; if (ref instanceof java.lang.String) { @@ -2265,7 +2502,9 @@ public java.lang.String getContractDocumentNumber() { } /** * optional string ContractDocumentNumber = 4; + * @return The bytes for contractDocumentNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getContractDocumentNumberBytes() { java.lang.Object ref = contractDocumentNumber_; @@ -2281,28 +2520,25 @@ public java.lang.String getContractDocumentNumber() { } public static final int RECEIPTSTATUS_FIELD_NUMBER = 5; - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - priceListEffectiveDate_ = ""; - contractDocumentDate_ = ""; - contractDocumentNumber_ = ""; - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2312,65 +2548,135 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getPriceListEffectiveDateBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, priceListEffectiveDate_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getContractDocumentDateBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, contractDocumentDate_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getContractDocumentNumberBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, contractDocumentNumber_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, receiptStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getPriceListEffectiveDateBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, priceListEffectiveDate_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getContractDocumentDateBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, contractDocumentDate_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getContractDocumentNumberBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, contractDocumentNumber_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, receiptStatus_.getNumber()); + .computeEnumSize(5, receiptStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata other = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasPriceListEffectiveDate() != other.hasPriceListEffectiveDate()) return false; + if (hasPriceListEffectiveDate()) { + if (!getPriceListEffectiveDate() + .equals(other.getPriceListEffectiveDate())) return false; + } + if (hasContractDocumentDate() != other.hasContractDocumentDate()) return false; + if (hasContractDocumentDate()) { + if (!getContractDocumentDate() + .equals(other.getContractDocumentDate())) return false; + } + if (hasContractDocumentNumber() != other.hasContractDocumentNumber()) return false; + if (hasContractDocumentNumber()) { + if (!getContractDocumentNumber() + .equals(other.getContractDocumentNumber())) return false; + } + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasPriceListEffectiveDate()) { + hash = (37 * hash) + PRICELISTEFFECTIVEDATE_FIELD_NUMBER; + hash = (53 * hash) + getPriceListEffectiveDate().hashCode(); + } + if (hasContractDocumentDate()) { + hash = (37 * hash) + CONTRACTDOCUMENTDATE_FIELD_NUMBER; + hash = (53 * hash) + getContractDocumentDate().hashCode(); + } + if (hasContractDocumentNumber()) { + hash = (37 * hash) + CONTRACTDOCUMENTNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getContractDocumentNumber().hashCode(); + } + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2394,42 +2700,57 @@ public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProt } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2449,6 +2770,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_PriceListMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_PriceListMetadata_fieldAccessorTable @@ -2458,50 +2780,38 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentStatus_ = 0; priceListEffectiveDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); contractDocumentDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); contractDocumentNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - bitField0_ = (bitField0_ & ~0x00000010); + receiptStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_PriceListMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata build() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -2510,35 +2820,41 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Pric return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata buildPartial() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata result = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.priceListEffectiveDate_ = priceListEffectiveDate_; to_bitField0_ |= 0x00000002; } - result.priceListEffectiveDate_ = priceListEffectiveDate_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.contractDocumentDate_ = contractDocumentDate_; to_bitField0_ |= 0x00000004; } - result.contractDocumentDate_ = contractDocumentDate_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.contractDocumentNumber_ = contractDocumentNumber_; to_bitField0_ |= 0x00000008; } - result.contractDocumentNumber_ = contractDocumentNumber_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000010; } - result.receiptStatus_ = receiptStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata)other); @@ -2554,81 +2870,143 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralD setDocumentStatus(other.getDocumentStatus()); } if (other.hasPriceListEffectiveDate()) { - bitField0_ |= 0x00000002; priceListEffectiveDate_ = other.priceListEffectiveDate_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasContractDocumentDate()) { - bitField0_ |= 0x00000004; contractDocumentDate_ = other.contractDocumentDate_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasContractDocumentNumber()) { - bitField0_ |= 0x00000008; contractDocumentNumber_ = other.contractDocumentNumber_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReceiptStatus()) { setReceiptStatus(other.getReceiptStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + priceListEffectiveDate_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + contractDocumentDate_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + contractDocumentNumber_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } @@ -2636,12 +3014,14 @@ public Builder clearDocumentStatus() { private java.lang.Object priceListEffectiveDate_ = ""; /** * optional string PriceListEffectiveDate = 2; + * @return Whether the priceListEffectiveDate field is set. */ public boolean hasPriceListEffectiveDate() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string PriceListEffectiveDate = 2; + * @return The priceListEffectiveDate. */ public java.lang.String getPriceListEffectiveDate() { java.lang.Object ref = priceListEffectiveDate_; @@ -2659,6 +3039,7 @@ public java.lang.String getPriceListEffectiveDate() { } /** * optional string PriceListEffectiveDate = 2; + * @return The bytes for priceListEffectiveDate. */ public com.google.protobuf.ByteString getPriceListEffectiveDateBytes() { @@ -2675,36 +3056,37 @@ public java.lang.String getPriceListEffectiveDate() { } /** * optional string PriceListEffectiveDate = 2; + * @param value The priceListEffectiveDate to set. + * @return This builder for chaining. */ public Builder setPriceListEffectiveDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } priceListEffectiveDate_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string PriceListEffectiveDate = 2; + * @return This builder for chaining. */ public Builder clearPriceListEffectiveDate() { - bitField0_ = (bitField0_ & ~0x00000002); priceListEffectiveDate_ = getDefaultInstance().getPriceListEffectiveDate(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string PriceListEffectiveDate = 2; + * @param value The bytes for priceListEffectiveDate to set. + * @return This builder for chaining. */ public Builder setPriceListEffectiveDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } priceListEffectiveDate_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2712,12 +3094,14 @@ public Builder setPriceListEffectiveDateBytes( private java.lang.Object contractDocumentDate_ = ""; /** * optional string ContractDocumentDate = 3; + * @return Whether the contractDocumentDate field is set. */ public boolean hasContractDocumentDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string ContractDocumentDate = 3; + * @return The contractDocumentDate. */ public java.lang.String getContractDocumentDate() { java.lang.Object ref = contractDocumentDate_; @@ -2735,6 +3119,7 @@ public java.lang.String getContractDocumentDate() { } /** * optional string ContractDocumentDate = 3; + * @return The bytes for contractDocumentDate. */ public com.google.protobuf.ByteString getContractDocumentDateBytes() { @@ -2751,36 +3136,37 @@ public java.lang.String getContractDocumentDate() { } /** * optional string ContractDocumentDate = 3; + * @param value The contractDocumentDate to set. + * @return This builder for chaining. */ public Builder setContractDocumentDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } contractDocumentDate_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string ContractDocumentDate = 3; + * @return This builder for chaining. */ public Builder clearContractDocumentDate() { - bitField0_ = (bitField0_ & ~0x00000004); contractDocumentDate_ = getDefaultInstance().getContractDocumentDate(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string ContractDocumentDate = 3; + * @param value The bytes for contractDocumentDate to set. + * @return This builder for chaining. */ public Builder setContractDocumentDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } contractDocumentDate_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2788,12 +3174,14 @@ public Builder setContractDocumentDateBytes( private java.lang.Object contractDocumentNumber_ = ""; /** * optional string ContractDocumentNumber = 4; + * @return Whether the contractDocumentNumber field is set. */ public boolean hasContractDocumentNumber() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string ContractDocumentNumber = 4; + * @return The contractDocumentNumber. */ public java.lang.String getContractDocumentNumber() { java.lang.Object ref = contractDocumentNumber_; @@ -2811,6 +3199,7 @@ public java.lang.String getContractDocumentNumber() { } /** * optional string ContractDocumentNumber = 4; + * @return The bytes for contractDocumentNumber. */ public com.google.protobuf.ByteString getContractDocumentNumberBytes() { @@ -2827,71 +3216,79 @@ public java.lang.String getContractDocumentNumber() { } /** * optional string ContractDocumentNumber = 4; + * @param value The contractDocumentNumber to set. + * @return This builder for chaining. */ public Builder setContractDocumentNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } contractDocumentNumber_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string ContractDocumentNumber = 4; + * @return This builder for chaining. */ public Builder clearContractDocumentNumber() { - bitField0_ = (bitField0_ & ~0x00000008); contractDocumentNumber_ = getDefaultInstance().getContractDocumentNumber(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string ContractDocumentNumber = 4; + * @param value The bytes for contractDocumentNumber to set. + * @return This builder for chaining. */ public Builder setContractDocumentNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } contractDocumentNumber_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000010); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + receiptStatus_ = 0; onChanged(); return this; } @@ -2899,12 +3296,52 @@ public Builder clearReceiptStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata) + private static final Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata DEFAULT_INSTANCE; static { - defaultInstance = new PriceListMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata(); + } + + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriceListMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata) } public interface ContractMetadataOrBuilder extends @@ -2913,47 +3350,57 @@ public interface ContractMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus(); /** * optional string ContractPrice = 2; + * @return Whether the contractPrice field is set. */ boolean hasContractPrice(); /** * optional string ContractPrice = 2; + * @return The contractPrice. */ java.lang.String getContractPrice(); /** * optional string ContractPrice = 2; + * @return The bytes for contractPrice. */ com.google.protobuf.ByteString getContractPriceBytes(); /** * optional string ContractType = 3; + * @return Whether the contractType field is set. */ boolean hasContractType(); /** * optional string ContractType = 3; + * @return The contractType. */ java.lang.String getContractType(); /** * optional string ContractType = 3; + * @return The bytes for contractType. */ com.google.protobuf.ByteString getContractTypeBytes(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 4 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 4 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus(); } @@ -2964,102 +3411,33 @@ public static final class ContractMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata) ContractMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ContractMetadata.class.getName()); + } // Use ContractMetadata.newBuilder() to construct. private ContractMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ContractMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ContractMetadata defaultInstance; - public static ContractMetadata getDefaultInstance() { - return defaultInstance; } - - public ContractMetadata getDefaultInstanceForType() { - return defaultInstance; + private ContractMetadata() { + documentStatus_ = 0; + contractPrice_ = ""; + contractType_ = ""; + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContractMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - contractPrice_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - contractType_ = bs; - break; - } - case 32: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - receiptStatus_ = value; - } - 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.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_ContractMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_ContractMetadata_fieldAccessorTable @@ -3067,48 +3445,41 @@ private ContractMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.class, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ContractMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContractMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } public static final int CONTRACTPRICE_FIELD_NUMBER = 2; - private java.lang.Object contractPrice_; + @SuppressWarnings("serial") + private volatile java.lang.Object contractPrice_ = ""; /** * optional string ContractPrice = 2; + * @return Whether the contractPrice field is set. */ + @java.lang.Override public boolean hasContractPrice() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ContractPrice = 2; + * @return The contractPrice. */ + @java.lang.Override public java.lang.String getContractPrice() { java.lang.Object ref = contractPrice_; if (ref instanceof java.lang.String) { @@ -3125,7 +3496,9 @@ public java.lang.String getContractPrice() { } /** * optional string ContractPrice = 2; + * @return The bytes for contractPrice. */ + @java.lang.Override public com.google.protobuf.ByteString getContractPriceBytes() { java.lang.Object ref = contractPrice_; @@ -3141,16 +3514,21 @@ public java.lang.String getContractPrice() { } public static final int CONTRACTTYPE_FIELD_NUMBER = 3; - private java.lang.Object contractType_; + @SuppressWarnings("serial") + private volatile java.lang.Object contractType_ = ""; /** * optional string ContractType = 3; + * @return Whether the contractType field is set. */ + @java.lang.Override public boolean hasContractType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string ContractType = 3; + * @return The contractType. */ + @java.lang.Override public java.lang.String getContractType() { java.lang.Object ref = contractType_; if (ref instanceof java.lang.String) { @@ -3167,7 +3545,9 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 3; + * @return The bytes for contractType. */ + @java.lang.Override public com.google.protobuf.ByteString getContractTypeBytes() { java.lang.Object ref = contractType_; @@ -3183,27 +3563,25 @@ public java.lang.String getContractType() { } public static final int RECEIPTSTATUS_FIELD_NUMBER = 4; - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 4 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000008) == 0x00000008); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 4 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - contractPrice_ = ""; - contractType_ = ""; - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3213,58 +3591,120 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getContractPriceBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, contractPrice_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getContractTypeBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, contractType_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, receiptStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getContractPriceBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, contractPrice_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getContractTypeBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, contractType_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, receiptStatus_.getNumber()); + .computeEnumSize(4, receiptStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata other = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasContractPrice() != other.hasContractPrice()) return false; + if (hasContractPrice()) { + if (!getContractPrice() + .equals(other.getContractPrice())) return false; + } + if (hasContractType() != other.hasContractType()) return false; + if (hasContractType()) { + if (!getContractType() + .equals(other.getContractType())) return false; + } + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasContractPrice()) { + hash = (37 * hash) + CONTRACTPRICE_FIELD_NUMBER; + hash = (53 * hash) + getContractPrice().hashCode(); + } + if (hasContractType()) { + hash = (37 * hash) + CONTRACTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getContractType().hashCode(); + } + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3288,42 +3728,57 @@ public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProt } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3343,6 +3798,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_ContractMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_ContractMetadata_fieldAccessorTable @@ -3352,48 +3808,37 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentStatus_ = 0; contractPrice_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); contractType_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - bitField0_ = (bitField0_ & ~0x00000008); + receiptStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_ContractMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata build() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -3402,31 +3847,37 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Cont return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata buildPartial() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata result = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contractPrice_ = contractPrice_; to_bitField0_ |= 0x00000002; } - result.contractPrice_ = contractPrice_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.contractType_ = contractType_; to_bitField0_ |= 0x00000004; } - result.contractType_ = contractType_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000008; } - result.receiptStatus_ = receiptStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata)other); @@ -3442,76 +3893,133 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralD setDocumentStatus(other.getDocumentStatus()); } if (other.hasContractPrice()) { - bitField0_ |= 0x00000002; contractPrice_ = other.contractPrice_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasContractType()) { - bitField0_ |= 0x00000004; contractType_ = other.contractType_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasReceiptStatus()) { setReceiptStatus(other.getReceiptStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + contractPrice_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + contractType_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(4, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000008; + } + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } @@ -3519,12 +4027,14 @@ public Builder clearDocumentStatus() { private java.lang.Object contractPrice_ = ""; /** * optional string ContractPrice = 2; + * @return Whether the contractPrice field is set. */ public boolean hasContractPrice() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ContractPrice = 2; + * @return The contractPrice. */ public java.lang.String getContractPrice() { java.lang.Object ref = contractPrice_; @@ -3542,6 +4052,7 @@ public java.lang.String getContractPrice() { } /** * optional string ContractPrice = 2; + * @return The bytes for contractPrice. */ public com.google.protobuf.ByteString getContractPriceBytes() { @@ -3558,36 +4069,37 @@ public java.lang.String getContractPrice() { } /** * optional string ContractPrice = 2; + * @param value The contractPrice to set. + * @return This builder for chaining. */ public Builder setContractPrice( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } contractPrice_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string ContractPrice = 2; + * @return This builder for chaining. */ public Builder clearContractPrice() { - bitField0_ = (bitField0_ & ~0x00000002); contractPrice_ = getDefaultInstance().getContractPrice(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string ContractPrice = 2; + * @param value The bytes for contractPrice to set. + * @return This builder for chaining. */ public Builder setContractPriceBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } contractPrice_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3595,12 +4107,14 @@ public Builder setContractPriceBytes( private java.lang.Object contractType_ = ""; /** * optional string ContractType = 3; + * @return Whether the contractType field is set. */ public boolean hasContractType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string ContractType = 3; + * @return The contractType. */ public java.lang.String getContractType() { java.lang.Object ref = contractType_; @@ -3618,6 +4132,7 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 3; + * @return The bytes for contractType. */ public com.google.protobuf.ByteString getContractTypeBytes() { @@ -3634,71 +4149,79 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 3; + * @param value The contractType to set. + * @return This builder for chaining. */ public Builder setContractType( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } contractType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string ContractType = 3; + * @return This builder for chaining. */ public Builder clearContractType() { - bitField0_ = (bitField0_ & ~0x00000004); contractType_ = getDefaultInstance().getContractType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string ContractType = 3; + * @param value The bytes for contractType to set. + * @return This builder for chaining. */ public Builder setContractTypeBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } contractType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 4 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000008) == 0x00000008); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 4 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 4 [default = UnknownReceiptStatus]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 4 [default = UnknownReceiptStatus]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000008); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + receiptStatus_ = 0; onChanged(); return this; } @@ -3706,12 +4229,52 @@ public Builder clearReceiptStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata) + private static final Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata DEFAULT_INSTANCE; static { - defaultInstance = new ContractMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata(); + } + + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContractMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata) } public interface SupplementaryAgreementMetadataOrBuilder extends @@ -3720,75 +4283,91 @@ public interface SupplementaryAgreementMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus(); /** * optional string Total = 2; + * @return Whether the total field is set. */ boolean hasTotal(); /** * optional string Total = 2; + * @return The total. */ java.lang.String getTotal(); /** * optional string Total = 2; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** * optional string ContractType = 3; + * @return Whether the contractType field is set. */ boolean hasContractType(); /** * optional string ContractType = 3; + * @return The contractType. */ java.lang.String getContractType(); /** * optional string ContractType = 3; + * @return The bytes for contractType. */ com.google.protobuf.ByteString getContractTypeBytes(); /** * required string ContractNumber = 4; + * @return Whether the contractNumber field is set. */ boolean hasContractNumber(); /** * required string ContractNumber = 4; + * @return The contractNumber. */ java.lang.String getContractNumber(); /** * required string ContractNumber = 4; + * @return The bytes for contractNumber. */ com.google.protobuf.ByteString getContractNumberBytes(); /** * required string ContractDate = 5; + * @return Whether the contractDate field is set. */ boolean hasContractDate(); /** * required string ContractDate = 5; + * @return The contractDate. */ java.lang.String getContractDate(); /** * required string ContractDate = 5; + * @return The bytes for contractDate. */ com.google.protobuf.ByteString getContractDateBytes(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 6 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 6 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus(); } @@ -3799,114 +4378,35 @@ public static final class SupplementaryAgreementMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata) SupplementaryAgreementMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SupplementaryAgreementMetadata.class.getName()); + } // Use SupplementaryAgreementMetadata.newBuilder() to construct. private SupplementaryAgreementMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private SupplementaryAgreementMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SupplementaryAgreementMetadata defaultInstance; - public static SupplementaryAgreementMetadata getDefaultInstance() { - return defaultInstance; - } - - public SupplementaryAgreementMetadata getDefaultInstanceForType() { - return defaultInstance; + private SupplementaryAgreementMetadata() { + documentStatus_ = 0; + total_ = ""; + contractType_ = ""; + contractNumber_ = ""; + contractDate_ = ""; + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SupplementaryAgreementMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - total_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - contractType_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - contractNumber_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - contractDate_ = bs; - break; - } - case 48: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - bitField0_ |= 0x00000020; - receiptStatus_ = value; - } - 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.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_SupplementaryAgreementMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_SupplementaryAgreementMetadata_fieldAccessorTable @@ -3914,48 +4414,41 @@ private SupplementaryAgreementMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.class, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SupplementaryAgreementMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SupplementaryAgreementMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } public static final int TOTAL_FIELD_NUMBER = 2; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** * optional string Total = 2; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Total = 2; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -3972,7 +4465,9 @@ public java.lang.String getTotal() { } /** * optional string Total = 2; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -3988,16 +4483,21 @@ public java.lang.String getTotal() { } public static final int CONTRACTTYPE_FIELD_NUMBER = 3; - private java.lang.Object contractType_; + @SuppressWarnings("serial") + private volatile java.lang.Object contractType_ = ""; /** * optional string ContractType = 3; + * @return Whether the contractType field is set. */ + @java.lang.Override public boolean hasContractType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string ContractType = 3; + * @return The contractType. */ + @java.lang.Override public java.lang.String getContractType() { java.lang.Object ref = contractType_; if (ref instanceof java.lang.String) { @@ -4014,7 +4514,9 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 3; + * @return The bytes for contractType. */ + @java.lang.Override public com.google.protobuf.ByteString getContractTypeBytes() { java.lang.Object ref = contractType_; @@ -4030,16 +4532,21 @@ public java.lang.String getContractType() { } public static final int CONTRACTNUMBER_FIELD_NUMBER = 4; - private java.lang.Object contractNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object contractNumber_ = ""; /** * required string ContractNumber = 4; + * @return Whether the contractNumber field is set. */ + @java.lang.Override public boolean hasContractNumber() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string ContractNumber = 4; + * @return The contractNumber. */ + @java.lang.Override public java.lang.String getContractNumber() { java.lang.Object ref = contractNumber_; if (ref instanceof java.lang.String) { @@ -4056,7 +4563,9 @@ public java.lang.String getContractNumber() { } /** * required string ContractNumber = 4; + * @return The bytes for contractNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getContractNumberBytes() { java.lang.Object ref = contractNumber_; @@ -4072,16 +4581,21 @@ public java.lang.String getContractNumber() { } public static final int CONTRACTDATE_FIELD_NUMBER = 5; - private java.lang.Object contractDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object contractDate_ = ""; /** * required string ContractDate = 5; + * @return Whether the contractDate field is set. */ + @java.lang.Override public boolean hasContractDate() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string ContractDate = 5; + * @return The contractDate. */ + @java.lang.Override public java.lang.String getContractDate() { java.lang.Object ref = contractDate_; if (ref instanceof java.lang.String) { @@ -4098,7 +4612,9 @@ public java.lang.String getContractDate() { } /** * required string ContractDate = 5; + * @return The bytes for contractDate. */ + @java.lang.Override public com.google.protobuf.ByteString getContractDateBytes() { java.lang.Object ref = contractDate_; @@ -4114,29 +4630,25 @@ public java.lang.String getContractDate() { } public static final int RECEIPTSTATUS_FIELD_NUMBER = 6; - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 6 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000020) == 0x00000020); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 6 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - total_ = ""; - contractType_ = ""; - contractNumber_ = ""; - contractDate_ = ""; - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4154,72 +4666,150 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getContractTypeBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, contractType_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getContractNumberBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, contractNumber_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getContractDateBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, contractDate_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeEnum(6, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, receiptStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getContractTypeBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, contractType_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getContractNumberBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, contractNumber_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getContractDateBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, contractDate_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, receiptStatus_.getNumber()); + .computeEnumSize(6, receiptStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata other = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (hasContractType() != other.hasContractType()) return false; + if (hasContractType()) { + if (!getContractType() + .equals(other.getContractType())) return false; + } + if (hasContractNumber() != other.hasContractNumber()) return false; + if (hasContractNumber()) { + if (!getContractNumber() + .equals(other.getContractNumber())) return false; + } + if (hasContractDate() != other.hasContractDate()) return false; + if (hasContractDate()) { + if (!getContractDate() + .equals(other.getContractDate())) return false; + } + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + if (hasContractType()) { + hash = (37 * hash) + CONTRACTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getContractType().hashCode(); + } + if (hasContractNumber()) { + hash = (37 * hash) + CONTRACTNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getContractNumber().hashCode(); + } + if (hasContractDate()) { + hash = (37 * hash) + CONTRACTDATE_FIELD_NUMBER; + hash = (53 * hash) + getContractDate().hashCode(); + } + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4243,42 +4833,57 @@ public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProt } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4298,6 +4903,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_SupplementaryAgreementMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_SupplementaryAgreementMetadata_fieldAccessorTable @@ -4307,52 +4913,39 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentStatus_ = 0; total_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); contractType_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); contractNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); contractDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - bitField0_ = (bitField0_ & ~0x00000020); + receiptStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_SupplementaryAgreementMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata build() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -4361,39 +4954,45 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Supp return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata buildPartial() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata result = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000002; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.contractType_ = contractType_; to_bitField0_ |= 0x00000004; } - result.contractType_ = contractType_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.contractNumber_ = contractNumber_; to_bitField0_ |= 0x00000008; } - result.contractNumber_ = contractNumber_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.contractDate_ = contractDate_; to_bitField0_ |= 0x00000010; } - result.contractDate_ = contractDate_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000020; } - result.receiptStatus_ = receiptStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata)other); @@ -4409,94 +5008,159 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralD setDocumentStatus(other.getDocumentStatus()); } if (other.hasTotal()) { - bitField0_ |= 0x00000002; total_ = other.total_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasContractType()) { - bitField0_ |= 0x00000004; contractType_ = other.contractType_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasContractNumber()) { - bitField0_ |= 0x00000008; contractNumber_ = other.contractNumber_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasContractDate()) { - bitField0_ |= 0x00000010; contractDate_ = other.contractDate_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReceiptStatus()) { setReceiptStatus(other.getReceiptStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasContractNumber()) { - return false; } if (!hasContractDate()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + total_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + contractType_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + contractNumber_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + contractDate_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000020; + } + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } @@ -4504,12 +5168,14 @@ public Builder clearDocumentStatus() { private java.lang.Object total_ = ""; /** * optional string Total = 2; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Total = 2; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -4527,6 +5193,7 @@ public java.lang.String getTotal() { } /** * optional string Total = 2; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -4543,36 +5210,37 @@ public java.lang.String getTotal() { } /** * optional string Total = 2; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string Total = 2; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000002); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string Total = 2; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4580,12 +5248,14 @@ public Builder setTotalBytes( private java.lang.Object contractType_ = ""; /** * optional string ContractType = 3; + * @return Whether the contractType field is set. */ public boolean hasContractType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string ContractType = 3; + * @return The contractType. */ public java.lang.String getContractType() { java.lang.Object ref = contractType_; @@ -4603,6 +5273,7 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 3; + * @return The bytes for contractType. */ public com.google.protobuf.ByteString getContractTypeBytes() { @@ -4619,36 +5290,37 @@ public java.lang.String getContractType() { } /** * optional string ContractType = 3; + * @param value The contractType to set. + * @return This builder for chaining. */ public Builder setContractType( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } contractType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string ContractType = 3; + * @return This builder for chaining. */ public Builder clearContractType() { - bitField0_ = (bitField0_ & ~0x00000004); contractType_ = getDefaultInstance().getContractType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string ContractType = 3; + * @param value The bytes for contractType to set. + * @return This builder for chaining. */ public Builder setContractTypeBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } contractType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4656,12 +5328,14 @@ public Builder setContractTypeBytes( private java.lang.Object contractNumber_ = ""; /** * required string ContractNumber = 4; + * @return Whether the contractNumber field is set. */ public boolean hasContractNumber() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string ContractNumber = 4; + * @return The contractNumber. */ public java.lang.String getContractNumber() { java.lang.Object ref = contractNumber_; @@ -4679,6 +5353,7 @@ public java.lang.String getContractNumber() { } /** * required string ContractNumber = 4; + * @return The bytes for contractNumber. */ public com.google.protobuf.ByteString getContractNumberBytes() { @@ -4695,36 +5370,37 @@ public java.lang.String getContractNumber() { } /** * required string ContractNumber = 4; + * @param value The contractNumber to set. + * @return This builder for chaining. */ public Builder setContractNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } contractNumber_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required string ContractNumber = 4; + * @return This builder for chaining. */ public Builder clearContractNumber() { - bitField0_ = (bitField0_ & ~0x00000008); contractNumber_ = getDefaultInstance().getContractNumber(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * required string ContractNumber = 4; + * @param value The bytes for contractNumber to set. + * @return This builder for chaining. */ public Builder setContractNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } contractNumber_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4732,12 +5408,14 @@ public Builder setContractNumberBytes( private java.lang.Object contractDate_ = ""; /** * required string ContractDate = 5; + * @return Whether the contractDate field is set. */ public boolean hasContractDate() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string ContractDate = 5; + * @return The contractDate. */ public java.lang.String getContractDate() { java.lang.Object ref = contractDate_; @@ -4755,6 +5433,7 @@ public java.lang.String getContractDate() { } /** * required string ContractDate = 5; + * @return The bytes for contractDate. */ public com.google.protobuf.ByteString getContractDateBytes() { @@ -4771,71 +5450,79 @@ public java.lang.String getContractDate() { } /** * required string ContractDate = 5; + * @param value The contractDate to set. + * @return This builder for chaining. */ public Builder setContractDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } contractDate_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * required string ContractDate = 5; + * @return This builder for chaining. */ public Builder clearContractDate() { - bitField0_ = (bitField0_ & ~0x00000010); contractDate_ = getDefaultInstance().getContractDate(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * required string ContractDate = 5; + * @param value The bytes for contractDate to set. + * @return This builder for chaining. */ public Builder setContractDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } contractDate_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 6 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000020) == 0x00000020); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 6 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 6 [default = UnknownReceiptStatus]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 6 [default = UnknownReceiptStatus]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000020); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + receiptStatus_ = 0; onChanged(); return this; } @@ -4843,127 +5530,112 @@ public Builder clearReceiptStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata) + private static final Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata DEFAULT_INSTANCE; static { - defaultInstance = new SupplementaryAgreementMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata(); + } + + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupplementaryAgreementMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata) } - public interface BilateralDocumentMetadataOrBuilder extends + @java.lang.Deprecated public interface BilateralDocumentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus(); } /** * Protobuf type {@code Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata} */ - public static final class BilateralDocumentMetadata extends + @java.lang.Deprecated public static final class BilateralDocumentMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata) BilateralDocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BilateralDocumentMetadata.class.getName()); + } // Use BilateralDocumentMetadata.newBuilder() to construct. private BilateralDocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private BilateralDocumentMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final BilateralDocumentMetadata defaultInstance; - public static BilateralDocumentMetadata getDefaultInstance() { - return defaultInstance; } - - public BilateralDocumentMetadata getDefaultInstanceForType() { - return defaultInstance; + private BilateralDocumentMetadata() { + documentStatus_ = 0; + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BilateralDocumentMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 16: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - receiptStatus_ = value; - } - 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.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BilateralDocumentMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BilateralDocumentMetadata_fieldAccessorTable @@ -4971,57 +5643,45 @@ private BilateralDocumentMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.class, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BilateralDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BilateralDocumentMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } public static final int RECEIPTSTATUS_FIELD_NUMBER = 2; - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5031,44 +5691,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, receiptStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, receiptStatus_.getNumber()); + .computeEnumSize(2, receiptStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata other = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5092,42 +5798,57 @@ public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProt } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5147,6 +5868,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BilateralDocumentMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BilateralDocumentMetadata_fieldAccessorTable @@ -5156,44 +5878,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = 0; + documentStatus_ = 0; + receiptStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BilateralDocumentMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata build() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -5202,23 +5915,29 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Bila return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata buildPartial() { Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata result = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000002; } - result.receiptStatus_ = receiptStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata)other); @@ -5237,98 +5956,152 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralD setReceiptStatus(other.getReceiptStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 16: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus result = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentStatus DocumentStatus = 1 [default = UnknownBilateralDocumentStatus]; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentStatus.UnknownBilateralDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000002); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + receiptStatus_ = 0; onChanged(); return this; } @@ -5336,42 +6109,82 @@ public Builder clearReceiptStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata) + private static final Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata DEFAULT_INSTANCE; static { - defaultInstance = new BilateralDocumentMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata(); + } + + public static Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BilateralDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_TrustConnectionRequestMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_TrustConnectionRequestMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BasicDocumentMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BasicDocumentMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_PriceListMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_PriceListMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_ContractMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_ContractMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_SupplementaryAgreementMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_SupplementaryAgreementMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BilateralDocumentMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BilateralDocumentMetadata_fieldAccessorTable; @@ -5379,7 +6192,7 @@ public Builder clearReceiptStatus() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -5392,7 +6205,7 @@ public Builder clearReceiptStatus() { "ralDocumentStatus:\036UnknownBilateralDocum" + "entStatus\"\311\002\n\025BasicDocumentMetadata\022}\n\016D" + "ocumentStatus\030\001 \001(\0162E.Diadoc.Api.Proto.D" + - "ocuments.BilateralDocument.BilateralDocu", + "ocuments.BilateralDocument.BilateralDocu" + "mentStatus:\036UnknownBilateralDocumentStat" + "us\022\r\n\005Total\030\002 \002(\t\022\013\n\003Vat\030\003 \001(\t\022\017\n\007Ground" + "s\030\004 \001(\t\022V\n\rReceiptStatus\030\005 \001(\0162).Diadoc." + @@ -5402,7 +6215,7 @@ public Builder clearReceiptStatus() { "ata\022}\n\016DocumentStatus\030\001 \001(\0162E.Diadoc.Api" + ".Proto.Documents.BilateralDocument.Bilat" + "eralDocumentStatus:\036UnknownBilateralDocu" + - "mentStatus\022\036\n\026PriceListEffectiveDate\030\002 \001", + "mentStatus\022\036\n\026PriceListEffectiveDate\030\002 \001" + "(\t\022\034\n\024ContractDocumentDate\030\003 \001(\t\022\036\n\026Cont" + "ractDocumentNumber\030\004 \001(\t\022V\n\rReceiptStatu" + "s\030\005 \001(\0162).Diadoc.Api.Proto.Documents.Rec" + @@ -5412,7 +6225,7 @@ public Builder clearReceiptStatus() { "ment.BilateralDocumentStatus:\036UnknownBil" + "ateralDocumentStatus\022\025\n\rContractPrice\030\002 " + "\001(\t\022\024\n\014ContractType\030\003 \001(\t\022V\n\rReceiptStat" + - "us\030\004 \001(\0162).Diadoc.Api.Proto.Documents.Re", + "us\030\004 \001(\0162).Diadoc.Api.Proto.Documents.Re" + "ceiptStatus:\024UnknownReceiptStatus\"\312\002\n\036Su" + "pplementaryAgreementMetadata\022}\n\016Document" + "Status\030\001 \001(\0162E.Diadoc.Api.Proto.Document" + @@ -5422,47 +6235,39 @@ public Builder clearReceiptStatus() { "ractNumber\030\004 \002(\t\022\024\n\014ContractDate\030\005 \002(\t\022V" + "\n\rReceiptStatus\030\006 \001(\0162).Diadoc.Api.Proto" + ".Documents.ReceiptStatus:\024UnknownReceipt" + - "Status\"\362\001\n\031BilateralDocumentMetadata\022}\n\016", + "Status\"\366\001\n\031BilateralDocumentMetadata\022}\n\016" + "DocumentStatus\030\001 \001(\0162E.Diadoc.Api.Proto." + "Documents.BilateralDocument.BilateralDoc" + "umentStatus:\036UnknownBilateralDocumentSta" + "tus\022V\n\rReceiptStatus\030\002 \001(\0162).Diadoc.Api." + "Proto.Documents.ReceiptStatus:\024UnknownRe" + - "ceiptStatus*\232\006\n\027BilateralDocumentStatus\022" + - "\"\n\036UnknownBilateralDocumentStatus\020\000\022(\n$O" + - "utboundWaitingForRecipientSignature\020\001\022\"\n" + - "\036OutboundWithRecipientSignature\020\002\022+\n\'Out" + - "boundWithRecipientPartiallySignature\020\023\022-", - "\n)OutboundRecipientSignatureRequestRejec" + - "ted\020\003\022%\n!OutboundWaitingForSenderSignatu" + - "re\020\n\022\"\n\036OutboundInvalidSenderSignature\020\013" + - "\022\'\n#InboundWaitingForRecipientSignature\020" + - "\004\022!\n\035InboundWithRecipientSignature\020\005\022*\n&" + - "InboundWithRecipientPartiallySignature\020\024" + - "\022,\n(InboundRecipientSignatureRequestReje" + - "cted\020\006\022$\n InboundInvalidRecipientSignatu" + - "re\020\014\022(\n$InternalWaitingForRecipientSigna" + - "ture\020\007\022\"\n\036InternalWithRecipientSignature", - "\020\010\022+\n\'InternalWithRecipientPartiallySign" + - "ature\020\025\022-\n)InternalRecipientSignatureReq" + - "uestRejected\020\t\022%\n!InternalWaitingForSend" + - "erSignature\020\r\022\"\n\036InternalInvalidSenderSi" + - "gnature\020\016\022%\n!InternalInvalidRecipientSig" + - "nature\020\017B\031B\027BilateralDocumentProtos" + "ceiptStatus:\002\030\001*\232\006\n\027BilateralDocumentSta" + + "tus\022\"\n\036UnknownBilateralDocumentStatus\020\000\022" + + "(\n$OutboundWaitingForRecipientSignature\020" + + "\001\022\"\n\036OutboundWithRecipientSignature\020\002\022+\n" + + "\'OutboundWithRecipientPartiallySignature" + + "\020\023\022-\n)OutboundRecipientSignatureRequestR" + + "ejected\020\003\022%\n!OutboundWaitingForSenderSig" + + "nature\020\n\022\"\n\036OutboundInvalidSenderSignatu" + + "re\020\013\022\'\n#InboundWaitingForRecipientSignat" + + "ure\020\004\022!\n\035InboundWithRecipientSignature\020\005" + + "\022*\n&InboundWithRecipientPartiallySignatu" + + "re\020\024\022,\n(InboundRecipientSignatureRequest" + + "Rejected\020\006\022$\n InboundInvalidRecipientSig" + + "nature\020\014\022(\n$InternalWaitingForRecipientS" + + "ignature\020\007\022\"\n\036InternalWithRecipientSigna" + + "ture\020\010\022+\n\'InternalWithRecipientPartially" + + "Signature\020\025\022-\n)InternalRecipientSignatur" + + "eRequestRejected\020\t\022%\n!InternalWaitingFor" + + "SenderSignature\020\r\022\"\n\036InternalInvalidSend" + + "erSignature\020\016\022%\n!InternalInvalidRecipien" + + "tSignature\020\017B\031B\027BilateralDocumentProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Documents.ReceiptStatusProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_TrustConnectionRequestMetadata_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_TrustConnectionRequestMetadata_fieldAccessorTable = new @@ -5499,6 +6304,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_BilateralDocument_BilateralDocumentMetadata_descriptor, new java.lang.String[] { "DocumentStatus", "ReceiptStatus", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Documents.ReceiptStatusProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Documents/DetectTitleResponseProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/DetectTitleResponseProtos.java index a4b45e6d..5203f5f8 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/DetectTitleResponseProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/DetectTitleResponseProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/DetectTitleResponse.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents; public final class DetectTitleResponseProtos { private DetectTitleResponseProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DetectTitleResponseProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DetectTitleResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.DetectTitleResponse) @@ -43,79 +60,30 @@ public static final class DetectTitleResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.DetectTitleResponse) DetectTitleResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DetectTitleResponse.class.getName()); + } // Use DetectTitleResponse.newBuilder() to construct. private DetectTitleResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DetectTitleResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DetectTitleResponse defaultInstance; - public static DetectTitleResponse getDefaultInstance() { - return defaultInstance; - } - - public DetectTitleResponse getDefaultInstanceForType() { - return defaultInstance; + private DetectTitleResponse() { + documentTitles_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DetectTitleResponse( - 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)) { - documentTitles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documentTitles_.add(input.readMessage(Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle.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)) { - documentTitles_ = java.util.Collections.unmodifiableList(documentTitles_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.internal_static_Diadoc_Api_Proto_Documents_DetectTitleResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.internal_static_Diadoc_Api_Proto_Documents_DetectTitleResponse_fieldAccessorTable @@ -123,32 +91,20 @@ private DetectTitleResponse( Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse.class, Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DetectTitleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectTitleResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int DOCUMENTTITLES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documentTitles_; /** * repeated .Diadoc.Api.Proto.Documents.DetectedDocumentTitle DocumentTitles = 1; */ + @java.lang.Override public java.util.List getDocumentTitlesList() { return documentTitles_; } /** * repeated .Diadoc.Api.Proto.Documents.DetectedDocumentTitle DocumentTitles = 1; */ + @java.lang.Override public java.util.List getDocumentTitlesOrBuilderList() { return documentTitles_; @@ -156,27 +112,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Documents.DetectedDocumentTitle DocumentTitles = 1; */ + @java.lang.Override public int getDocumentTitlesCount() { return documentTitles_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.DetectedDocumentTitle DocumentTitles = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle getDocumentTitles(int index) { return documentTitles_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.DetectedDocumentTitle DocumentTitles = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitleOrBuilder getDocumentTitlesOrBuilder( int index) { return documentTitles_.get(index); } - private void initFields() { - documentTitles_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,18 +149,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < documentTitles_.size(); i++) { output.writeMessage(1, documentTitles_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -212,17 +169,53 @@ public int getSerializedSize() { .computeMessageSize(1, documentTitles_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse other = (Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse) obj; + + if (!getDocumentTitlesList() + .equals(other.getDocumentTitlesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentTitlesCount() > 0) { + hash = (37 * hash) + DOCUMENTTITLES_FIELD_NUMBER; + hash = (53 * hash) + getDocumentTitlesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleRe } public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -301,6 +309,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.internal_static_Diadoc_Api_Proto_Documents_DetectTitleResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.internal_static_Diadoc_Api_Proto_Documents_DetectTitleResponse_fieldAccessorTable @@ -310,47 +319,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentTitlesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (documentTitlesBuilder_ == null) { documentTitles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + documentTitles_ = null; documentTitlesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.internal_static_Diadoc_Api_Proto_Documents_DetectTitleResponse_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse build() { Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse result = buildPartial(); if (!result.isInitialized()) { @@ -359,11 +361,18 @@ public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse buildPartial() { Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse result = new Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse result) { if (documentTitlesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { documentTitles_ = java.util.Collections.unmodifiableList(documentTitles_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,10 +380,13 @@ public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse } else { result.documentTitles_ = documentTitlesBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse) { return mergeFrom((Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse)other); @@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.De } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getDocumentTitlesCount(); i++) { if (!getDocumentTitles(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle m = + input.readMessage( + Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle.parser(), + extensionRegistry); + if (documentTitlesBuilder_ == null) { + ensureDocumentTitlesIsMutable(); + documentTitles_.add(m); + } else { + documentTitlesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -448,7 +488,7 @@ public Builder mergeFrom( private java.util.List documentTitles_ = java.util.Collections.emptyList(); private void ensureDocumentTitlesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { documentTitles_ = new java.util.ArrayList(documentTitles_); bitField0_ |= 0x00000001; } @@ -677,7 +717,7 @@ public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitl documentTitlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle, Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle.Builder, Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitleOrBuilder>( documentTitles_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documentTitles_ = null; @@ -688,12 +728,52 @@ public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitl // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.DetectTitleResponse) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DetectTitleResponse) + private static final Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse DEFAULT_INSTANCE; static { - defaultInstance = new DetectTitleResponse(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse(); + } + + public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectTitleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectTitleResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DetectTitleResponse) } public interface DetectedDocumentTitleOrBuilder extends @@ -702,52 +782,63 @@ public interface DetectedDocumentTitleOrBuilder extends /** * required string TypeNamedId = 1; + * @return Whether the typeNamedId field is set. */ boolean hasTypeNamedId(); /** * required string TypeNamedId = 1; + * @return The typeNamedId. */ java.lang.String getTypeNamedId(); /** * required string TypeNamedId = 1; + * @return The bytes for typeNamedId. */ com.google.protobuf.ByteString getTypeNamedIdBytes(); /** * required string Function = 2; + * @return Whether the function field is set. */ boolean hasFunction(); /** * required string Function = 2; + * @return The function. */ java.lang.String getFunction(); /** * required string Function = 2; + * @return The bytes for function. */ com.google.protobuf.ByteString getFunctionBytes(); /** * required string Version = 3; + * @return Whether the version field is set. */ boolean hasVersion(); /** * required string Version = 3; + * @return The version. */ java.lang.String getVersion(); /** * required string Version = 3; + * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * required int32 TitleIndex = 4; + * @return Whether the titleIndex field is set. */ boolean hasTitleIndex(); /** * required int32 TitleIndex = 4; + * @return The titleIndex. */ int getTitleIndex(); @@ -782,102 +873,33 @@ public static final class DetectedDocumentTitle extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.DetectedDocumentTitle) DetectedDocumentTitleOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DetectedDocumentTitle.class.getName()); + } // Use DetectedDocumentTitle.newBuilder() to construct. private DetectedDocumentTitle(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DetectedDocumentTitle(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DetectedDocumentTitle defaultInstance; - public static DetectedDocumentTitle getDefaultInstance() { - return defaultInstance; - } - - public DetectedDocumentTitle getDefaultInstanceForType() { - return defaultInstance; + private DetectedDocumentTitle() { + typeNamedId_ = ""; + function_ = ""; + version_ = ""; + metadata_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DetectedDocumentTitle( - 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; - typeNamedId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - function_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - version_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - titleIndex_ = input.readInt32(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - metadata_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - metadata_.add(input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.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_ & 0x00000010) == 0x00000010)) { - metadata_ = java.util.Collections.unmodifiableList(metadata_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.internal_static_Diadoc_Api_Proto_Documents_DetectedDocumentTitle_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.internal_static_Diadoc_Api_Proto_Documents_DetectedDocumentTitle_fieldAccessorTable @@ -885,33 +907,23 @@ private DetectedDocumentTitle( Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle.class, Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DetectedDocumentTitle parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedDocumentTitle(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TYPENAMEDID_FIELD_NUMBER = 1; - private java.lang.Object typeNamedId_; + @SuppressWarnings("serial") + private volatile java.lang.Object typeNamedId_ = ""; /** * required string TypeNamedId = 1; + * @return Whether the typeNamedId field is set. */ + @java.lang.Override public boolean hasTypeNamedId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string TypeNamedId = 1; + * @return The typeNamedId. */ + @java.lang.Override public java.lang.String getTypeNamedId() { java.lang.Object ref = typeNamedId_; if (ref instanceof java.lang.String) { @@ -928,7 +940,9 @@ public java.lang.String getTypeNamedId() { } /** * required string TypeNamedId = 1; + * @return The bytes for typeNamedId. */ + @java.lang.Override public com.google.protobuf.ByteString getTypeNamedIdBytes() { java.lang.Object ref = typeNamedId_; @@ -944,16 +958,21 @@ public java.lang.String getTypeNamedId() { } public static final int FUNCTION_FIELD_NUMBER = 2; - private java.lang.Object function_; + @SuppressWarnings("serial") + private volatile java.lang.Object function_ = ""; /** * required string Function = 2; + * @return Whether the function field is set. */ + @java.lang.Override public boolean hasFunction() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Function = 2; + * @return The function. */ + @java.lang.Override public java.lang.String getFunction() { java.lang.Object ref = function_; if (ref instanceof java.lang.String) { @@ -970,7 +989,9 @@ public java.lang.String getFunction() { } /** * required string Function = 2; + * @return The bytes for function. */ + @java.lang.Override public com.google.protobuf.ByteString getFunctionBytes() { java.lang.Object ref = function_; @@ -986,16 +1007,21 @@ public java.lang.String getFunction() { } public static final int VERSION_FIELD_NUMBER = 3; - private java.lang.Object version_; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * required string Version = 3; + * @return Whether the version field is set. */ + @java.lang.Override public boolean hasVersion() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Version = 3; + * @return The version. */ + @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { @@ -1012,7 +1038,9 @@ public java.lang.String getVersion() { } /** * required string Version = 3; + * @return The bytes for version. */ + @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -1028,31 +1056,38 @@ public java.lang.String getVersion() { } public static final int TITLEINDEX_FIELD_NUMBER = 4; - private int titleIndex_; + private int titleIndex_ = 0; /** * required int32 TitleIndex = 4; + * @return Whether the titleIndex field is set. */ + @java.lang.Override public boolean hasTitleIndex() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required int32 TitleIndex = 4; + * @return The titleIndex. */ + @java.lang.Override public int getTitleIndex() { return titleIndex_; } public static final int METADATA_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List metadata_; /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 5; */ + @java.lang.Override public java.util.List getMetadataList() { return metadata_; } /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 5; */ + @java.lang.Override public java.util.List getMetadataOrBuilderList() { return metadata_; @@ -1060,31 +1095,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 5; */ + @java.lang.Override public int getMetadataCount() { return metadata_.size(); } /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem getMetadata(int index) { return metadata_.get(index); } /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder getMetadataOrBuilder( int index) { return metadata_.get(index); } - private void initFields() { - typeNamedId_ = ""; - function_ = ""; - version_ = ""; - titleIndex_ = 0; - metadata_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1116,19 +1148,19 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTypeNamedIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, typeNamedId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getFunctionBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, function_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVersionBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, version_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, titleIndex_); } for (int i = 0; i < metadata_.size(); i++) { @@ -1137,25 +1169,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTypeNamedIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, typeNamedId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getFunctionBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, function_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVersionBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, version_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, titleIndex_); } @@ -1164,17 +1193,89 @@ public int getSerializedSize() { .computeMessageSize(5, metadata_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle other = (Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle) obj; + + if (hasTypeNamedId() != other.hasTypeNamedId()) return false; + if (hasTypeNamedId()) { + if (!getTypeNamedId() + .equals(other.getTypeNamedId())) return false; + } + if (hasFunction() != other.hasFunction()) return false; + if (hasFunction()) { + if (!getFunction() + .equals(other.getFunction())) return false; + } + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion() + .equals(other.getVersion())) return false; + } + if (hasTitleIndex() != other.hasTitleIndex()) return false; + if (hasTitleIndex()) { + if (getTitleIndex() + != other.getTitleIndex()) return false; + } + if (!getMetadataList() + .equals(other.getMetadataList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTypeNamedId()) { + hash = (37 * hash) + TYPENAMEDID_FIELD_NUMBER; + hash = (53 * hash) + getTypeNamedId().hashCode(); + } + if (hasFunction()) { + hash = (37 * hash) + FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getFunction().hashCode(); + } + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + if (hasTitleIndex()) { + hash = (37 * hash) + TITLEINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTitleIndex(); + } + if (getMetadataCount() > 0) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadataList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1198,42 +1299,57 @@ public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocum } public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1253,6 +1369,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.internal_static_Diadoc_Api_Proto_Documents_DetectedDocumentTitle_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.internal_static_Diadoc_Api_Proto_Documents_DetectedDocumentTitle_fieldAccessorTable @@ -1262,55 +1379,44 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; typeNamedId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); function_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); version_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); titleIndex_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); if (metadataBuilder_ == null) { metadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + metadata_ = null; metadataBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.internal_static_Diadoc_Api_Proto_Documents_DetectedDocumentTitle_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle build() { Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle result = buildPartial(); if (!result.isInitialized()) { @@ -1319,40 +1425,50 @@ public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitl return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle buildPartial() { Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle result = new Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle result) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + metadata_ = java.util.Collections.unmodifiableList(metadata_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.typeNamedId_ = typeNamedId_; to_bitField0_ |= 0x00000001; } - result.typeNamedId_ = typeNamedId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.function_ = function_; to_bitField0_ |= 0x00000002; } - result.function_ = function_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.version_ = version_; to_bitField0_ |= 0x00000004; } - result.version_ = version_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.titleIndex_ = titleIndex_; to_bitField0_ |= 0x00000008; } - result.titleIndex_ = titleIndex_; - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - metadata_ = java.util.Collections.unmodifiableList(metadata_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle) { return mergeFrom((Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle)other); @@ -1365,18 +1481,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle other) { if (other == Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle.getDefaultInstance()) return this; if (other.hasTypeNamedId()) { - bitField0_ |= 0x00000001; typeNamedId_ = other.typeNamedId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFunction()) { - bitField0_ |= 0x00000002; function_ = other.function_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasVersion()) { - bitField0_ |= 0x00000004; version_ = other.version_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasTitleIndex()) { @@ -1409,50 +1525,94 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.De } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTypeNamedId()) { - return false; } if (!hasFunction()) { - return false; } if (!hasVersion()) { - return false; } if (!hasTitleIndex()) { - return false; } for (int i = 0; i < getMetadataCount(); i++) { if (!getMetadata(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + typeNamedId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + function_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + version_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + titleIndex_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem m = + input.readMessage( + Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.parser(), + extensionRegistry); + if (metadataBuilder_ == null) { + ensureMetadataIsMutable(); + metadata_.add(m); + } else { + metadataBuilder_.addMessage(m); + } + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1460,12 +1620,14 @@ public Builder mergeFrom( private java.lang.Object typeNamedId_ = ""; /** * required string TypeNamedId = 1; + * @return Whether the typeNamedId field is set. */ public boolean hasTypeNamedId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string TypeNamedId = 1; + * @return The typeNamedId. */ public java.lang.String getTypeNamedId() { java.lang.Object ref = typeNamedId_; @@ -1483,6 +1645,7 @@ public java.lang.String getTypeNamedId() { } /** * required string TypeNamedId = 1; + * @return The bytes for typeNamedId. */ public com.google.protobuf.ByteString getTypeNamedIdBytes() { @@ -1499,36 +1662,37 @@ public java.lang.String getTypeNamedId() { } /** * required string TypeNamedId = 1; + * @param value The typeNamedId to set. + * @return This builder for chaining. */ public Builder setTypeNamedId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } typeNamedId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string TypeNamedId = 1; + * @return This builder for chaining. */ public Builder clearTypeNamedId() { - bitField0_ = (bitField0_ & ~0x00000001); typeNamedId_ = getDefaultInstance().getTypeNamedId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string TypeNamedId = 1; + * @param value The bytes for typeNamedId to set. + * @return This builder for chaining. */ public Builder setTypeNamedIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } typeNamedId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1536,12 +1700,14 @@ public Builder setTypeNamedIdBytes( private java.lang.Object function_ = ""; /** * required string Function = 2; + * @return Whether the function field is set. */ public boolean hasFunction() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Function = 2; + * @return The function. */ public java.lang.String getFunction() { java.lang.Object ref = function_; @@ -1559,6 +1725,7 @@ public java.lang.String getFunction() { } /** * required string Function = 2; + * @return The bytes for function. */ public com.google.protobuf.ByteString getFunctionBytes() { @@ -1575,36 +1742,37 @@ public java.lang.String getFunction() { } /** * required string Function = 2; + * @param value The function to set. + * @return This builder for chaining. */ public Builder setFunction( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } function_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string Function = 2; + * @return This builder for chaining. */ public Builder clearFunction() { - bitField0_ = (bitField0_ & ~0x00000002); function_ = getDefaultInstance().getFunction(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string Function = 2; + * @param value The bytes for function to set. + * @return This builder for chaining. */ public Builder setFunctionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } function_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1612,12 +1780,14 @@ public Builder setFunctionBytes( private java.lang.Object version_ = ""; /** * required string Version = 3; + * @return Whether the version field is set. */ public boolean hasVersion() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Version = 3; + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -1635,6 +1805,7 @@ public java.lang.String getVersion() { } /** * required string Version = 3; + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { @@ -1651,36 +1822,37 @@ public java.lang.String getVersion() { } /** * required string Version = 3; + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } version_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string Version = 3; + * @return This builder for chaining. */ public Builder clearVersion() { - bitField0_ = (bitField0_ & ~0x00000004); version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string Version = 3; + * @param value The bytes for version to set. + * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } version_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1688,27 +1860,35 @@ public Builder setVersionBytes( private int titleIndex_ ; /** * required int32 TitleIndex = 4; + * @return Whether the titleIndex field is set. */ + @java.lang.Override public boolean hasTitleIndex() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required int32 TitleIndex = 4; + * @return The titleIndex. */ + @java.lang.Override public int getTitleIndex() { return titleIndex_; } /** * required int32 TitleIndex = 4; + * @param value The titleIndex to set. + * @return This builder for chaining. */ public Builder setTitleIndex(int value) { - bitField0_ |= 0x00000008; + titleIndex_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required int32 TitleIndex = 4; + * @return This builder for chaining. */ public Builder clearTitleIndex() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1720,7 +1900,7 @@ public Builder clearTitleIndex() { private java.util.List metadata_ = java.util.Collections.emptyList(); private void ensureMetadataIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { + if (!((bitField0_ & 0x00000010) != 0)) { metadata_ = new java.util.ArrayList(metadata_); bitField0_ |= 0x00000010; } @@ -1949,7 +2129,7 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder metadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem, Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder, Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder>( metadata_, - ((bitField0_ & 0x00000010) == 0x00000010), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); metadata_ = null; @@ -1960,22 +2140,62 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.DetectedDocumentTitle) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DetectedDocumentTitle) + private static final Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle DEFAULT_INSTANCE; static { - defaultInstance = new DetectedDocumentTitle(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle(); + } + + public static Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedDocumentTitle parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DetectTitleResponseProtos.DetectedDocumentTitle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DetectedDocumentTitle) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_DetectTitleResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_DetectTitleResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_DetectedDocumentTitle_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_DetectedDocumentTitle_fieldAccessorTable; @@ -1983,7 +2203,7 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1998,19 +2218,11 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder "%.Diadoc.Api.Proto.Events.MetadataItemB\033" + "B\031DetectTitleResponseProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_DetectTitleResponse_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_DetectTitleResponse_fieldAccessorTable = new @@ -2023,6 +2235,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_DetectedDocumentTitle_descriptor, new java.lang.String[] { "TypeNamedId", "Function", "Version", "TitleIndex", "Metadata", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Documents/DocumentListProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/DocumentListProtos.java index b8fc22e9..00a4f4e4 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/DocumentListProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/DocumentListProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/DocumentList.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents; public final class DocumentListProtos { private DocumentListProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentListProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DocumentListOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.DocumentList) @@ -14,10 +31,12 @@ public interface DocumentListOrBuilder extends /** * required int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ boolean hasTotalCount(); /** * required int32 TotalCount = 1; + * @return The totalCount. */ int getTotalCount(); @@ -47,10 +66,12 @@ Diadoc.Api.Proto.Documents.DocumentProtos.DocumentOrBuilder getDocumentsOrBuilde /** * optional bool HasMoreResults = 3; + * @return Whether the hasMoreResults field is set. */ boolean hasHasMoreResults(); /** * optional bool HasMoreResults = 3; + * @return The hasMoreResults. */ boolean getHasMoreResults(); } @@ -61,89 +82,30 @@ public static final class DocumentList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.DocumentList) DocumentListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentList.class.getName()); + } // Use DocumentList.newBuilder() to construct. private DocumentList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DocumentList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentList defaultInstance; - public static DocumentList getDefaultInstance() { - return defaultInstance; - } - - public DocumentList getDefaultInstanceForType() { - return defaultInstance; + private DocumentList() { + documents_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - totalCount_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - documents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - documents_.add(input.readMessage(Diadoc.Api.Proto.Documents.DocumentProtos.Document.PARSER, extensionRegistry)); - break; - } - case 24: { - bitField0_ |= 0x00000002; - hasMoreResults_ = input.readBool(); - 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_ & 0x00000002) == 0x00000002)) { - documents_ = java.util.Collections.unmodifiableList(documents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.DocumentListProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentListProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentList_fieldAccessorTable @@ -151,48 +113,40 @@ private DocumentList( Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList.class, Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TOTALCOUNT_FIELD_NUMBER = 1; - private int totalCount_; + private int totalCount_ = 0; /** * required int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 TotalCount = 1; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } public static final int DOCUMENTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List documents_; /** * repeated .Diadoc.Api.Proto.Documents.Document Documents = 2; */ + @java.lang.Override public java.util.List getDocumentsList() { return documents_; } /** * repeated .Diadoc.Api.Proto.Documents.Document Documents = 2; */ + @java.lang.Override public java.util.List getDocumentsOrBuilderList() { return documents_; @@ -200,44 +154,47 @@ public java.util.List getDoc /** * repeated .Diadoc.Api.Proto.Documents.Document Documents = 2; */ + @java.lang.Override public int getDocumentsCount() { return documents_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.Document Documents = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.Document getDocuments(int index) { return documents_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.Document Documents = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.DocumentOrBuilder getDocumentsOrBuilder( int index) { return documents_.get(index); } public static final int HASMORERESULTS_FIELD_NUMBER = 3; - private boolean hasMoreResults_; + private boolean hasMoreResults_ = false; /** * optional bool HasMoreResults = 3; + * @return Whether the hasMoreResults field is set. */ + @java.lang.Override public boolean hasHasMoreResults() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bool HasMoreResults = 3; + * @return The hasMoreResults. */ + @java.lang.Override public boolean getHasMoreResults() { return hasMoreResults_; } - private void initFields() { - totalCount_ = 0; - documents_ = java.util.Collections.emptyList(); - hasMoreResults_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -257,28 +214,28 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, totalCount_); } for (int i = 0; i < documents_.size(); i++) { output.writeMessage(2, documents_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(3, hasMoreResults_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, totalCount_); } @@ -286,22 +243,77 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, documents_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, hasMoreResults_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList other = (Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList) obj; + + if (hasTotalCount() != other.hasTotalCount()) return false; + if (hasTotalCount()) { + if (getTotalCount() + != other.getTotalCount()) return false; + } + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (hasHasMoreResults() != other.hasHasMoreResults()) return false; + if (hasHasMoreResults()) { + if (getHasMoreResults() + != other.getHasMoreResults()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalCount()) { + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + } + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + if (hasHasMoreResults()) { + hash = (37 * hash) + HASMORERESULTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasMoreResults()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -325,42 +337,57 @@ public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parseFr } public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -380,6 +407,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentListProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentListProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentList_fieldAccessorTable @@ -389,51 +417,42 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; totalCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); if (documentsBuilder_ == null) { documents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + documents_ = null; documentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); hasMoreResults_ = false; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentListProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList build() { Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList result = buildPartial(); if (!result.isInitialized()) { @@ -442,16 +461,18 @@ public Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList buildPartial() { Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList result = new Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.totalCount_ = totalCount_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList result) { if (documentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { documents_ = java.util.Collections.unmodifiableList(documents_); bitField0_ = (bitField0_ & ~0x00000002); } @@ -459,15 +480,23 @@ public Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList buildPartial() } else { result.documents_ = documentsBuilder_.build(); } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalCount_ = totalCount_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hasMoreResults_ = hasMoreResults_; to_bitField0_ |= 0x00000002; } - result.hasMoreResults_ = hasMoreResults_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList)other); @@ -512,38 +541,75 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentL setHasMoreResults(other.getHasMoreResults()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotalCount()) { - return false; } for (int i = 0; i < getDocumentsCount(); i++) { if (!getDocuments(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + Diadoc.Api.Proto.Documents.DocumentProtos.Document m = + input.readMessage( + Diadoc.Api.Proto.Documents.DocumentProtos.Document.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + hasMoreResults_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -551,27 +617,35 @@ public Builder mergeFrom( private int totalCount_ ; /** * required int32 TotalCount = 1; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 TotalCount = 1; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } /** * required int32 TotalCount = 1; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - bitField0_ |= 0x00000001; + totalCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int32 TotalCount = 1; + * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000001); @@ -583,7 +657,7 @@ public Builder clearTotalCount() { private java.util.List documents_ = java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000002; } @@ -812,7 +886,7 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Document.Builder addDocumentsBu documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.DocumentProtos.Document, Diadoc.Api.Proto.Documents.DocumentProtos.Document.Builder, Diadoc.Api.Proto.Documents.DocumentProtos.DocumentOrBuilder>( documents_, - ((bitField0_ & 0x00000002) == 0x00000002), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); documents_ = null; @@ -823,27 +897,35 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Document.Builder addDocumentsBu private boolean hasMoreResults_ ; /** * optional bool HasMoreResults = 3; + * @return Whether the hasMoreResults field is set. */ + @java.lang.Override public boolean hasHasMoreResults() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool HasMoreResults = 3; + * @return The hasMoreResults. */ + @java.lang.Override public boolean getHasMoreResults() { return hasMoreResults_; } /** * optional bool HasMoreResults = 3; + * @param value The hasMoreResults to set. + * @return This builder for chaining. */ public Builder setHasMoreResults(boolean value) { - bitField0_ |= 0x00000004; + hasMoreResults_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional bool HasMoreResults = 3; + * @return This builder for chaining. */ public Builder clearHasMoreResults() { bitField0_ = (bitField0_ & ~0x00000004); @@ -855,17 +937,57 @@ public Builder clearHasMoreResults() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.DocumentList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DocumentList) + private static final Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList DEFAULT_INSTANCE; static { - defaultInstance = new DocumentList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList(); + } + + public static Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentListProtos.DocumentList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DocumentList) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_DocumentList_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_DocumentList_fieldAccessorTable; @@ -873,7 +995,7 @@ public Builder clearHasMoreResults() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -884,25 +1006,18 @@ public Builder clearHasMoreResults() { "ocuments.Document\022\026\n\016HasMoreResults\030\003 \001(" + "\010B\024B\022DocumentListProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Documents.DocumentProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_DocumentList_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_DocumentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_DocumentList_descriptor, new java.lang.String[] { "TotalCount", "Documents", "HasMoreResults", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Documents.DocumentProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtocolProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtocolProtos.java index 86d49e7f..93bf7fba 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtocolProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtocolProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/DocumentProtocol.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents; public final class DocumentProtocolProtos { private DocumentProtocolProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentProtocolProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DocumentProtocolOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.DocumentProtocol) @@ -14,19 +31,23 @@ public interface DocumentProtocolOrBuilder extends /** * required bytes PrintForm = 1; + * @return Whether the printForm field is set. */ boolean hasPrintForm(); /** * required bytes PrintForm = 1; + * @return The printForm. */ com.google.protobuf.ByteString getPrintForm(); /** * required bytes Signature = 2; + * @return Whether the signature field is set. */ boolean hasSignature(); /** * required bytes Signature = 2; + * @return The signature. */ com.google.protobuf.ByteString getSignature(); } @@ -37,78 +58,31 @@ public static final class DocumentProtocol extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.DocumentProtocol) DocumentProtocolOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentProtocol.class.getName()); + } // Use DocumentProtocol.newBuilder() to construct. private DocumentProtocol(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DocumentProtocol(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentProtocol defaultInstance; - public static DocumentProtocol getDefaultInstance() { - return defaultInstance; - } - - public DocumentProtocol getDefaultInstanceForType() { - return defaultInstance; + private DocumentProtocol() { + printForm_ = com.google.protobuf.ByteString.EMPTY; + signature_ = com.google.protobuf.ByteString.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentProtocol( - 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: { - bitField0_ |= 0x00000001; - printForm_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - signature_ = input.readBytes(); - 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.Documents.DocumentProtocolProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentProtocol_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtocolProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentProtocol_fieldAccessorTable @@ -116,57 +90,47 @@ private DocumentProtocol( Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol.class, Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentProtocol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentProtocol(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PRINTFORM_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString printForm_; + private com.google.protobuf.ByteString printForm_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes PrintForm = 1; + * @return Whether the printForm field is set. */ + @java.lang.Override public boolean hasPrintForm() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bytes PrintForm = 1; + * @return The printForm. */ + @java.lang.Override public com.google.protobuf.ByteString getPrintForm() { return printForm_; } public static final int SIGNATURE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString signature_; + private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes Signature = 2; + * @return Whether the signature field is set. */ + @java.lang.Override public boolean hasSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bytes Signature = 2; + * @return The signature. */ + @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } - private void initFields() { - printForm_ = com.google.protobuf.ByteString.EMPTY; - signature_ = com.google.protobuf.ByteString.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -184,44 +148,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(1, printForm_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, signature_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, printForm_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol other = (Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol) obj; + + if (hasPrintForm() != other.hasPrintForm()) return false; + if (hasPrintForm()) { + if (!getPrintForm() + .equals(other.getPrintForm())) return false; + } + if (hasSignature() != other.hasSignature()) return false; + if (hasSignature()) { + if (!getSignature() + .equals(other.getSignature())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrintForm()) { + hash = (37 * hash) + PRINTFORM_FIELD_NUMBER; + hash = (53 * hash) + getPrintForm().hashCode(); + } + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -245,42 +257,57 @@ public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol } public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -300,6 +327,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentProtocolProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentProtocol_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtocolProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentProtocol_fieldAccessorTable @@ -309,44 +337,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; printForm_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); signature_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentProtocolProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentProtocol_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol build() { Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol result = buildPartial(); if (!result.isInitialized()) { @@ -355,23 +374,29 @@ public Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol buildPartial() { Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol result = new Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.printForm_ = printForm_; to_bitField0_ |= 0x00000001; } - result.printForm_ = printForm_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.signature_ = signature_; to_bitField0_ |= 0x00000002; } - result.signature_ = signature_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol)other); @@ -390,36 +415,60 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtocolProtos.Docum setSignature(other.getSignature()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasPrintForm()) { - return false; } if (!hasSignature()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + printForm_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + signature_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -427,30 +476,35 @@ public Builder mergeFrom( private com.google.protobuf.ByteString printForm_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes PrintForm = 1; + * @return Whether the printForm field is set. */ + @java.lang.Override public boolean hasPrintForm() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bytes PrintForm = 1; + * @return The printForm. */ + @java.lang.Override public com.google.protobuf.ByteString getPrintForm() { return printForm_; } /** * required bytes PrintForm = 1; + * @param value The printForm to set. + * @return This builder for chaining. */ public Builder setPrintForm(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } printForm_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bytes PrintForm = 1; + * @return This builder for chaining. */ public Builder clearPrintForm() { bitField0_ = (bitField0_ & ~0x00000001); @@ -462,30 +516,35 @@ public Builder clearPrintForm() { private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes Signature = 2; + * @return Whether the signature field is set. */ + @java.lang.Override public boolean hasSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bytes Signature = 2; + * @return The signature. */ + @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** * required bytes Signature = 2; + * @param value The signature to set. + * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } signature_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bytes Signature = 2; + * @return This builder for chaining. */ public Builder clearSignature() { bitField0_ = (bitField0_ & ~0x00000002); @@ -497,17 +556,57 @@ public Builder clearSignature() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.DocumentProtocol) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DocumentProtocol) + private static final Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol DEFAULT_INSTANCE; static { - defaultInstance = new DocumentProtocol(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol(); + } + + public static Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentProtocol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentProtocolProtos.DocumentProtocol getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DocumentProtocol) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_DocumentProtocol_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_DocumentProtocol_fieldAccessorTable; @@ -515,7 +614,7 @@ public Builder clearSignature() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -524,24 +623,17 @@ public Builder clearSignature() { "ol\022\021\n\tPrintForm\030\001 \002(\014\022\021\n\tSignature\030\002 \002(\014" + "B\030B\026DocumentProtocolProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_DocumentProtocol_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_DocumentProtocol_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_DocumentProtocol_descriptor, new java.lang.String[] { "PrintForm", "Signature", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java index 399b9d92..a35478c4 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/Document.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents; public final class DocumentProtos { private DocumentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Documents.ResolutionStatusType} @@ -14,49 +31,58 @@ public static void registerAllExtensions( public enum ResolutionStatusType implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownResolutionStatus = -1; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownResolutionStatus = -1; */ - UnknownResolutionStatus(0, -1), + UnknownResolutionStatus(-1), /** * None = 0; */ - None(1, 0), + None(0), /** * Approved = 1; */ - Approved(2, 1), + Approved(1), /** * Disapproved = 2; */ - Disapproved(3, 2), + Disapproved(2), /** * ApprovementRequested = 3; */ - ApprovementRequested(4, 3), + ApprovementRequested(3), /** * SignatureRequested = 4; */ - SignatureRequested(5, 4), + SignatureRequested(4), /** * SignatureDenied = 5; */ - SignatureDenied(6, 5), + SignatureDenied(5), /** * ActionsRequested = 6; */ - ActionsRequested(7, 6), + ActionsRequested(6), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ResolutionStatusType.class.getName()); + } /** - * UnknownResolutionStatus = -1; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownResolutionStatus = -1; */ public static final int UnknownResolutionStatus_VALUE = -1; /** @@ -89,9 +115,25 @@ public enum ResolutionStatusType public static final int ActionsRequested_VALUE = 6; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ResolutionStatusType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ResolutionStatusType forNumber(int value) { switch (value) { case -1: return UnknownResolutionStatus; case 0: return None; @@ -109,17 +151,17 @@ public static ResolutionStatusType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + ResolutionStatusType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ResolutionStatusType findValueByNumber(int number) { - return ResolutionStatusType.valueOf(number); + return ResolutionStatusType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -141,11 +183,9 @@ public static ResolutionStatusType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private ResolutionStatusType(int index, int value) { - this.index = index; + private ResolutionStatusType(int value) { this.value = value; } @@ -158,41 +198,50 @@ private ResolutionStatusType(int index, int value) { public enum RevocationStatus implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownRevocationStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownRevocationStatus = 0; */ - UnknownRevocationStatus(0, 0), + UnknownRevocationStatus(0), /** * RevocationStatusNone = 1; */ - RevocationStatusNone(1, 1), + RevocationStatusNone(1), /** * RevocationIsRequestedByMe = 2; */ - RevocationIsRequestedByMe(2, 2), + RevocationIsRequestedByMe(2), /** * RequestsMyRevocation = 3; */ - RequestsMyRevocation(3, 3), + RequestsMyRevocation(3), /** * RevocationAccepted = 4; */ - RevocationAccepted(4, 4), + RevocationAccepted(4), /** * RevocationRejected = 5; */ - RevocationRejected(5, 5), + RevocationRejected(5), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RevocationStatus.class.getName()); + } /** - * UnknownRevocationStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownRevocationStatus = 0; */ public static final int UnknownRevocationStatus_VALUE = 0; /** @@ -217,9 +266,25 @@ public enum RevocationStatus public static final int RevocationRejected_VALUE = 5; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static RevocationStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RevocationStatus forNumber(int value) { switch (value) { case 0: return UnknownRevocationStatus; case 1: return RevocationStatusNone; @@ -235,17 +300,17 @@ public static RevocationStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + RevocationStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RevocationStatus findValueByNumber(int number) { - return RevocationStatus.valueOf(number); + return RevocationStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -267,11 +332,9 @@ public static RevocationStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private RevocationStatus(int index, int value) { - this.index = index; + private RevocationStatus(int value) { this.value = value; } @@ -284,33 +347,42 @@ private RevocationStatus(int index, int value) { public enum RoamingNotificationStatus implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownRoamingNotificationStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownRoamingNotificationStatus = 0; */ - UnknownRoamingNotificationStatus(0, 0), + UnknownRoamingNotificationStatus(0), /** * RoamingNotificationStatusNone = 1; */ - RoamingNotificationStatusNone(1, 1), + RoamingNotificationStatusNone(1), /** * RoamingNotificationStatusSuccess = 2; */ - RoamingNotificationStatusSuccess(2, 2), + RoamingNotificationStatusSuccess(2), /** * RoamingNotificationStatusError = 3; */ - RoamingNotificationStatusError(3, 3), + RoamingNotificationStatusError(3), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RoamingNotificationStatus.class.getName()); + } /** - * UnknownRoamingNotificationStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownRoamingNotificationStatus = 0; */ public static final int UnknownRoamingNotificationStatus_VALUE = 0; /** @@ -327,9 +399,25 @@ public enum RoamingNotificationStatus public static final int RoamingNotificationStatusError_VALUE = 3; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static RoamingNotificationStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RoamingNotificationStatus forNumber(int value) { switch (value) { case 0: return UnknownRoamingNotificationStatus; case 1: return RoamingNotificationStatusNone; @@ -343,17 +431,17 @@ public static RoamingNotificationStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + RoamingNotificationStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RoamingNotificationStatus findValueByNumber(int number) { - return RoamingNotificationStatus.valueOf(number); + return RoamingNotificationStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -375,11 +463,9 @@ public static RoamingNotificationStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private RoamingNotificationStatus(int index, int value) { - this.index = index; + private RoamingNotificationStatus(int value) { this.value = value; } @@ -392,37 +478,46 @@ private RoamingNotificationStatus(int index, int value) { public enum SenderSignatureStatus implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownSenderSignatureStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownSenderSignatureStatus = 0; */ - UnknownSenderSignatureStatus(0, 0), + UnknownSenderSignatureStatus(0), /** * WaitingForSenderSignature = 1; */ - WaitingForSenderSignature(1, 1), + WaitingForSenderSignature(1), /** * SenderSignatureUnchecked = 2; */ - SenderSignatureUnchecked(2, 2), + SenderSignatureUnchecked(2), /** * SenderSignatureCheckedAndValid = 3; */ - SenderSignatureCheckedAndValid(3, 3), + SenderSignatureCheckedAndValid(3), /** * SenderSignatureCheckedAndInvalid = 4; */ - SenderSignatureCheckedAndInvalid(4, 4), + SenderSignatureCheckedAndInvalid(4), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SenderSignatureStatus.class.getName()); + } /** - * UnknownSenderSignatureStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownSenderSignatureStatus = 0; */ public static final int UnknownSenderSignatureStatus_VALUE = 0; /** @@ -443,9 +538,25 @@ public enum SenderSignatureStatus public static final int SenderSignatureCheckedAndInvalid_VALUE = 4; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static SenderSignatureStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SenderSignatureStatus forNumber(int value) { switch (value) { case 0: return UnknownSenderSignatureStatus; case 1: return WaitingForSenderSignature; @@ -460,17 +571,17 @@ public static SenderSignatureStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + SenderSignatureStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SenderSignatureStatus findValueByNumber(int number) { - return SenderSignatureStatus.valueOf(number); + return SenderSignatureStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -492,11 +603,9 @@ public static SenderSignatureStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private SenderSignatureStatus(int index, int value) { - this.index = index; + private SenderSignatureStatus(int value) { this.value = value; } @@ -511,29 +620,38 @@ public enum ProxySignatureStatus /** * UnknownProxySignatureStatus = 0; */ - UnknownProxySignatureStatus(0, 0), + UnknownProxySignatureStatus(0), /** * ProxySignatureStatusNone = 1; */ - ProxySignatureStatusNone(1, 1), + ProxySignatureStatusNone(1), /** * WaitingForProxySignature = 2; */ - WaitingForProxySignature(2, 2), + WaitingForProxySignature(2), /** * WithProxySignature = 3; */ - WithProxySignature(3, 3), + WithProxySignature(3), /** * ProxySignatureRejected = 4; */ - ProxySignatureRejected(4, 4), + ProxySignatureRejected(4), /** * InvalidProxySignature = 5; */ - InvalidProxySignature(5, 5), + InvalidProxySignature(5), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ProxySignatureStatus.class.getName()); + } /** * UnknownProxySignatureStatus = 0; */ @@ -560,9 +678,25 @@ public enum ProxySignatureStatus public static final int InvalidProxySignature_VALUE = 5; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ProxySignatureStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ProxySignatureStatus forNumber(int value) { switch (value) { case 0: return UnknownProxySignatureStatus; case 1: return ProxySignatureStatusNone; @@ -578,17 +712,17 @@ public static ProxySignatureStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + ProxySignatureStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ProxySignatureStatus findValueByNumber(int number) { - return ProxySignatureStatus.valueOf(number); + return ProxySignatureStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -610,11 +744,9 @@ public static ProxySignatureStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private ProxySignatureStatus(int index, int value) { - this.index = index; + private ProxySignatureStatus(int value) { this.value = value; } @@ -629,25 +761,34 @@ public enum GeneralReceiptStatus /** * GeneralReceiptStatusUnknown = 0; */ - GeneralReceiptStatusUnknown(0, 0), + GeneralReceiptStatusUnknown(0), /** * GeneralReceiptStatusNotAcceptable = 1; */ - GeneralReceiptStatusNotAcceptable(1, 1), + GeneralReceiptStatusNotAcceptable(1), /** * HaveToCreateReceipt = 2; */ - HaveToCreateReceipt(2, 2), + HaveToCreateReceipt(2), /** * WaitingForReceipt = 3; */ - WaitingForReceipt(3, 3), + WaitingForReceipt(3), /** * Finished = 4; */ - Finished(4, 4), + Finished(4), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GeneralReceiptStatus.class.getName()); + } /** * GeneralReceiptStatusUnknown = 0; */ @@ -670,9 +811,25 @@ public enum GeneralReceiptStatus public static final int Finished_VALUE = 4; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static GeneralReceiptStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GeneralReceiptStatus forNumber(int value) { switch (value) { case 0: return GeneralReceiptStatusUnknown; case 1: return GeneralReceiptStatusNotAcceptable; @@ -687,17 +844,17 @@ public static GeneralReceiptStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + GeneralReceiptStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public GeneralReceiptStatus findValueByNumber(int number) { - return GeneralReceiptStatus.valueOf(number); + return GeneralReceiptStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -719,11 +876,9 @@ public static GeneralReceiptStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private GeneralReceiptStatus(int index, int value) { - this.index = index; + private GeneralReceiptStatus(int value) { this.value = value; } @@ -738,33 +893,42 @@ public enum RecipientResponseStatus /** * RecipientResponseStatusUnknown = 0; */ - RecipientResponseStatusUnknown(0, 0), + RecipientResponseStatusUnknown(0), /** * RecipientResponseStatusNotAcceptable = 1; */ - RecipientResponseStatusNotAcceptable(1, 1), + RecipientResponseStatusNotAcceptable(1), /** * WaitingForRecipientSignature = 2; */ - WaitingForRecipientSignature(2, 2), + WaitingForRecipientSignature(2), /** * WithRecipientSignature = 3; */ - WithRecipientSignature(3, 3), + WithRecipientSignature(3), /** * RecipientSignatureRequestRejected = 4; */ - RecipientSignatureRequestRejected(4, 4), + RecipientSignatureRequestRejected(4), /** * InvalidRecipientSignature = 5; */ - InvalidRecipientSignature(5, 5), + InvalidRecipientSignature(5), /** * WithRecipientPartiallySignature = 6; */ - WithRecipientPartiallySignature(6, 6), + WithRecipientPartiallySignature(6), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RecipientResponseStatus.class.getName()); + } /** * RecipientResponseStatusUnknown = 0; */ @@ -795,9 +959,25 @@ public enum RecipientResponseStatus public static final int WithRecipientPartiallySignature_VALUE = 6; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static RecipientResponseStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RecipientResponseStatus forNumber(int value) { switch (value) { case 0: return RecipientResponseStatusUnknown; case 1: return RecipientResponseStatusNotAcceptable; @@ -814,17 +994,17 @@ public static RecipientResponseStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + RecipientResponseStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RecipientResponseStatus findValueByNumber(int number) { - return RecipientResponseStatus.valueOf(number); + return RecipientResponseStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -846,11 +1026,9 @@ public static RecipientResponseStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private RecipientResponseStatus(int index, int value) { - this.index = index; + private RecipientResponseStatus(int value) { this.value = value; } @@ -865,21 +1043,30 @@ public enum MessageType /** * Unknown = 0; */ - Unknown(0, 0), + Unknown(0), /** * Letter = 1; */ - Letter(1, 1), + Letter(1), /** * Draft = 2; */ - Draft(2, 2), + Draft(2), /** * Template = 3; */ - Template(3, 3), + Template(3), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + MessageType.class.getName()); + } /** * Unknown = 0; */ @@ -898,9 +1085,25 @@ public enum MessageType public static final int Template_VALUE = 3; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static MessageType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MessageType forNumber(int value) { switch (value) { case 0: return Unknown; case 1: return Letter; @@ -914,17 +1117,17 @@ public static MessageType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + MessageType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MessageType findValueByNumber(int number) { - return MessageType.valueOf(number); + return MessageType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -946,11 +1149,9 @@ public static MessageType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private MessageType(int index, int value) { - this.index = index; + private MessageType(int value) { this.value = value; } @@ -963,75 +1164,91 @@ public interface DocumentOrBuilder extends /** * optional string IndexKey = 1; + * @return Whether the indexKey field is set. */ boolean hasIndexKey(); /** * optional string IndexKey = 1; + * @return The indexKey. */ java.lang.String getIndexKey(); /** * optional string IndexKey = 1; + * @return The bytes for indexKey. */ com.google.protobuf.ByteString getIndexKeyBytes(); /** * required string MessageId = 2; + * @return Whether the messageId field is set. */ boolean hasMessageId(); /** * required string MessageId = 2; + * @return The messageId. */ java.lang.String getMessageId(); /** * required string MessageId = 2; + * @return The bytes for messageId. */ com.google.protobuf.ByteString getMessageIdBytes(); /** * required string EntityId = 3; + * @return Whether the entityId field is set. */ boolean hasEntityId(); /** * required string EntityId = 3; + * @return The entityId. */ java.lang.String getEntityId(); /** * required string EntityId = 3; + * @return The bytes for entityId. */ com.google.protobuf.ByteString getEntityIdBytes(); /** * required sfixed64 CreationTimestampTicks = 4; + * @return Whether the creationTimestampTicks field is set. */ boolean hasCreationTimestampTicks(); /** * required sfixed64 CreationTimestampTicks = 4; + * @return The creationTimestampTicks. */ long getCreationTimestampTicks(); /** * optional string CounteragentBoxId = 5; + * @return Whether the counteragentBoxId field is set. */ boolean hasCounteragentBoxId(); /** * optional string CounteragentBoxId = 5; + * @return The counteragentBoxId. */ java.lang.String getCounteragentBoxId(); /** * optional string CounteragentBoxId = 5; + * @return The bytes for counteragentBoxId. */ com.google.protobuf.ByteString getCounteragentBoxIdBytes(); /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 6 [default = UnknownDocumentType]; + * @return Whether the documentType field is set. */ boolean hasDocumentType(); /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 6 [default = UnknownDocumentType]; + * @return The documentType. */ Diadoc.Api.Proto.DocumentTypeProtos.DocumentType getDocumentType(); @@ -1085,10 +1302,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Content Content = 9; + * @return Whether the content field is set. */ boolean hasContent(); /** * optional .Diadoc.Api.Proto.Content Content = 9; + * @return The content. */ Diadoc.Api.Proto.ContentProtos.Content getContent(); /** @@ -1098,52 +1317,63 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional string FileName = 10; + * @return Whether the fileName field is set. */ boolean hasFileName(); /** * optional string FileName = 10; + * @return The fileName. */ java.lang.String getFileName(); /** * optional string FileName = 10; + * @return The bytes for fileName. */ com.google.protobuf.ByteString getFileNameBytes(); /** * optional string DocumentDate = 11; + * @return Whether the documentDate field is set. */ boolean hasDocumentDate(); /** * optional string DocumentDate = 11; + * @return The documentDate. */ java.lang.String getDocumentDate(); /** * optional string DocumentDate = 11; + * @return The bytes for documentDate. */ com.google.protobuf.ByteString getDocumentDateBytes(); /** * optional string DocumentNumber = 12; + * @return Whether the documentNumber field is set. */ boolean hasDocumentNumber(); /** * optional string DocumentNumber = 12; + * @return The documentNumber. */ java.lang.String getDocumentNumber(); /** * optional string DocumentNumber = 12; + * @return The bytes for documentNumber. */ com.google.protobuf.ByteString getDocumentNumberBytes(); /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata NonformalizedDocumentMetadata = 13; + * @return Whether the nonformalizedDocumentMetadata field is set. */ boolean hasNonformalizedDocumentMetadata(); /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata NonformalizedDocumentMetadata = 13; + * @return The nonformalizedDocumentMetadata. */ Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getNonformalizedDocumentMetadata(); /** @@ -1153,10 +1383,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata InvoiceMetadata = 14; + * @return Whether the invoiceMetadata field is set. */ boolean hasInvoiceMetadata(); /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata InvoiceMetadata = 14; + * @return The invoiceMetadata. */ Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata getInvoiceMetadata(); /** @@ -1166,10 +1398,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata TrustConnectionRequestMetadata = 15; + * @return Whether the trustConnectionRequestMetadata field is set. */ boolean hasTrustConnectionRequestMetadata(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata TrustConnectionRequestMetadata = 15; + * @return The trustConnectionRequestMetadata. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata getTrustConnectionRequestMetadata(); /** @@ -1179,10 +1413,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg12Metadata = 16; + * @return Whether the torg12Metadata field is set. */ boolean hasTorg12Metadata(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg12Metadata = 16; + * @return The torg12Metadata. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getTorg12Metadata(); /** @@ -1192,10 +1428,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata InvoiceRevisionMetadata = 17; + * @return Whether the invoiceRevisionMetadata field is set. */ boolean hasInvoiceRevisionMetadata(); /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata InvoiceRevisionMetadata = 17; + * @return The invoiceRevisionMetadata. */ Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata getInvoiceRevisionMetadata(); /** @@ -1205,10 +1443,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata InvoiceCorrectionMetadata = 18; + * @return Whether the invoiceCorrectionMetadata field is set. */ boolean hasInvoiceCorrectionMetadata(); /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata InvoiceCorrectionMetadata = 18; + * @return The invoiceCorrectionMetadata. */ Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata getInvoiceCorrectionMetadata(); /** @@ -1218,10 +1458,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata InvoiceCorrectionRevisionMetadata = 19; + * @return Whether the invoiceCorrectionRevisionMetadata field is set. */ boolean hasInvoiceCorrectionRevisionMetadata(); /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata InvoiceCorrectionRevisionMetadata = 19; + * @return The invoiceCorrectionRevisionMetadata. */ Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata getInvoiceCorrectionRevisionMetadata(); /** @@ -1231,10 +1473,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata AcceptanceCertificateMetadata = 20; + * @return Whether the acceptanceCertificateMetadata field is set. */ boolean hasAcceptanceCertificateMetadata(); /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata AcceptanceCertificateMetadata = 20; + * @return The acceptanceCertificateMetadata. */ Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata getAcceptanceCertificateMetadata(); /** @@ -1244,10 +1488,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata ProformaInvoiceMetadata = 21; + * @return Whether the proformaInvoiceMetadata field is set. */ boolean hasProformaInvoiceMetadata(); /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata ProformaInvoiceMetadata = 21; + * @return The proformaInvoiceMetadata. */ Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata getProformaInvoiceMetadata(); /** @@ -1257,10 +1503,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlTorg12Metadata = 22; + * @return Whether the xmlTorg12Metadata field is set. */ boolean hasXmlTorg12Metadata(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlTorg12Metadata = 22; + * @return The xmlTorg12Metadata. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getXmlTorg12Metadata(); /** @@ -1270,10 +1518,12 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlAcceptanceCertificateMetadata = 23; + * @return Whether the xmlAcceptanceCertificateMetadata field is set. */ boolean hasXmlAcceptanceCertificateMetadata(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlAcceptanceCertificateMetadata = 23; + * @return The xmlAcceptanceCertificateMetadata. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getXmlAcceptanceCertificateMetadata(); /** @@ -1283,70 +1533,85 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional bool IsDeleted = 24 [default = false]; + * @return Whether the isDeleted field is set. */ boolean hasIsDeleted(); /** * optional bool IsDeleted = 24 [default = false]; + * @return The isDeleted. */ boolean getIsDeleted(); /** * optional string DepartmentId = 25; + * @return Whether the departmentId field is set. */ boolean hasDepartmentId(); /** * optional string DepartmentId = 25; + * @return The departmentId. */ java.lang.String getDepartmentId(); /** * optional string DepartmentId = 25; + * @return The bytes for departmentId. */ com.google.protobuf.ByteString getDepartmentIdBytes(); /** * optional bool IsTest = 26 [default = false]; + * @return Whether the isTest field is set. */ boolean hasIsTest(); /** * optional bool IsTest = 26 [default = false]; + * @return The isTest. */ boolean getIsTest(); /** * optional string FromDepartmentId = 27; + * @return Whether the fromDepartmentId field is set. */ boolean hasFromDepartmentId(); /** * optional string FromDepartmentId = 27; + * @return The fromDepartmentId. */ java.lang.String getFromDepartmentId(); /** * optional string FromDepartmentId = 27; + * @return The bytes for fromDepartmentId. */ com.google.protobuf.ByteString getFromDepartmentIdBytes(); /** * optional string ToDepartmentId = 28; + * @return Whether the toDepartmentId field is set. */ boolean hasToDepartmentId(); /** * optional string ToDepartmentId = 28; + * @return The toDepartmentId. */ java.lang.String getToDepartmentId(); /** * optional string ToDepartmentId = 28; + * @return The bytes for toDepartmentId. */ com.google.protobuf.ByteString getToDepartmentIdBytes(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata PriceListMetadata = 29; + * @return Whether the priceListMetadata field is set. */ boolean hasPriceListMetadata(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata PriceListMetadata = 29; + * @return The priceListMetadata. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata getPriceListMetadata(); /** @@ -1356,24 +1621,29 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional string CustomDocumentId = 30; + * @return Whether the customDocumentId field is set. */ boolean hasCustomDocumentId(); /** * optional string CustomDocumentId = 30; + * @return The customDocumentId. */ java.lang.String getCustomDocumentId(); /** * optional string CustomDocumentId = 30; + * @return The bytes for customDocumentId. */ com.google.protobuf.ByteString getCustomDocumentIdBytes(); /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatus ResolutionStatus = 31; + * @return Whether the resolutionStatus field is set. */ boolean hasResolutionStatus(); /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatus ResolutionStatus = 31; + * @return The resolutionStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus getResolutionStatus(); /** @@ -1383,28 +1653,34 @@ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsO /** * optional .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 32 [default = UnknownRevocationStatus]; + * @return Whether the revocationStatus field is set. */ boolean hasRevocationStatus(); /** * optional .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 32 [default = UnknownRevocationStatus]; + * @return The revocationStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus getRevocationStatus(); /** * optional sfixed64 SendTimestampTicks = 33; + * @return Whether the sendTimestampTicks field is set. */ boolean hasSendTimestampTicks(); /** * optional sfixed64 SendTimestampTicks = 33; + * @return The sendTimestampTicks. */ long getSendTimestampTicks(); /** * optional sfixed64 DeliveryTimestampTicks = 34; + * @return Whether the deliveryTimestampTicks field is set. */ boolean hasDeliveryTimestampTicks(); /** * optional sfixed64 DeliveryTimestampTicks = 34; + * @return The deliveryTimestampTicks. */ long getDeliveryTimestampTicks(); @@ -1434,10 +1710,12 @@ Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder getFor /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata ReconciliationActMetadata = 38; + * @return Whether the reconciliationActMetadata field is set. */ boolean hasReconciliationActMetadata(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata ReconciliationActMetadata = 38; + * @return The reconciliationActMetadata. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata getReconciliationActMetadata(); /** @@ -1447,10 +1725,12 @@ Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder getFor /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata ContractMetadata = 39; + * @return Whether the contractMetadata field is set. */ boolean hasContractMetadata(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata ContractMetadata = 39; + * @return The contractMetadata. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata getContractMetadata(); /** @@ -1460,10 +1740,12 @@ Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder getFor /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg13Metadata = 40; + * @return Whether the torg13Metadata field is set. */ boolean hasTorg13Metadata(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg13Metadata = 40; + * @return The torg13Metadata. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getTorg13Metadata(); /** @@ -1473,10 +1755,12 @@ Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder getFor /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata ServiceDetailsMetadata = 41; + * @return Whether the serviceDetailsMetadata field is set. */ boolean hasServiceDetailsMetadata(); /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata ServiceDetailsMetadata = 41; + * @return The serviceDetailsMetadata. */ Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata getServiceDetailsMetadata(); /** @@ -1486,19 +1770,23 @@ Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder getFor /** * optional .Diadoc.Api.Proto.Documents.RoamingNotificationStatus RoamingNotificationStatus = 42 [default = UnknownRoamingNotificationStatus]; + * @return Whether the roamingNotificationStatus field is set. */ boolean hasRoamingNotificationStatus(); /** * optional .Diadoc.Api.Proto.Documents.RoamingNotificationStatus RoamingNotificationStatus = 42 [default = UnknownRoamingNotificationStatus]; + * @return The roamingNotificationStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus getRoamingNotificationStatus(); /** * optional bool HasCustomPrintForm = 43 [default = false]; + * @return Whether the hasCustomPrintForm field is set. */ boolean hasHasCustomPrintForm(); /** * optional bool HasCustomPrintForm = 43 [default = false]; + * @return The hasCustomPrintForm. */ boolean getHasCustomPrintForm(); @@ -1528,60 +1816,73 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional string PacketId = 45; + * @return Whether the packetId field is set. */ boolean hasPacketId(); /** * optional string PacketId = 45; + * @return The packetId. */ java.lang.String getPacketId(); /** * optional string PacketId = 45; + * @return The bytes for packetId. */ com.google.protobuf.ByteString getPacketIdBytes(); /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 46 [default = UnknownDocumentDirection]; + * @return Whether the documentDirection field is set. */ boolean hasDocumentDirection(); /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 46 [default = UnknownDocumentDirection]; + * @return The documentDirection. */ Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection(); /** * optional sfixed64 LastModificationTimestampTicks = 47; + * @return Whether the lastModificationTimestampTicks field is set. */ boolean hasLastModificationTimestampTicks(); /** * optional sfixed64 LastModificationTimestampTicks = 47; + * @return The lastModificationTimestampTicks. */ long getLastModificationTimestampTicks(); /** * optional bool IsEncryptedContent = 48; + * @return Whether the isEncryptedContent field is set. */ boolean hasIsEncryptedContent(); /** * optional bool IsEncryptedContent = 48; + * @return The isEncryptedContent. */ boolean getIsEncryptedContent(); /** * optional .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 49 [default = UnknownSenderSignatureStatus]; + * @return Whether the senderSignatureStatus field is set. */ boolean hasSenderSignatureStatus(); /** * optional .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 49 [default = UnknownSenderSignatureStatus]; + * @return The senderSignatureStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus getSenderSignatureStatus(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata SupplementaryAgreementMetadata = 50; + * @return Whether the supplementaryAgreementMetadata field is set. */ boolean hasSupplementaryAgreementMetadata(); /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata SupplementaryAgreementMetadata = 50; + * @return The supplementaryAgreementMetadata. */ Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata getSupplementaryAgreementMetadata(); /** @@ -1591,42 +1892,51 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional bool IsRead = 51 [default = false]; + * @return Whether the isRead field is set. */ boolean hasIsRead(); /** * optional bool IsRead = 51 [default = false]; + * @return The isRead. */ boolean getIsRead(); /** * optional string RoamingNotificationStatusDescription = 52; + * @return Whether the roamingNotificationStatusDescription field is set. */ boolean hasRoamingNotificationStatusDescription(); /** * optional string RoamingNotificationStatusDescription = 52; + * @return The roamingNotificationStatusDescription. */ java.lang.String getRoamingNotificationStatusDescription(); /** * optional string RoamingNotificationStatusDescription = 52; + * @return The bytes for roamingNotificationStatusDescription. */ com.google.protobuf.ByteString getRoamingNotificationStatusDescriptionBytes(); /** * optional bool PacketIsLocked = 53 [default = false]; + * @return Whether the packetIsLocked field is set. */ boolean hasPacketIsLocked(); /** * optional bool PacketIsLocked = 53 [default = false]; + * @return The packetIsLocked. */ boolean getPacketIsLocked(); /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata PriceListAgreementMetadata = 54; + * @return Whether the priceListAgreementMetadata field is set. */ boolean hasPriceListAgreementMetadata(); /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata PriceListAgreementMetadata = 54; + * @return The priceListAgreementMetadata. */ Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getPriceListAgreementMetadata(); /** @@ -1636,10 +1946,12 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata CertificateRegistryMetadata = 55; + * @return Whether the certificateRegistryMetadata field is set. */ boolean hasCertificateRegistryMetadata(); /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata CertificateRegistryMetadata = 55; + * @return The certificateRegistryMetadata. */ Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getCertificateRegistryMetadata(); /** @@ -1649,10 +1961,12 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata UniversalTransferDocumentMetadata = 56; + * @return Whether the universalTransferDocumentMetadata field is set. */ boolean hasUniversalTransferDocumentMetadata(); /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata UniversalTransferDocumentMetadata = 56; + * @return The universalTransferDocumentMetadata. */ Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata getUniversalTransferDocumentMetadata(); /** @@ -1662,10 +1976,12 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata UniversalTransferDocumentRevisionMetadata = 57; + * @return Whether the universalTransferDocumentRevisionMetadata field is set. */ boolean hasUniversalTransferDocumentRevisionMetadata(); /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata UniversalTransferDocumentRevisionMetadata = 57; + * @return The universalTransferDocumentRevisionMetadata. */ Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata getUniversalTransferDocumentRevisionMetadata(); /** @@ -1675,10 +1991,12 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata UniversalCorrectionDocumentMetadata = 58; + * @return Whether the universalCorrectionDocumentMetadata field is set. */ boolean hasUniversalCorrectionDocumentMetadata(); /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata UniversalCorrectionDocumentMetadata = 58; + * @return The universalCorrectionDocumentMetadata. */ Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata getUniversalCorrectionDocumentMetadata(); /** @@ -1688,10 +2006,12 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata = 59; + * @return Whether the universalCorrectionDocumentRevisionMetadata field is set. */ boolean hasUniversalCorrectionDocumentRevisionMetadata(); /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata = 59; + * @return The universalCorrectionDocumentRevisionMetadata. */ Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata getUniversalCorrectionDocumentRevisionMetadata(); /** @@ -1701,88 +2021,107 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui /** * optional string ResolutionRouteId = 60 [default = ""]; + * @return Whether the resolutionRouteId field is set. */ boolean hasResolutionRouteId(); /** * optional string ResolutionRouteId = 60 [default = ""]; + * @return The resolutionRouteId. */ java.lang.String getResolutionRouteId(); /** * optional string ResolutionRouteId = 60 [default = ""]; + * @return The bytes for resolutionRouteId. */ com.google.protobuf.ByteString getResolutionRouteIdBytes(); /** * optional string AttachmentVersion = 61; + * @return Whether the attachmentVersion field is set. */ boolean hasAttachmentVersion(); /** * optional string AttachmentVersion = 61; + * @return The attachmentVersion. */ java.lang.String getAttachmentVersion(); /** * optional string AttachmentVersion = 61; + * @return The bytes for attachmentVersion. */ com.google.protobuf.ByteString getAttachmentVersionBytes(); /** * optional .Diadoc.Api.Proto.Documents.ProxySignatureStatus ProxySignatureStatus = 62 [default = UnknownProxySignatureStatus]; + * @return Whether the proxySignatureStatus field is set. */ boolean hasProxySignatureStatus(); /** * optional .Diadoc.Api.Proto.Documents.ProxySignatureStatus ProxySignatureStatus = 62 [default = UnknownProxySignatureStatus]; + * @return The proxySignatureStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus getProxySignatureStatus(); /** * required string TypeNamedId = 63; + * @return Whether the typeNamedId field is set. */ boolean hasTypeNamedId(); /** * required string TypeNamedId = 63; + * @return The typeNamedId. */ java.lang.String getTypeNamedId(); /** * required string TypeNamedId = 63; + * @return The bytes for typeNamedId. */ com.google.protobuf.ByteString getTypeNamedIdBytes(); /** * required string Function = 64; + * @return Whether the function field is set. */ boolean hasFunction(); /** * required string Function = 64; + * @return The function. */ java.lang.String getFunction(); /** * required string Function = 64; + * @return The bytes for function. */ com.google.protobuf.ByteString getFunctionBytes(); /** * required int32 WorkflowId = 65; + * @return Whether the workflowId field is set. */ boolean hasWorkflowId(); /** * required int32 WorkflowId = 65; + * @return The workflowId. */ int getWorkflowId(); /** * required string Title = 66; + * @return Whether the title field is set. */ boolean hasTitle(); /** * required string Title = 66; + * @return The title. */ java.lang.String getTitle(); /** * required string Title = 66; + * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); @@ -1813,10 +2152,12 @@ Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder getMet /** * required .Diadoc.Api.Proto.Documents.RecipientReceiptMetadata RecipientReceiptMetadata = 68; + * @return Whether the recipientReceiptMetadata field is set. */ boolean hasRecipientReceiptMetadata(); /** * required .Diadoc.Api.Proto.Documents.RecipientReceiptMetadata RecipientReceiptMetadata = 68; + * @return The recipientReceiptMetadata. */ Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata getRecipientReceiptMetadata(); /** @@ -1826,10 +2167,12 @@ Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder getMet /** * required .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 69; + * @return Whether the confirmationMetadata field is set. */ boolean hasConfirmationMetadata(); /** * required .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 69; + * @return The confirmationMetadata. */ Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata getConfirmationMetadata(); /** @@ -1839,19 +2182,23 @@ Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder getMet /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus RecipientResponseStatus = 70 [default = RecipientResponseStatusUnknown]; + * @return Whether the recipientResponseStatus field is set. */ boolean hasRecipientResponseStatus(); /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus RecipientResponseStatus = 70 [default = RecipientResponseStatusUnknown]; + * @return The recipientResponseStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus getRecipientResponseStatus(); /** * required .Diadoc.Api.Proto.Documents.AmendmentRequestMetadata AmendmentRequestMetadata = 71; + * @return Whether the amendmentRequestMetadata field is set. */ boolean hasAmendmentRequestMetadata(); /** * required .Diadoc.Api.Proto.Documents.AmendmentRequestMetadata AmendmentRequestMetadata = 71; + * @return The amendmentRequestMetadata. */ Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata getAmendmentRequestMetadata(); /** @@ -1861,10 +2208,12 @@ Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder getMet /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 72; + * @return Whether the origin field is set. */ boolean hasOrigin(); /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 72; + * @return The origin. */ Diadoc.Api.Proto.Documents.DocumentProtos.Origin getOrigin(); /** @@ -1874,33 +2223,40 @@ Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder getMet /** * optional string EditingSettingId = 73 [default = ""]; + * @return Whether the editingSettingId field is set. */ boolean hasEditingSettingId(); /** * optional string EditingSettingId = 73 [default = ""]; + * @return The editingSettingId. */ java.lang.String getEditingSettingId(); /** * optional string EditingSettingId = 73 [default = ""]; + * @return The bytes for editingSettingId. */ com.google.protobuf.ByteString getEditingSettingIdBytes(); /** * required .Diadoc.Api.Proto.LockMode LockMode = 74 [default = None]; + * @return Whether the lockMode field is set. */ boolean hasLockMode(); /** * required .Diadoc.Api.Proto.LockMode LockMode = 74 [default = None]; + * @return The lockMode. */ Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode(); /** * required .Diadoc.Api.Proto.Documents.SenderReceiptMetadata SenderReceiptMetadata = 75; + * @return Whether the senderReceiptMetadata field is set. */ boolean hasSenderReceiptMetadata(); /** * required .Diadoc.Api.Proto.Documents.SenderReceiptMetadata SenderReceiptMetadata = 75; + * @return The senderReceiptMetadata. */ Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata getSenderReceiptMetadata(); /** @@ -1910,14 +2266,17 @@ Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder getMet /** * required string Version = 76; + * @return Whether the version field is set. */ boolean hasVersion(); /** * required string Version = 76; + * @return The version. */ java.lang.String getVersion(); /** * required string Version = 76; + * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); @@ -1948,38 +2307,46 @@ Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflowOrBuilder getLastOuter /** * optional string ProxyBoxId = 78; + * @return Whether the proxyBoxId field is set. */ boolean hasProxyBoxId(); /** * optional string ProxyBoxId = 78; + * @return The proxyBoxId. */ java.lang.String getProxyBoxId(); /** * optional string ProxyBoxId = 78; + * @return The bytes for proxyBoxId. */ com.google.protobuf.ByteString getProxyBoxIdBytes(); /** * optional string ProxyDepartmentId = 79; + * @return Whether the proxyDepartmentId field is set. */ boolean hasProxyDepartmentId(); /** * optional string ProxyDepartmentId = 79; + * @return The proxyDepartmentId. */ java.lang.String getProxyDepartmentId(); /** * optional string ProxyDepartmentId = 79; + * @return The bytes for proxyDepartmentId. */ com.google.protobuf.ByteString getProxyDepartmentIdBytes(); /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 80; + * @return Whether the docflowStatus field is set. */ boolean hasDocflowStatus(); /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 80; + * @return The docflowStatus. */ Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 getDocflowStatus(); /** @@ -1994,814 +2361,65 @@ public static final class Document extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Document) DocumentOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Document.class.getName()); + } // Use Document.newBuilder() to construct. private Document(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Document(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Document defaultInstance; - public static Document getDefaultInstance() { - return defaultInstance; } - - public Document getDefaultInstanceForType() { - return defaultInstance; + private Document() { + indexKey_ = ""; + messageId_ = ""; + entityId_ = ""; + counteragentBoxId_ = ""; + documentType_ = -1; + initialDocumentIds_ = java.util.Collections.emptyList(); + subordinateDocumentIds_ = java.util.Collections.emptyList(); + fileName_ = ""; + documentDate_ = ""; + documentNumber_ = ""; + departmentId_ = ""; + fromDepartmentId_ = ""; + toDepartmentId_ = ""; + customDocumentId_ = ""; + revocationStatus_ = 0; + forwardDocumentEvents_ = java.util.Collections.emptyList(); + roamingNotificationStatus_ = 0; + customData_ = java.util.Collections.emptyList(); + packetId_ = ""; + documentDirection_ = 0; + senderSignatureStatus_ = 0; + roamingNotificationStatusDescription_ = ""; + resolutionRouteId_ = ""; + attachmentVersion_ = ""; + proxySignatureStatus_ = 0; + typeNamedId_ = ""; + function_ = ""; + title_ = ""; + metadata_ = java.util.Collections.emptyList(); + recipientResponseStatus_ = 0; + editingSettingId_ = ""; + lockMode_ = 1; + version_ = ""; + lastOuterDocflows_ = java.util.Collections.emptyList(); + proxyBoxId_ = ""; + proxyDepartmentId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Document( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - int mutable_bitField1_ = 0; - int mutable_bitField2_ = 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; - indexKey_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - messageId_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - entityId_ = bs; - break; - } - case 33: { - bitField0_ |= 0x00000008; - creationTimestampTicks_ = input.readSFixed64(); - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - counteragentBoxId_ = bs; - break; - } - case 48: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.DocumentTypeProtos.DocumentType value = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - bitField0_ |= 0x00000020; - documentType_ = value; - } - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - initialDocumentIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - initialDocumentIds_.add(input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry)); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - subordinateDocumentIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - subordinateDocumentIds_.add(input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry)); - break; - } - case 74: { - Diadoc.Api.Proto.ContentProtos.Content.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = content_.toBuilder(); - } - content_ = input.readMessage(Diadoc.Api.Proto.ContentProtos.Content.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(content_); - content_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - fileName_ = bs; - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - documentDate_ = bs; - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - documentNumber_ = bs; - break; - } - case 106: { - Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00000400) == 0x00000400)) { - subBuilder = nonformalizedDocumentMetadata_.toBuilder(); - } - nonformalizedDocumentMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nonformalizedDocumentMetadata_); - nonformalizedDocumentMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000400; - break; - } - case 114: { - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00000800) == 0x00000800)) { - subBuilder = invoiceMetadata_.toBuilder(); - } - invoiceMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invoiceMetadata_); - invoiceMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000800; - break; - } - case 122: { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00001000) == 0x00001000)) { - subBuilder = trustConnectionRequestMetadata_.toBuilder(); - } - trustConnectionRequestMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trustConnectionRequestMetadata_); - trustConnectionRequestMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00001000; - break; - } - case 130: { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00002000) == 0x00002000)) { - subBuilder = torg12Metadata_.toBuilder(); - } - torg12Metadata_ = input.readMessage(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(torg12Metadata_); - torg12Metadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00002000; - break; - } - case 138: { - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00004000) == 0x00004000)) { - subBuilder = invoiceRevisionMetadata_.toBuilder(); - } - invoiceRevisionMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invoiceRevisionMetadata_); - invoiceRevisionMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00004000; - break; - } - case 146: { - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00008000) == 0x00008000)) { - subBuilder = invoiceCorrectionMetadata_.toBuilder(); - } - invoiceCorrectionMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invoiceCorrectionMetadata_); - invoiceCorrectionMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00008000; - break; - } - case 154: { - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00010000) == 0x00010000)) { - subBuilder = invoiceCorrectionRevisionMetadata_.toBuilder(); - } - invoiceCorrectionRevisionMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invoiceCorrectionRevisionMetadata_); - invoiceCorrectionRevisionMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00010000; - break; - } - case 162: { - Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00020000) == 0x00020000)) { - subBuilder = acceptanceCertificateMetadata_.toBuilder(); - } - acceptanceCertificateMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(acceptanceCertificateMetadata_); - acceptanceCertificateMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00020000; - break; - } - case 170: { - Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00040000) == 0x00040000)) { - subBuilder = proformaInvoiceMetadata_.toBuilder(); - } - proformaInvoiceMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proformaInvoiceMetadata_); - proformaInvoiceMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00040000; - break; - } - case 178: { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00080000) == 0x00080000)) { - subBuilder = xmlTorg12Metadata_.toBuilder(); - } - xmlTorg12Metadata_ = input.readMessage(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(xmlTorg12Metadata_); - xmlTorg12Metadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00080000; - break; - } - case 186: { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00100000) == 0x00100000)) { - subBuilder = xmlAcceptanceCertificateMetadata_.toBuilder(); - } - xmlAcceptanceCertificateMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(xmlAcceptanceCertificateMetadata_); - xmlAcceptanceCertificateMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00100000; - break; - } - case 192: { - bitField0_ |= 0x00200000; - isDeleted_ = input.readBool(); - break; - } - case 202: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00400000; - departmentId_ = bs; - break; - } - case 208: { - bitField0_ |= 0x00800000; - isTest_ = input.readBool(); - break; - } - case 218: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x01000000; - fromDepartmentId_ = bs; - break; - } - case 226: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x02000000; - toDepartmentId_ = bs; - break; - } - case 234: { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x04000000) == 0x04000000)) { - subBuilder = priceListMetadata_.toBuilder(); - } - priceListMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(priceListMetadata_); - priceListMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x04000000; - break; - } - case 242: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x08000000; - customDocumentId_ = bs; - break; - } - case 250: { - Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.Builder subBuilder = null; - if (((bitField0_ & 0x10000000) == 0x10000000)) { - subBuilder = resolutionStatus_.toBuilder(); - } - resolutionStatus_ = input.readMessage(Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resolutionStatus_); - resolutionStatus_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x10000000; - break; - } - case 256: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(32, rawValue); - } else { - bitField0_ |= 0x20000000; - revocationStatus_ = value; - } - break; - } - case 265: { - bitField0_ |= 0x40000000; - sendTimestampTicks_ = input.readSFixed64(); - break; - } - case 273: { - bitField0_ |= 0x80000000; - deliveryTimestampTicks_ = input.readSFixed64(); - break; - } - case 282: { - if (!((mutable_bitField1_ & 0x00000004) == 0x00000004)) { - forwardDocumentEvents_ = new java.util.ArrayList(); - mutable_bitField1_ |= 0x00000004; - } - forwardDocumentEvents_.add(input.readMessage(Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.PARSER, extensionRegistry)); - break; - } - case 306: { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00000001) == 0x00000001)) { - subBuilder = reconciliationActMetadata_.toBuilder(); - } - reconciliationActMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reconciliationActMetadata_); - reconciliationActMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000001; - break; - } - case 314: { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00000002) == 0x00000002)) { - subBuilder = contractMetadata_.toBuilder(); - } - contractMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contractMetadata_); - contractMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000002; - break; - } - case 322: { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00000004) == 0x00000004)) { - subBuilder = torg13Metadata_.toBuilder(); - } - torg13Metadata_ = input.readMessage(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(torg13Metadata_); - torg13Metadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000004; - break; - } - case 330: { - Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00000008) == 0x00000008)) { - subBuilder = serviceDetailsMetadata_.toBuilder(); - } - serviceDetailsMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serviceDetailsMetadata_); - serviceDetailsMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000008; - break; - } - case 336: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(42, rawValue); - } else { - bitField1_ |= 0x00000010; - roamingNotificationStatus_ = value; - } - break; - } - case 344: { - bitField1_ |= 0x00000020; - hasCustomPrintForm_ = input.readBool(); - break; - } - case 354: { - if (!((mutable_bitField1_ & 0x00000200) == 0x00000200)) { - customData_ = new java.util.ArrayList(); - mutable_bitField1_ |= 0x00000200; - } - customData_.add(input.readMessage(Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.PARSER, extensionRegistry)); - break; - } - case 362: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField1_ |= 0x00000040; - packetId_ = bs; - break; - } - case 368: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection value = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(46, rawValue); - } else { - bitField1_ |= 0x00000080; - documentDirection_ = value; - } - break; - } - case 377: { - bitField1_ |= 0x00000100; - lastModificationTimestampTicks_ = input.readSFixed64(); - break; - } - case 384: { - bitField1_ |= 0x00000200; - isEncryptedContent_ = input.readBool(); - break; - } - case 392: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(49, rawValue); - } else { - bitField1_ |= 0x00000400; - senderSignatureStatus_ = value; - } - break; - } - case 402: { - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00000800) == 0x00000800)) { - subBuilder = supplementaryAgreementMetadata_.toBuilder(); - } - supplementaryAgreementMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(supplementaryAgreementMetadata_); - supplementaryAgreementMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000800; - break; - } - case 408: { - bitField1_ |= 0x00001000; - isRead_ = input.readBool(); - break; - } - case 418: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField1_ |= 0x00002000; - roamingNotificationStatusDescription_ = bs; - break; - } - case 424: { - bitField1_ |= 0x00004000; - packetIsLocked_ = input.readBool(); - break; - } - case 434: { - Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00008000) == 0x00008000)) { - subBuilder = priceListAgreementMetadata_.toBuilder(); - } - priceListAgreementMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(priceListAgreementMetadata_); - priceListAgreementMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00008000; - break; - } - case 442: { - Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00010000) == 0x00010000)) { - subBuilder = certificateRegistryMetadata_.toBuilder(); - } - certificateRegistryMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateRegistryMetadata_); - certificateRegistryMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00010000; - break; - } - case 450: { - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00020000) == 0x00020000)) { - subBuilder = universalTransferDocumentMetadata_.toBuilder(); - } - universalTransferDocumentMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(universalTransferDocumentMetadata_); - universalTransferDocumentMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00020000; - break; - } - case 458: { - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00040000) == 0x00040000)) { - subBuilder = universalTransferDocumentRevisionMetadata_.toBuilder(); - } - universalTransferDocumentRevisionMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(universalTransferDocumentRevisionMetadata_); - universalTransferDocumentRevisionMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00040000; - break; - } - case 466: { - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00080000) == 0x00080000)) { - subBuilder = universalCorrectionDocumentMetadata_.toBuilder(); - } - universalCorrectionDocumentMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(universalCorrectionDocumentMetadata_); - universalCorrectionDocumentMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00080000; - break; - } - case 474: { - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x00100000) == 0x00100000)) { - subBuilder = universalCorrectionDocumentRevisionMetadata_.toBuilder(); - } - universalCorrectionDocumentRevisionMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(universalCorrectionDocumentRevisionMetadata_); - universalCorrectionDocumentRevisionMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00100000; - break; - } - case 482: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField1_ |= 0x00200000; - resolutionRouteId_ = bs; - break; - } - case 490: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField1_ |= 0x00400000; - attachmentVersion_ = bs; - break; - } - case 496: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(62, rawValue); - } else { - bitField1_ |= 0x00800000; - proxySignatureStatus_ = value; - } - break; - } - case 506: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField1_ |= 0x01000000; - typeNamedId_ = bs; - break; - } - case 514: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField1_ |= 0x02000000; - function_ = bs; - break; - } - case 520: { - bitField1_ |= 0x04000000; - workflowId_ = input.readInt32(); - break; - } - case 530: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField1_ |= 0x08000000; - title_ = bs; - break; - } - case 538: { - if (!((mutable_bitField2_ & 0x00000001) == 0x00000001)) { - metadata_ = new java.util.ArrayList(); - mutable_bitField2_ |= 0x00000001; - } - metadata_.add(input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.PARSER, extensionRegistry)); - break; - } - case 546: { - Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x10000000) == 0x10000000)) { - subBuilder = recipientReceiptMetadata_.toBuilder(); - } - recipientReceiptMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(recipientReceiptMetadata_); - recipientReceiptMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x10000000; - break; - } - case 554: { - Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x20000000) == 0x20000000)) { - subBuilder = confirmationMetadata_.toBuilder(); - } - confirmationMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationMetadata_); - confirmationMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x20000000; - break; - } - case 560: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(70, rawValue); - } else { - bitField1_ |= 0x40000000; - recipientResponseStatus_ = value; - } - break; - } - case 570: { - Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.Builder subBuilder = null; - if (((bitField1_ & 0x80000000) == 0x80000000)) { - subBuilder = amendmentRequestMetadata_.toBuilder(); - } - amendmentRequestMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(amendmentRequestMetadata_); - amendmentRequestMetadata_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x80000000; - break; - } - case 578: { - Diadoc.Api.Proto.Documents.DocumentProtos.Origin.Builder subBuilder = null; - if (((bitField2_ & 0x00000001) == 0x00000001)) { - subBuilder = origin_.toBuilder(); - } - origin_ = input.readMessage(Diadoc.Api.Proto.Documents.DocumentProtos.Origin.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(origin_); - origin_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000001; - break; - } - case 586: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField2_ |= 0x00000002; - editingSettingId_ = bs; - break; - } - case 592: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.LockModeProtos.LockMode value = Diadoc.Api.Proto.LockModeProtos.LockMode.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(74, rawValue); - } else { - bitField2_ |= 0x00000004; - lockMode_ = value; - } - break; - } - case 602: { - Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.Builder subBuilder = null; - if (((bitField2_ & 0x00000008) == 0x00000008)) { - subBuilder = senderReceiptMetadata_.toBuilder(); - } - senderReceiptMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(senderReceiptMetadata_); - senderReceiptMetadata_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000008; - break; - } - case 610: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField2_ |= 0x00000010; - version_ = bs; - break; - } - case 618: { - if (!((mutable_bitField2_ & 0x00000400) == 0x00000400)) { - lastOuterDocflows_ = new java.util.ArrayList(); - mutable_bitField2_ |= 0x00000400; - } - lastOuterDocflows_.add(input.readMessage(Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow.PARSER, extensionRegistry)); - break; - } - case 626: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField2_ |= 0x00000020; - proxyBoxId_ = bs; - break; - } - case 634: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField2_ |= 0x00000040; - proxyDepartmentId_ = bs; - break; - } - case 642: { - Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.Builder subBuilder = null; - if (((bitField2_ & 0x00000080) == 0x00000080)) { - subBuilder = docflowStatus_.toBuilder(); - } - docflowStatus_ = input.readMessage(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(docflowStatus_); - docflowStatus_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000080; - 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_ & 0x00000040) == 0x00000040)) { - initialDocumentIds_ = java.util.Collections.unmodifiableList(initialDocumentIds_); - } - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - subordinateDocumentIds_ = java.util.Collections.unmodifiableList(subordinateDocumentIds_); - } - if (((mutable_bitField1_ & 0x00000004) == 0x00000004)) { - forwardDocumentEvents_ = java.util.Collections.unmodifiableList(forwardDocumentEvents_); - } - if (((mutable_bitField1_ & 0x00000200) == 0x00000200)) { - customData_ = java.util.Collections.unmodifiableList(customData_); - } - if (((mutable_bitField2_ & 0x00000001) == 0x00000001)) { - metadata_ = java.util.Collections.unmodifiableList(metadata_); - } - if (((mutable_bitField2_ & 0x00000400) == 0x00000400)) { - lastOuterDocflows_ = java.util.Collections.unmodifiableList(lastOuterDocflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_Document_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_Document_fieldAccessorTable @@ -2809,35 +2427,25 @@ private Document( Diadoc.Api.Proto.Documents.DocumentProtos.Document.class, Diadoc.Api.Proto.Documents.DocumentProtos.Document.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Document parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Document(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; private int bitField1_; private int bitField2_; public static final int INDEXKEY_FIELD_NUMBER = 1; - private java.lang.Object indexKey_; + @SuppressWarnings("serial") + private volatile java.lang.Object indexKey_ = ""; /** * optional string IndexKey = 1; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string IndexKey = 1; + * @return The indexKey. */ + @java.lang.Override public java.lang.String getIndexKey() { java.lang.Object ref = indexKey_; if (ref instanceof java.lang.String) { @@ -2854,7 +2462,9 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 1; + * @return The bytes for indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKeyBytes() { java.lang.Object ref = indexKey_; @@ -2870,16 +2480,21 @@ public java.lang.String getIndexKey() { } public static final int MESSAGEID_FIELD_NUMBER = 2; - private java.lang.Object messageId_; + @SuppressWarnings("serial") + private volatile java.lang.Object messageId_ = ""; /** * required string MessageId = 2; + * @return Whether the messageId field is set. */ + @java.lang.Override public boolean hasMessageId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string MessageId = 2; + * @return The messageId. */ + @java.lang.Override public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { @@ -2896,7 +2511,9 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 2; + * @return The bytes for messageId. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; @@ -2912,16 +2529,21 @@ public java.lang.String getMessageId() { } public static final int ENTITYID_FIELD_NUMBER = 3; - private java.lang.Object entityId_; + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; /** * required string EntityId = 3; + * @return Whether the entityId field is set. */ + @java.lang.Override public boolean hasEntityId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string EntityId = 3; + * @return The entityId. */ + @java.lang.Override public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { @@ -2938,7 +2560,9 @@ public java.lang.String getEntityId() { } /** * required string EntityId = 3; + * @return The bytes for entityId. */ + @java.lang.Override public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -2954,31 +2578,40 @@ public java.lang.String getEntityId() { } public static final int CREATIONTIMESTAMPTICKS_FIELD_NUMBER = 4; - private long creationTimestampTicks_; + private long creationTimestampTicks_ = 0L; /** * required sfixed64 CreationTimestampTicks = 4; + * @return Whether the creationTimestampTicks field is set. */ + @java.lang.Override public boolean hasCreationTimestampTicks() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required sfixed64 CreationTimestampTicks = 4; + * @return The creationTimestampTicks. */ + @java.lang.Override public long getCreationTimestampTicks() { return creationTimestampTicks_; } public static final int COUNTERAGENTBOXID_FIELD_NUMBER = 5; - private java.lang.Object counteragentBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object counteragentBoxId_ = ""; /** * optional string CounteragentBoxId = 5; + * @return Whether the counteragentBoxId field is set. */ + @java.lang.Override public boolean hasCounteragentBoxId() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string CounteragentBoxId = 5; + * @return The counteragentBoxId. */ + @java.lang.Override public java.lang.String getCounteragentBoxId() { java.lang.Object ref = counteragentBoxId_; if (ref instanceof java.lang.String) { @@ -2995,7 +2628,9 @@ public java.lang.String getCounteragentBoxId() { } /** * optional string CounteragentBoxId = 5; + * @return The bytes for counteragentBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getCounteragentBoxIdBytes() { java.lang.Object ref = counteragentBoxId_; @@ -3011,31 +2646,37 @@ public java.lang.String getCounteragentBoxId() { } public static final int DOCUMENTTYPE_FIELD_NUMBER = 6; - private Diadoc.Api.Proto.DocumentTypeProtos.DocumentType documentType_; + private int documentType_ = -1; /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 6 [default = UnknownDocumentType]; + * @return Whether the documentType field is set. */ - public boolean hasDocumentType() { - return ((bitField0_ & 0x00000020) == 0x00000020); + @java.lang.Override public boolean hasDocumentType() { + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 6 [default = UnknownDocumentType]; + * @return The documentType. */ - public Diadoc.Api.Proto.DocumentTypeProtos.DocumentType getDocumentType() { - return documentType_; + @java.lang.Override public Diadoc.Api.Proto.DocumentTypeProtos.DocumentType getDocumentType() { + Diadoc.Api.Proto.DocumentTypeProtos.DocumentType result = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.forNumber(documentType_); + return result == null ? Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType : result; } public static final int INITIALDOCUMENTIDS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private java.util.List initialDocumentIds_; /** * repeated .Diadoc.Api.Proto.DocumentId InitialDocumentIds = 7; */ + @java.lang.Override public java.util.List getInitialDocumentIdsList() { return initialDocumentIds_; } /** * repeated .Diadoc.Api.Proto.DocumentId InitialDocumentIds = 7; */ + @java.lang.Override public java.util.List getInitialDocumentIdsOrBuilderList() { return initialDocumentIds_; @@ -3043,34 +2684,40 @@ public java.util.List getInitialDo /** * repeated .Diadoc.Api.Proto.DocumentId InitialDocumentIds = 7; */ + @java.lang.Override public int getInitialDocumentIdsCount() { return initialDocumentIds_.size(); } /** * repeated .Diadoc.Api.Proto.DocumentId InitialDocumentIds = 7; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInitialDocumentIds(int index) { return initialDocumentIds_.get(index); } /** * repeated .Diadoc.Api.Proto.DocumentId InitialDocumentIds = 7; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInitialDocumentIdsOrBuilder( int index) { return initialDocumentIds_.get(index); } public static final int SUBORDINATEDOCUMENTIDS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private java.util.List subordinateDocumentIds_; /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateDocumentIds = 8; */ + @java.lang.Override public java.util.List getSubordinateDocumentIdsList() { return subordinateDocumentIds_; } /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateDocumentIds = 8; */ + @java.lang.Override public java.util.List getSubordinateDocumentIdsOrBuilderList() { return subordinateDocumentIds_; @@ -3078,18 +2725,21 @@ public java.util.List getSubordina /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateDocumentIds = 8; */ + @java.lang.Override public int getSubordinateDocumentIdsCount() { return subordinateDocumentIds_.size(); } /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateDocumentIds = 8; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getSubordinateDocumentIds(int index) { return subordinateDocumentIds_.get(index); } /** * repeated .Diadoc.Api.Proto.DocumentId SubordinateDocumentIds = 8; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocumentIdsOrBuilder( int index) { return subordinateDocumentIds_.get(index); @@ -3099,34 +2749,44 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getSubordinateDocum private Diadoc.Api.Proto.ContentProtos.Content content_; /** * optional .Diadoc.Api.Proto.Content Content = 9; + * @return Whether the content field is set. */ + @java.lang.Override public boolean hasContent() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Content Content = 9; + * @return The content. */ + @java.lang.Override public Diadoc.Api.Proto.ContentProtos.Content getContent() { - return content_; + return content_ == null ? Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance() : content_; } /** * optional .Diadoc.Api.Proto.Content Content = 9; */ + @java.lang.Override public Diadoc.Api.Proto.ContentProtos.ContentOrBuilder getContentOrBuilder() { - return content_; + return content_ == null ? Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance() : content_; } public static final int FILENAME_FIELD_NUMBER = 10; - private java.lang.Object fileName_; + @SuppressWarnings("serial") + private volatile java.lang.Object fileName_ = ""; /** * optional string FileName = 10; + * @return Whether the fileName field is set. */ + @java.lang.Override public boolean hasFileName() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional string FileName = 10; + * @return The fileName. */ + @java.lang.Override public java.lang.String getFileName() { java.lang.Object ref = fileName_; if (ref instanceof java.lang.String) { @@ -3143,7 +2803,9 @@ public java.lang.String getFileName() { } /** * optional string FileName = 10; + * @return The bytes for fileName. */ + @java.lang.Override public com.google.protobuf.ByteString getFileNameBytes() { java.lang.Object ref = fileName_; @@ -3159,16 +2821,21 @@ public java.lang.String getFileName() { } public static final int DOCUMENTDATE_FIELD_NUMBER = 11; - private java.lang.Object documentDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object documentDate_ = ""; /** * optional string DocumentDate = 11; + * @return Whether the documentDate field is set. */ + @java.lang.Override public boolean hasDocumentDate() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional string DocumentDate = 11; + * @return The documentDate. */ + @java.lang.Override public java.lang.String getDocumentDate() { java.lang.Object ref = documentDate_; if (ref instanceof java.lang.String) { @@ -3185,7 +2852,9 @@ public java.lang.String getDocumentDate() { } /** * optional string DocumentDate = 11; + * @return The bytes for documentDate. */ + @java.lang.Override public com.google.protobuf.ByteString getDocumentDateBytes() { java.lang.Object ref = documentDate_; @@ -3201,16 +2870,21 @@ public java.lang.String getDocumentDate() { } public static final int DOCUMENTNUMBER_FIELD_NUMBER = 12; - private java.lang.Object documentNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object documentNumber_ = ""; /** * optional string DocumentNumber = 12; + * @return Whether the documentNumber field is set. */ + @java.lang.Override public boolean hasDocumentNumber() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional string DocumentNumber = 12; + * @return The documentNumber. */ + @java.lang.Override public java.lang.String getDocumentNumber() { java.lang.Object ref = documentNumber_; if (ref instanceof java.lang.String) { @@ -3227,7 +2901,9 @@ public java.lang.String getDocumentNumber() { } /** * optional string DocumentNumber = 12; + * @return The bytes for documentNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getDocumentNumberBytes() { java.lang.Object ref = documentNumber_; @@ -3246,259 +2922,323 @@ public java.lang.String getDocumentNumber() { private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata nonformalizedDocumentMetadata_; /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata NonformalizedDocumentMetadata = 13; + * @return Whether the nonformalizedDocumentMetadata field is set. */ + @java.lang.Override public boolean hasNonformalizedDocumentMetadata() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata NonformalizedDocumentMetadata = 13; + * @return The nonformalizedDocumentMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getNonformalizedDocumentMetadata() { - return nonformalizedDocumentMetadata_; + return nonformalizedDocumentMetadata_ == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : nonformalizedDocumentMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata NonformalizedDocumentMetadata = 13; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadataOrBuilder getNonformalizedDocumentMetadataOrBuilder() { - return nonformalizedDocumentMetadata_; + return nonformalizedDocumentMetadata_ == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : nonformalizedDocumentMetadata_; } public static final int INVOICEMETADATA_FIELD_NUMBER = 14; private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata invoiceMetadata_; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata InvoiceMetadata = 14; + * @return Whether the invoiceMetadata field is set. */ + @java.lang.Override public boolean hasInvoiceMetadata() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata InvoiceMetadata = 14; + * @return The invoiceMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata getInvoiceMetadata() { - return invoiceMetadata_; + return invoiceMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance() : invoiceMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata InvoiceMetadata = 14; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadataOrBuilder getInvoiceMetadataOrBuilder() { - return invoiceMetadata_; + return invoiceMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance() : invoiceMetadata_; } public static final int TRUSTCONNECTIONREQUESTMETADATA_FIELD_NUMBER = 15; private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata trustConnectionRequestMetadata_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata TrustConnectionRequestMetadata = 15; + * @return Whether the trustConnectionRequestMetadata field is set. */ + @java.lang.Override public boolean hasTrustConnectionRequestMetadata() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata TrustConnectionRequestMetadata = 15; + * @return The trustConnectionRequestMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata getTrustConnectionRequestMetadata() { - return trustConnectionRequestMetadata_; + return trustConnectionRequestMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance() : trustConnectionRequestMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata TrustConnectionRequestMetadata = 15; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadataOrBuilder getTrustConnectionRequestMetadataOrBuilder() { - return trustConnectionRequestMetadata_; + return trustConnectionRequestMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance() : trustConnectionRequestMetadata_; } public static final int TORG12METADATA_FIELD_NUMBER = 16; private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata torg12Metadata_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg12Metadata = 16; + * @return Whether the torg12Metadata field is set. */ + @java.lang.Override public boolean hasTorg12Metadata() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg12Metadata = 16; + * @return The torg12Metadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getTorg12Metadata() { - return torg12Metadata_; + return torg12Metadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : torg12Metadata_; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg12Metadata = 16; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadataOrBuilder getTorg12MetadataOrBuilder() { - return torg12Metadata_; + return torg12Metadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : torg12Metadata_; } public static final int INVOICEREVISIONMETADATA_FIELD_NUMBER = 17; private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata invoiceRevisionMetadata_; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata InvoiceRevisionMetadata = 17; + * @return Whether the invoiceRevisionMetadata field is set. */ + @java.lang.Override public boolean hasInvoiceRevisionMetadata() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata InvoiceRevisionMetadata = 17; + * @return The invoiceRevisionMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata getInvoiceRevisionMetadata() { - return invoiceRevisionMetadata_; + return invoiceRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance() : invoiceRevisionMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata InvoiceRevisionMetadata = 17; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadataOrBuilder getInvoiceRevisionMetadataOrBuilder() { - return invoiceRevisionMetadata_; + return invoiceRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance() : invoiceRevisionMetadata_; } public static final int INVOICECORRECTIONMETADATA_FIELD_NUMBER = 18; private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata invoiceCorrectionMetadata_; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata InvoiceCorrectionMetadata = 18; + * @return Whether the invoiceCorrectionMetadata field is set. */ + @java.lang.Override public boolean hasInvoiceCorrectionMetadata() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata InvoiceCorrectionMetadata = 18; + * @return The invoiceCorrectionMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata getInvoiceCorrectionMetadata() { - return invoiceCorrectionMetadata_; + return invoiceCorrectionMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance() : invoiceCorrectionMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata InvoiceCorrectionMetadata = 18; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadataOrBuilder getInvoiceCorrectionMetadataOrBuilder() { - return invoiceCorrectionMetadata_; + return invoiceCorrectionMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance() : invoiceCorrectionMetadata_; } public static final int INVOICECORRECTIONREVISIONMETADATA_FIELD_NUMBER = 19; private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata invoiceCorrectionRevisionMetadata_; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata InvoiceCorrectionRevisionMetadata = 19; + * @return Whether the invoiceCorrectionRevisionMetadata field is set. */ + @java.lang.Override public boolean hasInvoiceCorrectionRevisionMetadata() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata InvoiceCorrectionRevisionMetadata = 19; + * @return The invoiceCorrectionRevisionMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata getInvoiceCorrectionRevisionMetadata() { - return invoiceCorrectionRevisionMetadata_; + return invoiceCorrectionRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance() : invoiceCorrectionRevisionMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata InvoiceCorrectionRevisionMetadata = 19; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadataOrBuilder getInvoiceCorrectionRevisionMetadataOrBuilder() { - return invoiceCorrectionRevisionMetadata_; + return invoiceCorrectionRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance() : invoiceCorrectionRevisionMetadata_; } public static final int ACCEPTANCECERTIFICATEMETADATA_FIELD_NUMBER = 20; private Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata acceptanceCertificateMetadata_; /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata AcceptanceCertificateMetadata = 20; + * @return Whether the acceptanceCertificateMetadata field is set. */ + @java.lang.Override public boolean hasAcceptanceCertificateMetadata() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00020000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata AcceptanceCertificateMetadata = 20; + * @return The acceptanceCertificateMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata getAcceptanceCertificateMetadata() { - return acceptanceCertificateMetadata_; + return acceptanceCertificateMetadata_ == null ? Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance() : acceptanceCertificateMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata AcceptanceCertificateMetadata = 20; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadataOrBuilder getAcceptanceCertificateMetadataOrBuilder() { - return acceptanceCertificateMetadata_; + return acceptanceCertificateMetadata_ == null ? Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance() : acceptanceCertificateMetadata_; } public static final int PROFORMAINVOICEMETADATA_FIELD_NUMBER = 21; private Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata proformaInvoiceMetadata_; /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata ProformaInvoiceMetadata = 21; + * @return Whether the proformaInvoiceMetadata field is set. */ + @java.lang.Override public boolean hasProformaInvoiceMetadata() { - return ((bitField0_ & 0x00040000) == 0x00040000); + return ((bitField0_ & 0x00040000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata ProformaInvoiceMetadata = 21; + * @return The proformaInvoiceMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata getProformaInvoiceMetadata() { - return proformaInvoiceMetadata_; + return proformaInvoiceMetadata_ == null ? Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance() : proformaInvoiceMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata ProformaInvoiceMetadata = 21; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadataOrBuilder getProformaInvoiceMetadataOrBuilder() { - return proformaInvoiceMetadata_; + return proformaInvoiceMetadata_ == null ? Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance() : proformaInvoiceMetadata_; } public static final int XMLTORG12METADATA_FIELD_NUMBER = 22; private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata xmlTorg12Metadata_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlTorg12Metadata = 22; + * @return Whether the xmlTorg12Metadata field is set. */ + @java.lang.Override public boolean hasXmlTorg12Metadata() { - return ((bitField0_ & 0x00080000) == 0x00080000); + return ((bitField0_ & 0x00080000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlTorg12Metadata = 22; + * @return The xmlTorg12Metadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getXmlTorg12Metadata() { - return xmlTorg12Metadata_; + return xmlTorg12Metadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : xmlTorg12Metadata_; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlTorg12Metadata = 22; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadataOrBuilder getXmlTorg12MetadataOrBuilder() { - return xmlTorg12Metadata_; + return xmlTorg12Metadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : xmlTorg12Metadata_; } public static final int XMLACCEPTANCECERTIFICATEMETADATA_FIELD_NUMBER = 23; private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata xmlAcceptanceCertificateMetadata_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlAcceptanceCertificateMetadata = 23; + * @return Whether the xmlAcceptanceCertificateMetadata field is set. */ + @java.lang.Override public boolean hasXmlAcceptanceCertificateMetadata() { - return ((bitField0_ & 0x00100000) == 0x00100000); + return ((bitField0_ & 0x00100000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlAcceptanceCertificateMetadata = 23; + * @return The xmlAcceptanceCertificateMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getXmlAcceptanceCertificateMetadata() { - return xmlAcceptanceCertificateMetadata_; + return xmlAcceptanceCertificateMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : xmlAcceptanceCertificateMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlAcceptanceCertificateMetadata = 23; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadataOrBuilder getXmlAcceptanceCertificateMetadataOrBuilder() { - return xmlAcceptanceCertificateMetadata_; + return xmlAcceptanceCertificateMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : xmlAcceptanceCertificateMetadata_; } public static final int ISDELETED_FIELD_NUMBER = 24; - private boolean isDeleted_; + private boolean isDeleted_ = false; /** * optional bool IsDeleted = 24 [default = false]; + * @return Whether the isDeleted field is set. */ + @java.lang.Override public boolean hasIsDeleted() { - return ((bitField0_ & 0x00200000) == 0x00200000); + return ((bitField0_ & 0x00200000) != 0); } /** * optional bool IsDeleted = 24 [default = false]; + * @return The isDeleted. */ + @java.lang.Override public boolean getIsDeleted() { return isDeleted_; } public static final int DEPARTMENTID_FIELD_NUMBER = 25; - private java.lang.Object departmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object departmentId_ = ""; /** * optional string DepartmentId = 25; + * @return Whether the departmentId field is set. */ + @java.lang.Override public boolean hasDepartmentId() { - return ((bitField0_ & 0x00400000) == 0x00400000); + return ((bitField0_ & 0x00400000) != 0); } /** * optional string DepartmentId = 25; + * @return The departmentId. */ + @java.lang.Override public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; if (ref instanceof java.lang.String) { @@ -3515,7 +3255,9 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 25; + * @return The bytes for departmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getDepartmentIdBytes() { java.lang.Object ref = departmentId_; @@ -3531,31 +3273,40 @@ public java.lang.String getDepartmentId() { } public static final int ISTEST_FIELD_NUMBER = 26; - private boolean isTest_; + private boolean isTest_ = false; /** * optional bool IsTest = 26 [default = false]; + * @return Whether the isTest field is set. */ + @java.lang.Override public boolean hasIsTest() { - return ((bitField0_ & 0x00800000) == 0x00800000); + return ((bitField0_ & 0x00800000) != 0); } /** * optional bool IsTest = 26 [default = false]; + * @return The isTest. */ + @java.lang.Override public boolean getIsTest() { return isTest_; } public static final int FROMDEPARTMENTID_FIELD_NUMBER = 27; - private java.lang.Object fromDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object fromDepartmentId_ = ""; /** * optional string FromDepartmentId = 27; + * @return Whether the fromDepartmentId field is set. */ + @java.lang.Override public boolean hasFromDepartmentId() { - return ((bitField0_ & 0x01000000) == 0x01000000); + return ((bitField0_ & 0x01000000) != 0); } /** * optional string FromDepartmentId = 27; + * @return The fromDepartmentId. */ + @java.lang.Override public java.lang.String getFromDepartmentId() { java.lang.Object ref = fromDepartmentId_; if (ref instanceof java.lang.String) { @@ -3572,7 +3323,9 @@ public java.lang.String getFromDepartmentId() { } /** * optional string FromDepartmentId = 27; + * @return The bytes for fromDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getFromDepartmentIdBytes() { java.lang.Object ref = fromDepartmentId_; @@ -3588,16 +3341,21 @@ public java.lang.String getFromDepartmentId() { } public static final int TODEPARTMENTID_FIELD_NUMBER = 28; - private java.lang.Object toDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object toDepartmentId_ = ""; /** * optional string ToDepartmentId = 28; + * @return Whether the toDepartmentId field is set. */ + @java.lang.Override public boolean hasToDepartmentId() { - return ((bitField0_ & 0x02000000) == 0x02000000); + return ((bitField0_ & 0x02000000) != 0); } /** * optional string ToDepartmentId = 28; + * @return The toDepartmentId. */ + @java.lang.Override public java.lang.String getToDepartmentId() { java.lang.Object ref = toDepartmentId_; if (ref instanceof java.lang.String) { @@ -3614,7 +3372,9 @@ public java.lang.String getToDepartmentId() { } /** * optional string ToDepartmentId = 28; + * @return The bytes for toDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getToDepartmentIdBytes() { java.lang.Object ref = toDepartmentId_; @@ -3633,34 +3393,44 @@ public java.lang.String getToDepartmentId() { private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata priceListMetadata_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata PriceListMetadata = 29; + * @return Whether the priceListMetadata field is set. */ + @java.lang.Override public boolean hasPriceListMetadata() { - return ((bitField0_ & 0x04000000) == 0x04000000); + return ((bitField0_ & 0x04000000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata PriceListMetadata = 29; + * @return The priceListMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata getPriceListMetadata() { - return priceListMetadata_; + return priceListMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance() : priceListMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata PriceListMetadata = 29; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadataOrBuilder getPriceListMetadataOrBuilder() { - return priceListMetadata_; + return priceListMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance() : priceListMetadata_; } public static final int CUSTOMDOCUMENTID_FIELD_NUMBER = 30; - private java.lang.Object customDocumentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object customDocumentId_ = ""; /** * optional string CustomDocumentId = 30; + * @return Whether the customDocumentId field is set. */ + @java.lang.Override public boolean hasCustomDocumentId() { - return ((bitField0_ & 0x08000000) == 0x08000000); + return ((bitField0_ & 0x08000000) != 0); } /** * optional string CustomDocumentId = 30; + * @return The customDocumentId. */ + @java.lang.Override public java.lang.String getCustomDocumentId() { java.lang.Object ref = customDocumentId_; if (ref instanceof java.lang.String) { @@ -3677,7 +3447,9 @@ public java.lang.String getCustomDocumentId() { } /** * optional string CustomDocumentId = 30; + * @return The bytes for customDocumentId. */ + @java.lang.Override public com.google.protobuf.ByteString getCustomDocumentIdBytes() { java.lang.Object ref = customDocumentId_; @@ -3696,79 +3468,98 @@ public java.lang.String getCustomDocumentId() { private Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus resolutionStatus_; /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatus ResolutionStatus = 31; + * @return Whether the resolutionStatus field is set. */ + @java.lang.Override public boolean hasResolutionStatus() { - return ((bitField0_ & 0x10000000) == 0x10000000); + return ((bitField0_ & 0x10000000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatus ResolutionStatus = 31; + * @return The resolutionStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus getResolutionStatus() { - return resolutionStatus_; + return resolutionStatus_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance() : resolutionStatus_; } /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatus ResolutionStatus = 31; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusOrBuilder getResolutionStatusOrBuilder() { - return resolutionStatus_; + return resolutionStatus_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance() : resolutionStatus_; } public static final int REVOCATIONSTATUS_FIELD_NUMBER = 32; - private Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus revocationStatus_; + private int revocationStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 32 [default = UnknownRevocationStatus]; + * @return Whether the revocationStatus field is set. */ - public boolean hasRevocationStatus() { - return ((bitField0_ & 0x20000000) == 0x20000000); + @java.lang.Override public boolean hasRevocationStatus() { + return ((bitField0_ & 0x20000000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 32 [default = UnknownRevocationStatus]; + * @return The revocationStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus getRevocationStatus() { - return revocationStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus getRevocationStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.forNumber(revocationStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus : result; } public static final int SENDTIMESTAMPTICKS_FIELD_NUMBER = 33; - private long sendTimestampTicks_; + private long sendTimestampTicks_ = 0L; /** * optional sfixed64 SendTimestampTicks = 33; + * @return Whether the sendTimestampTicks field is set. */ + @java.lang.Override public boolean hasSendTimestampTicks() { - return ((bitField0_ & 0x40000000) == 0x40000000); + return ((bitField0_ & 0x40000000) != 0); } /** * optional sfixed64 SendTimestampTicks = 33; + * @return The sendTimestampTicks. */ + @java.lang.Override public long getSendTimestampTicks() { return sendTimestampTicks_; } public static final int DELIVERYTIMESTAMPTICKS_FIELD_NUMBER = 34; - private long deliveryTimestampTicks_; + private long deliveryTimestampTicks_ = 0L; /** * optional sfixed64 DeliveryTimestampTicks = 34; + * @return Whether the deliveryTimestampTicks field is set. */ + @java.lang.Override public boolean hasDeliveryTimestampTicks() { - return ((bitField0_ & 0x80000000) == 0x80000000); + return ((bitField0_ & 0x80000000) != 0); } /** * optional sfixed64 DeliveryTimestampTicks = 34; + * @return The deliveryTimestampTicks. */ + @java.lang.Override public long getDeliveryTimestampTicks() { return deliveryTimestampTicks_; } public static final int FORWARDDOCUMENTEVENTS_FIELD_NUMBER = 35; + @SuppressWarnings("serial") private java.util.List forwardDocumentEvents_; /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 35; */ + @java.lang.Override public java.util.List getForwardDocumentEventsList() { return forwardDocumentEvents_; } /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 35; */ + @java.lang.Override public java.util.List getForwardDocumentEventsOrBuilderList() { return forwardDocumentEvents_; @@ -3776,18 +3567,21 @@ public java.util.Listrepeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 35; */ + @java.lang.Override public int getForwardDocumentEventsCount() { return forwardDocumentEvents_.size(); } /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 35; */ + @java.lang.Override public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent getForwardDocumentEvents(int index) { return forwardDocumentEvents_.get(index); } /** * repeated .Diadoc.Api.Proto.ForwardDocumentEvent ForwardDocumentEvents = 35; */ + @java.lang.Override public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder getForwardDocumentEventsOrBuilder( int index) { return forwardDocumentEvents_.get(index); @@ -3797,127 +3591,157 @@ public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata reconciliationActMetadata_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata ReconciliationActMetadata = 38; + * @return Whether the reconciliationActMetadata field is set. */ + @java.lang.Override public boolean hasReconciliationActMetadata() { - return ((bitField1_ & 0x00000001) == 0x00000001); + return ((bitField1_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata ReconciliationActMetadata = 38; + * @return The reconciliationActMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata getReconciliationActMetadata() { - return reconciliationActMetadata_; + return reconciliationActMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance() : reconciliationActMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata ReconciliationActMetadata = 38; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadataOrBuilder getReconciliationActMetadataOrBuilder() { - return reconciliationActMetadata_; + return reconciliationActMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance() : reconciliationActMetadata_; } public static final int CONTRACTMETADATA_FIELD_NUMBER = 39; private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata contractMetadata_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata ContractMetadata = 39; + * @return Whether the contractMetadata field is set. */ + @java.lang.Override public boolean hasContractMetadata() { - return ((bitField1_ & 0x00000002) == 0x00000002); + return ((bitField1_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata ContractMetadata = 39; + * @return The contractMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata getContractMetadata() { - return contractMetadata_; + return contractMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance() : contractMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata ContractMetadata = 39; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadataOrBuilder getContractMetadataOrBuilder() { - return contractMetadata_; + return contractMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance() : contractMetadata_; } public static final int TORG13METADATA_FIELD_NUMBER = 40; private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata torg13Metadata_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg13Metadata = 40; + * @return Whether the torg13Metadata field is set. */ + @java.lang.Override public boolean hasTorg13Metadata() { - return ((bitField1_ & 0x00000004) == 0x00000004); + return ((bitField1_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg13Metadata = 40; + * @return The torg13Metadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getTorg13Metadata() { - return torg13Metadata_; + return torg13Metadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : torg13Metadata_; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg13Metadata = 40; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadataOrBuilder getTorg13MetadataOrBuilder() { - return torg13Metadata_; + return torg13Metadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : torg13Metadata_; } public static final int SERVICEDETAILSMETADATA_FIELD_NUMBER = 41; private Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata serviceDetailsMetadata_; /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata ServiceDetailsMetadata = 41; + * @return Whether the serviceDetailsMetadata field is set. */ + @java.lang.Override public boolean hasServiceDetailsMetadata() { - return ((bitField1_ & 0x00000008) == 0x00000008); + return ((bitField1_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata ServiceDetailsMetadata = 41; + * @return The serviceDetailsMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata getServiceDetailsMetadata() { - return serviceDetailsMetadata_; + return serviceDetailsMetadata_ == null ? Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance() : serviceDetailsMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata ServiceDetailsMetadata = 41; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadataOrBuilder getServiceDetailsMetadataOrBuilder() { - return serviceDetailsMetadata_; + return serviceDetailsMetadata_ == null ? Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance() : serviceDetailsMetadata_; } public static final int ROAMINGNOTIFICATIONSTATUS_FIELD_NUMBER = 42; - private Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus roamingNotificationStatus_; + private int roamingNotificationStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.RoamingNotificationStatus RoamingNotificationStatus = 42 [default = UnknownRoamingNotificationStatus]; + * @return Whether the roamingNotificationStatus field is set. */ - public boolean hasRoamingNotificationStatus() { - return ((bitField1_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasRoamingNotificationStatus() { + return ((bitField1_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Documents.RoamingNotificationStatus RoamingNotificationStatus = 42 [default = UnknownRoamingNotificationStatus]; + * @return The roamingNotificationStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus getRoamingNotificationStatus() { - return roamingNotificationStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus getRoamingNotificationStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus.forNumber(roamingNotificationStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus.UnknownRoamingNotificationStatus : result; } public static final int HASCUSTOMPRINTFORM_FIELD_NUMBER = 43; - private boolean hasCustomPrintForm_; + private boolean hasCustomPrintForm_ = false; /** * optional bool HasCustomPrintForm = 43 [default = false]; + * @return Whether the hasCustomPrintForm field is set. */ + @java.lang.Override public boolean hasHasCustomPrintForm() { - return ((bitField1_ & 0x00000020) == 0x00000020); + return ((bitField1_ & 0x00000020) != 0); } /** * optional bool HasCustomPrintForm = 43 [default = false]; + * @return The hasCustomPrintForm. */ + @java.lang.Override public boolean getHasCustomPrintForm() { return hasCustomPrintForm_; } public static final int CUSTOMDATA_FIELD_NUMBER = 44; + @SuppressWarnings("serial") private java.util.List customData_; /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 44; */ + @java.lang.Override public java.util.List getCustomDataList() { return customData_; } /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 44; */ + @java.lang.Override public java.util.List getCustomDataOrBuilderList() { return customData_; @@ -3925,34 +3749,42 @@ public java.util.List getC /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 44; */ + @java.lang.Override public int getCustomDataCount() { return customData_.size(); } /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 44; */ + @java.lang.Override public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem getCustomData(int index) { return customData_.get(index); } /** * repeated .Diadoc.Api.Proto.CustomDataItem CustomData = 44; */ + @java.lang.Override public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBuilder( int index) { return customData_.get(index); } public static final int PACKETID_FIELD_NUMBER = 45; - private java.lang.Object packetId_; + @SuppressWarnings("serial") + private volatile java.lang.Object packetId_ = ""; /** * optional string PacketId = 45; + * @return Whether the packetId field is set. */ + @java.lang.Override public boolean hasPacketId() { - return ((bitField1_ & 0x00000040) == 0x00000040); + return ((bitField1_ & 0x00000040) != 0); } /** * optional string PacketId = 45; + * @return The packetId. */ + @java.lang.Override public java.lang.String getPacketId() { java.lang.Object ref = packetId_; if (ref instanceof java.lang.String) { @@ -3969,7 +3801,9 @@ public java.lang.String getPacketId() { } /** * optional string PacketId = 45; + * @return The bytes for packetId. */ + @java.lang.Override public com.google.protobuf.ByteString getPacketIdBytes() { java.lang.Object ref = packetId_; @@ -3985,112 +3819,140 @@ public java.lang.String getPacketId() { } public static final int DOCUMENTDIRECTION_FIELD_NUMBER = 46; - private Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection documentDirection_; + private int documentDirection_ = 0; /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 46 [default = UnknownDocumentDirection]; + * @return Whether the documentDirection field is set. */ - public boolean hasDocumentDirection() { - return ((bitField1_ & 0x00000080) == 0x00000080); + @java.lang.Override public boolean hasDocumentDirection() { + return ((bitField1_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 46 [default = UnknownDocumentDirection]; + * @return The documentDirection. */ - public Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection() { - return documentDirection_; + @java.lang.Override public Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection() { + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection result = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.forNumber(documentDirection_); + return result == null ? Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection : result; } public static final int LASTMODIFICATIONTIMESTAMPTICKS_FIELD_NUMBER = 47; - private long lastModificationTimestampTicks_; + private long lastModificationTimestampTicks_ = 0L; /** * optional sfixed64 LastModificationTimestampTicks = 47; + * @return Whether the lastModificationTimestampTicks field is set. */ + @java.lang.Override public boolean hasLastModificationTimestampTicks() { - return ((bitField1_ & 0x00000100) == 0x00000100); + return ((bitField1_ & 0x00000100) != 0); } /** * optional sfixed64 LastModificationTimestampTicks = 47; + * @return The lastModificationTimestampTicks. */ + @java.lang.Override public long getLastModificationTimestampTicks() { return lastModificationTimestampTicks_; } public static final int ISENCRYPTEDCONTENT_FIELD_NUMBER = 48; - private boolean isEncryptedContent_; + private boolean isEncryptedContent_ = false; /** * optional bool IsEncryptedContent = 48; + * @return Whether the isEncryptedContent field is set. */ + @java.lang.Override public boolean hasIsEncryptedContent() { - return ((bitField1_ & 0x00000200) == 0x00000200); + return ((bitField1_ & 0x00000200) != 0); } /** * optional bool IsEncryptedContent = 48; + * @return The isEncryptedContent. */ + @java.lang.Override public boolean getIsEncryptedContent() { return isEncryptedContent_; } public static final int SENDERSIGNATURESTATUS_FIELD_NUMBER = 49; - private Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus senderSignatureStatus_; + private int senderSignatureStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 49 [default = UnknownSenderSignatureStatus]; + * @return Whether the senderSignatureStatus field is set. */ - public boolean hasSenderSignatureStatus() { - return ((bitField1_ & 0x00000400) == 0x00000400); + @java.lang.Override public boolean hasSenderSignatureStatus() { + return ((bitField1_ & 0x00000400) != 0); } /** * optional .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 49 [default = UnknownSenderSignatureStatus]; + * @return The senderSignatureStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus getSenderSignatureStatus() { - return senderSignatureStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus getSenderSignatureStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.forNumber(senderSignatureStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus : result; } public static final int SUPPLEMENTARYAGREEMENTMETADATA_FIELD_NUMBER = 50; private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata supplementaryAgreementMetadata_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata SupplementaryAgreementMetadata = 50; + * @return Whether the supplementaryAgreementMetadata field is set. */ + @java.lang.Override public boolean hasSupplementaryAgreementMetadata() { - return ((bitField1_ & 0x00000800) == 0x00000800); + return ((bitField1_ & 0x00000800) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata SupplementaryAgreementMetadata = 50; + * @return The supplementaryAgreementMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata getSupplementaryAgreementMetadata() { - return supplementaryAgreementMetadata_; + return supplementaryAgreementMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance() : supplementaryAgreementMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata SupplementaryAgreementMetadata = 50; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadataOrBuilder getSupplementaryAgreementMetadataOrBuilder() { - return supplementaryAgreementMetadata_; + return supplementaryAgreementMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance() : supplementaryAgreementMetadata_; } public static final int ISREAD_FIELD_NUMBER = 51; - private boolean isRead_; + private boolean isRead_ = false; /** * optional bool IsRead = 51 [default = false]; + * @return Whether the isRead field is set. */ + @java.lang.Override public boolean hasIsRead() { - return ((bitField1_ & 0x00001000) == 0x00001000); + return ((bitField1_ & 0x00001000) != 0); } /** * optional bool IsRead = 51 [default = false]; + * @return The isRead. */ + @java.lang.Override public boolean getIsRead() { return isRead_; } public static final int ROAMINGNOTIFICATIONSTATUSDESCRIPTION_FIELD_NUMBER = 52; - private java.lang.Object roamingNotificationStatusDescription_; + @SuppressWarnings("serial") + private volatile java.lang.Object roamingNotificationStatusDescription_ = ""; /** * optional string RoamingNotificationStatusDescription = 52; + * @return Whether the roamingNotificationStatusDescription field is set. */ + @java.lang.Override public boolean hasRoamingNotificationStatusDescription() { - return ((bitField1_ & 0x00002000) == 0x00002000); + return ((bitField1_ & 0x00002000) != 0); } /** * optional string RoamingNotificationStatusDescription = 52; + * @return The roamingNotificationStatusDescription. */ + @java.lang.Override public java.lang.String getRoamingNotificationStatusDescription() { java.lang.Object ref = roamingNotificationStatusDescription_; if (ref instanceof java.lang.String) { @@ -4107,7 +3969,9 @@ public java.lang.String getRoamingNotificationStatusDescription() { } /** * optional string RoamingNotificationStatusDescription = 52; + * @return The bytes for roamingNotificationStatusDescription. */ + @java.lang.Override public com.google.protobuf.ByteString getRoamingNotificationStatusDescriptionBytes() { java.lang.Object ref = roamingNotificationStatusDescription_; @@ -4123,16 +3987,20 @@ public java.lang.String getRoamingNotificationStatusDescription() { } public static final int PACKETISLOCKED_FIELD_NUMBER = 53; - private boolean packetIsLocked_; + private boolean packetIsLocked_ = false; /** * optional bool PacketIsLocked = 53 [default = false]; + * @return Whether the packetIsLocked field is set. */ + @java.lang.Override public boolean hasPacketIsLocked() { - return ((bitField1_ & 0x00004000) == 0x00004000); + return ((bitField1_ & 0x00004000) != 0); } /** * optional bool PacketIsLocked = 53 [default = false]; + * @return The packetIsLocked. */ + @java.lang.Override public boolean getPacketIsLocked() { return packetIsLocked_; } @@ -4141,139 +4009,174 @@ public boolean getPacketIsLocked() { private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata priceListAgreementMetadata_; /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata PriceListAgreementMetadata = 54; + * @return Whether the priceListAgreementMetadata field is set. */ + @java.lang.Override public boolean hasPriceListAgreementMetadata() { - return ((bitField1_ & 0x00008000) == 0x00008000); + return ((bitField1_ & 0x00008000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata PriceListAgreementMetadata = 54; + * @return The priceListAgreementMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getPriceListAgreementMetadata() { - return priceListAgreementMetadata_; + return priceListAgreementMetadata_ == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : priceListAgreementMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata PriceListAgreementMetadata = 54; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadataOrBuilder getPriceListAgreementMetadataOrBuilder() { - return priceListAgreementMetadata_; + return priceListAgreementMetadata_ == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : priceListAgreementMetadata_; } public static final int CERTIFICATEREGISTRYMETADATA_FIELD_NUMBER = 55; private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata certificateRegistryMetadata_; /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata CertificateRegistryMetadata = 55; + * @return Whether the certificateRegistryMetadata field is set. */ + @java.lang.Override public boolean hasCertificateRegistryMetadata() { - return ((bitField1_ & 0x00010000) == 0x00010000); + return ((bitField1_ & 0x00010000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata CertificateRegistryMetadata = 55; + * @return The certificateRegistryMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getCertificateRegistryMetadata() { - return certificateRegistryMetadata_; + return certificateRegistryMetadata_ == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : certificateRegistryMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata CertificateRegistryMetadata = 55; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadataOrBuilder getCertificateRegistryMetadataOrBuilder() { - return certificateRegistryMetadata_; + return certificateRegistryMetadata_ == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : certificateRegistryMetadata_; } public static final int UNIVERSALTRANSFERDOCUMENTMETADATA_FIELD_NUMBER = 56; private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata universalTransferDocumentMetadata_; /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata UniversalTransferDocumentMetadata = 56; + * @return Whether the universalTransferDocumentMetadata field is set. */ + @java.lang.Override public boolean hasUniversalTransferDocumentMetadata() { - return ((bitField1_ & 0x00020000) == 0x00020000); + return ((bitField1_ & 0x00020000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata UniversalTransferDocumentMetadata = 56; + * @return The universalTransferDocumentMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata getUniversalTransferDocumentMetadata() { - return universalTransferDocumentMetadata_; + return universalTransferDocumentMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance() : universalTransferDocumentMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata UniversalTransferDocumentMetadata = 56; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadataOrBuilder getUniversalTransferDocumentMetadataOrBuilder() { - return universalTransferDocumentMetadata_; + return universalTransferDocumentMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance() : universalTransferDocumentMetadata_; } public static final int UNIVERSALTRANSFERDOCUMENTREVISIONMETADATA_FIELD_NUMBER = 57; private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata universalTransferDocumentRevisionMetadata_; /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata UniversalTransferDocumentRevisionMetadata = 57; + * @return Whether the universalTransferDocumentRevisionMetadata field is set. */ + @java.lang.Override public boolean hasUniversalTransferDocumentRevisionMetadata() { - return ((bitField1_ & 0x00040000) == 0x00040000); + return ((bitField1_ & 0x00040000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata UniversalTransferDocumentRevisionMetadata = 57; + * @return The universalTransferDocumentRevisionMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata getUniversalTransferDocumentRevisionMetadata() { - return universalTransferDocumentRevisionMetadata_; + return universalTransferDocumentRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance() : universalTransferDocumentRevisionMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata UniversalTransferDocumentRevisionMetadata = 57; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadataOrBuilder getUniversalTransferDocumentRevisionMetadataOrBuilder() { - return universalTransferDocumentRevisionMetadata_; + return universalTransferDocumentRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance() : universalTransferDocumentRevisionMetadata_; } public static final int UNIVERSALCORRECTIONDOCUMENTMETADATA_FIELD_NUMBER = 58; private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata universalCorrectionDocumentMetadata_; /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata UniversalCorrectionDocumentMetadata = 58; + * @return Whether the universalCorrectionDocumentMetadata field is set. */ + @java.lang.Override public boolean hasUniversalCorrectionDocumentMetadata() { - return ((bitField1_ & 0x00080000) == 0x00080000); + return ((bitField1_ & 0x00080000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata UniversalCorrectionDocumentMetadata = 58; + * @return The universalCorrectionDocumentMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata getUniversalCorrectionDocumentMetadata() { - return universalCorrectionDocumentMetadata_; + return universalCorrectionDocumentMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance() : universalCorrectionDocumentMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata UniversalCorrectionDocumentMetadata = 58; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadataOrBuilder getUniversalCorrectionDocumentMetadataOrBuilder() { - return universalCorrectionDocumentMetadata_; + return universalCorrectionDocumentMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance() : universalCorrectionDocumentMetadata_; } public static final int UNIVERSALCORRECTIONDOCUMENTREVISIONMETADATA_FIELD_NUMBER = 59; private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata universalCorrectionDocumentRevisionMetadata_; /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata = 59; + * @return Whether the universalCorrectionDocumentRevisionMetadata field is set. */ + @java.lang.Override public boolean hasUniversalCorrectionDocumentRevisionMetadata() { - return ((bitField1_ & 0x00100000) == 0x00100000); + return ((bitField1_ & 0x00100000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata = 59; + * @return The universalCorrectionDocumentRevisionMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata getUniversalCorrectionDocumentRevisionMetadata() { - return universalCorrectionDocumentRevisionMetadata_; + return universalCorrectionDocumentRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance() : universalCorrectionDocumentRevisionMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata = 59; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadataOrBuilder getUniversalCorrectionDocumentRevisionMetadataOrBuilder() { - return universalCorrectionDocumentRevisionMetadata_; + return universalCorrectionDocumentRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance() : universalCorrectionDocumentRevisionMetadata_; } public static final int RESOLUTIONROUTEID_FIELD_NUMBER = 60; - private java.lang.Object resolutionRouteId_; + @SuppressWarnings("serial") + private volatile java.lang.Object resolutionRouteId_ = ""; /** * optional string ResolutionRouteId = 60 [default = ""]; + * @return Whether the resolutionRouteId field is set. */ + @java.lang.Override public boolean hasResolutionRouteId() { - return ((bitField1_ & 0x00200000) == 0x00200000); + return ((bitField1_ & 0x00200000) != 0); } /** * optional string ResolutionRouteId = 60 [default = ""]; + * @return The resolutionRouteId. */ + @java.lang.Override public java.lang.String getResolutionRouteId() { java.lang.Object ref = resolutionRouteId_; if (ref instanceof java.lang.String) { @@ -4290,7 +4193,9 @@ public java.lang.String getResolutionRouteId() { } /** * optional string ResolutionRouteId = 60 [default = ""]; + * @return The bytes for resolutionRouteId. */ + @java.lang.Override public com.google.protobuf.ByteString getResolutionRouteIdBytes() { java.lang.Object ref = resolutionRouteId_; @@ -4306,16 +4211,21 @@ public java.lang.String getResolutionRouteId() { } public static final int ATTACHMENTVERSION_FIELD_NUMBER = 61; - private java.lang.Object attachmentVersion_; + @SuppressWarnings("serial") + private volatile java.lang.Object attachmentVersion_ = ""; /** * optional string AttachmentVersion = 61; + * @return Whether the attachmentVersion field is set. */ + @java.lang.Override public boolean hasAttachmentVersion() { - return ((bitField1_ & 0x00400000) == 0x00400000); + return ((bitField1_ & 0x00400000) != 0); } /** * optional string AttachmentVersion = 61; + * @return The attachmentVersion. */ + @java.lang.Override public java.lang.String getAttachmentVersion() { java.lang.Object ref = attachmentVersion_; if (ref instanceof java.lang.String) { @@ -4332,7 +4242,9 @@ public java.lang.String getAttachmentVersion() { } /** * optional string AttachmentVersion = 61; + * @return The bytes for attachmentVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getAttachmentVersionBytes() { java.lang.Object ref = attachmentVersion_; @@ -4348,31 +4260,39 @@ public java.lang.String getAttachmentVersion() { } public static final int PROXYSIGNATURESTATUS_FIELD_NUMBER = 62; - private Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus proxySignatureStatus_; + private int proxySignatureStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ProxySignatureStatus ProxySignatureStatus = 62 [default = UnknownProxySignatureStatus]; + * @return Whether the proxySignatureStatus field is set. */ - public boolean hasProxySignatureStatus() { - return ((bitField1_ & 0x00800000) == 0x00800000); + @java.lang.Override public boolean hasProxySignatureStatus() { + return ((bitField1_ & 0x00800000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ProxySignatureStatus ProxySignatureStatus = 62 [default = UnknownProxySignatureStatus]; + * @return The proxySignatureStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus getProxySignatureStatus() { - return proxySignatureStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus getProxySignatureStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus.forNumber(proxySignatureStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus.UnknownProxySignatureStatus : result; } public static final int TYPENAMEDID_FIELD_NUMBER = 63; - private java.lang.Object typeNamedId_; + @SuppressWarnings("serial") + private volatile java.lang.Object typeNamedId_ = ""; /** * required string TypeNamedId = 63; + * @return Whether the typeNamedId field is set. */ + @java.lang.Override public boolean hasTypeNamedId() { - return ((bitField1_ & 0x01000000) == 0x01000000); + return ((bitField1_ & 0x01000000) != 0); } /** * required string TypeNamedId = 63; + * @return The typeNamedId. */ + @java.lang.Override public java.lang.String getTypeNamedId() { java.lang.Object ref = typeNamedId_; if (ref instanceof java.lang.String) { @@ -4389,7 +4309,9 @@ public java.lang.String getTypeNamedId() { } /** * required string TypeNamedId = 63; + * @return The bytes for typeNamedId. */ + @java.lang.Override public com.google.protobuf.ByteString getTypeNamedIdBytes() { java.lang.Object ref = typeNamedId_; @@ -4405,16 +4327,21 @@ public java.lang.String getTypeNamedId() { } public static final int FUNCTION_FIELD_NUMBER = 64; - private java.lang.Object function_; + @SuppressWarnings("serial") + private volatile java.lang.Object function_ = ""; /** * required string Function = 64; + * @return Whether the function field is set. */ + @java.lang.Override public boolean hasFunction() { - return ((bitField1_ & 0x02000000) == 0x02000000); + return ((bitField1_ & 0x02000000) != 0); } /** * required string Function = 64; + * @return The function. */ + @java.lang.Override public java.lang.String getFunction() { java.lang.Object ref = function_; if (ref instanceof java.lang.String) { @@ -4431,7 +4358,9 @@ public java.lang.String getFunction() { } /** * required string Function = 64; + * @return The bytes for function. */ + @java.lang.Override public com.google.protobuf.ByteString getFunctionBytes() { java.lang.Object ref = function_; @@ -4447,31 +4376,40 @@ public java.lang.String getFunction() { } public static final int WORKFLOWID_FIELD_NUMBER = 65; - private int workflowId_; + private int workflowId_ = 0; /** * required int32 WorkflowId = 65; + * @return Whether the workflowId field is set. */ + @java.lang.Override public boolean hasWorkflowId() { - return ((bitField1_ & 0x04000000) == 0x04000000); + return ((bitField1_ & 0x04000000) != 0); } /** * required int32 WorkflowId = 65; + * @return The workflowId. */ + @java.lang.Override public int getWorkflowId() { return workflowId_; } public static final int TITLE_FIELD_NUMBER = 66; - private java.lang.Object title_; + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; /** * required string Title = 66; + * @return Whether the title field is set. */ + @java.lang.Override public boolean hasTitle() { - return ((bitField1_ & 0x08000000) == 0x08000000); + return ((bitField1_ & 0x08000000) != 0); } /** * required string Title = 66; + * @return The title. */ + @java.lang.Override public java.lang.String getTitle() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { @@ -4488,7 +4426,9 @@ public java.lang.String getTitle() { } /** * required string Title = 66; + * @return The bytes for title. */ + @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; @@ -4504,16 +4444,19 @@ public java.lang.String getTitle() { } public static final int METADATA_FIELD_NUMBER = 67; + @SuppressWarnings("serial") private java.util.List metadata_; /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 67; */ + @java.lang.Override public java.util.List getMetadataList() { return metadata_; } /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 67; */ + @java.lang.Override public java.util.List getMetadataOrBuilderList() { return metadata_; @@ -4521,18 +4464,21 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 67; */ + @java.lang.Override public int getMetadataCount() { return metadata_.size(); } /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 67; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem getMetadata(int index) { return metadata_.get(index); } /** * repeated .Diadoc.Api.Proto.Events.MetadataItem Metadata = 67; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder getMetadataOrBuilder( int index) { return metadata_.get(index); @@ -4542,112 +4488,140 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder private Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata recipientReceiptMetadata_; /** * required .Diadoc.Api.Proto.Documents.RecipientReceiptMetadata RecipientReceiptMetadata = 68; + * @return Whether the recipientReceiptMetadata field is set. */ + @java.lang.Override public boolean hasRecipientReceiptMetadata() { - return ((bitField1_ & 0x10000000) == 0x10000000); + return ((bitField1_ & 0x10000000) != 0); } /** * required .Diadoc.Api.Proto.Documents.RecipientReceiptMetadata RecipientReceiptMetadata = 68; + * @return The recipientReceiptMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata getRecipientReceiptMetadata() { - return recipientReceiptMetadata_; + return recipientReceiptMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance() : recipientReceiptMetadata_; } /** * required .Diadoc.Api.Proto.Documents.RecipientReceiptMetadata RecipientReceiptMetadata = 68; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadataOrBuilder getRecipientReceiptMetadataOrBuilder() { - return recipientReceiptMetadata_; + return recipientReceiptMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance() : recipientReceiptMetadata_; } public static final int CONFIRMATIONMETADATA_FIELD_NUMBER = 69; private Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata confirmationMetadata_; /** * required .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 69; + * @return Whether the confirmationMetadata field is set. */ + @java.lang.Override public boolean hasConfirmationMetadata() { - return ((bitField1_ & 0x20000000) == 0x20000000); + return ((bitField1_ & 0x20000000) != 0); } /** * required .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 69; + * @return The confirmationMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata getConfirmationMetadata() { - return confirmationMetadata_; + return confirmationMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance() : confirmationMetadata_; } /** * required .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 69; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadataOrBuilder getConfirmationMetadataOrBuilder() { - return confirmationMetadata_; + return confirmationMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance() : confirmationMetadata_; } public static final int RECIPIENTRESPONSESTATUS_FIELD_NUMBER = 70; - private Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus recipientResponseStatus_; + private int recipientResponseStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus RecipientResponseStatus = 70 [default = RecipientResponseStatusUnknown]; + * @return Whether the recipientResponseStatus field is set. */ - public boolean hasRecipientResponseStatus() { - return ((bitField1_ & 0x40000000) == 0x40000000); + @java.lang.Override public boolean hasRecipientResponseStatus() { + return ((bitField1_ & 0x40000000) != 0); } /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus RecipientResponseStatus = 70 [default = RecipientResponseStatusUnknown]; + * @return The recipientResponseStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus getRecipientResponseStatus() { - return recipientResponseStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus getRecipientResponseStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.forNumber(recipientResponseStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown : result; } public static final int AMENDMENTREQUESTMETADATA_FIELD_NUMBER = 71; private Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata amendmentRequestMetadata_; /** * required .Diadoc.Api.Proto.Documents.AmendmentRequestMetadata AmendmentRequestMetadata = 71; + * @return Whether the amendmentRequestMetadata field is set. */ + @java.lang.Override public boolean hasAmendmentRequestMetadata() { - return ((bitField1_ & 0x80000000) == 0x80000000); + return ((bitField1_ & 0x80000000) != 0); } /** * required .Diadoc.Api.Proto.Documents.AmendmentRequestMetadata AmendmentRequestMetadata = 71; + * @return The amendmentRequestMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata getAmendmentRequestMetadata() { - return amendmentRequestMetadata_; + return amendmentRequestMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance() : amendmentRequestMetadata_; } /** * required .Diadoc.Api.Proto.Documents.AmendmentRequestMetadata AmendmentRequestMetadata = 71; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadataOrBuilder getAmendmentRequestMetadataOrBuilder() { - return amendmentRequestMetadata_; + return amendmentRequestMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance() : amendmentRequestMetadata_; } public static final int ORIGIN_FIELD_NUMBER = 72; private Diadoc.Api.Proto.Documents.DocumentProtos.Origin origin_; /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 72; + * @return Whether the origin field is set. */ + @java.lang.Override public boolean hasOrigin() { - return ((bitField2_ & 0x00000001) == 0x00000001); + return ((bitField2_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 72; + * @return The origin. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getOrigin() { - return origin_; + return origin_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance() : origin_; } /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 72; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.OriginOrBuilder getOriginOrBuilder() { - return origin_; + return origin_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance() : origin_; } public static final int EDITINGSETTINGID_FIELD_NUMBER = 73; - private java.lang.Object editingSettingId_; + @SuppressWarnings("serial") + private volatile java.lang.Object editingSettingId_ = ""; /** * optional string EditingSettingId = 73 [default = ""]; + * @return Whether the editingSettingId field is set. */ + @java.lang.Override public boolean hasEditingSettingId() { - return ((bitField2_ & 0x00000002) == 0x00000002); + return ((bitField2_ & 0x00000002) != 0); } /** * optional string EditingSettingId = 73 [default = ""]; + * @return The editingSettingId. */ + @java.lang.Override public java.lang.String getEditingSettingId() { java.lang.Object ref = editingSettingId_; if (ref instanceof java.lang.String) { @@ -4664,7 +4638,9 @@ public java.lang.String getEditingSettingId() { } /** * optional string EditingSettingId = 73 [default = ""]; + * @return The bytes for editingSettingId. */ + @java.lang.Override public com.google.protobuf.ByteString getEditingSettingIdBytes() { java.lang.Object ref = editingSettingId_; @@ -4680,52 +4656,65 @@ public java.lang.String getEditingSettingId() { } public static final int LOCKMODE_FIELD_NUMBER = 74; - private Diadoc.Api.Proto.LockModeProtos.LockMode lockMode_; + private int lockMode_ = 1; /** * required .Diadoc.Api.Proto.LockMode LockMode = 74 [default = None]; + * @return Whether the lockMode field is set. */ - public boolean hasLockMode() { - return ((bitField2_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasLockMode() { + return ((bitField2_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.LockMode LockMode = 74 [default = None]; + * @return The lockMode. */ - public Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode() { - return lockMode_; + @java.lang.Override public Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode() { + Diadoc.Api.Proto.LockModeProtos.LockMode result = Diadoc.Api.Proto.LockModeProtos.LockMode.forNumber(lockMode_); + return result == null ? Diadoc.Api.Proto.LockModeProtos.LockMode.None : result; } public static final int SENDERRECEIPTMETADATA_FIELD_NUMBER = 75; private Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata senderReceiptMetadata_; /** * required .Diadoc.Api.Proto.Documents.SenderReceiptMetadata SenderReceiptMetadata = 75; + * @return Whether the senderReceiptMetadata field is set. */ + @java.lang.Override public boolean hasSenderReceiptMetadata() { - return ((bitField2_ & 0x00000008) == 0x00000008); + return ((bitField2_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.Documents.SenderReceiptMetadata SenderReceiptMetadata = 75; + * @return The senderReceiptMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata getSenderReceiptMetadata() { - return senderReceiptMetadata_; + return senderReceiptMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance() : senderReceiptMetadata_; } /** * required .Diadoc.Api.Proto.Documents.SenderReceiptMetadata SenderReceiptMetadata = 75; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadataOrBuilder getSenderReceiptMetadataOrBuilder() { - return senderReceiptMetadata_; + return senderReceiptMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance() : senderReceiptMetadata_; } public static final int VERSION_FIELD_NUMBER = 76; - private java.lang.Object version_; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * required string Version = 76; + * @return Whether the version field is set. */ + @java.lang.Override public boolean hasVersion() { - return ((bitField2_ & 0x00000010) == 0x00000010); + return ((bitField2_ & 0x00000010) != 0); } /** * required string Version = 76; + * @return The version. */ + @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { @@ -4742,7 +4731,9 @@ public java.lang.String getVersion() { } /** * required string Version = 76; + * @return The bytes for version. */ + @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -4758,16 +4749,19 @@ public java.lang.String getVersion() { } public static final int LASTOUTERDOCFLOWS_FIELD_NUMBER = 77; + @SuppressWarnings("serial") private java.util.List lastOuterDocflows_; /** * repeated .Diadoc.Api.Proto.Documents.LastOuterDocflow LastOuterDocflows = 77; */ + @java.lang.Override public java.util.List getLastOuterDocflowsList() { return lastOuterDocflows_; } /** * repeated .Diadoc.Api.Proto.Documents.LastOuterDocflow LastOuterDocflows = 77; */ + @java.lang.Override public java.util.List getLastOuterDocflowsOrBuilderList() { return lastOuterDocflows_; @@ -4775,34 +4769,42 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Documents.LastOuterDocflow LastOuterDocflows = 77; */ + @java.lang.Override public int getLastOuterDocflowsCount() { return lastOuterDocflows_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.LastOuterDocflow LastOuterDocflows = 77; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow getLastOuterDocflows(int index) { return lastOuterDocflows_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.LastOuterDocflow LastOuterDocflows = 77; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflowOrBuilder getLastOuterDocflowsOrBuilder( int index) { return lastOuterDocflows_.get(index); } public static final int PROXYBOXID_FIELD_NUMBER = 78; - private java.lang.Object proxyBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object proxyBoxId_ = ""; /** * optional string ProxyBoxId = 78; + * @return Whether the proxyBoxId field is set. */ + @java.lang.Override public boolean hasProxyBoxId() { - return ((bitField2_ & 0x00000020) == 0x00000020); + return ((bitField2_ & 0x00000020) != 0); } /** * optional string ProxyBoxId = 78; + * @return The proxyBoxId. */ + @java.lang.Override public java.lang.String getProxyBoxId() { java.lang.Object ref = proxyBoxId_; if (ref instanceof java.lang.String) { @@ -4819,7 +4821,9 @@ public java.lang.String getProxyBoxId() { } /** * optional string ProxyBoxId = 78; + * @return The bytes for proxyBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getProxyBoxIdBytes() { java.lang.Object ref = proxyBoxId_; @@ -4835,16 +4839,21 @@ public java.lang.String getProxyBoxId() { } public static final int PROXYDEPARTMENTID_FIELD_NUMBER = 79; - private java.lang.Object proxyDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object proxyDepartmentId_ = ""; /** * optional string ProxyDepartmentId = 79; + * @return Whether the proxyDepartmentId field is set. */ + @java.lang.Override public boolean hasProxyDepartmentId() { - return ((bitField2_ & 0x00000040) == 0x00000040); + return ((bitField2_ & 0x00000040) != 0); } /** * optional string ProxyDepartmentId = 79; + * @return The proxyDepartmentId. */ + @java.lang.Override public java.lang.String getProxyDepartmentId() { java.lang.Object ref = proxyDepartmentId_; if (ref instanceof java.lang.String) { @@ -4861,7 +4870,9 @@ public java.lang.String getProxyDepartmentId() { } /** * optional string ProxyDepartmentId = 79; + * @return The bytes for proxyDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getProxyDepartmentIdBytes() { java.lang.Object ref = proxyDepartmentId_; @@ -4880,104 +4891,30 @@ public java.lang.String getProxyDepartmentId() { private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 docflowStatus_; /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 80; + * @return Whether the docflowStatus field is set. */ + @java.lang.Override public boolean hasDocflowStatus() { - return ((bitField2_ & 0x00000080) == 0x00000080); + return ((bitField2_ & 0x00000080) != 0); } /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 80; + * @return The docflowStatus. */ + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 getDocflowStatus() { - return docflowStatus_; + return docflowStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance() : docflowStatus_; } /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 80; */ + @java.lang.Override public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3OrBuilder getDocflowStatusOrBuilder() { - return docflowStatus_; + return docflowStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance() : docflowStatus_; } - private void initFields() { - indexKey_ = ""; - messageId_ = ""; - entityId_ = ""; - creationTimestampTicks_ = 0L; - counteragentBoxId_ = ""; - documentType_ = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType; - initialDocumentIds_ = java.util.Collections.emptyList(); - subordinateDocumentIds_ = java.util.Collections.emptyList(); - content_ = Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance(); - fileName_ = ""; - documentDate_ = ""; - documentNumber_ = ""; - nonformalizedDocumentMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); - invoiceMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance(); - trustConnectionRequestMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance(); - torg12Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - invoiceRevisionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance(); - invoiceCorrectionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance(); - invoiceCorrectionRevisionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance(); - acceptanceCertificateMetadata_ = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance(); - proformaInvoiceMetadata_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance(); - xmlTorg12Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - xmlAcceptanceCertificateMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - isDeleted_ = false; - departmentId_ = ""; - isTest_ = false; - fromDepartmentId_ = ""; - toDepartmentId_ = ""; - priceListMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance(); - customDocumentId_ = ""; - resolutionStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance(); - revocationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus; - sendTimestampTicks_ = 0L; - deliveryTimestampTicks_ = 0L; - forwardDocumentEvents_ = java.util.Collections.emptyList(); - reconciliationActMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance(); - contractMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance(); - torg13Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - serviceDetailsMetadata_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance(); - roamingNotificationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus.UnknownRoamingNotificationStatus; - hasCustomPrintForm_ = false; - customData_ = java.util.Collections.emptyList(); - packetId_ = ""; - documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; - lastModificationTimestampTicks_ = 0L; - isEncryptedContent_ = false; - senderSignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus; - supplementaryAgreementMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance(); - isRead_ = false; - roamingNotificationStatusDescription_ = ""; - packetIsLocked_ = false; - priceListAgreementMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); - certificateRegistryMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); - universalTransferDocumentMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance(); - universalTransferDocumentRevisionMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance(); - universalCorrectionDocumentMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance(); - universalCorrectionDocumentRevisionMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance(); - resolutionRouteId_ = ""; - attachmentVersion_ = ""; - proxySignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus.UnknownProxySignatureStatus; - typeNamedId_ = ""; - function_ = ""; - workflowId_ = 0; - title_ = ""; - metadata_ = java.util.Collections.emptyList(); - recipientReceiptMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance(); - confirmationMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance(); - recipientResponseStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown; - amendmentRequestMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance(); - origin_ = Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance(); - editingSettingId_ = ""; - lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.None; - senderReceiptMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance(); - version_ = ""; - lastOuterDocflows_ = java.util.Collections.emptyList(); - proxyBoxId_ = ""; - proxyDepartmentId_ = ""; - docflowStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5217,26 +5154,26 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIndexKeyBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, indexKey_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getMessageIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, messageId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getEntityIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, entityId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeSFixed64(4, creationTimestampTicks_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getCounteragentBoxIdBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, counteragentBoxId_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeEnum(6, documentType_.getNumber()); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, documentType_); } for (int i = 0; i < initialDocumentIds_.size(); i++) { output.writeMessage(7, initialDocumentIds_.get(i)); @@ -5244,248 +5181,244 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < subordinateDocumentIds_.size(); i++) { output.writeMessage(8, subordinateDocumentIds_.get(i)); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(9, content_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(9, getContent()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(10, getFileNameBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, fileName_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(11, getDocumentDateBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, documentDate_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(12, getDocumentNumberBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, documentNumber_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(13, nonformalizedDocumentMetadata_); + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(13, getNonformalizedDocumentMetadata()); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(14, invoiceMetadata_); + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(14, getInvoiceMetadata()); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(15, trustConnectionRequestMetadata_); + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(15, getTrustConnectionRequestMetadata()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(16, torg12Metadata_); + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(16, getTorg12Metadata()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(17, invoiceRevisionMetadata_); + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(17, getInvoiceRevisionMetadata()); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeMessage(18, invoiceCorrectionMetadata_); + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(18, getInvoiceCorrectionMetadata()); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeMessage(19, invoiceCorrectionRevisionMetadata_); + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(19, getInvoiceCorrectionRevisionMetadata()); } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - output.writeMessage(20, acceptanceCertificateMetadata_); + if (((bitField0_ & 0x00020000) != 0)) { + output.writeMessage(20, getAcceptanceCertificateMetadata()); } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - output.writeMessage(21, proformaInvoiceMetadata_); + if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(21, getProformaInvoiceMetadata()); } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - output.writeMessage(22, xmlTorg12Metadata_); + if (((bitField0_ & 0x00080000) != 0)) { + output.writeMessage(22, getXmlTorg12Metadata()); } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - output.writeMessage(23, xmlAcceptanceCertificateMetadata_); + if (((bitField0_ & 0x00100000) != 0)) { + output.writeMessage(23, getXmlAcceptanceCertificateMetadata()); } - if (((bitField0_ & 0x00200000) == 0x00200000)) { + if (((bitField0_ & 0x00200000) != 0)) { output.writeBool(24, isDeleted_); } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - output.writeBytes(25, getDepartmentIdBytes()); + if (((bitField0_ & 0x00400000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 25, departmentId_); } - if (((bitField0_ & 0x00800000) == 0x00800000)) { + if (((bitField0_ & 0x00800000) != 0)) { output.writeBool(26, isTest_); } - if (((bitField0_ & 0x01000000) == 0x01000000)) { - output.writeBytes(27, getFromDepartmentIdBytes()); + if (((bitField0_ & 0x01000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 27, fromDepartmentId_); } - if (((bitField0_ & 0x02000000) == 0x02000000)) { - output.writeBytes(28, getToDepartmentIdBytes()); + if (((bitField0_ & 0x02000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 28, toDepartmentId_); } - if (((bitField0_ & 0x04000000) == 0x04000000)) { - output.writeMessage(29, priceListMetadata_); + if (((bitField0_ & 0x04000000) != 0)) { + output.writeMessage(29, getPriceListMetadata()); } - if (((bitField0_ & 0x08000000) == 0x08000000)) { - output.writeBytes(30, getCustomDocumentIdBytes()); + if (((bitField0_ & 0x08000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 30, customDocumentId_); } - if (((bitField0_ & 0x10000000) == 0x10000000)) { - output.writeMessage(31, resolutionStatus_); + if (((bitField0_ & 0x10000000) != 0)) { + output.writeMessage(31, getResolutionStatus()); } - if (((bitField0_ & 0x20000000) == 0x20000000)) { - output.writeEnum(32, revocationStatus_.getNumber()); + if (((bitField0_ & 0x20000000) != 0)) { + output.writeEnum(32, revocationStatus_); } - if (((bitField0_ & 0x40000000) == 0x40000000)) { + if (((bitField0_ & 0x40000000) != 0)) { output.writeSFixed64(33, sendTimestampTicks_); } - if (((bitField0_ & 0x80000000) == 0x80000000)) { + if (((bitField0_ & 0x80000000) != 0)) { output.writeSFixed64(34, deliveryTimestampTicks_); } for (int i = 0; i < forwardDocumentEvents_.size(); i++) { output.writeMessage(35, forwardDocumentEvents_.get(i)); } - if (((bitField1_ & 0x00000001) == 0x00000001)) { - output.writeMessage(38, reconciliationActMetadata_); + if (((bitField1_ & 0x00000001) != 0)) { + output.writeMessage(38, getReconciliationActMetadata()); } - if (((bitField1_ & 0x00000002) == 0x00000002)) { - output.writeMessage(39, contractMetadata_); + if (((bitField1_ & 0x00000002) != 0)) { + output.writeMessage(39, getContractMetadata()); } - if (((bitField1_ & 0x00000004) == 0x00000004)) { - output.writeMessage(40, torg13Metadata_); + if (((bitField1_ & 0x00000004) != 0)) { + output.writeMessage(40, getTorg13Metadata()); } - if (((bitField1_ & 0x00000008) == 0x00000008)) { - output.writeMessage(41, serviceDetailsMetadata_); + if (((bitField1_ & 0x00000008) != 0)) { + output.writeMessage(41, getServiceDetailsMetadata()); } - if (((bitField1_ & 0x00000010) == 0x00000010)) { - output.writeEnum(42, roamingNotificationStatus_.getNumber()); + if (((bitField1_ & 0x00000010) != 0)) { + output.writeEnum(42, roamingNotificationStatus_); } - if (((bitField1_ & 0x00000020) == 0x00000020)) { + if (((bitField1_ & 0x00000020) != 0)) { output.writeBool(43, hasCustomPrintForm_); } for (int i = 0; i < customData_.size(); i++) { output.writeMessage(44, customData_.get(i)); } - if (((bitField1_ & 0x00000040) == 0x00000040)) { - output.writeBytes(45, getPacketIdBytes()); + if (((bitField1_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 45, packetId_); } - if (((bitField1_ & 0x00000080) == 0x00000080)) { - output.writeEnum(46, documentDirection_.getNumber()); + if (((bitField1_ & 0x00000080) != 0)) { + output.writeEnum(46, documentDirection_); } - if (((bitField1_ & 0x00000100) == 0x00000100)) { + if (((bitField1_ & 0x00000100) != 0)) { output.writeSFixed64(47, lastModificationTimestampTicks_); } - if (((bitField1_ & 0x00000200) == 0x00000200)) { + if (((bitField1_ & 0x00000200) != 0)) { output.writeBool(48, isEncryptedContent_); } - if (((bitField1_ & 0x00000400) == 0x00000400)) { - output.writeEnum(49, senderSignatureStatus_.getNumber()); + if (((bitField1_ & 0x00000400) != 0)) { + output.writeEnum(49, senderSignatureStatus_); } - if (((bitField1_ & 0x00000800) == 0x00000800)) { - output.writeMessage(50, supplementaryAgreementMetadata_); + if (((bitField1_ & 0x00000800) != 0)) { + output.writeMessage(50, getSupplementaryAgreementMetadata()); } - if (((bitField1_ & 0x00001000) == 0x00001000)) { + if (((bitField1_ & 0x00001000) != 0)) { output.writeBool(51, isRead_); } - if (((bitField1_ & 0x00002000) == 0x00002000)) { - output.writeBytes(52, getRoamingNotificationStatusDescriptionBytes()); + if (((bitField1_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 52, roamingNotificationStatusDescription_); } - if (((bitField1_ & 0x00004000) == 0x00004000)) { + if (((bitField1_ & 0x00004000) != 0)) { output.writeBool(53, packetIsLocked_); } - if (((bitField1_ & 0x00008000) == 0x00008000)) { - output.writeMessage(54, priceListAgreementMetadata_); + if (((bitField1_ & 0x00008000) != 0)) { + output.writeMessage(54, getPriceListAgreementMetadata()); } - if (((bitField1_ & 0x00010000) == 0x00010000)) { - output.writeMessage(55, certificateRegistryMetadata_); + if (((bitField1_ & 0x00010000) != 0)) { + output.writeMessage(55, getCertificateRegistryMetadata()); } - if (((bitField1_ & 0x00020000) == 0x00020000)) { - output.writeMessage(56, universalTransferDocumentMetadata_); + if (((bitField1_ & 0x00020000) != 0)) { + output.writeMessage(56, getUniversalTransferDocumentMetadata()); } - if (((bitField1_ & 0x00040000) == 0x00040000)) { - output.writeMessage(57, universalTransferDocumentRevisionMetadata_); + if (((bitField1_ & 0x00040000) != 0)) { + output.writeMessage(57, getUniversalTransferDocumentRevisionMetadata()); } - if (((bitField1_ & 0x00080000) == 0x00080000)) { - output.writeMessage(58, universalCorrectionDocumentMetadata_); + if (((bitField1_ & 0x00080000) != 0)) { + output.writeMessage(58, getUniversalCorrectionDocumentMetadata()); } - if (((bitField1_ & 0x00100000) == 0x00100000)) { - output.writeMessage(59, universalCorrectionDocumentRevisionMetadata_); + if (((bitField1_ & 0x00100000) != 0)) { + output.writeMessage(59, getUniversalCorrectionDocumentRevisionMetadata()); } - if (((bitField1_ & 0x00200000) == 0x00200000)) { - output.writeBytes(60, getResolutionRouteIdBytes()); + if (((bitField1_ & 0x00200000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 60, resolutionRouteId_); } - if (((bitField1_ & 0x00400000) == 0x00400000)) { - output.writeBytes(61, getAttachmentVersionBytes()); + if (((bitField1_ & 0x00400000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 61, attachmentVersion_); } - if (((bitField1_ & 0x00800000) == 0x00800000)) { - output.writeEnum(62, proxySignatureStatus_.getNumber()); + if (((bitField1_ & 0x00800000) != 0)) { + output.writeEnum(62, proxySignatureStatus_); } - if (((bitField1_ & 0x01000000) == 0x01000000)) { - output.writeBytes(63, getTypeNamedIdBytes()); + if (((bitField1_ & 0x01000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 63, typeNamedId_); } - if (((bitField1_ & 0x02000000) == 0x02000000)) { - output.writeBytes(64, getFunctionBytes()); + if (((bitField1_ & 0x02000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 64, function_); } - if (((bitField1_ & 0x04000000) == 0x04000000)) { + if (((bitField1_ & 0x04000000) != 0)) { output.writeInt32(65, workflowId_); } - if (((bitField1_ & 0x08000000) == 0x08000000)) { - output.writeBytes(66, getTitleBytes()); + if (((bitField1_ & 0x08000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 66, title_); } for (int i = 0; i < metadata_.size(); i++) { output.writeMessage(67, metadata_.get(i)); } - if (((bitField1_ & 0x10000000) == 0x10000000)) { - output.writeMessage(68, recipientReceiptMetadata_); + if (((bitField1_ & 0x10000000) != 0)) { + output.writeMessage(68, getRecipientReceiptMetadata()); } - if (((bitField1_ & 0x20000000) == 0x20000000)) { - output.writeMessage(69, confirmationMetadata_); + if (((bitField1_ & 0x20000000) != 0)) { + output.writeMessage(69, getConfirmationMetadata()); } - if (((bitField1_ & 0x40000000) == 0x40000000)) { - output.writeEnum(70, recipientResponseStatus_.getNumber()); + if (((bitField1_ & 0x40000000) != 0)) { + output.writeEnum(70, recipientResponseStatus_); } - if (((bitField1_ & 0x80000000) == 0x80000000)) { - output.writeMessage(71, amendmentRequestMetadata_); + if (((bitField1_ & 0x80000000) != 0)) { + output.writeMessage(71, getAmendmentRequestMetadata()); } - if (((bitField2_ & 0x00000001) == 0x00000001)) { - output.writeMessage(72, origin_); + if (((bitField2_ & 0x00000001) != 0)) { + output.writeMessage(72, getOrigin()); } - if (((bitField2_ & 0x00000002) == 0x00000002)) { - output.writeBytes(73, getEditingSettingIdBytes()); + if (((bitField2_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 73, editingSettingId_); } - if (((bitField2_ & 0x00000004) == 0x00000004)) { - output.writeEnum(74, lockMode_.getNumber()); + if (((bitField2_ & 0x00000004) != 0)) { + output.writeEnum(74, lockMode_); } - if (((bitField2_ & 0x00000008) == 0x00000008)) { - output.writeMessage(75, senderReceiptMetadata_); + if (((bitField2_ & 0x00000008) != 0)) { + output.writeMessage(75, getSenderReceiptMetadata()); } - if (((bitField2_ & 0x00000010) == 0x00000010)) { - output.writeBytes(76, getVersionBytes()); + if (((bitField2_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 76, version_); } for (int i = 0; i < lastOuterDocflows_.size(); i++) { output.writeMessage(77, lastOuterDocflows_.get(i)); } - if (((bitField2_ & 0x00000020) == 0x00000020)) { - output.writeBytes(78, getProxyBoxIdBytes()); + if (((bitField2_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 78, proxyBoxId_); } - if (((bitField2_ & 0x00000040) == 0x00000040)) { - output.writeBytes(79, getProxyDepartmentIdBytes()); + if (((bitField2_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 79, proxyDepartmentId_); } - if (((bitField2_ & 0x00000080) == 0x00000080)) { - output.writeMessage(80, docflowStatus_); + if (((bitField2_ & 0x00000080) != 0)) { + output.writeMessage(80, getDocflowStatus()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIndexKeyBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, indexKey_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getMessageIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, messageId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getEntityIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, entityId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(4, creationTimestampTicks_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getCounteragentBoxIdBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, counteragentBoxId_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, documentType_.getNumber()); + .computeEnumSize(6, documentType_); } for (int i = 0; i < initialDocumentIds_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -5495,107 +5428,100 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, subordinateDocumentIds_.get(i)); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, content_); + .computeMessageSize(9, getContent()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getFileNameBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, fileName_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getDocumentDateBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, documentDate_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getDocumentNumberBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, documentNumber_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, nonformalizedDocumentMetadata_); + .computeMessageSize(13, getNonformalizedDocumentMetadata()); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, invoiceMetadata_); + .computeMessageSize(14, getInvoiceMetadata()); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, trustConnectionRequestMetadata_); + .computeMessageSize(15, getTrustConnectionRequestMetadata()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, torg12Metadata_); + .computeMessageSize(16, getTorg12Metadata()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, invoiceRevisionMetadata_); + .computeMessageSize(17, getInvoiceRevisionMetadata()); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, invoiceCorrectionMetadata_); + .computeMessageSize(18, getInvoiceCorrectionMetadata()); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, invoiceCorrectionRevisionMetadata_); + .computeMessageSize(19, getInvoiceCorrectionRevisionMetadata()); } - if (((bitField0_ & 0x00020000) == 0x00020000)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, acceptanceCertificateMetadata_); + .computeMessageSize(20, getAcceptanceCertificateMetadata()); } - if (((bitField0_ & 0x00040000) == 0x00040000)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, proformaInvoiceMetadata_); + .computeMessageSize(21, getProformaInvoiceMetadata()); } - if (((bitField0_ & 0x00080000) == 0x00080000)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, xmlTorg12Metadata_); + .computeMessageSize(22, getXmlTorg12Metadata()); } - if (((bitField0_ & 0x00100000) == 0x00100000)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, xmlAcceptanceCertificateMetadata_); + .computeMessageSize(23, getXmlAcceptanceCertificateMetadata()); } - if (((bitField0_ & 0x00200000) == 0x00200000)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(24, isDeleted_); } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(25, getDepartmentIdBytes()); + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(25, departmentId_); } - if (((bitField0_ & 0x00800000) == 0x00800000)) { + if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(26, isTest_); } - if (((bitField0_ & 0x01000000) == 0x01000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(27, getFromDepartmentIdBytes()); + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(27, fromDepartmentId_); } - if (((bitField0_ & 0x02000000) == 0x02000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(28, getToDepartmentIdBytes()); + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(28, toDepartmentId_); } - if (((bitField0_ & 0x04000000) == 0x04000000)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, priceListMetadata_); + .computeMessageSize(29, getPriceListMetadata()); } - if (((bitField0_ & 0x08000000) == 0x08000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(30, getCustomDocumentIdBytes()); + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(30, customDocumentId_); } - if (((bitField0_ & 0x10000000) == 0x10000000)) { + if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, resolutionStatus_); + .computeMessageSize(31, getResolutionStatus()); } - if (((bitField0_ & 0x20000000) == 0x20000000)) { + if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(32, revocationStatus_.getNumber()); + .computeEnumSize(32, revocationStatus_); } - if (((bitField0_ & 0x40000000) == 0x40000000)) { + if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(33, sendTimestampTicks_); } - if (((bitField0_ & 0x80000000) == 0x80000000)) { + if (((bitField0_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(34, deliveryTimestampTicks_); } @@ -5603,27 +5529,27 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(35, forwardDocumentEvents_.get(i)); } - if (((bitField1_ & 0x00000001) == 0x00000001)) { + if (((bitField1_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, reconciliationActMetadata_); + .computeMessageSize(38, getReconciliationActMetadata()); } - if (((bitField1_ & 0x00000002) == 0x00000002)) { + if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, contractMetadata_); + .computeMessageSize(39, getContractMetadata()); } - if (((bitField1_ & 0x00000004) == 0x00000004)) { + if (((bitField1_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(40, torg13Metadata_); + .computeMessageSize(40, getTorg13Metadata()); } - if (((bitField1_ & 0x00000008) == 0x00000008)) { + if (((bitField1_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, serviceDetailsMetadata_); + .computeMessageSize(41, getServiceDetailsMetadata()); } - if (((bitField1_ & 0x00000010) == 0x00000010)) { + if (((bitField1_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(42, roamingNotificationStatus_.getNumber()); + .computeEnumSize(42, roamingNotificationStatus_); } - if (((bitField1_ & 0x00000020) == 0x00000020)) { + if (((bitField1_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(43, hasCustomPrintForm_); } @@ -5631,162 +5557,867 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(44, customData_.get(i)); } - if (((bitField1_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(45, getPacketIdBytes()); + if (((bitField1_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(45, packetId_); } - if (((bitField1_ & 0x00000080) == 0x00000080)) { + if (((bitField1_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(46, documentDirection_.getNumber()); + .computeEnumSize(46, documentDirection_); } - if (((bitField1_ & 0x00000100) == 0x00000100)) { + if (((bitField1_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(47, lastModificationTimestampTicks_); } - if (((bitField1_ & 0x00000200) == 0x00000200)) { + if (((bitField1_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(48, isEncryptedContent_); } - if (((bitField1_ & 0x00000400) == 0x00000400)) { + if (((bitField1_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(49, senderSignatureStatus_.getNumber()); + .computeEnumSize(49, senderSignatureStatus_); } - if (((bitField1_ & 0x00000800) == 0x00000800)) { + if (((bitField1_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(50, supplementaryAgreementMetadata_); + .computeMessageSize(50, getSupplementaryAgreementMetadata()); } - if (((bitField1_ & 0x00001000) == 0x00001000)) { + if (((bitField1_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(51, isRead_); } - if (((bitField1_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(52, getRoamingNotificationStatusDescriptionBytes()); + if (((bitField1_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(52, roamingNotificationStatusDescription_); } - if (((bitField1_ & 0x00004000) == 0x00004000)) { + if (((bitField1_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(53, packetIsLocked_); } - if (((bitField1_ & 0x00008000) == 0x00008000)) { + if (((bitField1_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(54, priceListAgreementMetadata_); + .computeMessageSize(54, getPriceListAgreementMetadata()); } - if (((bitField1_ & 0x00010000) == 0x00010000)) { + if (((bitField1_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(55, certificateRegistryMetadata_); + .computeMessageSize(55, getCertificateRegistryMetadata()); } - if (((bitField1_ & 0x00020000) == 0x00020000)) { + if (((bitField1_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(56, universalTransferDocumentMetadata_); + .computeMessageSize(56, getUniversalTransferDocumentMetadata()); } - if (((bitField1_ & 0x00040000) == 0x00040000)) { + if (((bitField1_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(57, universalTransferDocumentRevisionMetadata_); + .computeMessageSize(57, getUniversalTransferDocumentRevisionMetadata()); } - if (((bitField1_ & 0x00080000) == 0x00080000)) { + if (((bitField1_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(58, universalCorrectionDocumentMetadata_); + .computeMessageSize(58, getUniversalCorrectionDocumentMetadata()); } - if (((bitField1_ & 0x00100000) == 0x00100000)) { + if (((bitField1_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(59, universalCorrectionDocumentRevisionMetadata_); + .computeMessageSize(59, getUniversalCorrectionDocumentRevisionMetadata()); } - if (((bitField1_ & 0x00200000) == 0x00200000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(60, getResolutionRouteIdBytes()); + if (((bitField1_ & 0x00200000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(60, resolutionRouteId_); } - if (((bitField1_ & 0x00400000) == 0x00400000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(61, getAttachmentVersionBytes()); + if (((bitField1_ & 0x00400000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(61, attachmentVersion_); } - if (((bitField1_ & 0x00800000) == 0x00800000)) { + if (((bitField1_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(62, proxySignatureStatus_.getNumber()); + .computeEnumSize(62, proxySignatureStatus_); } - if (((bitField1_ & 0x01000000) == 0x01000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(63, getTypeNamedIdBytes()); + if (((bitField1_ & 0x01000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(63, typeNamedId_); } - if (((bitField1_ & 0x02000000) == 0x02000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(64, getFunctionBytes()); + if (((bitField1_ & 0x02000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(64, function_); } - if (((bitField1_ & 0x04000000) == 0x04000000)) { + if (((bitField1_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(65, workflowId_); } - if (((bitField1_ & 0x08000000) == 0x08000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(66, getTitleBytes()); + if (((bitField1_ & 0x08000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(66, title_); } for (int i = 0; i < metadata_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(67, metadata_.get(i)); } - if (((bitField1_ & 0x10000000) == 0x10000000)) { + if (((bitField1_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(68, recipientReceiptMetadata_); + .computeMessageSize(68, getRecipientReceiptMetadata()); } - if (((bitField1_ & 0x20000000) == 0x20000000)) { + if (((bitField1_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(69, confirmationMetadata_); + .computeMessageSize(69, getConfirmationMetadata()); } - if (((bitField1_ & 0x40000000) == 0x40000000)) { + if (((bitField1_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(70, recipientResponseStatus_.getNumber()); + .computeEnumSize(70, recipientResponseStatus_); } - if (((bitField1_ & 0x80000000) == 0x80000000)) { + if (((bitField1_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(71, amendmentRequestMetadata_); + .computeMessageSize(71, getAmendmentRequestMetadata()); } - if (((bitField2_ & 0x00000001) == 0x00000001)) { + if (((bitField2_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(72, origin_); + .computeMessageSize(72, getOrigin()); } - if (((bitField2_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(73, getEditingSettingIdBytes()); + if (((bitField2_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(73, editingSettingId_); } - if (((bitField2_ & 0x00000004) == 0x00000004)) { + if (((bitField2_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(74, lockMode_.getNumber()); + .computeEnumSize(74, lockMode_); } - if (((bitField2_ & 0x00000008) == 0x00000008)) { + if (((bitField2_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(75, senderReceiptMetadata_); + .computeMessageSize(75, getSenderReceiptMetadata()); } - if (((bitField2_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(76, getVersionBytes()); + if (((bitField2_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(76, version_); } for (int i = 0; i < lastOuterDocflows_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(77, lastOuterDocflows_.get(i)); } - if (((bitField2_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(78, getProxyBoxIdBytes()); + if (((bitField2_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(78, proxyBoxId_); } - if (((bitField2_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(79, getProxyDepartmentIdBytes()); + if (((bitField2_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(79, proxyDepartmentId_); } - if (((bitField2_ & 0x00000080) == 0x00000080)) { + if (((bitField2_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(80, docflowStatus_); + .computeMessageSize(80, getDocflowStatus()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentProtos.Document)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentProtos.Document other = (Diadoc.Api.Proto.Documents.DocumentProtos.Document) obj; + + if (hasIndexKey() != other.hasIndexKey()) return false; + if (hasIndexKey()) { + if (!getIndexKey() + .equals(other.getIndexKey())) return false; + } + if (hasMessageId() != other.hasMessageId()) return false; + if (hasMessageId()) { + if (!getMessageId() + .equals(other.getMessageId())) return false; + } + if (hasEntityId() != other.hasEntityId()) return false; + if (hasEntityId()) { + if (!getEntityId() + .equals(other.getEntityId())) return false; + } + if (hasCreationTimestampTicks() != other.hasCreationTimestampTicks()) return false; + if (hasCreationTimestampTicks()) { + if (getCreationTimestampTicks() + != other.getCreationTimestampTicks()) return false; + } + if (hasCounteragentBoxId() != other.hasCounteragentBoxId()) return false; + if (hasCounteragentBoxId()) { + if (!getCounteragentBoxId() + .equals(other.getCounteragentBoxId())) return false; + } + if (hasDocumentType() != other.hasDocumentType()) return false; + if (hasDocumentType()) { + if (documentType_ != other.documentType_) return false; + } + if (!getInitialDocumentIdsList() + .equals(other.getInitialDocumentIdsList())) return false; + if (!getSubordinateDocumentIdsList() + .equals(other.getSubordinateDocumentIdsList())) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent() + .equals(other.getContent())) return false; + } + if (hasFileName() != other.hasFileName()) return false; + if (hasFileName()) { + if (!getFileName() + .equals(other.getFileName())) return false; + } + if (hasDocumentDate() != other.hasDocumentDate()) return false; + if (hasDocumentDate()) { + if (!getDocumentDate() + .equals(other.getDocumentDate())) return false; + } + if (hasDocumentNumber() != other.hasDocumentNumber()) return false; + if (hasDocumentNumber()) { + if (!getDocumentNumber() + .equals(other.getDocumentNumber())) return false; + } + if (hasNonformalizedDocumentMetadata() != other.hasNonformalizedDocumentMetadata()) return false; + if (hasNonformalizedDocumentMetadata()) { + if (!getNonformalizedDocumentMetadata() + .equals(other.getNonformalizedDocumentMetadata())) return false; + } + if (hasInvoiceMetadata() != other.hasInvoiceMetadata()) return false; + if (hasInvoiceMetadata()) { + if (!getInvoiceMetadata() + .equals(other.getInvoiceMetadata())) return false; + } + if (hasTrustConnectionRequestMetadata() != other.hasTrustConnectionRequestMetadata()) return false; + if (hasTrustConnectionRequestMetadata()) { + if (!getTrustConnectionRequestMetadata() + .equals(other.getTrustConnectionRequestMetadata())) return false; + } + if (hasTorg12Metadata() != other.hasTorg12Metadata()) return false; + if (hasTorg12Metadata()) { + if (!getTorg12Metadata() + .equals(other.getTorg12Metadata())) return false; + } + if (hasInvoiceRevisionMetadata() != other.hasInvoiceRevisionMetadata()) return false; + if (hasInvoiceRevisionMetadata()) { + if (!getInvoiceRevisionMetadata() + .equals(other.getInvoiceRevisionMetadata())) return false; + } + if (hasInvoiceCorrectionMetadata() != other.hasInvoiceCorrectionMetadata()) return false; + if (hasInvoiceCorrectionMetadata()) { + if (!getInvoiceCorrectionMetadata() + .equals(other.getInvoiceCorrectionMetadata())) return false; + } + if (hasInvoiceCorrectionRevisionMetadata() != other.hasInvoiceCorrectionRevisionMetadata()) return false; + if (hasInvoiceCorrectionRevisionMetadata()) { + if (!getInvoiceCorrectionRevisionMetadata() + .equals(other.getInvoiceCorrectionRevisionMetadata())) return false; + } + if (hasAcceptanceCertificateMetadata() != other.hasAcceptanceCertificateMetadata()) return false; + if (hasAcceptanceCertificateMetadata()) { + if (!getAcceptanceCertificateMetadata() + .equals(other.getAcceptanceCertificateMetadata())) return false; + } + if (hasProformaInvoiceMetadata() != other.hasProformaInvoiceMetadata()) return false; + if (hasProformaInvoiceMetadata()) { + if (!getProformaInvoiceMetadata() + .equals(other.getProformaInvoiceMetadata())) return false; + } + if (hasXmlTorg12Metadata() != other.hasXmlTorg12Metadata()) return false; + if (hasXmlTorg12Metadata()) { + if (!getXmlTorg12Metadata() + .equals(other.getXmlTorg12Metadata())) return false; + } + if (hasXmlAcceptanceCertificateMetadata() != other.hasXmlAcceptanceCertificateMetadata()) return false; + if (hasXmlAcceptanceCertificateMetadata()) { + if (!getXmlAcceptanceCertificateMetadata() + .equals(other.getXmlAcceptanceCertificateMetadata())) return false; + } + if (hasIsDeleted() != other.hasIsDeleted()) return false; + if (hasIsDeleted()) { + if (getIsDeleted() + != other.getIsDeleted()) return false; + } + if (hasDepartmentId() != other.hasDepartmentId()) return false; + if (hasDepartmentId()) { + if (!getDepartmentId() + .equals(other.getDepartmentId())) return false; + } + if (hasIsTest() != other.hasIsTest()) return false; + if (hasIsTest()) { + if (getIsTest() + != other.getIsTest()) return false; + } + if (hasFromDepartmentId() != other.hasFromDepartmentId()) return false; + if (hasFromDepartmentId()) { + if (!getFromDepartmentId() + .equals(other.getFromDepartmentId())) return false; + } + if (hasToDepartmentId() != other.hasToDepartmentId()) return false; + if (hasToDepartmentId()) { + if (!getToDepartmentId() + .equals(other.getToDepartmentId())) return false; + } + if (hasPriceListMetadata() != other.hasPriceListMetadata()) return false; + if (hasPriceListMetadata()) { + if (!getPriceListMetadata() + .equals(other.getPriceListMetadata())) return false; + } + if (hasCustomDocumentId() != other.hasCustomDocumentId()) return false; + if (hasCustomDocumentId()) { + if (!getCustomDocumentId() + .equals(other.getCustomDocumentId())) return false; + } + if (hasResolutionStatus() != other.hasResolutionStatus()) return false; + if (hasResolutionStatus()) { + if (!getResolutionStatus() + .equals(other.getResolutionStatus())) return false; + } + if (hasRevocationStatus() != other.hasRevocationStatus()) return false; + if (hasRevocationStatus()) { + if (revocationStatus_ != other.revocationStatus_) return false; + } + if (hasSendTimestampTicks() != other.hasSendTimestampTicks()) return false; + if (hasSendTimestampTicks()) { + if (getSendTimestampTicks() + != other.getSendTimestampTicks()) return false; + } + if (hasDeliveryTimestampTicks() != other.hasDeliveryTimestampTicks()) return false; + if (hasDeliveryTimestampTicks()) { + if (getDeliveryTimestampTicks() + != other.getDeliveryTimestampTicks()) return false; + } + if (!getForwardDocumentEventsList() + .equals(other.getForwardDocumentEventsList())) return false; + if (hasReconciliationActMetadata() != other.hasReconciliationActMetadata()) return false; + if (hasReconciliationActMetadata()) { + if (!getReconciliationActMetadata() + .equals(other.getReconciliationActMetadata())) return false; + } + if (hasContractMetadata() != other.hasContractMetadata()) return false; + if (hasContractMetadata()) { + if (!getContractMetadata() + .equals(other.getContractMetadata())) return false; + } + if (hasTorg13Metadata() != other.hasTorg13Metadata()) return false; + if (hasTorg13Metadata()) { + if (!getTorg13Metadata() + .equals(other.getTorg13Metadata())) return false; + } + if (hasServiceDetailsMetadata() != other.hasServiceDetailsMetadata()) return false; + if (hasServiceDetailsMetadata()) { + if (!getServiceDetailsMetadata() + .equals(other.getServiceDetailsMetadata())) return false; + } + if (hasRoamingNotificationStatus() != other.hasRoamingNotificationStatus()) return false; + if (hasRoamingNotificationStatus()) { + if (roamingNotificationStatus_ != other.roamingNotificationStatus_) return false; + } + if (hasHasCustomPrintForm() != other.hasHasCustomPrintForm()) return false; + if (hasHasCustomPrintForm()) { + if (getHasCustomPrintForm() + != other.getHasCustomPrintForm()) return false; + } + if (!getCustomDataList() + .equals(other.getCustomDataList())) return false; + if (hasPacketId() != other.hasPacketId()) return false; + if (hasPacketId()) { + if (!getPacketId() + .equals(other.getPacketId())) return false; + } + if (hasDocumentDirection() != other.hasDocumentDirection()) return false; + if (hasDocumentDirection()) { + if (documentDirection_ != other.documentDirection_) return false; + } + if (hasLastModificationTimestampTicks() != other.hasLastModificationTimestampTicks()) return false; + if (hasLastModificationTimestampTicks()) { + if (getLastModificationTimestampTicks() + != other.getLastModificationTimestampTicks()) return false; + } + if (hasIsEncryptedContent() != other.hasIsEncryptedContent()) return false; + if (hasIsEncryptedContent()) { + if (getIsEncryptedContent() + != other.getIsEncryptedContent()) return false; + } + if (hasSenderSignatureStatus() != other.hasSenderSignatureStatus()) return false; + if (hasSenderSignatureStatus()) { + if (senderSignatureStatus_ != other.senderSignatureStatus_) return false; + } + if (hasSupplementaryAgreementMetadata() != other.hasSupplementaryAgreementMetadata()) return false; + if (hasSupplementaryAgreementMetadata()) { + if (!getSupplementaryAgreementMetadata() + .equals(other.getSupplementaryAgreementMetadata())) return false; + } + if (hasIsRead() != other.hasIsRead()) return false; + if (hasIsRead()) { + if (getIsRead() + != other.getIsRead()) return false; + } + if (hasRoamingNotificationStatusDescription() != other.hasRoamingNotificationStatusDescription()) return false; + if (hasRoamingNotificationStatusDescription()) { + if (!getRoamingNotificationStatusDescription() + .equals(other.getRoamingNotificationStatusDescription())) return false; + } + if (hasPacketIsLocked() != other.hasPacketIsLocked()) return false; + if (hasPacketIsLocked()) { + if (getPacketIsLocked() + != other.getPacketIsLocked()) return false; + } + if (hasPriceListAgreementMetadata() != other.hasPriceListAgreementMetadata()) return false; + if (hasPriceListAgreementMetadata()) { + if (!getPriceListAgreementMetadata() + .equals(other.getPriceListAgreementMetadata())) return false; + } + if (hasCertificateRegistryMetadata() != other.hasCertificateRegistryMetadata()) return false; + if (hasCertificateRegistryMetadata()) { + if (!getCertificateRegistryMetadata() + .equals(other.getCertificateRegistryMetadata())) return false; + } + if (hasUniversalTransferDocumentMetadata() != other.hasUniversalTransferDocumentMetadata()) return false; + if (hasUniversalTransferDocumentMetadata()) { + if (!getUniversalTransferDocumentMetadata() + .equals(other.getUniversalTransferDocumentMetadata())) return false; + } + if (hasUniversalTransferDocumentRevisionMetadata() != other.hasUniversalTransferDocumentRevisionMetadata()) return false; + if (hasUniversalTransferDocumentRevisionMetadata()) { + if (!getUniversalTransferDocumentRevisionMetadata() + .equals(other.getUniversalTransferDocumentRevisionMetadata())) return false; + } + if (hasUniversalCorrectionDocumentMetadata() != other.hasUniversalCorrectionDocumentMetadata()) return false; + if (hasUniversalCorrectionDocumentMetadata()) { + if (!getUniversalCorrectionDocumentMetadata() + .equals(other.getUniversalCorrectionDocumentMetadata())) return false; + } + if (hasUniversalCorrectionDocumentRevisionMetadata() != other.hasUniversalCorrectionDocumentRevisionMetadata()) return false; + if (hasUniversalCorrectionDocumentRevisionMetadata()) { + if (!getUniversalCorrectionDocumentRevisionMetadata() + .equals(other.getUniversalCorrectionDocumentRevisionMetadata())) return false; + } + if (hasResolutionRouteId() != other.hasResolutionRouteId()) return false; + if (hasResolutionRouteId()) { + if (!getResolutionRouteId() + .equals(other.getResolutionRouteId())) return false; + } + if (hasAttachmentVersion() != other.hasAttachmentVersion()) return false; + if (hasAttachmentVersion()) { + if (!getAttachmentVersion() + .equals(other.getAttachmentVersion())) return false; + } + if (hasProxySignatureStatus() != other.hasProxySignatureStatus()) return false; + if (hasProxySignatureStatus()) { + if (proxySignatureStatus_ != other.proxySignatureStatus_) return false; + } + if (hasTypeNamedId() != other.hasTypeNamedId()) return false; + if (hasTypeNamedId()) { + if (!getTypeNamedId() + .equals(other.getTypeNamedId())) return false; + } + if (hasFunction() != other.hasFunction()) return false; + if (hasFunction()) { + if (!getFunction() + .equals(other.getFunction())) return false; + } + if (hasWorkflowId() != other.hasWorkflowId()) return false; + if (hasWorkflowId()) { + if (getWorkflowId() + != other.getWorkflowId()) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle() + .equals(other.getTitle())) return false; + } + if (!getMetadataList() + .equals(other.getMetadataList())) return false; + if (hasRecipientReceiptMetadata() != other.hasRecipientReceiptMetadata()) return false; + if (hasRecipientReceiptMetadata()) { + if (!getRecipientReceiptMetadata() + .equals(other.getRecipientReceiptMetadata())) return false; + } + if (hasConfirmationMetadata() != other.hasConfirmationMetadata()) return false; + if (hasConfirmationMetadata()) { + if (!getConfirmationMetadata() + .equals(other.getConfirmationMetadata())) return false; + } + if (hasRecipientResponseStatus() != other.hasRecipientResponseStatus()) return false; + if (hasRecipientResponseStatus()) { + if (recipientResponseStatus_ != other.recipientResponseStatus_) return false; + } + if (hasAmendmentRequestMetadata() != other.hasAmendmentRequestMetadata()) return false; + if (hasAmendmentRequestMetadata()) { + if (!getAmendmentRequestMetadata() + .equals(other.getAmendmentRequestMetadata())) return false; + } + if (hasOrigin() != other.hasOrigin()) return false; + if (hasOrigin()) { + if (!getOrigin() + .equals(other.getOrigin())) return false; + } + if (hasEditingSettingId() != other.hasEditingSettingId()) return false; + if (hasEditingSettingId()) { + if (!getEditingSettingId() + .equals(other.getEditingSettingId())) return false; + } + if (hasLockMode() != other.hasLockMode()) return false; + if (hasLockMode()) { + if (lockMode_ != other.lockMode_) return false; + } + if (hasSenderReceiptMetadata() != other.hasSenderReceiptMetadata()) return false; + if (hasSenderReceiptMetadata()) { + if (!getSenderReceiptMetadata() + .equals(other.getSenderReceiptMetadata())) return false; + } + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion() + .equals(other.getVersion())) return false; + } + if (!getLastOuterDocflowsList() + .equals(other.getLastOuterDocflowsList())) return false; + if (hasProxyBoxId() != other.hasProxyBoxId()) return false; + if (hasProxyBoxId()) { + if (!getProxyBoxId() + .equals(other.getProxyBoxId())) return false; + } + if (hasProxyDepartmentId() != other.hasProxyDepartmentId()) return false; + if (hasProxyDepartmentId()) { + if (!getProxyDepartmentId() + .equals(other.getProxyDepartmentId())) return false; + } + if (hasDocflowStatus() != other.hasDocflowStatus()) return false; + if (hasDocflowStatus()) { + if (!getDocflowStatus() + .equals(other.getDocflowStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIndexKey()) { + hash = (37 * hash) + INDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getIndexKey().hashCode(); + } + if (hasMessageId()) { + hash = (37 * hash) + MESSAGEID_FIELD_NUMBER; + hash = (53 * hash) + getMessageId().hashCode(); + } + if (hasEntityId()) { + hash = (37 * hash) + ENTITYID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + } + if (hasCreationTimestampTicks()) { + hash = (37 * hash) + CREATIONTIMESTAMPTICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreationTimestampTicks()); + } + if (hasCounteragentBoxId()) { + hash = (37 * hash) + COUNTERAGENTBOXID_FIELD_NUMBER; + hash = (53 * hash) + getCounteragentBoxId().hashCode(); + } + if (hasDocumentType()) { + hash = (37 * hash) + DOCUMENTTYPE_FIELD_NUMBER; + hash = (53 * hash) + documentType_; + } + if (getInitialDocumentIdsCount() > 0) { + hash = (37 * hash) + INITIALDOCUMENTIDS_FIELD_NUMBER; + hash = (53 * hash) + getInitialDocumentIdsList().hashCode(); + } + if (getSubordinateDocumentIdsCount() > 0) { + hash = (37 * hash) + SUBORDINATEDOCUMENTIDS_FIELD_NUMBER; + hash = (53 * hash) + getSubordinateDocumentIdsList().hashCode(); + } + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasFileName()) { + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + } + if (hasDocumentDate()) { + hash = (37 * hash) + DOCUMENTDATE_FIELD_NUMBER; + hash = (53 * hash) + getDocumentDate().hashCode(); + } + if (hasDocumentNumber()) { + hash = (37 * hash) + DOCUMENTNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getDocumentNumber().hashCode(); + } + if (hasNonformalizedDocumentMetadata()) { + hash = (37 * hash) + NONFORMALIZEDDOCUMENTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getNonformalizedDocumentMetadata().hashCode(); + } + if (hasInvoiceMetadata()) { + hash = (37 * hash) + INVOICEMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceMetadata().hashCode(); + } + if (hasTrustConnectionRequestMetadata()) { + hash = (37 * hash) + TRUSTCONNECTIONREQUESTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getTrustConnectionRequestMetadata().hashCode(); + } + if (hasTorg12Metadata()) { + hash = (37 * hash) + TORG12METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTorg12Metadata().hashCode(); + } + if (hasInvoiceRevisionMetadata()) { + hash = (37 * hash) + INVOICEREVISIONMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceRevisionMetadata().hashCode(); + } + if (hasInvoiceCorrectionMetadata()) { + hash = (37 * hash) + INVOICECORRECTIONMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceCorrectionMetadata().hashCode(); + } + if (hasInvoiceCorrectionRevisionMetadata()) { + hash = (37 * hash) + INVOICECORRECTIONREVISIONMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceCorrectionRevisionMetadata().hashCode(); + } + if (hasAcceptanceCertificateMetadata()) { + hash = (37 * hash) + ACCEPTANCECERTIFICATEMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getAcceptanceCertificateMetadata().hashCode(); + } + if (hasProformaInvoiceMetadata()) { + hash = (37 * hash) + PROFORMAINVOICEMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getProformaInvoiceMetadata().hashCode(); + } + if (hasXmlTorg12Metadata()) { + hash = (37 * hash) + XMLTORG12METADATA_FIELD_NUMBER; + hash = (53 * hash) + getXmlTorg12Metadata().hashCode(); + } + if (hasXmlAcceptanceCertificateMetadata()) { + hash = (37 * hash) + XMLACCEPTANCECERTIFICATEMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getXmlAcceptanceCertificateMetadata().hashCode(); + } + if (hasIsDeleted()) { + hash = (37 * hash) + ISDELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDeleted()); + } + if (hasDepartmentId()) { + hash = (37 * hash) + DEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDepartmentId().hashCode(); + } + if (hasIsTest()) { + hash = (37 * hash) + ISTEST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsTest()); + } + if (hasFromDepartmentId()) { + hash = (37 * hash) + FROMDEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getFromDepartmentId().hashCode(); + } + if (hasToDepartmentId()) { + hash = (37 * hash) + TODEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getToDepartmentId().hashCode(); + } + if (hasPriceListMetadata()) { + hash = (37 * hash) + PRICELISTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getPriceListMetadata().hashCode(); + } + if (hasCustomDocumentId()) { + hash = (37 * hash) + CUSTOMDOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getCustomDocumentId().hashCode(); + } + if (hasResolutionStatus()) { + hash = (37 * hash) + RESOLUTIONSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getResolutionStatus().hashCode(); + } + if (hasRevocationStatus()) { + hash = (37 * hash) + REVOCATIONSTATUS_FIELD_NUMBER; + hash = (53 * hash) + revocationStatus_; + } + if (hasSendTimestampTicks()) { + hash = (37 * hash) + SENDTIMESTAMPTICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSendTimestampTicks()); + } + if (hasDeliveryTimestampTicks()) { + hash = (37 * hash) + DELIVERYTIMESTAMPTICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeliveryTimestampTicks()); + } + if (getForwardDocumentEventsCount() > 0) { + hash = (37 * hash) + FORWARDDOCUMENTEVENTS_FIELD_NUMBER; + hash = (53 * hash) + getForwardDocumentEventsList().hashCode(); + } + if (hasReconciliationActMetadata()) { + hash = (37 * hash) + RECONCILIATIONACTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getReconciliationActMetadata().hashCode(); + } + if (hasContractMetadata()) { + hash = (37 * hash) + CONTRACTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getContractMetadata().hashCode(); + } + if (hasTorg13Metadata()) { + hash = (37 * hash) + TORG13METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTorg13Metadata().hashCode(); + } + if (hasServiceDetailsMetadata()) { + hash = (37 * hash) + SERVICEDETAILSMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getServiceDetailsMetadata().hashCode(); + } + if (hasRoamingNotificationStatus()) { + hash = (37 * hash) + ROAMINGNOTIFICATIONSTATUS_FIELD_NUMBER; + hash = (53 * hash) + roamingNotificationStatus_; + } + if (hasHasCustomPrintForm()) { + hash = (37 * hash) + HASCUSTOMPRINTFORM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasCustomPrintForm()); + } + if (getCustomDataCount() > 0) { + hash = (37 * hash) + CUSTOMDATA_FIELD_NUMBER; + hash = (53 * hash) + getCustomDataList().hashCode(); + } + if (hasPacketId()) { + hash = (37 * hash) + PACKETID_FIELD_NUMBER; + hash = (53 * hash) + getPacketId().hashCode(); + } + if (hasDocumentDirection()) { + hash = (37 * hash) + DOCUMENTDIRECTION_FIELD_NUMBER; + hash = (53 * hash) + documentDirection_; + } + if (hasLastModificationTimestampTicks()) { + hash = (37 * hash) + LASTMODIFICATIONTIMESTAMPTICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastModificationTimestampTicks()); + } + if (hasIsEncryptedContent()) { + hash = (37 * hash) + ISENCRYPTEDCONTENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsEncryptedContent()); + } + if (hasSenderSignatureStatus()) { + hash = (37 * hash) + SENDERSIGNATURESTATUS_FIELD_NUMBER; + hash = (53 * hash) + senderSignatureStatus_; + } + if (hasSupplementaryAgreementMetadata()) { + hash = (37 * hash) + SUPPLEMENTARYAGREEMENTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getSupplementaryAgreementMetadata().hashCode(); + } + if (hasIsRead()) { + hash = (37 * hash) + ISREAD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRead()); + } + if (hasRoamingNotificationStatusDescription()) { + hash = (37 * hash) + ROAMINGNOTIFICATIONSTATUSDESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getRoamingNotificationStatusDescription().hashCode(); + } + if (hasPacketIsLocked()) { + hash = (37 * hash) + PACKETISLOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPacketIsLocked()); + } + if (hasPriceListAgreementMetadata()) { + hash = (37 * hash) + PRICELISTAGREEMENTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getPriceListAgreementMetadata().hashCode(); + } + if (hasCertificateRegistryMetadata()) { + hash = (37 * hash) + CERTIFICATEREGISTRYMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getCertificateRegistryMetadata().hashCode(); + } + if (hasUniversalTransferDocumentMetadata()) { + hash = (37 * hash) + UNIVERSALTRANSFERDOCUMENTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getUniversalTransferDocumentMetadata().hashCode(); + } + if (hasUniversalTransferDocumentRevisionMetadata()) { + hash = (37 * hash) + UNIVERSALTRANSFERDOCUMENTREVISIONMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getUniversalTransferDocumentRevisionMetadata().hashCode(); + } + if (hasUniversalCorrectionDocumentMetadata()) { + hash = (37 * hash) + UNIVERSALCORRECTIONDOCUMENTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getUniversalCorrectionDocumentMetadata().hashCode(); + } + if (hasUniversalCorrectionDocumentRevisionMetadata()) { + hash = (37 * hash) + UNIVERSALCORRECTIONDOCUMENTREVISIONMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getUniversalCorrectionDocumentRevisionMetadata().hashCode(); + } + if (hasResolutionRouteId()) { + hash = (37 * hash) + RESOLUTIONROUTEID_FIELD_NUMBER; + hash = (53 * hash) + getResolutionRouteId().hashCode(); + } + if (hasAttachmentVersion()) { + hash = (37 * hash) + ATTACHMENTVERSION_FIELD_NUMBER; + hash = (53 * hash) + getAttachmentVersion().hashCode(); + } + if (hasProxySignatureStatus()) { + hash = (37 * hash) + PROXYSIGNATURESTATUS_FIELD_NUMBER; + hash = (53 * hash) + proxySignatureStatus_; + } + if (hasTypeNamedId()) { + hash = (37 * hash) + TYPENAMEDID_FIELD_NUMBER; + hash = (53 * hash) + getTypeNamedId().hashCode(); + } + if (hasFunction()) { + hash = (37 * hash) + FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getFunction().hashCode(); + } + if (hasWorkflowId()) { + hash = (37 * hash) + WORKFLOWID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (getMetadataCount() > 0) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadataList().hashCode(); + } + if (hasRecipientReceiptMetadata()) { + hash = (37 * hash) + RECIPIENTRECEIPTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getRecipientReceiptMetadata().hashCode(); + } + if (hasConfirmationMetadata()) { + hash = (37 * hash) + CONFIRMATIONMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationMetadata().hashCode(); + } + if (hasRecipientResponseStatus()) { + hash = (37 * hash) + RECIPIENTRESPONSESTATUS_FIELD_NUMBER; + hash = (53 * hash) + recipientResponseStatus_; + } + if (hasAmendmentRequestMetadata()) { + hash = (37 * hash) + AMENDMENTREQUESTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getAmendmentRequestMetadata().hashCode(); + } + if (hasOrigin()) { + hash = (37 * hash) + ORIGIN_FIELD_NUMBER; + hash = (53 * hash) + getOrigin().hashCode(); + } + if (hasEditingSettingId()) { + hash = (37 * hash) + EDITINGSETTINGID_FIELD_NUMBER; + hash = (53 * hash) + getEditingSettingId().hashCode(); + } + if (hasLockMode()) { + hash = (37 * hash) + LOCKMODE_FIELD_NUMBER; + hash = (53 * hash) + lockMode_; + } + if (hasSenderReceiptMetadata()) { + hash = (37 * hash) + SENDERRECEIPTMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getSenderReceiptMetadata().hashCode(); + } + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + if (getLastOuterDocflowsCount() > 0) { + hash = (37 * hash) + LASTOUTERDOCFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getLastOuterDocflowsList().hashCode(); + } + if (hasProxyBoxId()) { + hash = (37 * hash) + PROXYBOXID_FIELD_NUMBER; + hash = (53 * hash) + getProxyBoxId().hashCode(); + } + if (hasProxyDepartmentId()) { + hash = (37 * hash) + PROXYDEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getProxyDepartmentId().hashCode(); + } + if (hasDocflowStatus()) { + hash = (37 * hash) + DOCFLOWSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getDocflowStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Documents.DocumentProtos.Document parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentProtos.Document parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentProtos.Document parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5810,42 +6441,57 @@ public static Diadoc.Api.Proto.Documents.DocumentProtos.Document parseFrom( } public static Diadoc.Api.Proto.Documents.DocumentProtos.Document parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.Document parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.Document parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.Document parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentProtos.Document parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.Document parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentProtos.Document prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5865,6 +6511,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_Document_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_Document_fieldAccessorTable @@ -5883,7 +6530,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getInitialDocumentIdsFieldBuilder(); getSubordinateDocumentIdsFieldBuilder(); getContentFieldBuilder(); @@ -5923,332 +6571,265 @@ private void maybeForceBuilderInitialization() { getDocflowStatusFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + bitField1_ = 0; + bitField2_ = 0; indexKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); messageId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); entityId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); creationTimestampTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); counteragentBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - documentType_ = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType; - bitField0_ = (bitField0_ & ~0x00000020); + documentType_ = -1; if (initialDocumentIdsBuilder_ == null) { initialDocumentIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); } else { + initialDocumentIds_ = null; initialDocumentIdsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000040); if (subordinateDocumentIdsBuilder_ == null) { subordinateDocumentIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); } else { + subordinateDocumentIds_ = null; subordinateDocumentIdsBuilder_.clear(); } - if (contentBuilder_ == null) { - content_ = Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance(); - } else { - contentBuilder_.clear(); + bitField0_ = (bitField0_ & ~0x00000080); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000100); fileName_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); documentDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); documentNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - if (nonformalizedDocumentMetadataBuilder_ == null) { - nonformalizedDocumentMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); - } else { - nonformalizedDocumentMetadataBuilder_.clear(); + nonformalizedDocumentMetadata_ = null; + if (nonformalizedDocumentMetadataBuilder_ != null) { + nonformalizedDocumentMetadataBuilder_.dispose(); + nonformalizedDocumentMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00001000); - if (invoiceMetadataBuilder_ == null) { - invoiceMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance(); - } else { - invoiceMetadataBuilder_.clear(); + invoiceMetadata_ = null; + if (invoiceMetadataBuilder_ != null) { + invoiceMetadataBuilder_.dispose(); + invoiceMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00002000); - if (trustConnectionRequestMetadataBuilder_ == null) { - trustConnectionRequestMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance(); - } else { - trustConnectionRequestMetadataBuilder_.clear(); + trustConnectionRequestMetadata_ = null; + if (trustConnectionRequestMetadataBuilder_ != null) { + trustConnectionRequestMetadataBuilder_.dispose(); + trustConnectionRequestMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00004000); - if (torg12MetadataBuilder_ == null) { - torg12Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - } else { - torg12MetadataBuilder_.clear(); + torg12Metadata_ = null; + if (torg12MetadataBuilder_ != null) { + torg12MetadataBuilder_.dispose(); + torg12MetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00008000); - if (invoiceRevisionMetadataBuilder_ == null) { - invoiceRevisionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance(); - } else { - invoiceRevisionMetadataBuilder_.clear(); + invoiceRevisionMetadata_ = null; + if (invoiceRevisionMetadataBuilder_ != null) { + invoiceRevisionMetadataBuilder_.dispose(); + invoiceRevisionMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00010000); - if (invoiceCorrectionMetadataBuilder_ == null) { - invoiceCorrectionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance(); - } else { - invoiceCorrectionMetadataBuilder_.clear(); + invoiceCorrectionMetadata_ = null; + if (invoiceCorrectionMetadataBuilder_ != null) { + invoiceCorrectionMetadataBuilder_.dispose(); + invoiceCorrectionMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00020000); - if (invoiceCorrectionRevisionMetadataBuilder_ == null) { - invoiceCorrectionRevisionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance(); - } else { - invoiceCorrectionRevisionMetadataBuilder_.clear(); + invoiceCorrectionRevisionMetadata_ = null; + if (invoiceCorrectionRevisionMetadataBuilder_ != null) { + invoiceCorrectionRevisionMetadataBuilder_.dispose(); + invoiceCorrectionRevisionMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00040000); - if (acceptanceCertificateMetadataBuilder_ == null) { - acceptanceCertificateMetadata_ = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance(); - } else { - acceptanceCertificateMetadataBuilder_.clear(); + acceptanceCertificateMetadata_ = null; + if (acceptanceCertificateMetadataBuilder_ != null) { + acceptanceCertificateMetadataBuilder_.dispose(); + acceptanceCertificateMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00080000); - if (proformaInvoiceMetadataBuilder_ == null) { - proformaInvoiceMetadata_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance(); - } else { - proformaInvoiceMetadataBuilder_.clear(); + proformaInvoiceMetadata_ = null; + if (proformaInvoiceMetadataBuilder_ != null) { + proformaInvoiceMetadataBuilder_.dispose(); + proformaInvoiceMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00100000); - if (xmlTorg12MetadataBuilder_ == null) { - xmlTorg12Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - } else { - xmlTorg12MetadataBuilder_.clear(); + xmlTorg12Metadata_ = null; + if (xmlTorg12MetadataBuilder_ != null) { + xmlTorg12MetadataBuilder_.dispose(); + xmlTorg12MetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00200000); - if (xmlAcceptanceCertificateMetadataBuilder_ == null) { - xmlAcceptanceCertificateMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - } else { - xmlAcceptanceCertificateMetadataBuilder_.clear(); + xmlAcceptanceCertificateMetadata_ = null; + if (xmlAcceptanceCertificateMetadataBuilder_ != null) { + xmlAcceptanceCertificateMetadataBuilder_.dispose(); + xmlAcceptanceCertificateMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00400000); isDeleted_ = false; - bitField0_ = (bitField0_ & ~0x00800000); departmentId_ = ""; - bitField0_ = (bitField0_ & ~0x01000000); isTest_ = false; - bitField0_ = (bitField0_ & ~0x02000000); fromDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x04000000); toDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x08000000); - if (priceListMetadataBuilder_ == null) { - priceListMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance(); - } else { - priceListMetadataBuilder_.clear(); + priceListMetadata_ = null; + if (priceListMetadataBuilder_ != null) { + priceListMetadataBuilder_.dispose(); + priceListMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x10000000); customDocumentId_ = ""; - bitField0_ = (bitField0_ & ~0x20000000); - if (resolutionStatusBuilder_ == null) { - resolutionStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance(); - } else { - resolutionStatusBuilder_.clear(); + resolutionStatus_ = null; + if (resolutionStatusBuilder_ != null) { + resolutionStatusBuilder_.dispose(); + resolutionStatusBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x40000000); - revocationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus; - bitField0_ = (bitField0_ & ~0x80000000); + revocationStatus_ = 0; sendTimestampTicks_ = 0L; - bitField1_ = (bitField1_ & ~0x00000001); deliveryTimestampTicks_ = 0L; - bitField1_ = (bitField1_ & ~0x00000002); if (forwardDocumentEventsBuilder_ == null) { forwardDocumentEvents_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000004); } else { + forwardDocumentEvents_ = null; forwardDocumentEventsBuilder_.clear(); } - if (reconciliationActMetadataBuilder_ == null) { - reconciliationActMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance(); - } else { - reconciliationActMetadataBuilder_.clear(); + bitField1_ = (bitField1_ & ~0x00000004); + reconciliationActMetadata_ = null; + if (reconciliationActMetadataBuilder_ != null) { + reconciliationActMetadataBuilder_.dispose(); + reconciliationActMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00000008); - if (contractMetadataBuilder_ == null) { - contractMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance(); - } else { - contractMetadataBuilder_.clear(); + contractMetadata_ = null; + if (contractMetadataBuilder_ != null) { + contractMetadataBuilder_.dispose(); + contractMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00000010); - if (torg13MetadataBuilder_ == null) { - torg13Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - } else { - torg13MetadataBuilder_.clear(); + torg13Metadata_ = null; + if (torg13MetadataBuilder_ != null) { + torg13MetadataBuilder_.dispose(); + torg13MetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00000020); - if (serviceDetailsMetadataBuilder_ == null) { - serviceDetailsMetadata_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance(); - } else { - serviceDetailsMetadataBuilder_.clear(); + serviceDetailsMetadata_ = null; + if (serviceDetailsMetadataBuilder_ != null) { + serviceDetailsMetadataBuilder_.dispose(); + serviceDetailsMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00000040); - roamingNotificationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus.UnknownRoamingNotificationStatus; - bitField1_ = (bitField1_ & ~0x00000080); + roamingNotificationStatus_ = 0; hasCustomPrintForm_ = false; - bitField1_ = (bitField1_ & ~0x00000100); if (customDataBuilder_ == null) { customData_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000200); } else { + customData_ = null; customDataBuilder_.clear(); } + bitField1_ = (bitField1_ & ~0x00000200); packetId_ = ""; - bitField1_ = (bitField1_ & ~0x00000400); - documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; - bitField1_ = (bitField1_ & ~0x00000800); + documentDirection_ = 0; lastModificationTimestampTicks_ = 0L; - bitField1_ = (bitField1_ & ~0x00001000); isEncryptedContent_ = false; - bitField1_ = (bitField1_ & ~0x00002000); - senderSignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus; - bitField1_ = (bitField1_ & ~0x00004000); - if (supplementaryAgreementMetadataBuilder_ == null) { - supplementaryAgreementMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance(); - } else { - supplementaryAgreementMetadataBuilder_.clear(); + senderSignatureStatus_ = 0; + supplementaryAgreementMetadata_ = null; + if (supplementaryAgreementMetadataBuilder_ != null) { + supplementaryAgreementMetadataBuilder_.dispose(); + supplementaryAgreementMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00008000); isRead_ = false; - bitField1_ = (bitField1_ & ~0x00010000); roamingNotificationStatusDescription_ = ""; - bitField1_ = (bitField1_ & ~0x00020000); packetIsLocked_ = false; - bitField1_ = (bitField1_ & ~0x00040000); - if (priceListAgreementMetadataBuilder_ == null) { - priceListAgreementMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); - } else { - priceListAgreementMetadataBuilder_.clear(); + priceListAgreementMetadata_ = null; + if (priceListAgreementMetadataBuilder_ != null) { + priceListAgreementMetadataBuilder_.dispose(); + priceListAgreementMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00080000); - if (certificateRegistryMetadataBuilder_ == null) { - certificateRegistryMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); - } else { - certificateRegistryMetadataBuilder_.clear(); + certificateRegistryMetadata_ = null; + if (certificateRegistryMetadataBuilder_ != null) { + certificateRegistryMetadataBuilder_.dispose(); + certificateRegistryMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00100000); - if (universalTransferDocumentMetadataBuilder_ == null) { - universalTransferDocumentMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance(); - } else { - universalTransferDocumentMetadataBuilder_.clear(); + universalTransferDocumentMetadata_ = null; + if (universalTransferDocumentMetadataBuilder_ != null) { + universalTransferDocumentMetadataBuilder_.dispose(); + universalTransferDocumentMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00200000); - if (universalTransferDocumentRevisionMetadataBuilder_ == null) { - universalTransferDocumentRevisionMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance(); - } else { - universalTransferDocumentRevisionMetadataBuilder_.clear(); + universalTransferDocumentRevisionMetadata_ = null; + if (universalTransferDocumentRevisionMetadataBuilder_ != null) { + universalTransferDocumentRevisionMetadataBuilder_.dispose(); + universalTransferDocumentRevisionMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00400000); - if (universalCorrectionDocumentMetadataBuilder_ == null) { - universalCorrectionDocumentMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance(); - } else { - universalCorrectionDocumentMetadataBuilder_.clear(); + universalCorrectionDocumentMetadata_ = null; + if (universalCorrectionDocumentMetadataBuilder_ != null) { + universalCorrectionDocumentMetadataBuilder_.dispose(); + universalCorrectionDocumentMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00800000); - if (universalCorrectionDocumentRevisionMetadataBuilder_ == null) { - universalCorrectionDocumentRevisionMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance(); - } else { - universalCorrectionDocumentRevisionMetadataBuilder_.clear(); + universalCorrectionDocumentRevisionMetadata_ = null; + if (universalCorrectionDocumentRevisionMetadataBuilder_ != null) { + universalCorrectionDocumentRevisionMetadataBuilder_.dispose(); + universalCorrectionDocumentRevisionMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x01000000); resolutionRouteId_ = ""; - bitField1_ = (bitField1_ & ~0x02000000); attachmentVersion_ = ""; - bitField1_ = (bitField1_ & ~0x04000000); - proxySignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus.UnknownProxySignatureStatus; - bitField1_ = (bitField1_ & ~0x08000000); + proxySignatureStatus_ = 0; typeNamedId_ = ""; - bitField1_ = (bitField1_ & ~0x10000000); function_ = ""; - bitField1_ = (bitField1_ & ~0x20000000); workflowId_ = 0; - bitField1_ = (bitField1_ & ~0x40000000); title_ = ""; - bitField1_ = (bitField1_ & ~0x80000000); if (metadataBuilder_ == null) { metadata_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x00000001); } else { + metadata_ = null; metadataBuilder_.clear(); } - if (recipientReceiptMetadataBuilder_ == null) { - recipientReceiptMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance(); - } else { - recipientReceiptMetadataBuilder_.clear(); + bitField2_ = (bitField2_ & ~0x00000001); + recipientReceiptMetadata_ = null; + if (recipientReceiptMetadataBuilder_ != null) { + recipientReceiptMetadataBuilder_.dispose(); + recipientReceiptMetadataBuilder_ = null; } - bitField2_ = (bitField2_ & ~0x00000002); - if (confirmationMetadataBuilder_ == null) { - confirmationMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance(); - } else { - confirmationMetadataBuilder_.clear(); + confirmationMetadata_ = null; + if (confirmationMetadataBuilder_ != null) { + confirmationMetadataBuilder_.dispose(); + confirmationMetadataBuilder_ = null; } - bitField2_ = (bitField2_ & ~0x00000004); - recipientResponseStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown; - bitField2_ = (bitField2_ & ~0x00000008); - if (amendmentRequestMetadataBuilder_ == null) { - amendmentRequestMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance(); - } else { - amendmentRequestMetadataBuilder_.clear(); + recipientResponseStatus_ = 0; + amendmentRequestMetadata_ = null; + if (amendmentRequestMetadataBuilder_ != null) { + amendmentRequestMetadataBuilder_.dispose(); + amendmentRequestMetadataBuilder_ = null; } - bitField2_ = (bitField2_ & ~0x00000010); - if (originBuilder_ == null) { - origin_ = Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance(); - } else { - originBuilder_.clear(); + origin_ = null; + if (originBuilder_ != null) { + originBuilder_.dispose(); + originBuilder_ = null; } - bitField2_ = (bitField2_ & ~0x00000020); editingSettingId_ = ""; - bitField2_ = (bitField2_ & ~0x00000040); - lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.None; - bitField2_ = (bitField2_ & ~0x00000080); - if (senderReceiptMetadataBuilder_ == null) { - senderReceiptMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance(); - } else { - senderReceiptMetadataBuilder_.clear(); + lockMode_ = 1; + senderReceiptMetadata_ = null; + if (senderReceiptMetadataBuilder_ != null) { + senderReceiptMetadataBuilder_.dispose(); + senderReceiptMetadataBuilder_ = null; } - bitField2_ = (bitField2_ & ~0x00000100); version_ = ""; - bitField2_ = (bitField2_ & ~0x00000200); if (lastOuterDocflowsBuilder_ == null) { lastOuterDocflows_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x00000400); } else { + lastOuterDocflows_ = null; lastOuterDocflowsBuilder_.clear(); } + bitField2_ = (bitField2_ & ~0x00000400); proxyBoxId_ = ""; - bitField2_ = (bitField2_ & ~0x00000800); proxyDepartmentId_ = ""; - bitField2_ = (bitField2_ & ~0x00001000); - if (docflowStatusBuilder_ == null) { - docflowStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance(); - } else { - docflowStatusBuilder_.clear(); + docflowStatus_ = null; + if (docflowStatusBuilder_ != null) { + docflowStatusBuilder_.dispose(); + docflowStatusBuilder_ = null; } - bitField2_ = (bitField2_ & ~0x00002000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_Document_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.Document getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.Document.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.Document build() { Diadoc.Api.Proto.Documents.DocumentProtos.Document result = buildPartial(); if (!result.isInitialized()) { @@ -6257,40 +6838,20 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Document build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.Document buildPartial() { Diadoc.Api.Proto.Documents.DocumentProtos.Document result = new Diadoc.Api.Proto.Documents.DocumentProtos.Document(this); - int from_bitField0_ = bitField0_; - int from_bitField1_ = bitField1_; - int from_bitField2_ = bitField2_; - int to_bitField0_ = 0; - int to_bitField1_ = 0; - int to_bitField2_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.indexKey_ = indexKey_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.messageId_ = messageId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.entityId_ = entityId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.creationTimestampTicks_ = creationTimestampTicks_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.counteragentBoxId_ = counteragentBoxId_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.documentType_ = documentType_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { buildPartial1(result); } + if (bitField2_ != 0) { buildPartial2(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.DocumentProtos.Document result) { if (initialDocumentIdsBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { initialDocumentIds_ = java.util.Collections.unmodifiableList(initialDocumentIds_); bitField0_ = (bitField0_ & ~0x00000040); } @@ -6299,7 +6860,7 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Document buildPartial() { result.initialDocumentIds_ = initialDocumentIdsBuilder_.build(); } if (subordinateDocumentIdsBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { subordinateDocumentIds_ = java.util.Collections.unmodifiableList(subordinateDocumentIds_); bitField0_ = (bitField0_ & ~0x00000080); } @@ -6307,437 +6868,417 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Document buildPartial() { } else { result.subordinateDocumentIds_ = subordinateDocumentIdsBuilder_.build(); } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000040; + if (forwardDocumentEventsBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0)) { + forwardDocumentEvents_ = java.util.Collections.unmodifiableList(forwardDocumentEvents_); + bitField1_ = (bitField1_ & ~0x00000004); + } + result.forwardDocumentEvents_ = forwardDocumentEvents_; + } else { + result.forwardDocumentEvents_ = forwardDocumentEventsBuilder_.build(); } - if (contentBuilder_ == null) { - result.content_ = content_; + if (customDataBuilder_ == null) { + if (((bitField1_ & 0x00000200) != 0)) { + customData_ = java.util.Collections.unmodifiableList(customData_); + bitField1_ = (bitField1_ & ~0x00000200); + } + result.customData_ = customData_; + } else { + result.customData_ = customDataBuilder_.build(); + } + if (metadataBuilder_ == null) { + if (((bitField2_ & 0x00000001) != 0)) { + metadata_ = java.util.Collections.unmodifiableList(metadata_); + bitField2_ = (bitField2_ & ~0x00000001); + } + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (lastOuterDocflowsBuilder_ == null) { + if (((bitField2_ & 0x00000400) != 0)) { + lastOuterDocflows_ = java.util.Collections.unmodifiableList(lastOuterDocflows_); + bitField2_ = (bitField2_ & ~0x00000400); + } + result.lastOuterDocflows_ = lastOuterDocflows_; } else { - result.content_ = contentBuilder_.build(); + result.lastOuterDocflows_ = lastOuterDocflowsBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentProtos.Document result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexKey_ = indexKey_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.messageId_ = messageId_; + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityId_ = entityId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.creationTimestampTicks_ = creationTimestampTicks_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.counteragentBoxId_ = counteragentBoxId_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.documentType_ = documentType_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.content_ = contentBuilder_ == null + ? content_ + : contentBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.fileName_ = fileName_; to_bitField0_ |= 0x00000080; } - result.fileName_ = fileName_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.documentDate_ = documentDate_; to_bitField0_ |= 0x00000100; } - result.documentDate_ = documentDate_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.documentNumber_ = documentNumber_; to_bitField0_ |= 0x00000200; } - result.documentNumber_ = documentNumber_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + if (((from_bitField0_ & 0x00001000) != 0)) { + result.nonformalizedDocumentMetadata_ = nonformalizedDocumentMetadataBuilder_ == null + ? nonformalizedDocumentMetadata_ + : nonformalizedDocumentMetadataBuilder_.build(); to_bitField0_ |= 0x00000400; } - if (nonformalizedDocumentMetadataBuilder_ == null) { - result.nonformalizedDocumentMetadata_ = nonformalizedDocumentMetadata_; - } else { - result.nonformalizedDocumentMetadata_ = nonformalizedDocumentMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.invoiceMetadata_ = invoiceMetadataBuilder_ == null + ? invoiceMetadata_ + : invoiceMetadataBuilder_.build(); to_bitField0_ |= 0x00000800; } - if (invoiceMetadataBuilder_ == null) { - result.invoiceMetadata_ = invoiceMetadata_; - } else { - result.invoiceMetadata_ = invoiceMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + if (((from_bitField0_ & 0x00004000) != 0)) { + result.trustConnectionRequestMetadata_ = trustConnectionRequestMetadataBuilder_ == null + ? trustConnectionRequestMetadata_ + : trustConnectionRequestMetadataBuilder_.build(); to_bitField0_ |= 0x00001000; } - if (trustConnectionRequestMetadataBuilder_ == null) { - result.trustConnectionRequestMetadata_ = trustConnectionRequestMetadata_; - } else { - result.trustConnectionRequestMetadata_ = trustConnectionRequestMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00008000) != 0)) { + result.torg12Metadata_ = torg12MetadataBuilder_ == null + ? torg12Metadata_ + : torg12MetadataBuilder_.build(); to_bitField0_ |= 0x00002000; } - if (torg12MetadataBuilder_ == null) { - result.torg12Metadata_ = torg12Metadata_; - } else { - result.torg12Metadata_ = torg12MetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { + if (((from_bitField0_ & 0x00010000) != 0)) { + result.invoiceRevisionMetadata_ = invoiceRevisionMetadataBuilder_ == null + ? invoiceRevisionMetadata_ + : invoiceRevisionMetadataBuilder_.build(); to_bitField0_ |= 0x00004000; } - if (invoiceRevisionMetadataBuilder_ == null) { - result.invoiceRevisionMetadata_ = invoiceRevisionMetadata_; - } else { - result.invoiceRevisionMetadata_ = invoiceRevisionMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { + if (((from_bitField0_ & 0x00020000) != 0)) { + result.invoiceCorrectionMetadata_ = invoiceCorrectionMetadataBuilder_ == null + ? invoiceCorrectionMetadata_ + : invoiceCorrectionMetadataBuilder_.build(); to_bitField0_ |= 0x00008000; } - if (invoiceCorrectionMetadataBuilder_ == null) { - result.invoiceCorrectionMetadata_ = invoiceCorrectionMetadata_; - } else { - result.invoiceCorrectionMetadata_ = invoiceCorrectionMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { + if (((from_bitField0_ & 0x00040000) != 0)) { + result.invoiceCorrectionRevisionMetadata_ = invoiceCorrectionRevisionMetadataBuilder_ == null + ? invoiceCorrectionRevisionMetadata_ + : invoiceCorrectionRevisionMetadataBuilder_.build(); to_bitField0_ |= 0x00010000; } - if (invoiceCorrectionRevisionMetadataBuilder_ == null) { - result.invoiceCorrectionRevisionMetadata_ = invoiceCorrectionRevisionMetadata_; - } else { - result.invoiceCorrectionRevisionMetadata_ = invoiceCorrectionRevisionMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { + if (((from_bitField0_ & 0x00080000) != 0)) { + result.acceptanceCertificateMetadata_ = acceptanceCertificateMetadataBuilder_ == null + ? acceptanceCertificateMetadata_ + : acceptanceCertificateMetadataBuilder_.build(); to_bitField0_ |= 0x00020000; } - if (acceptanceCertificateMetadataBuilder_ == null) { - result.acceptanceCertificateMetadata_ = acceptanceCertificateMetadata_; - } else { - result.acceptanceCertificateMetadata_ = acceptanceCertificateMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { + if (((from_bitField0_ & 0x00100000) != 0)) { + result.proformaInvoiceMetadata_ = proformaInvoiceMetadataBuilder_ == null + ? proformaInvoiceMetadata_ + : proformaInvoiceMetadataBuilder_.build(); to_bitField0_ |= 0x00040000; } - if (proformaInvoiceMetadataBuilder_ == null) { - result.proformaInvoiceMetadata_ = proformaInvoiceMetadata_; - } else { - result.proformaInvoiceMetadata_ = proformaInvoiceMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { + if (((from_bitField0_ & 0x00200000) != 0)) { + result.xmlTorg12Metadata_ = xmlTorg12MetadataBuilder_ == null + ? xmlTorg12Metadata_ + : xmlTorg12MetadataBuilder_.build(); to_bitField0_ |= 0x00080000; } - if (xmlTorg12MetadataBuilder_ == null) { - result.xmlTorg12Metadata_ = xmlTorg12Metadata_; - } else { - result.xmlTorg12Metadata_ = xmlTorg12MetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00400000) == 0x00400000)) { + if (((from_bitField0_ & 0x00400000) != 0)) { + result.xmlAcceptanceCertificateMetadata_ = xmlAcceptanceCertificateMetadataBuilder_ == null + ? xmlAcceptanceCertificateMetadata_ + : xmlAcceptanceCertificateMetadataBuilder_.build(); to_bitField0_ |= 0x00100000; } - if (xmlAcceptanceCertificateMetadataBuilder_ == null) { - result.xmlAcceptanceCertificateMetadata_ = xmlAcceptanceCertificateMetadata_; - } else { - result.xmlAcceptanceCertificateMetadata_ = xmlAcceptanceCertificateMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00800000) == 0x00800000)) { + if (((from_bitField0_ & 0x00800000) != 0)) { + result.isDeleted_ = isDeleted_; to_bitField0_ |= 0x00200000; } - result.isDeleted_ = isDeleted_; - if (((from_bitField0_ & 0x01000000) == 0x01000000)) { + if (((from_bitField0_ & 0x01000000) != 0)) { + result.departmentId_ = departmentId_; to_bitField0_ |= 0x00400000; } - result.departmentId_ = departmentId_; - if (((from_bitField0_ & 0x02000000) == 0x02000000)) { + if (((from_bitField0_ & 0x02000000) != 0)) { + result.isTest_ = isTest_; to_bitField0_ |= 0x00800000; } - result.isTest_ = isTest_; - if (((from_bitField0_ & 0x04000000) == 0x04000000)) { + if (((from_bitField0_ & 0x04000000) != 0)) { + result.fromDepartmentId_ = fromDepartmentId_; to_bitField0_ |= 0x01000000; } - result.fromDepartmentId_ = fromDepartmentId_; - if (((from_bitField0_ & 0x08000000) == 0x08000000)) { + if (((from_bitField0_ & 0x08000000) != 0)) { + result.toDepartmentId_ = toDepartmentId_; to_bitField0_ |= 0x02000000; } - result.toDepartmentId_ = toDepartmentId_; - if (((from_bitField0_ & 0x10000000) == 0x10000000)) { + if (((from_bitField0_ & 0x10000000) != 0)) { + result.priceListMetadata_ = priceListMetadataBuilder_ == null + ? priceListMetadata_ + : priceListMetadataBuilder_.build(); to_bitField0_ |= 0x04000000; } - if (priceListMetadataBuilder_ == null) { - result.priceListMetadata_ = priceListMetadata_; - } else { - result.priceListMetadata_ = priceListMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x20000000) == 0x20000000)) { + if (((from_bitField0_ & 0x20000000) != 0)) { + result.customDocumentId_ = customDocumentId_; to_bitField0_ |= 0x08000000; } - result.customDocumentId_ = customDocumentId_; - if (((from_bitField0_ & 0x40000000) == 0x40000000)) { + if (((from_bitField0_ & 0x40000000) != 0)) { + result.resolutionStatus_ = resolutionStatusBuilder_ == null + ? resolutionStatus_ + : resolutionStatusBuilder_.build(); to_bitField0_ |= 0x10000000; } - if (resolutionStatusBuilder_ == null) { - result.resolutionStatus_ = resolutionStatus_; - } else { - result.resolutionStatus_ = resolutionStatusBuilder_.build(); - } - if (((from_bitField0_ & 0x80000000) == 0x80000000)) { + if (((from_bitField0_ & 0x80000000) != 0)) { + result.revocationStatus_ = revocationStatus_; to_bitField0_ |= 0x20000000; } - result.revocationStatus_ = revocationStatus_; - if (((from_bitField1_ & 0x00000001) == 0x00000001)) { + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(Diadoc.Api.Proto.Documents.DocumentProtos.Document result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.sendTimestampTicks_ = sendTimestampTicks_; to_bitField0_ |= 0x40000000; } - result.sendTimestampTicks_ = sendTimestampTicks_; - if (((from_bitField1_ & 0x00000002) == 0x00000002)) { + if (((from_bitField1_ & 0x00000002) != 0)) { + result.deliveryTimestampTicks_ = deliveryTimestampTicks_; to_bitField0_ |= 0x80000000; } - result.deliveryTimestampTicks_ = deliveryTimestampTicks_; - if (forwardDocumentEventsBuilder_ == null) { - if (((bitField1_ & 0x00000004) == 0x00000004)) { - forwardDocumentEvents_ = java.util.Collections.unmodifiableList(forwardDocumentEvents_); - bitField1_ = (bitField1_ & ~0x00000004); - } - result.forwardDocumentEvents_ = forwardDocumentEvents_; - } else { - result.forwardDocumentEvents_ = forwardDocumentEventsBuilder_.build(); - } - if (((from_bitField1_ & 0x00000008) == 0x00000008)) { + int to_bitField1_ = 0; + if (((from_bitField1_ & 0x00000008) != 0)) { + result.reconciliationActMetadata_ = reconciliationActMetadataBuilder_ == null + ? reconciliationActMetadata_ + : reconciliationActMetadataBuilder_.build(); to_bitField1_ |= 0x00000001; } - if (reconciliationActMetadataBuilder_ == null) { - result.reconciliationActMetadata_ = reconciliationActMetadata_; - } else { - result.reconciliationActMetadata_ = reconciliationActMetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x00000010) == 0x00000010)) { + if (((from_bitField1_ & 0x00000010) != 0)) { + result.contractMetadata_ = contractMetadataBuilder_ == null + ? contractMetadata_ + : contractMetadataBuilder_.build(); to_bitField1_ |= 0x00000002; } - if (contractMetadataBuilder_ == null) { - result.contractMetadata_ = contractMetadata_; - } else { - result.contractMetadata_ = contractMetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x00000020) == 0x00000020)) { + if (((from_bitField1_ & 0x00000020) != 0)) { + result.torg13Metadata_ = torg13MetadataBuilder_ == null + ? torg13Metadata_ + : torg13MetadataBuilder_.build(); to_bitField1_ |= 0x00000004; } - if (torg13MetadataBuilder_ == null) { - result.torg13Metadata_ = torg13Metadata_; - } else { - result.torg13Metadata_ = torg13MetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x00000040) == 0x00000040)) { + if (((from_bitField1_ & 0x00000040) != 0)) { + result.serviceDetailsMetadata_ = serviceDetailsMetadataBuilder_ == null + ? serviceDetailsMetadata_ + : serviceDetailsMetadataBuilder_.build(); to_bitField1_ |= 0x00000008; } - if (serviceDetailsMetadataBuilder_ == null) { - result.serviceDetailsMetadata_ = serviceDetailsMetadata_; - } else { - result.serviceDetailsMetadata_ = serviceDetailsMetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x00000080) == 0x00000080)) { + if (((from_bitField1_ & 0x00000080) != 0)) { + result.roamingNotificationStatus_ = roamingNotificationStatus_; to_bitField1_ |= 0x00000010; } - result.roamingNotificationStatus_ = roamingNotificationStatus_; - if (((from_bitField1_ & 0x00000100) == 0x00000100)) { + if (((from_bitField1_ & 0x00000100) != 0)) { + result.hasCustomPrintForm_ = hasCustomPrintForm_; to_bitField1_ |= 0x00000020; } - result.hasCustomPrintForm_ = hasCustomPrintForm_; - if (customDataBuilder_ == null) { - if (((bitField1_ & 0x00000200) == 0x00000200)) { - customData_ = java.util.Collections.unmodifiableList(customData_); - bitField1_ = (bitField1_ & ~0x00000200); - } - result.customData_ = customData_; - } else { - result.customData_ = customDataBuilder_.build(); - } - if (((from_bitField1_ & 0x00000400) == 0x00000400)) { + if (((from_bitField1_ & 0x00000400) != 0)) { + result.packetId_ = packetId_; to_bitField1_ |= 0x00000040; } - result.packetId_ = packetId_; - if (((from_bitField1_ & 0x00000800) == 0x00000800)) { + if (((from_bitField1_ & 0x00000800) != 0)) { + result.documentDirection_ = documentDirection_; to_bitField1_ |= 0x00000080; } - result.documentDirection_ = documentDirection_; - if (((from_bitField1_ & 0x00001000) == 0x00001000)) { + if (((from_bitField1_ & 0x00001000) != 0)) { + result.lastModificationTimestampTicks_ = lastModificationTimestampTicks_; to_bitField1_ |= 0x00000100; } - result.lastModificationTimestampTicks_ = lastModificationTimestampTicks_; - if (((from_bitField1_ & 0x00002000) == 0x00002000)) { + if (((from_bitField1_ & 0x00002000) != 0)) { + result.isEncryptedContent_ = isEncryptedContent_; to_bitField1_ |= 0x00000200; } - result.isEncryptedContent_ = isEncryptedContent_; - if (((from_bitField1_ & 0x00004000) == 0x00004000)) { + if (((from_bitField1_ & 0x00004000) != 0)) { + result.senderSignatureStatus_ = senderSignatureStatus_; to_bitField1_ |= 0x00000400; } - result.senderSignatureStatus_ = senderSignatureStatus_; - if (((from_bitField1_ & 0x00008000) == 0x00008000)) { + if (((from_bitField1_ & 0x00008000) != 0)) { + result.supplementaryAgreementMetadata_ = supplementaryAgreementMetadataBuilder_ == null + ? supplementaryAgreementMetadata_ + : supplementaryAgreementMetadataBuilder_.build(); to_bitField1_ |= 0x00000800; } - if (supplementaryAgreementMetadataBuilder_ == null) { - result.supplementaryAgreementMetadata_ = supplementaryAgreementMetadata_; - } else { - result.supplementaryAgreementMetadata_ = supplementaryAgreementMetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x00010000) == 0x00010000)) { + if (((from_bitField1_ & 0x00010000) != 0)) { + result.isRead_ = isRead_; to_bitField1_ |= 0x00001000; } - result.isRead_ = isRead_; - if (((from_bitField1_ & 0x00020000) == 0x00020000)) { + if (((from_bitField1_ & 0x00020000) != 0)) { + result.roamingNotificationStatusDescription_ = roamingNotificationStatusDescription_; to_bitField1_ |= 0x00002000; } - result.roamingNotificationStatusDescription_ = roamingNotificationStatusDescription_; - if (((from_bitField1_ & 0x00040000) == 0x00040000)) { + if (((from_bitField1_ & 0x00040000) != 0)) { + result.packetIsLocked_ = packetIsLocked_; to_bitField1_ |= 0x00004000; } - result.packetIsLocked_ = packetIsLocked_; - if (((from_bitField1_ & 0x00080000) == 0x00080000)) { + if (((from_bitField1_ & 0x00080000) != 0)) { + result.priceListAgreementMetadata_ = priceListAgreementMetadataBuilder_ == null + ? priceListAgreementMetadata_ + : priceListAgreementMetadataBuilder_.build(); to_bitField1_ |= 0x00008000; } - if (priceListAgreementMetadataBuilder_ == null) { - result.priceListAgreementMetadata_ = priceListAgreementMetadata_; - } else { - result.priceListAgreementMetadata_ = priceListAgreementMetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x00100000) == 0x00100000)) { + if (((from_bitField1_ & 0x00100000) != 0)) { + result.certificateRegistryMetadata_ = certificateRegistryMetadataBuilder_ == null + ? certificateRegistryMetadata_ + : certificateRegistryMetadataBuilder_.build(); to_bitField1_ |= 0x00010000; } - if (certificateRegistryMetadataBuilder_ == null) { - result.certificateRegistryMetadata_ = certificateRegistryMetadata_; - } else { - result.certificateRegistryMetadata_ = certificateRegistryMetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x00200000) == 0x00200000)) { + if (((from_bitField1_ & 0x00200000) != 0)) { + result.universalTransferDocumentMetadata_ = universalTransferDocumentMetadataBuilder_ == null + ? universalTransferDocumentMetadata_ + : universalTransferDocumentMetadataBuilder_.build(); to_bitField1_ |= 0x00020000; } - if (universalTransferDocumentMetadataBuilder_ == null) { - result.universalTransferDocumentMetadata_ = universalTransferDocumentMetadata_; - } else { - result.universalTransferDocumentMetadata_ = universalTransferDocumentMetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x00400000) == 0x00400000)) { + if (((from_bitField1_ & 0x00400000) != 0)) { + result.universalTransferDocumentRevisionMetadata_ = universalTransferDocumentRevisionMetadataBuilder_ == null + ? universalTransferDocumentRevisionMetadata_ + : universalTransferDocumentRevisionMetadataBuilder_.build(); to_bitField1_ |= 0x00040000; } - if (universalTransferDocumentRevisionMetadataBuilder_ == null) { - result.universalTransferDocumentRevisionMetadata_ = universalTransferDocumentRevisionMetadata_; - } else { - result.universalTransferDocumentRevisionMetadata_ = universalTransferDocumentRevisionMetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x00800000) == 0x00800000)) { + if (((from_bitField1_ & 0x00800000) != 0)) { + result.universalCorrectionDocumentMetadata_ = universalCorrectionDocumentMetadataBuilder_ == null + ? universalCorrectionDocumentMetadata_ + : universalCorrectionDocumentMetadataBuilder_.build(); to_bitField1_ |= 0x00080000; } - if (universalCorrectionDocumentMetadataBuilder_ == null) { - result.universalCorrectionDocumentMetadata_ = universalCorrectionDocumentMetadata_; - } else { - result.universalCorrectionDocumentMetadata_ = universalCorrectionDocumentMetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x01000000) == 0x01000000)) { + if (((from_bitField1_ & 0x01000000) != 0)) { + result.universalCorrectionDocumentRevisionMetadata_ = universalCorrectionDocumentRevisionMetadataBuilder_ == null + ? universalCorrectionDocumentRevisionMetadata_ + : universalCorrectionDocumentRevisionMetadataBuilder_.build(); to_bitField1_ |= 0x00100000; } - if (universalCorrectionDocumentRevisionMetadataBuilder_ == null) { - result.universalCorrectionDocumentRevisionMetadata_ = universalCorrectionDocumentRevisionMetadata_; - } else { - result.universalCorrectionDocumentRevisionMetadata_ = universalCorrectionDocumentRevisionMetadataBuilder_.build(); - } - if (((from_bitField1_ & 0x02000000) == 0x02000000)) { + if (((from_bitField1_ & 0x02000000) != 0)) { + result.resolutionRouteId_ = resolutionRouteId_; to_bitField1_ |= 0x00200000; } - result.resolutionRouteId_ = resolutionRouteId_; - if (((from_bitField1_ & 0x04000000) == 0x04000000)) { + if (((from_bitField1_ & 0x04000000) != 0)) { + result.attachmentVersion_ = attachmentVersion_; to_bitField1_ |= 0x00400000; } - result.attachmentVersion_ = attachmentVersion_; - if (((from_bitField1_ & 0x08000000) == 0x08000000)) { + if (((from_bitField1_ & 0x08000000) != 0)) { + result.proxySignatureStatus_ = proxySignatureStatus_; to_bitField1_ |= 0x00800000; } - result.proxySignatureStatus_ = proxySignatureStatus_; - if (((from_bitField1_ & 0x10000000) == 0x10000000)) { + if (((from_bitField1_ & 0x10000000) != 0)) { + result.typeNamedId_ = typeNamedId_; to_bitField1_ |= 0x01000000; } - result.typeNamedId_ = typeNamedId_; - if (((from_bitField1_ & 0x20000000) == 0x20000000)) { + if (((from_bitField1_ & 0x20000000) != 0)) { + result.function_ = function_; to_bitField1_ |= 0x02000000; } - result.function_ = function_; - if (((from_bitField1_ & 0x40000000) == 0x40000000)) { + if (((from_bitField1_ & 0x40000000) != 0)) { + result.workflowId_ = workflowId_; to_bitField1_ |= 0x04000000; } - result.workflowId_ = workflowId_; - if (((from_bitField1_ & 0x80000000) == 0x80000000)) { + if (((from_bitField1_ & 0x80000000) != 0)) { + result.title_ = title_; to_bitField1_ |= 0x08000000; } - result.title_ = title_; - if (metadataBuilder_ == null) { - if (((bitField2_ & 0x00000001) == 0x00000001)) { - metadata_ = java.util.Collections.unmodifiableList(metadata_); - bitField2_ = (bitField2_ & ~0x00000001); - } - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (((from_bitField2_ & 0x00000002) == 0x00000002)) { + result.bitField0_ |= to_bitField0_; + result.bitField1_ |= to_bitField1_; + } + + private void buildPartial2(Diadoc.Api.Proto.Documents.DocumentProtos.Document result) { + int from_bitField2_ = bitField2_; + int to_bitField1_ = 0; + if (((from_bitField2_ & 0x00000002) != 0)) { + result.recipientReceiptMetadata_ = recipientReceiptMetadataBuilder_ == null + ? recipientReceiptMetadata_ + : recipientReceiptMetadataBuilder_.build(); to_bitField1_ |= 0x10000000; } - if (recipientReceiptMetadataBuilder_ == null) { - result.recipientReceiptMetadata_ = recipientReceiptMetadata_; - } else { - result.recipientReceiptMetadata_ = recipientReceiptMetadataBuilder_.build(); - } - if (((from_bitField2_ & 0x00000004) == 0x00000004)) { + if (((from_bitField2_ & 0x00000004) != 0)) { + result.confirmationMetadata_ = confirmationMetadataBuilder_ == null + ? confirmationMetadata_ + : confirmationMetadataBuilder_.build(); to_bitField1_ |= 0x20000000; } - if (confirmationMetadataBuilder_ == null) { - result.confirmationMetadata_ = confirmationMetadata_; - } else { - result.confirmationMetadata_ = confirmationMetadataBuilder_.build(); - } - if (((from_bitField2_ & 0x00000008) == 0x00000008)) { + if (((from_bitField2_ & 0x00000008) != 0)) { + result.recipientResponseStatus_ = recipientResponseStatus_; to_bitField1_ |= 0x40000000; } - result.recipientResponseStatus_ = recipientResponseStatus_; - if (((from_bitField2_ & 0x00000010) == 0x00000010)) { + if (((from_bitField2_ & 0x00000010) != 0)) { + result.amendmentRequestMetadata_ = amendmentRequestMetadataBuilder_ == null + ? amendmentRequestMetadata_ + : amendmentRequestMetadataBuilder_.build(); to_bitField1_ |= 0x80000000; } - if (amendmentRequestMetadataBuilder_ == null) { - result.amendmentRequestMetadata_ = amendmentRequestMetadata_; - } else { - result.amendmentRequestMetadata_ = amendmentRequestMetadataBuilder_.build(); - } - if (((from_bitField2_ & 0x00000020) == 0x00000020)) { + int to_bitField2_ = 0; + if (((from_bitField2_ & 0x00000020) != 0)) { + result.origin_ = originBuilder_ == null + ? origin_ + : originBuilder_.build(); to_bitField2_ |= 0x00000001; } - if (originBuilder_ == null) { - result.origin_ = origin_; - } else { - result.origin_ = originBuilder_.build(); - } - if (((from_bitField2_ & 0x00000040) == 0x00000040)) { + if (((from_bitField2_ & 0x00000040) != 0)) { + result.editingSettingId_ = editingSettingId_; to_bitField2_ |= 0x00000002; } - result.editingSettingId_ = editingSettingId_; - if (((from_bitField2_ & 0x00000080) == 0x00000080)) { + if (((from_bitField2_ & 0x00000080) != 0)) { + result.lockMode_ = lockMode_; to_bitField2_ |= 0x00000004; } - result.lockMode_ = lockMode_; - if (((from_bitField2_ & 0x00000100) == 0x00000100)) { + if (((from_bitField2_ & 0x00000100) != 0)) { + result.senderReceiptMetadata_ = senderReceiptMetadataBuilder_ == null + ? senderReceiptMetadata_ + : senderReceiptMetadataBuilder_.build(); to_bitField2_ |= 0x00000008; } - if (senderReceiptMetadataBuilder_ == null) { - result.senderReceiptMetadata_ = senderReceiptMetadata_; - } else { - result.senderReceiptMetadata_ = senderReceiptMetadataBuilder_.build(); - } - if (((from_bitField2_ & 0x00000200) == 0x00000200)) { + if (((from_bitField2_ & 0x00000200) != 0)) { + result.version_ = version_; to_bitField2_ |= 0x00000010; } - result.version_ = version_; - if (lastOuterDocflowsBuilder_ == null) { - if (((bitField2_ & 0x00000400) == 0x00000400)) { - lastOuterDocflows_ = java.util.Collections.unmodifiableList(lastOuterDocflows_); - bitField2_ = (bitField2_ & ~0x00000400); - } - result.lastOuterDocflows_ = lastOuterDocflows_; - } else { - result.lastOuterDocflows_ = lastOuterDocflowsBuilder_.build(); - } - if (((from_bitField2_ & 0x00000800) == 0x00000800)) { + if (((from_bitField2_ & 0x00000800) != 0)) { + result.proxyBoxId_ = proxyBoxId_; to_bitField2_ |= 0x00000020; } - result.proxyBoxId_ = proxyBoxId_; - if (((from_bitField2_ & 0x00001000) == 0x00001000)) { + if (((from_bitField2_ & 0x00001000) != 0)) { + result.proxyDepartmentId_ = proxyDepartmentId_; to_bitField2_ |= 0x00000040; } - result.proxyDepartmentId_ = proxyDepartmentId_; - if (((from_bitField2_ & 0x00002000) == 0x00002000)) { + if (((from_bitField2_ & 0x00002000) != 0)) { + result.docflowStatus_ = docflowStatusBuilder_ == null + ? docflowStatus_ + : docflowStatusBuilder_.build(); to_bitField2_ |= 0x00000080; } - if (docflowStatusBuilder_ == null) { - result.docflowStatus_ = docflowStatus_; - } else { - result.docflowStatus_ = docflowStatusBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.bitField1_ = to_bitField1_; - result.bitField2_ = to_bitField2_; - onBuilt(); - return result; + result.bitField1_ |= to_bitField1_; + result.bitField2_ |= to_bitField2_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentProtos.Document) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentProtos.Document)other); @@ -6750,26 +7291,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Document other) { if (other == Diadoc.Api.Proto.Documents.DocumentProtos.Document.getDefaultInstance()) return this; if (other.hasIndexKey()) { - bitField0_ |= 0x00000001; indexKey_ = other.indexKey_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasMessageId()) { - bitField0_ |= 0x00000002; messageId_ = other.messageId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasEntityId()) { - bitField0_ |= 0x00000004; entityId_ = other.entityId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreationTimestampTicks()) { setCreationTimestampTicks(other.getCreationTimestampTicks()); } if (other.hasCounteragentBoxId()) { - bitField0_ |= 0x00000010; counteragentBoxId_ = other.counteragentBoxId_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasDocumentType()) { @@ -6831,18 +7372,18 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Document othe mergeContent(other.getContent()); } if (other.hasFileName()) { - bitField0_ |= 0x00000200; fileName_ = other.fileName_; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasDocumentDate()) { - bitField0_ |= 0x00000400; documentDate_ = other.documentDate_; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasDocumentNumber()) { - bitField0_ |= 0x00000800; documentNumber_ = other.documentNumber_; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasNonformalizedDocumentMetadata()) { @@ -6882,29 +7423,29 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Document othe setIsDeleted(other.getIsDeleted()); } if (other.hasDepartmentId()) { - bitField0_ |= 0x01000000; departmentId_ = other.departmentId_; + bitField0_ |= 0x01000000; onChanged(); } if (other.hasIsTest()) { setIsTest(other.getIsTest()); } if (other.hasFromDepartmentId()) { - bitField0_ |= 0x04000000; fromDepartmentId_ = other.fromDepartmentId_; + bitField0_ |= 0x04000000; onChanged(); } if (other.hasToDepartmentId()) { - bitField0_ |= 0x08000000; toDepartmentId_ = other.toDepartmentId_; + bitField0_ |= 0x08000000; onChanged(); } if (other.hasPriceListMetadata()) { mergePriceListMetadata(other.getPriceListMetadata()); } if (other.hasCustomDocumentId()) { - bitField0_ |= 0x20000000; customDocumentId_ = other.customDocumentId_; + bitField0_ |= 0x20000000; onChanged(); } if (other.hasResolutionStatus()) { @@ -6990,8 +7531,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Document othe } } if (other.hasPacketId()) { - bitField1_ |= 0x00000400; packetId_ = other.packetId_; + bitField1_ |= 0x00000400; onChanged(); } if (other.hasDocumentDirection()) { @@ -7013,8 +7554,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Document othe setIsRead(other.getIsRead()); } if (other.hasRoamingNotificationStatusDescription()) { - bitField1_ |= 0x00020000; roamingNotificationStatusDescription_ = other.roamingNotificationStatusDescription_; + bitField1_ |= 0x00020000; onChanged(); } if (other.hasPacketIsLocked()) { @@ -7039,34 +7580,34 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Document othe mergeUniversalCorrectionDocumentRevisionMetadata(other.getUniversalCorrectionDocumentRevisionMetadata()); } if (other.hasResolutionRouteId()) { - bitField1_ |= 0x02000000; resolutionRouteId_ = other.resolutionRouteId_; + bitField1_ |= 0x02000000; onChanged(); } if (other.hasAttachmentVersion()) { - bitField1_ |= 0x04000000; attachmentVersion_ = other.attachmentVersion_; + bitField1_ |= 0x04000000; onChanged(); } if (other.hasProxySignatureStatus()) { setProxySignatureStatus(other.getProxySignatureStatus()); } if (other.hasTypeNamedId()) { - bitField1_ |= 0x10000000; typeNamedId_ = other.typeNamedId_; + bitField1_ |= 0x10000000; onChanged(); } if (other.hasFunction()) { - bitField1_ |= 0x20000000; function_ = other.function_; + bitField1_ |= 0x20000000; onChanged(); } if (other.hasWorkflowId()) { setWorkflowId(other.getWorkflowId()); } if (other.hasTitle()) { - bitField1_ |= 0x80000000; title_ = other.title_; + bitField1_ |= 0x80000000; onChanged(); } if (metadataBuilder_ == null) { @@ -7111,8 +7652,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Document othe mergeOrigin(other.getOrigin()); } if (other.hasEditingSettingId()) { - bitField2_ |= 0x00000040; editingSettingId_ = other.editingSettingId_; + bitField2_ |= 0x00000040; onChanged(); } if (other.hasLockMode()) { @@ -7122,8 +7663,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Document othe mergeSenderReceiptMetadata(other.getSenderReceiptMetadata()); } if (other.hasVersion()) { - bitField2_ |= 0x00000200; version_ = other.version_; + bitField2_ |= 0x00000200; onChanged(); } if (lastOuterDocflowsBuilder_ == null) { @@ -7153,271 +7694,798 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Document othe } } if (other.hasProxyBoxId()) { - bitField2_ |= 0x00000800; proxyBoxId_ = other.proxyBoxId_; + bitField2_ |= 0x00000800; onChanged(); } if (other.hasProxyDepartmentId()) { - bitField2_ |= 0x00001000; proxyDepartmentId_ = other.proxyDepartmentId_; + bitField2_ |= 0x00001000; onChanged(); } if (other.hasDocflowStatus()) { mergeDocflowStatus(other.getDocflowStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasMessageId()) { - return false; } if (!hasEntityId()) { - return false; } if (!hasCreationTimestampTicks()) { - return false; } if (!hasTypeNamedId()) { - return false; } if (!hasFunction()) { - return false; } if (!hasWorkflowId()) { - return false; } if (!hasTitle()) { - return false; } if (!hasRecipientReceiptMetadata()) { - return false; } if (!hasConfirmationMetadata()) { - return false; } if (!hasRecipientResponseStatus()) { - return false; } if (!hasAmendmentRequestMetadata()) { - return false; } if (!hasLockMode()) { - return false; } if (!hasSenderReceiptMetadata()) { - return false; } if (!hasVersion()) { - return false; } if (!hasDocflowStatus()) { - return false; } for (int i = 0; i < getInitialDocumentIdsCount(); i++) { if (!getInitialDocumentIds(i).isInitialized()) { - return false; } } for (int i = 0; i < getSubordinateDocumentIdsCount(); i++) { if (!getSubordinateDocumentIds(i).isInitialized()) { - return false; } } if (hasContent()) { if (!getContent().isInitialized()) { - return false; } } if (hasInvoiceMetadata()) { if (!getInvoiceMetadata().isInitialized()) { - return false; } } if (hasTorg12Metadata()) { if (!getTorg12Metadata().isInitialized()) { - return false; } } if (hasInvoiceRevisionMetadata()) { if (!getInvoiceRevisionMetadata().isInitialized()) { - return false; } } if (hasInvoiceCorrectionMetadata()) { if (!getInvoiceCorrectionMetadata().isInitialized()) { - return false; } } if (hasInvoiceCorrectionRevisionMetadata()) { if (!getInvoiceCorrectionRevisionMetadata().isInitialized()) { - return false; } } if (hasAcceptanceCertificateMetadata()) { if (!getAcceptanceCertificateMetadata().isInitialized()) { - return false; } } if (hasProformaInvoiceMetadata()) { if (!getProformaInvoiceMetadata().isInitialized()) { - return false; } } if (hasXmlTorg12Metadata()) { if (!getXmlTorg12Metadata().isInitialized()) { - return false; } } if (hasXmlAcceptanceCertificateMetadata()) { if (!getXmlAcceptanceCertificateMetadata().isInitialized()) { - return false; } } if (hasResolutionStatus()) { if (!getResolutionStatus().isInitialized()) { - return false; } } for (int i = 0; i < getForwardDocumentEventsCount(); i++) { if (!getForwardDocumentEvents(i).isInitialized()) { - return false; } } if (hasTorg13Metadata()) { if (!getTorg13Metadata().isInitialized()) { - return false; } } if (hasServiceDetailsMetadata()) { if (!getServiceDetailsMetadata().isInitialized()) { - return false; } } for (int i = 0; i < getCustomDataCount(); i++) { if (!getCustomData(i).isInitialized()) { - return false; } } if (hasSupplementaryAgreementMetadata()) { if (!getSupplementaryAgreementMetadata().isInitialized()) { - return false; } } if (hasUniversalTransferDocumentMetadata()) { if (!getUniversalTransferDocumentMetadata().isInitialized()) { - return false; } } if (hasUniversalTransferDocumentRevisionMetadata()) { if (!getUniversalTransferDocumentRevisionMetadata().isInitialized()) { - return false; } } if (hasUniversalCorrectionDocumentMetadata()) { if (!getUniversalCorrectionDocumentMetadata().isInitialized()) { - return false; } } if (hasUniversalCorrectionDocumentRevisionMetadata()) { if (!getUniversalCorrectionDocumentRevisionMetadata().isInitialized()) { - return false; } } for (int i = 0; i < getMetadataCount(); i++) { if (!getMetadata(i).isInitialized()) { - return false; } } if (!getRecipientReceiptMetadata().isInitialized()) { - return false; } if (!getConfirmationMetadata().isInitialized()) { - return false; } if (!getAmendmentRequestMetadata().isInitialized()) { - return false; } if (hasOrigin()) { if (!getOrigin().isInitialized()) { - return false; } } if (!getSenderReceiptMetadata().isInitialized()) { - return false; } for (int i = 0; i < getLastOuterDocflowsCount(); i++) { if (!getLastOuterDocflows(i).isInitialized()) { - return false; } } if (!getDocflowStatus().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentProtos.Document parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + indexKey_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + messageId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + entityId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 33: { + creationTimestampTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 42: { + counteragentBoxId_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.DocumentTypeProtos.DocumentType tmpValue = + Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + documentType_ = tmpRaw; + bitField0_ |= 0x00000020; + } + break; + } // case 48 + case 58: { + Diadoc.Api.Proto.DocumentIdProtos.DocumentId m = + input.readMessage( + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.parser(), + extensionRegistry); + if (initialDocumentIdsBuilder_ == null) { + ensureInitialDocumentIdsIsMutable(); + initialDocumentIds_.add(m); + } else { + initialDocumentIdsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + Diadoc.Api.Proto.DocumentIdProtos.DocumentId m = + input.readMessage( + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.parser(), + extensionRegistry); + if (subordinateDocumentIdsBuilder_ == null) { + ensureSubordinateDocumentIdsIsMutable(); + subordinateDocumentIds_.add(m); + } else { + subordinateDocumentIdsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: { + input.readMessage( + getContentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + fileName_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + documentDate_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + documentNumber_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + input.readMessage( + getNonformalizedDocumentMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + input.readMessage( + getInvoiceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + input.readMessage( + getTrustConnectionRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + input.readMessage( + getTorg12MetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: { + input.readMessage( + getInvoiceRevisionMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 146: { + input.readMessage( + getInvoiceCorrectionMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 154: { + input.readMessage( + getInvoiceCorrectionRevisionMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 162: { + input.readMessage( + getAcceptanceCertificateMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 162 + case 170: { + input.readMessage( + getProformaInvoiceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 170 + case 178: { + input.readMessage( + getXmlTorg12MetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 186: { + input.readMessage( + getXmlAcceptanceCertificateMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 186 + case 192: { + isDeleted_ = input.readBool(); + bitField0_ |= 0x00800000; + break; + } // case 192 + case 202: { + departmentId_ = input.readBytes(); + bitField0_ |= 0x01000000; + break; + } // case 202 + case 208: { + isTest_ = input.readBool(); + bitField0_ |= 0x02000000; + break; + } // case 208 + case 218: { + fromDepartmentId_ = input.readBytes(); + bitField0_ |= 0x04000000; + break; + } // case 218 + case 226: { + toDepartmentId_ = input.readBytes(); + bitField0_ |= 0x08000000; + break; + } // case 226 + case 234: { + input.readMessage( + getPriceListMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 234 + case 242: { + customDocumentId_ = input.readBytes(); + bitField0_ |= 0x20000000; + break; + } // case 242 + case 250: { + input.readMessage( + getResolutionStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 250 + case 256: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(32, tmpRaw); + } else { + revocationStatus_ = tmpRaw; + bitField0_ |= 0x80000000; + } + break; + } // case 256 + case 265: { + sendTimestampTicks_ = input.readSFixed64(); + bitField1_ |= 0x00000001; + break; + } // case 265 + case 273: { + deliveryTimestampTicks_ = input.readSFixed64(); + bitField1_ |= 0x00000002; + break; + } // case 273 + case 282: { + Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent m = + input.readMessage( + Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.parser(), + extensionRegistry); + if (forwardDocumentEventsBuilder_ == null) { + ensureForwardDocumentEventsIsMutable(); + forwardDocumentEvents_.add(m); + } else { + forwardDocumentEventsBuilder_.addMessage(m); + } + break; + } // case 282 + case 306: { + input.readMessage( + getReconciliationActMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 306 + case 314: { + input.readMessage( + getContractMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000010; + break; + } // case 314 + case 322: { + input.readMessage( + getTorg13MetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000020; + break; + } // case 322 + case 330: { + input.readMessage( + getServiceDetailsMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000040; + break; + } // case 330 + case 336: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(42, tmpRaw); + } else { + roamingNotificationStatus_ = tmpRaw; + bitField1_ |= 0x00000080; + } + break; + } // case 336 + case 344: { + hasCustomPrintForm_ = input.readBool(); + bitField1_ |= 0x00000100; + break; + } // case 344 + case 354: { + Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem m = + input.readMessage( + Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.parser(), + extensionRegistry); + if (customDataBuilder_ == null) { + ensureCustomDataIsMutable(); + customData_.add(m); + } else { + customDataBuilder_.addMessage(m); + } + break; + } // case 354 + case 362: { + packetId_ = input.readBytes(); + bitField1_ |= 0x00000400; + break; + } // case 362 + case 368: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection tmpValue = + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(46, tmpRaw); + } else { + documentDirection_ = tmpRaw; + bitField1_ |= 0x00000800; + } + break; + } // case 368 + case 377: { + lastModificationTimestampTicks_ = input.readSFixed64(); + bitField1_ |= 0x00001000; + break; + } // case 377 + case 384: { + isEncryptedContent_ = input.readBool(); + bitField1_ |= 0x00002000; + break; + } // case 384 + case 392: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(49, tmpRaw); + } else { + senderSignatureStatus_ = tmpRaw; + bitField1_ |= 0x00004000; + } + break; + } // case 392 + case 402: { + input.readMessage( + getSupplementaryAgreementMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00008000; + break; + } // case 402 + case 408: { + isRead_ = input.readBool(); + bitField1_ |= 0x00010000; + break; + } // case 408 + case 418: { + roamingNotificationStatusDescription_ = input.readBytes(); + bitField1_ |= 0x00020000; + break; + } // case 418 + case 424: { + packetIsLocked_ = input.readBool(); + bitField1_ |= 0x00040000; + break; + } // case 424 + case 434: { + input.readMessage( + getPriceListAgreementMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00080000; + break; + } // case 434 + case 442: { + input.readMessage( + getCertificateRegistryMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00100000; + break; + } // case 442 + case 450: { + input.readMessage( + getUniversalTransferDocumentMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00200000; + break; + } // case 450 + case 458: { + input.readMessage( + getUniversalTransferDocumentRevisionMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00400000; + break; + } // case 458 + case 466: { + input.readMessage( + getUniversalCorrectionDocumentMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00800000; + break; + } // case 466 + case 474: { + input.readMessage( + getUniversalCorrectionDocumentRevisionMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x01000000; + break; + } // case 474 + case 482: { + resolutionRouteId_ = input.readBytes(); + bitField1_ |= 0x02000000; + break; + } // case 482 + case 490: { + attachmentVersion_ = input.readBytes(); + bitField1_ |= 0x04000000; + break; + } // case 490 + case 496: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(62, tmpRaw); + } else { + proxySignatureStatus_ = tmpRaw; + bitField1_ |= 0x08000000; + } + break; + } // case 496 + case 506: { + typeNamedId_ = input.readBytes(); + bitField1_ |= 0x10000000; + break; + } // case 506 + case 514: { + function_ = input.readBytes(); + bitField1_ |= 0x20000000; + break; + } // case 514 + case 520: { + workflowId_ = input.readInt32(); + bitField1_ |= 0x40000000; + break; + } // case 520 + case 530: { + title_ = input.readBytes(); + bitField1_ |= 0x80000000; + break; + } // case 530 + case 538: { + Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem m = + input.readMessage( + Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.parser(), + extensionRegistry); + if (metadataBuilder_ == null) { + ensureMetadataIsMutable(); + metadata_.add(m); + } else { + metadataBuilder_.addMessage(m); + } + break; + } // case 538 + case 546: { + input.readMessage( + getRecipientReceiptMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000002; + break; + } // case 546 + case 554: { + input.readMessage( + getConfirmationMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000004; + break; + } // case 554 + case 560: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(70, tmpRaw); + } else { + recipientResponseStatus_ = tmpRaw; + bitField2_ |= 0x00000008; + } + break; + } // case 560 + case 570: { + input.readMessage( + getAmendmentRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000010; + break; + } // case 570 + case 578: { + input.readMessage( + getOriginFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000020; + break; + } // case 578 + case 586: { + editingSettingId_ = input.readBytes(); + bitField2_ |= 0x00000040; + break; + } // case 586 + case 592: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.LockModeProtos.LockMode tmpValue = + Diadoc.Api.Proto.LockModeProtos.LockMode.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(74, tmpRaw); + } else { + lockMode_ = tmpRaw; + bitField2_ |= 0x00000080; + } + break; + } // case 592 + case 602: { + input.readMessage( + getSenderReceiptMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000100; + break; + } // case 602 + case 610: { + version_ = input.readBytes(); + bitField2_ |= 0x00000200; + break; + } // case 610 + case 618: { + Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow m = + input.readMessage( + Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow.parser(), + extensionRegistry); + if (lastOuterDocflowsBuilder_ == null) { + ensureLastOuterDocflowsIsMutable(); + lastOuterDocflows_.add(m); + } else { + lastOuterDocflowsBuilder_.addMessage(m); + } + break; + } // case 618 + case 626: { + proxyBoxId_ = input.readBytes(); + bitField2_ |= 0x00000800; + break; + } // case 626 + case 634: { + proxyDepartmentId_ = input.readBytes(); + bitField2_ |= 0x00001000; + break; + } // case 634 + case 642: { + input.readMessage( + getDocflowStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00002000; + break; + } // case 642 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentProtos.Document) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -7427,12 +8495,14 @@ public Builder mergeFrom( private java.lang.Object indexKey_ = ""; /** * optional string IndexKey = 1; + * @return Whether the indexKey field is set. */ public boolean hasIndexKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string IndexKey = 1; + * @return The indexKey. */ public java.lang.String getIndexKey() { java.lang.Object ref = indexKey_; @@ -7450,6 +8520,7 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 1; + * @return The bytes for indexKey. */ public com.google.protobuf.ByteString getIndexKeyBytes() { @@ -7466,36 +8537,37 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 1; + * @param value The indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKey( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string IndexKey = 1; + * @return This builder for chaining. */ public Builder clearIndexKey() { - bitField0_ = (bitField0_ & ~0x00000001); indexKey_ = getDefaultInstance().getIndexKey(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string IndexKey = 1; + * @param value The bytes for indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKeyBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -7503,12 +8575,14 @@ public Builder setIndexKeyBytes( private java.lang.Object messageId_ = ""; /** * required string MessageId = 2; + * @return Whether the messageId field is set. */ public boolean hasMessageId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string MessageId = 2; + * @return The messageId. */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; @@ -7526,6 +8600,7 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 2; + * @return The bytes for messageId. */ public com.google.protobuf.ByteString getMessageIdBytes() { @@ -7542,36 +8617,37 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 2; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } messageId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string MessageId = 2; + * @return This builder for chaining. */ public Builder clearMessageId() { - bitField0_ = (bitField0_ & ~0x00000002); messageId_ = getDefaultInstance().getMessageId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string MessageId = 2; + * @param value The bytes for messageId to set. + * @return This builder for chaining. */ public Builder setMessageIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } messageId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -7579,12 +8655,14 @@ public Builder setMessageIdBytes( private java.lang.Object entityId_ = ""; /** * required string EntityId = 3; + * @return Whether the entityId field is set. */ public boolean hasEntityId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string EntityId = 3; + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -7602,6 +8680,7 @@ public java.lang.String getEntityId() { } /** * required string EntityId = 3; + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { @@ -7618,36 +8697,37 @@ public java.lang.String getEntityId() { } /** * required string EntityId = 3; + * @param value The entityId to set. + * @return This builder for chaining. */ public Builder setEntityId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } entityId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string EntityId = 3; + * @return This builder for chaining. */ public Builder clearEntityId() { - bitField0_ = (bitField0_ & ~0x00000004); entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string EntityId = 3; + * @param value The bytes for entityId to set. + * @return This builder for chaining. */ public Builder setEntityIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } entityId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7655,27 +8735,35 @@ public Builder setEntityIdBytes( private long creationTimestampTicks_ ; /** * required sfixed64 CreationTimestampTicks = 4; + * @return Whether the creationTimestampTicks field is set. */ + @java.lang.Override public boolean hasCreationTimestampTicks() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required sfixed64 CreationTimestampTicks = 4; + * @return The creationTimestampTicks. */ + @java.lang.Override public long getCreationTimestampTicks() { return creationTimestampTicks_; } /** * required sfixed64 CreationTimestampTicks = 4; + * @param value The creationTimestampTicks to set. + * @return This builder for chaining. */ public Builder setCreationTimestampTicks(long value) { - bitField0_ |= 0x00000008; + creationTimestampTicks_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required sfixed64 CreationTimestampTicks = 4; + * @return This builder for chaining. */ public Builder clearCreationTimestampTicks() { bitField0_ = (bitField0_ & ~0x00000008); @@ -7687,12 +8775,14 @@ public Builder clearCreationTimestampTicks() { private java.lang.Object counteragentBoxId_ = ""; /** * optional string CounteragentBoxId = 5; + * @return Whether the counteragentBoxId field is set. */ public boolean hasCounteragentBoxId() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string CounteragentBoxId = 5; + * @return The counteragentBoxId. */ public java.lang.String getCounteragentBoxId() { java.lang.Object ref = counteragentBoxId_; @@ -7710,6 +8800,7 @@ public java.lang.String getCounteragentBoxId() { } /** * optional string CounteragentBoxId = 5; + * @return The bytes for counteragentBoxId. */ public com.google.protobuf.ByteString getCounteragentBoxIdBytes() { @@ -7726,71 +8817,79 @@ public java.lang.String getCounteragentBoxId() { } /** * optional string CounteragentBoxId = 5; + * @param value The counteragentBoxId to set. + * @return This builder for chaining. */ public Builder setCounteragentBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } counteragentBoxId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string CounteragentBoxId = 5; + * @return This builder for chaining. */ public Builder clearCounteragentBoxId() { - bitField0_ = (bitField0_ & ~0x00000010); counteragentBoxId_ = getDefaultInstance().getCounteragentBoxId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string CounteragentBoxId = 5; + * @param value The bytes for counteragentBoxId to set. + * @return This builder for chaining. */ public Builder setCounteragentBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } counteragentBoxId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } - private Diadoc.Api.Proto.DocumentTypeProtos.DocumentType documentType_ = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType; + private int documentType_ = -1; /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 6 [default = UnknownDocumentType]; + * @return Whether the documentType field is set. */ - public boolean hasDocumentType() { - return ((bitField0_ & 0x00000020) == 0x00000020); + @java.lang.Override public boolean hasDocumentType() { + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 6 [default = UnknownDocumentType]; + * @return The documentType. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentTypeProtos.DocumentType getDocumentType() { - return documentType_; + Diadoc.Api.Proto.DocumentTypeProtos.DocumentType result = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.forNumber(documentType_); + return result == null ? Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType : result; } /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 6 [default = UnknownDocumentType]; + * @param value The documentType to set. + * @return This builder for chaining. */ public Builder setDocumentType(Diadoc.Api.Proto.DocumentTypeProtos.DocumentType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; - documentType_ = value; + documentType_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.DocumentType DocumentType = 6 [default = UnknownDocumentType]; + * @return This builder for chaining. */ public Builder clearDocumentType() { bitField0_ = (bitField0_ & ~0x00000020); - documentType_ = Diadoc.Api.Proto.DocumentTypeProtos.DocumentType.UnknownDocumentType; + documentType_ = -1; onChanged(); return this; } @@ -7798,7 +8897,7 @@ public Builder clearDocumentType() { private java.util.List initialDocumentIds_ = java.util.Collections.emptyList(); private void ensureInitialDocumentIdsIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { + if (!((bitField0_ & 0x00000040) != 0)) { initialDocumentIds_ = new java.util.ArrayList(initialDocumentIds_); bitField0_ |= 0x00000040; } @@ -8027,7 +9126,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addInitialDocumentId initialDocumentIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder>( initialDocumentIds_, - ((bitField0_ & 0x00000040) == 0x00000040), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); initialDocumentIds_ = null; @@ -8038,7 +9137,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addInitialDocumentId private java.util.List subordinateDocumentIds_ = java.util.Collections.emptyList(); private void ensureSubordinateDocumentIdsIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { + if (!((bitField0_ & 0x00000080) != 0)) { subordinateDocumentIds_ = new java.util.ArrayList(subordinateDocumentIds_); bitField0_ |= 0x00000080; } @@ -8267,7 +9366,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addSubordinateDocume subordinateDocumentIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder>( subordinateDocumentIds_, - ((bitField0_ & 0x00000080) == 0x00000080), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); subordinateDocumentIds_ = null; @@ -8275,21 +9374,23 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addSubordinateDocume return subordinateDocumentIdsBuilder_; } - private Diadoc.Api.Proto.ContentProtos.Content content_ = Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance(); + private Diadoc.Api.Proto.ContentProtos.Content content_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.ContentProtos.Content, Diadoc.Api.Proto.ContentProtos.Content.Builder, Diadoc.Api.Proto.ContentProtos.ContentOrBuilder> contentBuilder_; /** * optional .Diadoc.Api.Proto.Content Content = 9; + * @return Whether the content field is set. */ public boolean hasContent() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional .Diadoc.Api.Proto.Content Content = 9; + * @return The content. */ public Diadoc.Api.Proto.ContentProtos.Content getContent() { if (contentBuilder_ == null) { - return content_; + return content_ == null ? Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance() : content_; } else { return contentBuilder_.getMessage(); } @@ -8303,11 +9404,11 @@ public Builder setContent(Diadoc.Api.Proto.ContentProtos.Content value) { throw new NullPointerException(); } content_ = value; - onChanged(); } else { contentBuilder_.setMessage(value); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -8317,11 +9418,11 @@ public Builder setContent( Diadoc.Api.Proto.ContentProtos.Content.Builder builderForValue) { if (contentBuilder_ == null) { content_ = builderForValue.build(); - onChanged(); } else { contentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -8329,31 +9430,33 @@ public Builder setContent( */ public Builder mergeContent(Diadoc.Api.Proto.ContentProtos.Content value) { if (contentBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - content_ != Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance()) { - content_ = - Diadoc.Api.Proto.ContentProtos.Content.newBuilder(content_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) && + content_ != null && + content_ != Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); } else { content_ = value; } - onChanged(); } else { contentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + if (content_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Content Content = 9; */ public Builder clearContent() { - if (contentBuilder_ == null) { - content_ = Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance(); - onChanged(); - } else { - contentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000100); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); return this; } /** @@ -8371,7 +9474,8 @@ public Diadoc.Api.Proto.ContentProtos.ContentOrBuilder getContentOrBuilder() { if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilder(); } else { - return content_; + return content_ == null ? + Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance() : content_; } } /** @@ -8394,12 +9498,14 @@ public Diadoc.Api.Proto.ContentProtos.ContentOrBuilder getContentOrBuilder() { private java.lang.Object fileName_ = ""; /** * optional string FileName = 10; + * @return Whether the fileName field is set. */ public boolean hasFileName() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional string FileName = 10; + * @return The fileName. */ public java.lang.String getFileName() { java.lang.Object ref = fileName_; @@ -8417,6 +9523,7 @@ public java.lang.String getFileName() { } /** * optional string FileName = 10; + * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { @@ -8433,36 +9540,37 @@ public java.lang.String getFileName() { } /** * optional string FileName = 10; + * @param value The fileName to set. + * @return This builder for chaining. */ public Builder setFileName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } fileName_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional string FileName = 10; + * @return This builder for chaining. */ public Builder clearFileName() { - bitField0_ = (bitField0_ & ~0x00000200); fileName_ = getDefaultInstance().getFileName(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * optional string FileName = 10; + * @param value The bytes for fileName to set. + * @return This builder for chaining. */ public Builder setFileNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } fileName_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8470,12 +9578,14 @@ public Builder setFileNameBytes( private java.lang.Object documentDate_ = ""; /** * optional string DocumentDate = 11; + * @return Whether the documentDate field is set. */ public boolean hasDocumentDate() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional string DocumentDate = 11; + * @return The documentDate. */ public java.lang.String getDocumentDate() { java.lang.Object ref = documentDate_; @@ -8493,6 +9603,7 @@ public java.lang.String getDocumentDate() { } /** * optional string DocumentDate = 11; + * @return The bytes for documentDate. */ public com.google.protobuf.ByteString getDocumentDateBytes() { @@ -8509,36 +9620,37 @@ public java.lang.String getDocumentDate() { } /** * optional string DocumentDate = 11; + * @param value The documentDate to set. + * @return This builder for chaining. */ public Builder setDocumentDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } documentDate_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * optional string DocumentDate = 11; + * @return This builder for chaining. */ public Builder clearDocumentDate() { - bitField0_ = (bitField0_ & ~0x00000400); documentDate_ = getDefaultInstance().getDocumentDate(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * optional string DocumentDate = 11; + * @param value The bytes for documentDate to set. + * @return This builder for chaining. */ public Builder setDocumentDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } documentDate_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -8546,12 +9658,14 @@ public Builder setDocumentDateBytes( private java.lang.Object documentNumber_ = ""; /** * optional string DocumentNumber = 12; + * @return Whether the documentNumber field is set. */ public boolean hasDocumentNumber() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional string DocumentNumber = 12; + * @return The documentNumber. */ public java.lang.String getDocumentNumber() { java.lang.Object ref = documentNumber_; @@ -8569,6 +9683,7 @@ public java.lang.String getDocumentNumber() { } /** * optional string DocumentNumber = 12; + * @return The bytes for documentNumber. */ public com.google.protobuf.ByteString getDocumentNumberBytes() { @@ -8585,55 +9700,58 @@ public java.lang.String getDocumentNumber() { } /** * optional string DocumentNumber = 12; + * @param value The documentNumber to set. + * @return This builder for chaining. */ public Builder setDocumentNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } documentNumber_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * optional string DocumentNumber = 12; + * @return This builder for chaining. */ public Builder clearDocumentNumber() { - bitField0_ = (bitField0_ & ~0x00000800); documentNumber_ = getDefaultInstance().getDocumentNumber(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * optional string DocumentNumber = 12; + * @param value The bytes for documentNumber to set. + * @return This builder for chaining. */ public Builder setDocumentNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } documentNumber_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata nonformalizedDocumentMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata nonformalizedDocumentMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata, Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.Builder, Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadataOrBuilder> nonformalizedDocumentMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata NonformalizedDocumentMetadata = 13; + * @return Whether the nonformalizedDocumentMetadata field is set. */ public boolean hasNonformalizedDocumentMetadata() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata NonformalizedDocumentMetadata = 13; + * @return The nonformalizedDocumentMetadata. */ public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getNonformalizedDocumentMetadata() { if (nonformalizedDocumentMetadataBuilder_ == null) { - return nonformalizedDocumentMetadata_; + return nonformalizedDocumentMetadata_ == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : nonformalizedDocumentMetadata_; } else { return nonformalizedDocumentMetadataBuilder_.getMessage(); } @@ -8647,11 +9765,11 @@ public Builder setNonformalizedDocumentMetadata(Diadoc.Api.Proto.Documents.Nonfo throw new NullPointerException(); } nonformalizedDocumentMetadata_ = value; - onChanged(); } else { nonformalizedDocumentMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -8661,11 +9779,11 @@ public Builder setNonformalizedDocumentMetadata( Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.Builder builderForValue) { if (nonformalizedDocumentMetadataBuilder_ == null) { nonformalizedDocumentMetadata_ = builderForValue.build(); - onChanged(); } else { nonformalizedDocumentMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -8673,31 +9791,33 @@ public Builder setNonformalizedDocumentMetadata( */ public Builder mergeNonformalizedDocumentMetadata(Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata value) { if (nonformalizedDocumentMetadataBuilder_ == null) { - if (((bitField0_ & 0x00001000) == 0x00001000) && - nonformalizedDocumentMetadata_ != Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance()) { - nonformalizedDocumentMetadata_ = - Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.newBuilder(nonformalizedDocumentMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00001000) != 0) && + nonformalizedDocumentMetadata_ != null && + nonformalizedDocumentMetadata_ != Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance()) { + getNonformalizedDocumentMetadataBuilder().mergeFrom(value); } else { nonformalizedDocumentMetadata_ = value; } - onChanged(); } else { nonformalizedDocumentMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00001000; + if (nonformalizedDocumentMetadata_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata NonformalizedDocumentMetadata = 13; */ public Builder clearNonformalizedDocumentMetadata() { - if (nonformalizedDocumentMetadataBuilder_ == null) { - nonformalizedDocumentMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); - onChanged(); - } else { - nonformalizedDocumentMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00001000); + nonformalizedDocumentMetadata_ = null; + if (nonformalizedDocumentMetadataBuilder_ != null) { + nonformalizedDocumentMetadataBuilder_.dispose(); + nonformalizedDocumentMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -8715,7 +9835,8 @@ public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentPro if (nonformalizedDocumentMetadataBuilder_ != null) { return nonformalizedDocumentMetadataBuilder_.getMessageOrBuilder(); } else { - return nonformalizedDocumentMetadata_; + return nonformalizedDocumentMetadata_ == null ? + Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : nonformalizedDocumentMetadata_; } } /** @@ -8735,21 +9856,23 @@ public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentPro return nonformalizedDocumentMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata invoiceMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata invoiceMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.Builder, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadataOrBuilder> invoiceMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata InvoiceMetadata = 14; + * @return Whether the invoiceMetadata field is set. */ public boolean hasInvoiceMetadata() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata InvoiceMetadata = 14; + * @return The invoiceMetadata. */ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata getInvoiceMetadata() { if (invoiceMetadataBuilder_ == null) { - return invoiceMetadata_; + return invoiceMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance() : invoiceMetadata_; } else { return invoiceMetadataBuilder_.getMessage(); } @@ -8763,11 +9886,11 @@ public Builder setInvoiceMetadata(Diadoc.Api.Proto.Documents.InvoiceDocument.Inv throw new NullPointerException(); } invoiceMetadata_ = value; - onChanged(); } else { invoiceMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -8777,11 +9900,11 @@ public Builder setInvoiceMetadata( Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.Builder builderForValue) { if (invoiceMetadataBuilder_ == null) { invoiceMetadata_ = builderForValue.build(); - onChanged(); } else { invoiceMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -8789,31 +9912,33 @@ public Builder setInvoiceMetadata( */ public Builder mergeInvoiceMetadata(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata value) { if (invoiceMetadataBuilder_ == null) { - if (((bitField0_ & 0x00002000) == 0x00002000) && - invoiceMetadata_ != Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance()) { - invoiceMetadata_ = - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.newBuilder(invoiceMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00002000) != 0) && + invoiceMetadata_ != null && + invoiceMetadata_ != Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance()) { + getInvoiceMetadataBuilder().mergeFrom(value); } else { invoiceMetadata_ = value; } - onChanged(); } else { invoiceMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00002000; + if (invoiceMetadata_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata InvoiceMetadata = 14; */ public Builder clearInvoiceMetadata() { - if (invoiceMetadataBuilder_ == null) { - invoiceMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance(); - onChanged(); - } else { - invoiceMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00002000); + invoiceMetadata_ = null; + if (invoiceMetadataBuilder_ != null) { + invoiceMetadataBuilder_.dispose(); + invoiceMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -8831,7 +9956,8 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceM if (invoiceMetadataBuilder_ != null) { return invoiceMetadataBuilder_.getMessageOrBuilder(); } else { - return invoiceMetadata_; + return invoiceMetadata_ == null ? + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance() : invoiceMetadata_; } } /** @@ -8851,21 +9977,23 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceM return invoiceMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata trustConnectionRequestMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata trustConnectionRequestMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.Builder, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadataOrBuilder> trustConnectionRequestMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata TrustConnectionRequestMetadata = 15; + * @return Whether the trustConnectionRequestMetadata field is set. */ public boolean hasTrustConnectionRequestMetadata() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata TrustConnectionRequestMetadata = 15; + * @return The trustConnectionRequestMetadata. */ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata getTrustConnectionRequestMetadata() { if (trustConnectionRequestMetadataBuilder_ == null) { - return trustConnectionRequestMetadata_; + return trustConnectionRequestMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance() : trustConnectionRequestMetadata_; } else { return trustConnectionRequestMetadataBuilder_.getMessage(); } @@ -8879,11 +10007,11 @@ public Builder setTrustConnectionRequestMetadata(Diadoc.Api.Proto.Documents.Bila throw new NullPointerException(); } trustConnectionRequestMetadata_ = value; - onChanged(); } else { trustConnectionRequestMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -8893,11 +10021,11 @@ public Builder setTrustConnectionRequestMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.Builder builderForValue) { if (trustConnectionRequestMetadataBuilder_ == null) { trustConnectionRequestMetadata_ = builderForValue.build(); - onChanged(); } else { trustConnectionRequestMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -8905,31 +10033,33 @@ public Builder setTrustConnectionRequestMetadata( */ public Builder mergeTrustConnectionRequestMetadata(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata value) { if (trustConnectionRequestMetadataBuilder_ == null) { - if (((bitField0_ & 0x00004000) == 0x00004000) && - trustConnectionRequestMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance()) { - trustConnectionRequestMetadata_ = - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.newBuilder(trustConnectionRequestMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00004000) != 0) && + trustConnectionRequestMetadata_ != null && + trustConnectionRequestMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance()) { + getTrustConnectionRequestMetadataBuilder().mergeFrom(value); } else { trustConnectionRequestMetadata_ = value; } - onChanged(); } else { trustConnectionRequestMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00004000; + if (trustConnectionRequestMetadata_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.TrustConnectionRequestMetadata TrustConnectionRequestMetadata = 15; */ public Builder clearTrustConnectionRequestMetadata() { - if (trustConnectionRequestMetadataBuilder_ == null) { - trustConnectionRequestMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance(); - onChanged(); - } else { - trustConnectionRequestMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00004000); + trustConnectionRequestMetadata_ = null; + if (trustConnectionRequestMetadataBuilder_ != null) { + trustConnectionRequestMetadataBuilder_.dispose(); + trustConnectionRequestMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -8947,7 +10077,8 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Trus if (trustConnectionRequestMetadataBuilder_ != null) { return trustConnectionRequestMetadataBuilder_.getMessageOrBuilder(); } else { - return trustConnectionRequestMetadata_; + return trustConnectionRequestMetadata_ == null ? + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.TrustConnectionRequestMetadata.getDefaultInstance() : trustConnectionRequestMetadata_; } } /** @@ -8967,21 +10098,23 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Trus return trustConnectionRequestMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata torg12Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata torg12Metadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadataOrBuilder> torg12MetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg12Metadata = 16; + * @return Whether the torg12Metadata field is set. */ public boolean hasTorg12Metadata() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg12Metadata = 16; + * @return The torg12Metadata. */ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getTorg12Metadata() { if (torg12MetadataBuilder_ == null) { - return torg12Metadata_; + return torg12Metadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : torg12Metadata_; } else { return torg12MetadataBuilder_.getMessage(); } @@ -8995,11 +10128,11 @@ public Builder setTorg12Metadata(Diadoc.Api.Proto.Documents.BilateralDocument.Bi throw new NullPointerException(); } torg12Metadata_ = value; - onChanged(); } else { torg12MetadataBuilder_.setMessage(value); } bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -9009,11 +10142,11 @@ public Builder setTorg12Metadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder builderForValue) { if (torg12MetadataBuilder_ == null) { torg12Metadata_ = builderForValue.build(); - onChanged(); } else { torg12MetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -9021,31 +10154,33 @@ public Builder setTorg12Metadata( */ public Builder mergeTorg12Metadata(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata value) { if (torg12MetadataBuilder_ == null) { - if (((bitField0_ & 0x00008000) == 0x00008000) && - torg12Metadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance()) { - torg12Metadata_ = - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.newBuilder(torg12Metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00008000) != 0) && + torg12Metadata_ != null && + torg12Metadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance()) { + getTorg12MetadataBuilder().mergeFrom(value); } else { torg12Metadata_ = value; } - onChanged(); } else { torg12MetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00008000; + if (torg12Metadata_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg12Metadata = 16; */ public Builder clearTorg12Metadata() { - if (torg12MetadataBuilder_ == null) { - torg12Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - onChanged(); - } else { - torg12MetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00008000); + torg12Metadata_ = null; + if (torg12MetadataBuilder_ != null) { + torg12MetadataBuilder_.dispose(); + torg12MetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -9063,7 +10198,8 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Basi if (torg12MetadataBuilder_ != null) { return torg12MetadataBuilder_.getMessageOrBuilder(); } else { - return torg12Metadata_; + return torg12Metadata_ == null ? + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : torg12Metadata_; } } /** @@ -9083,21 +10219,23 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Basi return torg12MetadataBuilder_; } - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata invoiceRevisionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata invoiceRevisionMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.Builder, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadataOrBuilder> invoiceRevisionMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata InvoiceRevisionMetadata = 17; + * @return Whether the invoiceRevisionMetadata field is set. */ public boolean hasInvoiceRevisionMetadata() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata InvoiceRevisionMetadata = 17; + * @return The invoiceRevisionMetadata. */ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata getInvoiceRevisionMetadata() { if (invoiceRevisionMetadataBuilder_ == null) { - return invoiceRevisionMetadata_; + return invoiceRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance() : invoiceRevisionMetadata_; } else { return invoiceRevisionMetadataBuilder_.getMessage(); } @@ -9111,11 +10249,11 @@ public Builder setInvoiceRevisionMetadata(Diadoc.Api.Proto.Documents.InvoiceDocu throw new NullPointerException(); } invoiceRevisionMetadata_ = value; - onChanged(); } else { invoiceRevisionMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -9125,11 +10263,11 @@ public Builder setInvoiceRevisionMetadata( Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.Builder builderForValue) { if (invoiceRevisionMetadataBuilder_ == null) { invoiceRevisionMetadata_ = builderForValue.build(); - onChanged(); } else { invoiceRevisionMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -9137,31 +10275,33 @@ public Builder setInvoiceRevisionMetadata( */ public Builder mergeInvoiceRevisionMetadata(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata value) { if (invoiceRevisionMetadataBuilder_ == null) { - if (((bitField0_ & 0x00010000) == 0x00010000) && - invoiceRevisionMetadata_ != Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance()) { - invoiceRevisionMetadata_ = - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.newBuilder(invoiceRevisionMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00010000) != 0) && + invoiceRevisionMetadata_ != null && + invoiceRevisionMetadata_ != Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance()) { + getInvoiceRevisionMetadataBuilder().mergeFrom(value); } else { invoiceRevisionMetadata_ = value; } - onChanged(); } else { invoiceRevisionMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00010000; + if (invoiceRevisionMetadata_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata InvoiceRevisionMetadata = 17; */ public Builder clearInvoiceRevisionMetadata() { - if (invoiceRevisionMetadataBuilder_ == null) { - invoiceRevisionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance(); - onChanged(); - } else { - invoiceRevisionMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00010000); + invoiceRevisionMetadata_ = null; + if (invoiceRevisionMetadataBuilder_ != null) { + invoiceRevisionMetadataBuilder_.dispose(); + invoiceRevisionMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -9179,7 +10319,8 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceR if (invoiceRevisionMetadataBuilder_ != null) { return invoiceRevisionMetadataBuilder_.getMessageOrBuilder(); } else { - return invoiceRevisionMetadata_; + return invoiceRevisionMetadata_ == null ? + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance() : invoiceRevisionMetadata_; } } /** @@ -9199,21 +10340,23 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceR return invoiceRevisionMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata invoiceCorrectionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata invoiceCorrectionMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.Builder, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadataOrBuilder> invoiceCorrectionMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata InvoiceCorrectionMetadata = 18; + * @return Whether the invoiceCorrectionMetadata field is set. */ public boolean hasInvoiceCorrectionMetadata() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00020000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata InvoiceCorrectionMetadata = 18; + * @return The invoiceCorrectionMetadata. */ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata getInvoiceCorrectionMetadata() { if (invoiceCorrectionMetadataBuilder_ == null) { - return invoiceCorrectionMetadata_; + return invoiceCorrectionMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance() : invoiceCorrectionMetadata_; } else { return invoiceCorrectionMetadataBuilder_.getMessage(); } @@ -9227,11 +10370,11 @@ public Builder setInvoiceCorrectionMetadata(Diadoc.Api.Proto.Documents.InvoiceDo throw new NullPointerException(); } invoiceCorrectionMetadata_ = value; - onChanged(); } else { invoiceCorrectionMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -9241,11 +10384,11 @@ public Builder setInvoiceCorrectionMetadata( Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.Builder builderForValue) { if (invoiceCorrectionMetadataBuilder_ == null) { invoiceCorrectionMetadata_ = builderForValue.build(); - onChanged(); } else { invoiceCorrectionMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -9253,31 +10396,33 @@ public Builder setInvoiceCorrectionMetadata( */ public Builder mergeInvoiceCorrectionMetadata(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata value) { if (invoiceCorrectionMetadataBuilder_ == null) { - if (((bitField0_ & 0x00020000) == 0x00020000) && - invoiceCorrectionMetadata_ != Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance()) { - invoiceCorrectionMetadata_ = - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.newBuilder(invoiceCorrectionMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00020000) != 0) && + invoiceCorrectionMetadata_ != null && + invoiceCorrectionMetadata_ != Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance()) { + getInvoiceCorrectionMetadataBuilder().mergeFrom(value); } else { invoiceCorrectionMetadata_ = value; } - onChanged(); } else { invoiceCorrectionMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00020000; + if (invoiceCorrectionMetadata_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata InvoiceCorrectionMetadata = 18; */ public Builder clearInvoiceCorrectionMetadata() { - if (invoiceCorrectionMetadataBuilder_ == null) { - invoiceCorrectionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance(); - onChanged(); - } else { - invoiceCorrectionMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00020000); + invoiceCorrectionMetadata_ = null; + if (invoiceCorrectionMetadataBuilder_ != null) { + invoiceCorrectionMetadataBuilder_.dispose(); + invoiceCorrectionMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -9295,7 +10440,8 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceC if (invoiceCorrectionMetadataBuilder_ != null) { return invoiceCorrectionMetadataBuilder_.getMessageOrBuilder(); } else { - return invoiceCorrectionMetadata_; + return invoiceCorrectionMetadata_ == null ? + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance() : invoiceCorrectionMetadata_; } } /** @@ -9315,21 +10461,23 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceC return invoiceCorrectionMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata invoiceCorrectionRevisionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata invoiceCorrectionRevisionMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.Builder, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadataOrBuilder> invoiceCorrectionRevisionMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata InvoiceCorrectionRevisionMetadata = 19; + * @return Whether the invoiceCorrectionRevisionMetadata field is set. */ public boolean hasInvoiceCorrectionRevisionMetadata() { - return ((bitField0_ & 0x00040000) == 0x00040000); + return ((bitField0_ & 0x00040000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata InvoiceCorrectionRevisionMetadata = 19; + * @return The invoiceCorrectionRevisionMetadata. */ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata getInvoiceCorrectionRevisionMetadata() { if (invoiceCorrectionRevisionMetadataBuilder_ == null) { - return invoiceCorrectionRevisionMetadata_; + return invoiceCorrectionRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance() : invoiceCorrectionRevisionMetadata_; } else { return invoiceCorrectionRevisionMetadataBuilder_.getMessage(); } @@ -9343,11 +10491,11 @@ public Builder setInvoiceCorrectionRevisionMetadata(Diadoc.Api.Proto.Documents.I throw new NullPointerException(); } invoiceCorrectionRevisionMetadata_ = value; - onChanged(); } else { invoiceCorrectionRevisionMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -9357,11 +10505,11 @@ public Builder setInvoiceCorrectionRevisionMetadata( Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.Builder builderForValue) { if (invoiceCorrectionRevisionMetadataBuilder_ == null) { invoiceCorrectionRevisionMetadata_ = builderForValue.build(); - onChanged(); } else { invoiceCorrectionRevisionMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -9369,31 +10517,33 @@ public Builder setInvoiceCorrectionRevisionMetadata( */ public Builder mergeInvoiceCorrectionRevisionMetadata(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata value) { if (invoiceCorrectionRevisionMetadataBuilder_ == null) { - if (((bitField0_ & 0x00040000) == 0x00040000) && - invoiceCorrectionRevisionMetadata_ != Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance()) { - invoiceCorrectionRevisionMetadata_ = - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.newBuilder(invoiceCorrectionRevisionMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00040000) != 0) && + invoiceCorrectionRevisionMetadata_ != null && + invoiceCorrectionRevisionMetadata_ != Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance()) { + getInvoiceCorrectionRevisionMetadataBuilder().mergeFrom(value); } else { invoiceCorrectionRevisionMetadata_ = value; } - onChanged(); } else { invoiceCorrectionRevisionMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00040000; + if (invoiceCorrectionRevisionMetadata_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata InvoiceCorrectionRevisionMetadata = 19; */ public Builder clearInvoiceCorrectionRevisionMetadata() { - if (invoiceCorrectionRevisionMetadataBuilder_ == null) { - invoiceCorrectionRevisionMetadata_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance(); - onChanged(); - } else { - invoiceCorrectionRevisionMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00040000); + invoiceCorrectionRevisionMetadata_ = null; + if (invoiceCorrectionRevisionMetadataBuilder_ != null) { + invoiceCorrectionRevisionMetadataBuilder_.dispose(); + invoiceCorrectionRevisionMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -9411,7 +10561,8 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceC if (invoiceCorrectionRevisionMetadataBuilder_ != null) { return invoiceCorrectionRevisionMetadataBuilder_.getMessageOrBuilder(); } else { - return invoiceCorrectionRevisionMetadata_; + return invoiceCorrectionRevisionMetadata_ == null ? + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance() : invoiceCorrectionRevisionMetadata_; } } /** @@ -9431,21 +10582,23 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceC return invoiceCorrectionRevisionMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata acceptanceCertificateMetadata_ = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata acceptanceCertificateMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata, Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.Builder, Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadataOrBuilder> acceptanceCertificateMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata AcceptanceCertificateMetadata = 20; + * @return Whether the acceptanceCertificateMetadata field is set. */ public boolean hasAcceptanceCertificateMetadata() { - return ((bitField0_ & 0x00080000) == 0x00080000); + return ((bitField0_ & 0x00080000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata AcceptanceCertificateMetadata = 20; + * @return The acceptanceCertificateMetadata. */ public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata getAcceptanceCertificateMetadata() { if (acceptanceCertificateMetadataBuilder_ == null) { - return acceptanceCertificateMetadata_; + return acceptanceCertificateMetadata_ == null ? Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance() : acceptanceCertificateMetadata_; } else { return acceptanceCertificateMetadataBuilder_.getMessage(); } @@ -9459,11 +10612,11 @@ public Builder setAcceptanceCertificateMetadata(Diadoc.Api.Proto.Documents.Accep throw new NullPointerException(); } acceptanceCertificateMetadata_ = value; - onChanged(); } else { acceptanceCertificateMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -9473,11 +10626,11 @@ public Builder setAcceptanceCertificateMetadata( Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.Builder builderForValue) { if (acceptanceCertificateMetadataBuilder_ == null) { acceptanceCertificateMetadata_ = builderForValue.build(); - onChanged(); } else { acceptanceCertificateMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -9485,31 +10638,33 @@ public Builder setAcceptanceCertificateMetadata( */ public Builder mergeAcceptanceCertificateMetadata(Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata value) { if (acceptanceCertificateMetadataBuilder_ == null) { - if (((bitField0_ & 0x00080000) == 0x00080000) && - acceptanceCertificateMetadata_ != Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance()) { - acceptanceCertificateMetadata_ = - Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.newBuilder(acceptanceCertificateMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00080000) != 0) && + acceptanceCertificateMetadata_ != null && + acceptanceCertificateMetadata_ != Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance()) { + getAcceptanceCertificateMetadataBuilder().mergeFrom(value); } else { acceptanceCertificateMetadata_ = value; } - onChanged(); } else { acceptanceCertificateMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00080000; + if (acceptanceCertificateMetadata_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateMetadata AcceptanceCertificateMetadata = 20; */ public Builder clearAcceptanceCertificateMetadata() { - if (acceptanceCertificateMetadataBuilder_ == null) { - acceptanceCertificateMetadata_ = Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance(); - onChanged(); - } else { - acceptanceCertificateMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00080000); + acceptanceCertificateMetadata_ = null; + if (acceptanceCertificateMetadataBuilder_ != null) { + acceptanceCertificateMetadataBuilder_.dispose(); + acceptanceCertificateMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -9527,7 +10682,8 @@ public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertif if (acceptanceCertificateMetadataBuilder_ != null) { return acceptanceCertificateMetadataBuilder_.getMessageOrBuilder(); } else { - return acceptanceCertificateMetadata_; + return acceptanceCertificateMetadata_ == null ? + Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertificateDocumentProtos.AcceptanceCertificateMetadata.getDefaultInstance() : acceptanceCertificateMetadata_; } } /** @@ -9547,21 +10703,23 @@ public Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument.AcceptanceCertif return acceptanceCertificateMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata proformaInvoiceMetadata_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata proformaInvoiceMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata, Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.Builder, Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadataOrBuilder> proformaInvoiceMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata ProformaInvoiceMetadata = 21; + * @return Whether the proformaInvoiceMetadata field is set. */ public boolean hasProformaInvoiceMetadata() { - return ((bitField0_ & 0x00100000) == 0x00100000); + return ((bitField0_ & 0x00100000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata ProformaInvoiceMetadata = 21; + * @return The proformaInvoiceMetadata. */ public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata getProformaInvoiceMetadata() { if (proformaInvoiceMetadataBuilder_ == null) { - return proformaInvoiceMetadata_; + return proformaInvoiceMetadata_ == null ? Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance() : proformaInvoiceMetadata_; } else { return proformaInvoiceMetadataBuilder_.getMessage(); } @@ -9575,11 +10733,11 @@ public Builder setProformaInvoiceMetadata(Diadoc.Api.Proto.Documents.UnilateralD throw new NullPointerException(); } proformaInvoiceMetadata_ = value; - onChanged(); } else { proformaInvoiceMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -9589,11 +10747,11 @@ public Builder setProformaInvoiceMetadata( Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.Builder builderForValue) { if (proformaInvoiceMetadataBuilder_ == null) { proformaInvoiceMetadata_ = builderForValue.build(); - onChanged(); } else { proformaInvoiceMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -9601,31 +10759,33 @@ public Builder setProformaInvoiceMetadata( */ public Builder mergeProformaInvoiceMetadata(Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata value) { if (proformaInvoiceMetadataBuilder_ == null) { - if (((bitField0_ & 0x00100000) == 0x00100000) && - proformaInvoiceMetadata_ != Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance()) { - proformaInvoiceMetadata_ = - Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.newBuilder(proformaInvoiceMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00100000) != 0) && + proformaInvoiceMetadata_ != null && + proformaInvoiceMetadata_ != Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance()) { + getProformaInvoiceMetadataBuilder().mergeFrom(value); } else { proformaInvoiceMetadata_ = value; } - onChanged(); } else { proformaInvoiceMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00100000; + if (proformaInvoiceMetadata_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata ProformaInvoiceMetadata = 21; */ public Builder clearProformaInvoiceMetadata() { - if (proformaInvoiceMetadataBuilder_ == null) { - proformaInvoiceMetadata_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance(); - onChanged(); - } else { - proformaInvoiceMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00100000); + proformaInvoiceMetadata_ = null; + if (proformaInvoiceMetadataBuilder_ != null) { + proformaInvoiceMetadataBuilder_.dispose(); + proformaInvoiceMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -9643,7 +10803,8 @@ public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.Pr if (proformaInvoiceMetadataBuilder_ != null) { return proformaInvoiceMetadataBuilder_.getMessageOrBuilder(); } else { - return proformaInvoiceMetadata_; + return proformaInvoiceMetadata_ == null ? + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance() : proformaInvoiceMetadata_; } } /** @@ -9663,21 +10824,23 @@ public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.Pr return proformaInvoiceMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata xmlTorg12Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata xmlTorg12Metadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadataOrBuilder> xmlTorg12MetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlTorg12Metadata = 22; + * @return Whether the xmlTorg12Metadata field is set. */ public boolean hasXmlTorg12Metadata() { - return ((bitField0_ & 0x00200000) == 0x00200000); + return ((bitField0_ & 0x00200000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlTorg12Metadata = 22; + * @return The xmlTorg12Metadata. */ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getXmlTorg12Metadata() { if (xmlTorg12MetadataBuilder_ == null) { - return xmlTorg12Metadata_; + return xmlTorg12Metadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : xmlTorg12Metadata_; } else { return xmlTorg12MetadataBuilder_.getMessage(); } @@ -9691,11 +10854,11 @@ public Builder setXmlTorg12Metadata(Diadoc.Api.Proto.Documents.BilateralDocument throw new NullPointerException(); } xmlTorg12Metadata_ = value; - onChanged(); } else { xmlTorg12MetadataBuilder_.setMessage(value); } bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -9705,11 +10868,11 @@ public Builder setXmlTorg12Metadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder builderForValue) { if (xmlTorg12MetadataBuilder_ == null) { xmlTorg12Metadata_ = builderForValue.build(); - onChanged(); } else { xmlTorg12MetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -9717,31 +10880,33 @@ public Builder setXmlTorg12Metadata( */ public Builder mergeXmlTorg12Metadata(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata value) { if (xmlTorg12MetadataBuilder_ == null) { - if (((bitField0_ & 0x00200000) == 0x00200000) && - xmlTorg12Metadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance()) { - xmlTorg12Metadata_ = - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.newBuilder(xmlTorg12Metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00200000) != 0) && + xmlTorg12Metadata_ != null && + xmlTorg12Metadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance()) { + getXmlTorg12MetadataBuilder().mergeFrom(value); } else { xmlTorg12Metadata_ = value; } - onChanged(); } else { xmlTorg12MetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00200000; + if (xmlTorg12Metadata_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlTorg12Metadata = 22; */ public Builder clearXmlTorg12Metadata() { - if (xmlTorg12MetadataBuilder_ == null) { - xmlTorg12Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - onChanged(); - } else { - xmlTorg12MetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00200000); + xmlTorg12Metadata_ = null; + if (xmlTorg12MetadataBuilder_ != null) { + xmlTorg12MetadataBuilder_.dispose(); + xmlTorg12MetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -9759,7 +10924,8 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Basi if (xmlTorg12MetadataBuilder_ != null) { return xmlTorg12MetadataBuilder_.getMessageOrBuilder(); } else { - return xmlTorg12Metadata_; + return xmlTorg12Metadata_ == null ? + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : xmlTorg12Metadata_; } } /** @@ -9779,21 +10945,23 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Basi return xmlTorg12MetadataBuilder_; } - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata xmlAcceptanceCertificateMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata xmlAcceptanceCertificateMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadataOrBuilder> xmlAcceptanceCertificateMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlAcceptanceCertificateMetadata = 23; + * @return Whether the xmlAcceptanceCertificateMetadata field is set. */ public boolean hasXmlAcceptanceCertificateMetadata() { - return ((bitField0_ & 0x00400000) == 0x00400000); + return ((bitField0_ & 0x00400000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlAcceptanceCertificateMetadata = 23; + * @return The xmlAcceptanceCertificateMetadata. */ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getXmlAcceptanceCertificateMetadata() { if (xmlAcceptanceCertificateMetadataBuilder_ == null) { - return xmlAcceptanceCertificateMetadata_; + return xmlAcceptanceCertificateMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : xmlAcceptanceCertificateMetadata_; } else { return xmlAcceptanceCertificateMetadataBuilder_.getMessage(); } @@ -9807,11 +10975,11 @@ public Builder setXmlAcceptanceCertificateMetadata(Diadoc.Api.Proto.Documents.Bi throw new NullPointerException(); } xmlAcceptanceCertificateMetadata_ = value; - onChanged(); } else { xmlAcceptanceCertificateMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -9821,11 +10989,11 @@ public Builder setXmlAcceptanceCertificateMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder builderForValue) { if (xmlAcceptanceCertificateMetadataBuilder_ == null) { xmlAcceptanceCertificateMetadata_ = builderForValue.build(); - onChanged(); } else { xmlAcceptanceCertificateMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -9833,31 +11001,33 @@ public Builder setXmlAcceptanceCertificateMetadata( */ public Builder mergeXmlAcceptanceCertificateMetadata(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata value) { if (xmlAcceptanceCertificateMetadataBuilder_ == null) { - if (((bitField0_ & 0x00400000) == 0x00400000) && - xmlAcceptanceCertificateMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance()) { - xmlAcceptanceCertificateMetadata_ = - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.newBuilder(xmlAcceptanceCertificateMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00400000) != 0) && + xmlAcceptanceCertificateMetadata_ != null && + xmlAcceptanceCertificateMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance()) { + getXmlAcceptanceCertificateMetadataBuilder().mergeFrom(value); } else { xmlAcceptanceCertificateMetadata_ = value; } - onChanged(); } else { xmlAcceptanceCertificateMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00400000; + if (xmlAcceptanceCertificateMetadata_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata XmlAcceptanceCertificateMetadata = 23; */ public Builder clearXmlAcceptanceCertificateMetadata() { - if (xmlAcceptanceCertificateMetadataBuilder_ == null) { - xmlAcceptanceCertificateMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - onChanged(); - } else { - xmlAcceptanceCertificateMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00400000); + xmlAcceptanceCertificateMetadata_ = null; + if (xmlAcceptanceCertificateMetadataBuilder_ != null) { + xmlAcceptanceCertificateMetadataBuilder_.dispose(); + xmlAcceptanceCertificateMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -9875,7 +11045,8 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Basi if (xmlAcceptanceCertificateMetadataBuilder_ != null) { return xmlAcceptanceCertificateMetadataBuilder_.getMessageOrBuilder(); } else { - return xmlAcceptanceCertificateMetadata_; + return xmlAcceptanceCertificateMetadata_ == null ? + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : xmlAcceptanceCertificateMetadata_; } } /** @@ -9898,27 +11069,35 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Basi private boolean isDeleted_ ; /** * optional bool IsDeleted = 24 [default = false]; + * @return Whether the isDeleted field is set. */ + @java.lang.Override public boolean hasIsDeleted() { - return ((bitField0_ & 0x00800000) == 0x00800000); + return ((bitField0_ & 0x00800000) != 0); } /** * optional bool IsDeleted = 24 [default = false]; + * @return The isDeleted. */ + @java.lang.Override public boolean getIsDeleted() { return isDeleted_; } /** * optional bool IsDeleted = 24 [default = false]; + * @param value The isDeleted to set. + * @return This builder for chaining. */ public Builder setIsDeleted(boolean value) { - bitField0_ |= 0x00800000; + isDeleted_ = value; + bitField0_ |= 0x00800000; onChanged(); return this; } /** * optional bool IsDeleted = 24 [default = false]; + * @return This builder for chaining. */ public Builder clearIsDeleted() { bitField0_ = (bitField0_ & ~0x00800000); @@ -9930,12 +11109,14 @@ public Builder clearIsDeleted() { private java.lang.Object departmentId_ = ""; /** * optional string DepartmentId = 25; + * @return Whether the departmentId field is set. */ public boolean hasDepartmentId() { - return ((bitField0_ & 0x01000000) == 0x01000000); + return ((bitField0_ & 0x01000000) != 0); } /** * optional string DepartmentId = 25; + * @return The departmentId. */ public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; @@ -9953,6 +11134,7 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 25; + * @return The bytes for departmentId. */ public com.google.protobuf.ByteString getDepartmentIdBytes() { @@ -9969,36 +11151,37 @@ public java.lang.String getDepartmentId() { } /** * optional string DepartmentId = 25; + * @param value The departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x01000000; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x01000000; onChanged(); return this; } /** * optional string DepartmentId = 25; + * @return This builder for chaining. */ public Builder clearDepartmentId() { - bitField0_ = (bitField0_ & ~0x01000000); departmentId_ = getDefaultInstance().getDepartmentId(); + bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } /** * optional string DepartmentId = 25; + * @param value The bytes for departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x01000000; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -10006,27 +11189,35 @@ public Builder setDepartmentIdBytes( private boolean isTest_ ; /** * optional bool IsTest = 26 [default = false]; + * @return Whether the isTest field is set. */ + @java.lang.Override public boolean hasIsTest() { - return ((bitField0_ & 0x02000000) == 0x02000000); + return ((bitField0_ & 0x02000000) != 0); } /** * optional bool IsTest = 26 [default = false]; + * @return The isTest. */ + @java.lang.Override public boolean getIsTest() { return isTest_; } /** * optional bool IsTest = 26 [default = false]; + * @param value The isTest to set. + * @return This builder for chaining. */ public Builder setIsTest(boolean value) { - bitField0_ |= 0x02000000; + isTest_ = value; + bitField0_ |= 0x02000000; onChanged(); return this; } /** * optional bool IsTest = 26 [default = false]; + * @return This builder for chaining. */ public Builder clearIsTest() { bitField0_ = (bitField0_ & ~0x02000000); @@ -10038,12 +11229,14 @@ public Builder clearIsTest() { private java.lang.Object fromDepartmentId_ = ""; /** * optional string FromDepartmentId = 27; + * @return Whether the fromDepartmentId field is set. */ public boolean hasFromDepartmentId() { - return ((bitField0_ & 0x04000000) == 0x04000000); + return ((bitField0_ & 0x04000000) != 0); } /** * optional string FromDepartmentId = 27; + * @return The fromDepartmentId. */ public java.lang.String getFromDepartmentId() { java.lang.Object ref = fromDepartmentId_; @@ -10061,6 +11254,7 @@ public java.lang.String getFromDepartmentId() { } /** * optional string FromDepartmentId = 27; + * @return The bytes for fromDepartmentId. */ public com.google.protobuf.ByteString getFromDepartmentIdBytes() { @@ -10077,36 +11271,37 @@ public java.lang.String getFromDepartmentId() { } /** * optional string FromDepartmentId = 27; + * @param value The fromDepartmentId to set. + * @return This builder for chaining. */ public Builder setFromDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x04000000; + if (value == null) { throw new NullPointerException(); } fromDepartmentId_ = value; + bitField0_ |= 0x04000000; onChanged(); return this; } /** * optional string FromDepartmentId = 27; + * @return This builder for chaining. */ public Builder clearFromDepartmentId() { - bitField0_ = (bitField0_ & ~0x04000000); fromDepartmentId_ = getDefaultInstance().getFromDepartmentId(); + bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } /** * optional string FromDepartmentId = 27; + * @param value The bytes for fromDepartmentId to set. + * @return This builder for chaining. */ public Builder setFromDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x04000000; + if (value == null) { throw new NullPointerException(); } fromDepartmentId_ = value; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -10114,12 +11309,14 @@ public Builder setFromDepartmentIdBytes( private java.lang.Object toDepartmentId_ = ""; /** * optional string ToDepartmentId = 28; + * @return Whether the toDepartmentId field is set. */ public boolean hasToDepartmentId() { - return ((bitField0_ & 0x08000000) == 0x08000000); + return ((bitField0_ & 0x08000000) != 0); } /** * optional string ToDepartmentId = 28; + * @return The toDepartmentId. */ public java.lang.String getToDepartmentId() { java.lang.Object ref = toDepartmentId_; @@ -10137,6 +11334,7 @@ public java.lang.String getToDepartmentId() { } /** * optional string ToDepartmentId = 28; + * @return The bytes for toDepartmentId. */ public com.google.protobuf.ByteString getToDepartmentIdBytes() { @@ -10153,55 +11351,58 @@ public java.lang.String getToDepartmentId() { } /** * optional string ToDepartmentId = 28; + * @param value The toDepartmentId to set. + * @return This builder for chaining. */ public Builder setToDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x08000000; + if (value == null) { throw new NullPointerException(); } toDepartmentId_ = value; + bitField0_ |= 0x08000000; onChanged(); return this; } /** * optional string ToDepartmentId = 28; + * @return This builder for chaining. */ public Builder clearToDepartmentId() { - bitField0_ = (bitField0_ & ~0x08000000); toDepartmentId_ = getDefaultInstance().getToDepartmentId(); + bitField0_ = (bitField0_ & ~0x08000000); onChanged(); return this; } /** * optional string ToDepartmentId = 28; + * @param value The bytes for toDepartmentId to set. + * @return This builder for chaining. */ public Builder setToDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x08000000; + if (value == null) { throw new NullPointerException(); } toDepartmentId_ = value; + bitField0_ |= 0x08000000; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata priceListMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata priceListMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.Builder, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadataOrBuilder> priceListMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata PriceListMetadata = 29; + * @return Whether the priceListMetadata field is set. */ public boolean hasPriceListMetadata() { - return ((bitField0_ & 0x10000000) == 0x10000000); + return ((bitField0_ & 0x10000000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata PriceListMetadata = 29; + * @return The priceListMetadata. */ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata getPriceListMetadata() { if (priceListMetadataBuilder_ == null) { - return priceListMetadata_; + return priceListMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance() : priceListMetadata_; } else { return priceListMetadataBuilder_.getMessage(); } @@ -10215,11 +11416,11 @@ public Builder setPriceListMetadata(Diadoc.Api.Proto.Documents.BilateralDocument throw new NullPointerException(); } priceListMetadata_ = value; - onChanged(); } else { priceListMetadataBuilder_.setMessage(value); } bitField0_ |= 0x10000000; + onChanged(); return this; } /** @@ -10229,11 +11430,11 @@ public Builder setPriceListMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.Builder builderForValue) { if (priceListMetadataBuilder_ == null) { priceListMetadata_ = builderForValue.build(); - onChanged(); } else { priceListMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x10000000; + onChanged(); return this; } /** @@ -10241,31 +11442,33 @@ public Builder setPriceListMetadata( */ public Builder mergePriceListMetadata(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata value) { if (priceListMetadataBuilder_ == null) { - if (((bitField0_ & 0x10000000) == 0x10000000) && - priceListMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance()) { - priceListMetadata_ = - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.newBuilder(priceListMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x10000000) != 0) && + priceListMetadata_ != null && + priceListMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance()) { + getPriceListMetadataBuilder().mergeFrom(value); } else { priceListMetadata_ = value; } - onChanged(); } else { priceListMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x10000000; + if (priceListMetadata_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.PriceListMetadata PriceListMetadata = 29; */ public Builder clearPriceListMetadata() { - if (priceListMetadataBuilder_ == null) { - priceListMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance(); - onChanged(); - } else { - priceListMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x10000000); + priceListMetadata_ = null; + if (priceListMetadataBuilder_ != null) { + priceListMetadataBuilder_.dispose(); + priceListMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -10283,7 +11486,8 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Pric if (priceListMetadataBuilder_ != null) { return priceListMetadataBuilder_.getMessageOrBuilder(); } else { - return priceListMetadata_; + return priceListMetadata_ == null ? + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.PriceListMetadata.getDefaultInstance() : priceListMetadata_; } } /** @@ -10306,12 +11510,14 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Pric private java.lang.Object customDocumentId_ = ""; /** * optional string CustomDocumentId = 30; + * @return Whether the customDocumentId field is set. */ public boolean hasCustomDocumentId() { - return ((bitField0_ & 0x20000000) == 0x20000000); + return ((bitField0_ & 0x20000000) != 0); } /** * optional string CustomDocumentId = 30; + * @return The customDocumentId. */ public java.lang.String getCustomDocumentId() { java.lang.Object ref = customDocumentId_; @@ -10329,6 +11535,7 @@ public java.lang.String getCustomDocumentId() { } /** * optional string CustomDocumentId = 30; + * @return The bytes for customDocumentId. */ public com.google.protobuf.ByteString getCustomDocumentIdBytes() { @@ -10345,55 +11552,58 @@ public java.lang.String getCustomDocumentId() { } /** * optional string CustomDocumentId = 30; + * @param value The customDocumentId to set. + * @return This builder for chaining. */ public Builder setCustomDocumentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x20000000; + if (value == null) { throw new NullPointerException(); } customDocumentId_ = value; + bitField0_ |= 0x20000000; onChanged(); return this; } /** * optional string CustomDocumentId = 30; + * @return This builder for chaining. */ public Builder clearCustomDocumentId() { - bitField0_ = (bitField0_ & ~0x20000000); customDocumentId_ = getDefaultInstance().getCustomDocumentId(); + bitField0_ = (bitField0_ & ~0x20000000); onChanged(); return this; } /** * optional string CustomDocumentId = 30; + * @param value The bytes for customDocumentId to set. + * @return This builder for chaining. */ public Builder setCustomDocumentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x20000000; + if (value == null) { throw new NullPointerException(); } customDocumentId_ = value; + bitField0_ |= 0x20000000; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus resolutionStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus resolutionStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus, Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.Builder, Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusOrBuilder> resolutionStatusBuilder_; /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatus ResolutionStatus = 31; + * @return Whether the resolutionStatus field is set. */ public boolean hasResolutionStatus() { - return ((bitField0_ & 0x40000000) == 0x40000000); + return ((bitField0_ & 0x40000000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatus ResolutionStatus = 31; + * @return The resolutionStatus. */ public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus getResolutionStatus() { if (resolutionStatusBuilder_ == null) { - return resolutionStatus_; + return resolutionStatus_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance() : resolutionStatus_; } else { return resolutionStatusBuilder_.getMessage(); } @@ -10407,11 +11617,11 @@ public Builder setResolutionStatus(Diadoc.Api.Proto.Documents.DocumentProtos.Res throw new NullPointerException(); } resolutionStatus_ = value; - onChanged(); } else { resolutionStatusBuilder_.setMessage(value); } bitField0_ |= 0x40000000; + onChanged(); return this; } /** @@ -10421,11 +11631,11 @@ public Builder setResolutionStatus( Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.Builder builderForValue) { if (resolutionStatusBuilder_ == null) { resolutionStatus_ = builderForValue.build(); - onChanged(); } else { resolutionStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x40000000; + onChanged(); return this; } /** @@ -10433,31 +11643,33 @@ public Builder setResolutionStatus( */ public Builder mergeResolutionStatus(Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus value) { if (resolutionStatusBuilder_ == null) { - if (((bitField0_ & 0x40000000) == 0x40000000) && - resolutionStatus_ != Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance()) { - resolutionStatus_ = - Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.newBuilder(resolutionStatus_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x40000000) != 0) && + resolutionStatus_ != null && + resolutionStatus_ != Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance()) { + getResolutionStatusBuilder().mergeFrom(value); } else { resolutionStatus_ = value; } - onChanged(); } else { resolutionStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x40000000; + if (resolutionStatus_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatus ResolutionStatus = 31; */ public Builder clearResolutionStatus() { - if (resolutionStatusBuilder_ == null) { - resolutionStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance(); - onChanged(); - } else { - resolutionStatusBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x40000000); + resolutionStatus_ = null; + if (resolutionStatusBuilder_ != null) { + resolutionStatusBuilder_.dispose(); + resolutionStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -10475,7 +11687,8 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusOrBuilder getRe if (resolutionStatusBuilder_ != null) { return resolutionStatusBuilder_.getMessageOrBuilder(); } else { - return resolutionStatus_; + return resolutionStatus_ == null ? + Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance() : resolutionStatus_; } } /** @@ -10495,37 +11708,44 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusOrBuilder getRe return resolutionStatusBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus revocationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus; + private int revocationStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 32 [default = UnknownRevocationStatus]; + * @return Whether the revocationStatus field is set. */ - public boolean hasRevocationStatus() { - return ((bitField0_ & 0x80000000) == 0x80000000); + @java.lang.Override public boolean hasRevocationStatus() { + return ((bitField0_ & 0x80000000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 32 [default = UnknownRevocationStatus]; + * @return The revocationStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus getRevocationStatus() { - return revocationStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.forNumber(revocationStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 32 [default = UnknownRevocationStatus]; + * @param value The revocationStatus to set. + * @return This builder for chaining. */ public Builder setRevocationStatus(Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x80000000; - revocationStatus_ = value; + revocationStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.RevocationStatus RevocationStatus = 32 [default = UnknownRevocationStatus]; + * @return This builder for chaining. */ public Builder clearRevocationStatus() { bitField0_ = (bitField0_ & ~0x80000000); - revocationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RevocationStatus.UnknownRevocationStatus; + revocationStatus_ = 0; onChanged(); return this; } @@ -10533,27 +11753,35 @@ public Builder clearRevocationStatus() { private long sendTimestampTicks_ ; /** * optional sfixed64 SendTimestampTicks = 33; + * @return Whether the sendTimestampTicks field is set. */ + @java.lang.Override public boolean hasSendTimestampTicks() { - return ((bitField1_ & 0x00000001) == 0x00000001); + return ((bitField1_ & 0x00000001) != 0); } /** * optional sfixed64 SendTimestampTicks = 33; + * @return The sendTimestampTicks. */ + @java.lang.Override public long getSendTimestampTicks() { return sendTimestampTicks_; } /** * optional sfixed64 SendTimestampTicks = 33; + * @param value The sendTimestampTicks to set. + * @return This builder for chaining. */ public Builder setSendTimestampTicks(long value) { - bitField1_ |= 0x00000001; + sendTimestampTicks_ = value; + bitField1_ |= 0x00000001; onChanged(); return this; } /** * optional sfixed64 SendTimestampTicks = 33; + * @return This builder for chaining. */ public Builder clearSendTimestampTicks() { bitField1_ = (bitField1_ & ~0x00000001); @@ -10565,27 +11793,35 @@ public Builder clearSendTimestampTicks() { private long deliveryTimestampTicks_ ; /** * optional sfixed64 DeliveryTimestampTicks = 34; + * @return Whether the deliveryTimestampTicks field is set. */ + @java.lang.Override public boolean hasDeliveryTimestampTicks() { - return ((bitField1_ & 0x00000002) == 0x00000002); + return ((bitField1_ & 0x00000002) != 0); } /** * optional sfixed64 DeliveryTimestampTicks = 34; + * @return The deliveryTimestampTicks. */ + @java.lang.Override public long getDeliveryTimestampTicks() { return deliveryTimestampTicks_; } /** * optional sfixed64 DeliveryTimestampTicks = 34; + * @param value The deliveryTimestampTicks to set. + * @return This builder for chaining. */ public Builder setDeliveryTimestampTicks(long value) { - bitField1_ |= 0x00000002; + deliveryTimestampTicks_ = value; + bitField1_ |= 0x00000002; onChanged(); return this; } /** * optional sfixed64 DeliveryTimestampTicks = 34; + * @return This builder for chaining. */ public Builder clearDeliveryTimestampTicks() { bitField1_ = (bitField1_ & ~0x00000002); @@ -10597,7 +11833,7 @@ public Builder clearDeliveryTimestampTicks() { private java.util.List forwardDocumentEvents_ = java.util.Collections.emptyList(); private void ensureForwardDocumentEventsIsMutable() { - if (!((bitField1_ & 0x00000004) == 0x00000004)) { + if (!((bitField1_ & 0x00000004) != 0)) { forwardDocumentEvents_ = new java.util.ArrayList(forwardDocumentEvents_); bitField1_ |= 0x00000004; } @@ -10826,7 +12062,7 @@ public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder forwardDocumentEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent, Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder, Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEventOrBuilder>( forwardDocumentEvents_, - ((bitField1_ & 0x00000004) == 0x00000004), + ((bitField1_ & 0x00000004) != 0), getParentForChildren(), isClean()); forwardDocumentEvents_ = null; @@ -10834,21 +12070,23 @@ public Diadoc.Api.Proto.ForwardDocumentEventProtos.ForwardDocumentEvent.Builder return forwardDocumentEventsBuilder_; } - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata reconciliationActMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata reconciliationActMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.Builder, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadataOrBuilder> reconciliationActMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata ReconciliationActMetadata = 38; + * @return Whether the reconciliationActMetadata field is set. */ public boolean hasReconciliationActMetadata() { - return ((bitField1_ & 0x00000008) == 0x00000008); + return ((bitField1_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata ReconciliationActMetadata = 38; + * @return The reconciliationActMetadata. */ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata getReconciliationActMetadata() { if (reconciliationActMetadataBuilder_ == null) { - return reconciliationActMetadata_; + return reconciliationActMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance() : reconciliationActMetadata_; } else { return reconciliationActMetadataBuilder_.getMessage(); } @@ -10862,11 +12100,11 @@ public Builder setReconciliationActMetadata(Diadoc.Api.Proto.Documents.Bilateral throw new NullPointerException(); } reconciliationActMetadata_ = value; - onChanged(); } else { reconciliationActMetadataBuilder_.setMessage(value); } bitField1_ |= 0x00000008; + onChanged(); return this; } /** @@ -10876,11 +12114,11 @@ public Builder setReconciliationActMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.Builder builderForValue) { if (reconciliationActMetadataBuilder_ == null) { reconciliationActMetadata_ = builderForValue.build(); - onChanged(); } else { reconciliationActMetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000008; + onChanged(); return this; } /** @@ -10888,31 +12126,33 @@ public Builder setReconciliationActMetadata( */ public Builder mergeReconciliationActMetadata(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata value) { if (reconciliationActMetadataBuilder_ == null) { - if (((bitField1_ & 0x00000008) == 0x00000008) && - reconciliationActMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance()) { - reconciliationActMetadata_ = - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.newBuilder(reconciliationActMetadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x00000008) != 0) && + reconciliationActMetadata_ != null && + reconciliationActMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance()) { + getReconciliationActMetadataBuilder().mergeFrom(value); } else { reconciliationActMetadata_ = value; } - onChanged(); } else { reconciliationActMetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x00000008; + if (reconciliationActMetadata_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentMetadata ReconciliationActMetadata = 38; */ public Builder clearReconciliationActMetadata() { - if (reconciliationActMetadataBuilder_ == null) { - reconciliationActMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance(); - onChanged(); - } else { - reconciliationActMetadataBuilder_.clear(); - } bitField1_ = (bitField1_ & ~0x00000008); + reconciliationActMetadata_ = null; + if (reconciliationActMetadataBuilder_ != null) { + reconciliationActMetadataBuilder_.dispose(); + reconciliationActMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -10930,7 +12170,8 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Bila if (reconciliationActMetadataBuilder_ != null) { return reconciliationActMetadataBuilder_.getMessageOrBuilder(); } else { - return reconciliationActMetadata_; + return reconciliationActMetadata_ == null ? + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BilateralDocumentMetadata.getDefaultInstance() : reconciliationActMetadata_; } } /** @@ -10950,21 +12191,23 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Bila return reconciliationActMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata contractMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata contractMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.Builder, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadataOrBuilder> contractMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata ContractMetadata = 39; + * @return Whether the contractMetadata field is set. */ public boolean hasContractMetadata() { - return ((bitField1_ & 0x00000010) == 0x00000010); + return ((bitField1_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata ContractMetadata = 39; + * @return The contractMetadata. */ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata getContractMetadata() { if (contractMetadataBuilder_ == null) { - return contractMetadata_; + return contractMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance() : contractMetadata_; } else { return contractMetadataBuilder_.getMessage(); } @@ -10978,11 +12221,11 @@ public Builder setContractMetadata(Diadoc.Api.Proto.Documents.BilateralDocument. throw new NullPointerException(); } contractMetadata_ = value; - onChanged(); } else { contractMetadataBuilder_.setMessage(value); } bitField1_ |= 0x00000010; + onChanged(); return this; } /** @@ -10992,11 +12235,11 @@ public Builder setContractMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.Builder builderForValue) { if (contractMetadataBuilder_ == null) { contractMetadata_ = builderForValue.build(); - onChanged(); } else { contractMetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000010; + onChanged(); return this; } /** @@ -11004,31 +12247,33 @@ public Builder setContractMetadata( */ public Builder mergeContractMetadata(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata value) { if (contractMetadataBuilder_ == null) { - if (((bitField1_ & 0x00000010) == 0x00000010) && - contractMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance()) { - contractMetadata_ = - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.newBuilder(contractMetadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x00000010) != 0) && + contractMetadata_ != null && + contractMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance()) { + getContractMetadataBuilder().mergeFrom(value); } else { contractMetadata_ = value; } - onChanged(); } else { contractMetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x00000010; + if (contractMetadata_ != null) { + bitField1_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.ContractMetadata ContractMetadata = 39; */ public Builder clearContractMetadata() { - if (contractMetadataBuilder_ == null) { - contractMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance(); - onChanged(); - } else { - contractMetadataBuilder_.clear(); + bitField1_ = (bitField1_ & ~0x00000010); + contractMetadata_ = null; + if (contractMetadataBuilder_ != null) { + contractMetadataBuilder_.dispose(); + contractMetadataBuilder_ = null; } - bitField1_ = (bitField1_ & ~0x00000010); + onChanged(); return this; } /** @@ -11046,7 +12291,8 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Cont if (contractMetadataBuilder_ != null) { return contractMetadataBuilder_.getMessageOrBuilder(); } else { - return contractMetadata_; + return contractMetadata_ == null ? + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.ContractMetadata.getDefaultInstance() : contractMetadata_; } } /** @@ -11066,21 +12312,23 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Cont return contractMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata torg13Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata torg13Metadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadataOrBuilder> torg13MetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg13Metadata = 40; + * @return Whether the torg13Metadata field is set. */ public boolean hasTorg13Metadata() { - return ((bitField1_ & 0x00000020) == 0x00000020); + return ((bitField1_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg13Metadata = 40; + * @return The torg13Metadata. */ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata getTorg13Metadata() { if (torg13MetadataBuilder_ == null) { - return torg13Metadata_; + return torg13Metadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : torg13Metadata_; } else { return torg13MetadataBuilder_.getMessage(); } @@ -11094,11 +12342,11 @@ public Builder setTorg13Metadata(Diadoc.Api.Proto.Documents.BilateralDocument.Bi throw new NullPointerException(); } torg13Metadata_ = value; - onChanged(); } else { torg13MetadataBuilder_.setMessage(value); } bitField1_ |= 0x00000020; + onChanged(); return this; } /** @@ -11108,11 +12356,11 @@ public Builder setTorg13Metadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.Builder builderForValue) { if (torg13MetadataBuilder_ == null) { torg13Metadata_ = builderForValue.build(); - onChanged(); } else { torg13MetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000020; + onChanged(); return this; } /** @@ -11120,31 +12368,33 @@ public Builder setTorg13Metadata( */ public Builder mergeTorg13Metadata(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata value) { if (torg13MetadataBuilder_ == null) { - if (((bitField1_ & 0x00000020) == 0x00000020) && - torg13Metadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance()) { - torg13Metadata_ = - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.newBuilder(torg13Metadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x00000020) != 0) && + torg13Metadata_ != null && + torg13Metadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance()) { + getTorg13MetadataBuilder().mergeFrom(value); } else { torg13Metadata_ = value; } - onChanged(); } else { torg13MetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x00000020; + if (torg13Metadata_ != null) { + bitField1_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.BasicDocumentMetadata Torg13Metadata = 40; */ public Builder clearTorg13Metadata() { - if (torg13MetadataBuilder_ == null) { - torg13Metadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance(); - onChanged(); - } else { - torg13MetadataBuilder_.clear(); - } bitField1_ = (bitField1_ & ~0x00000020); + torg13Metadata_ = null; + if (torg13MetadataBuilder_ != null) { + torg13MetadataBuilder_.dispose(); + torg13MetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -11162,7 +12412,8 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Basi if (torg13MetadataBuilder_ != null) { return torg13MetadataBuilder_.getMessageOrBuilder(); } else { - return torg13Metadata_; + return torg13Metadata_ == null ? + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.BasicDocumentMetadata.getDefaultInstance() : torg13Metadata_; } } /** @@ -11182,21 +12433,23 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Basi return torg13MetadataBuilder_; } - private Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata serviceDetailsMetadata_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata serviceDetailsMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata, Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.Builder, Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadataOrBuilder> serviceDetailsMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata ServiceDetailsMetadata = 41; + * @return Whether the serviceDetailsMetadata field is set. */ public boolean hasServiceDetailsMetadata() { - return ((bitField1_ & 0x00000040) == 0x00000040); + return ((bitField1_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata ServiceDetailsMetadata = 41; + * @return The serviceDetailsMetadata. */ public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata getServiceDetailsMetadata() { if (serviceDetailsMetadataBuilder_ == null) { - return serviceDetailsMetadata_; + return serviceDetailsMetadata_ == null ? Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance() : serviceDetailsMetadata_; } else { return serviceDetailsMetadataBuilder_.getMessage(); } @@ -11210,11 +12463,11 @@ public Builder setServiceDetailsMetadata(Diadoc.Api.Proto.Documents.UnilateralDo throw new NullPointerException(); } serviceDetailsMetadata_ = value; - onChanged(); } else { serviceDetailsMetadataBuilder_.setMessage(value); } bitField1_ |= 0x00000040; + onChanged(); return this; } /** @@ -11224,11 +12477,11 @@ public Builder setServiceDetailsMetadata( Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.Builder builderForValue) { if (serviceDetailsMetadataBuilder_ == null) { serviceDetailsMetadata_ = builderForValue.build(); - onChanged(); } else { serviceDetailsMetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000040; + onChanged(); return this; } /** @@ -11236,31 +12489,33 @@ public Builder setServiceDetailsMetadata( */ public Builder mergeServiceDetailsMetadata(Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata value) { if (serviceDetailsMetadataBuilder_ == null) { - if (((bitField1_ & 0x00000040) == 0x00000040) && - serviceDetailsMetadata_ != Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance()) { - serviceDetailsMetadata_ = - Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.newBuilder(serviceDetailsMetadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x00000040) != 0) && + serviceDetailsMetadata_ != null && + serviceDetailsMetadata_ != Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance()) { + getServiceDetailsMetadataBuilder().mergeFrom(value); } else { serviceDetailsMetadata_ = value; } - onChanged(); } else { serviceDetailsMetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x00000040; + if (serviceDetailsMetadata_ != null) { + bitField1_ |= 0x00000040; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata ServiceDetailsMetadata = 41; */ public Builder clearServiceDetailsMetadata() { - if (serviceDetailsMetadataBuilder_ == null) { - serviceDetailsMetadata_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance(); - onChanged(); - } else { - serviceDetailsMetadataBuilder_.clear(); - } bitField1_ = (bitField1_ & ~0x00000040); + serviceDetailsMetadata_ = null; + if (serviceDetailsMetadataBuilder_ != null) { + serviceDetailsMetadataBuilder_.dispose(); + serviceDetailsMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -11278,7 +12533,8 @@ public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.Se if (serviceDetailsMetadataBuilder_ != null) { return serviceDetailsMetadataBuilder_.getMessageOrBuilder(); } else { - return serviceDetailsMetadata_; + return serviceDetailsMetadata_ == null ? + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance() : serviceDetailsMetadata_; } } /** @@ -11298,37 +12554,44 @@ public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.Se return serviceDetailsMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus roamingNotificationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus.UnknownRoamingNotificationStatus; + private int roamingNotificationStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.RoamingNotificationStatus RoamingNotificationStatus = 42 [default = UnknownRoamingNotificationStatus]; + * @return Whether the roamingNotificationStatus field is set. */ - public boolean hasRoamingNotificationStatus() { - return ((bitField1_ & 0x00000080) == 0x00000080); + @java.lang.Override public boolean hasRoamingNotificationStatus() { + return ((bitField1_ & 0x00000080) != 0); } /** * optional .Diadoc.Api.Proto.Documents.RoamingNotificationStatus RoamingNotificationStatus = 42 [default = UnknownRoamingNotificationStatus]; + * @return The roamingNotificationStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus getRoamingNotificationStatus() { - return roamingNotificationStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus.forNumber(roamingNotificationStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus.UnknownRoamingNotificationStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.RoamingNotificationStatus RoamingNotificationStatus = 42 [default = UnknownRoamingNotificationStatus]; + * @param value The roamingNotificationStatus to set. + * @return This builder for chaining. */ public Builder setRoamingNotificationStatus(Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000080; - roamingNotificationStatus_ = value; + roamingNotificationStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.RoamingNotificationStatus RoamingNotificationStatus = 42 [default = UnknownRoamingNotificationStatus]; + * @return This builder for chaining. */ public Builder clearRoamingNotificationStatus() { bitField1_ = (bitField1_ & ~0x00000080); - roamingNotificationStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RoamingNotificationStatus.UnknownRoamingNotificationStatus; + roamingNotificationStatus_ = 0; onChanged(); return this; } @@ -11336,27 +12599,35 @@ public Builder clearRoamingNotificationStatus() { private boolean hasCustomPrintForm_ ; /** * optional bool HasCustomPrintForm = 43 [default = false]; + * @return Whether the hasCustomPrintForm field is set. */ + @java.lang.Override public boolean hasHasCustomPrintForm() { - return ((bitField1_ & 0x00000100) == 0x00000100); + return ((bitField1_ & 0x00000100) != 0); } /** * optional bool HasCustomPrintForm = 43 [default = false]; + * @return The hasCustomPrintForm. */ + @java.lang.Override public boolean getHasCustomPrintForm() { return hasCustomPrintForm_; } /** * optional bool HasCustomPrintForm = 43 [default = false]; + * @param value The hasCustomPrintForm to set. + * @return This builder for chaining. */ public Builder setHasCustomPrintForm(boolean value) { - bitField1_ |= 0x00000100; + hasCustomPrintForm_ = value; + bitField1_ |= 0x00000100; onChanged(); return this; } /** * optional bool HasCustomPrintForm = 43 [default = false]; + * @return This builder for chaining. */ public Builder clearHasCustomPrintForm() { bitField1_ = (bitField1_ & ~0x00000100); @@ -11368,7 +12639,7 @@ public Builder clearHasCustomPrintForm() { private java.util.List customData_ = java.util.Collections.emptyList(); private void ensureCustomDataIsMutable() { - if (!((bitField1_ & 0x00000200) == 0x00000200)) { + if (!((bitField1_ & 0x00000200) != 0)) { customData_ = new java.util.ArrayList(customData_); bitField1_ |= 0x00000200; } @@ -11597,7 +12868,7 @@ public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.Builder addCustomDat customDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem, Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.Builder, Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder>( customData_, - ((bitField1_ & 0x00000200) == 0x00000200), + ((bitField1_ & 0x00000200) != 0), getParentForChildren(), isClean()); customData_ = null; @@ -11608,12 +12879,14 @@ public Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItem.Builder addCustomDat private java.lang.Object packetId_ = ""; /** * optional string PacketId = 45; + * @return Whether the packetId field is set. */ public boolean hasPacketId() { - return ((bitField1_ & 0x00000400) == 0x00000400); + return ((bitField1_ & 0x00000400) != 0); } /** * optional string PacketId = 45; + * @return The packetId. */ public java.lang.String getPacketId() { java.lang.Object ref = packetId_; @@ -11631,6 +12904,7 @@ public java.lang.String getPacketId() { } /** * optional string PacketId = 45; + * @return The bytes for packetId. */ public com.google.protobuf.ByteString getPacketIdBytes() { @@ -11647,71 +12921,79 @@ public java.lang.String getPacketId() { } /** * optional string PacketId = 45; + * @param value The packetId to set. + * @return This builder for chaining. */ public Builder setPacketId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } packetId_ = value; + bitField1_ |= 0x00000400; onChanged(); return this; } /** * optional string PacketId = 45; + * @return This builder for chaining. */ public Builder clearPacketId() { - bitField1_ = (bitField1_ & ~0x00000400); packetId_ = getDefaultInstance().getPacketId(); + bitField1_ = (bitField1_ & ~0x00000400); onChanged(); return this; } /** * optional string PacketId = 45; + * @param value The bytes for packetId to set. + * @return This builder for chaining. */ public Builder setPacketIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } packetId_ = value; + bitField1_ |= 0x00000400; onChanged(); return this; } - private Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; + private int documentDirection_ = 0; /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 46 [default = UnknownDocumentDirection]; + * @return Whether the documentDirection field is set. */ - public boolean hasDocumentDirection() { - return ((bitField1_ & 0x00000800) == 0x00000800); + @java.lang.Override public boolean hasDocumentDirection() { + return ((bitField1_ & 0x00000800) != 0); } /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 46 [default = UnknownDocumentDirection]; + * @return The documentDirection. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection getDocumentDirection() { - return documentDirection_; + Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection result = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.forNumber(documentDirection_); + return result == null ? Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection : result; } /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 46 [default = UnknownDocumentDirection]; + * @param value The documentDirection to set. + * @return This builder for chaining. */ public Builder setDocumentDirection(Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000800; - documentDirection_ = value; + documentDirection_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.DocumentDirection DocumentDirection = 46 [default = UnknownDocumentDirection]; + * @return This builder for chaining. */ public Builder clearDocumentDirection() { bitField1_ = (bitField1_ & ~0x00000800); - documentDirection_ = Diadoc.Api.Proto.DocumentDirectionProtos.DocumentDirection.UnknownDocumentDirection; + documentDirection_ = 0; onChanged(); return this; } @@ -11719,27 +13001,35 @@ public Builder clearDocumentDirection() { private long lastModificationTimestampTicks_ ; /** * optional sfixed64 LastModificationTimestampTicks = 47; + * @return Whether the lastModificationTimestampTicks field is set. */ + @java.lang.Override public boolean hasLastModificationTimestampTicks() { - return ((bitField1_ & 0x00001000) == 0x00001000); + return ((bitField1_ & 0x00001000) != 0); } /** * optional sfixed64 LastModificationTimestampTicks = 47; + * @return The lastModificationTimestampTicks. */ + @java.lang.Override public long getLastModificationTimestampTicks() { return lastModificationTimestampTicks_; } /** * optional sfixed64 LastModificationTimestampTicks = 47; + * @param value The lastModificationTimestampTicks to set. + * @return This builder for chaining. */ public Builder setLastModificationTimestampTicks(long value) { - bitField1_ |= 0x00001000; + lastModificationTimestampTicks_ = value; + bitField1_ |= 0x00001000; onChanged(); return this; } /** * optional sfixed64 LastModificationTimestampTicks = 47; + * @return This builder for chaining. */ public Builder clearLastModificationTimestampTicks() { bitField1_ = (bitField1_ & ~0x00001000); @@ -11751,27 +13041,35 @@ public Builder clearLastModificationTimestampTicks() { private boolean isEncryptedContent_ ; /** * optional bool IsEncryptedContent = 48; + * @return Whether the isEncryptedContent field is set. */ + @java.lang.Override public boolean hasIsEncryptedContent() { - return ((bitField1_ & 0x00002000) == 0x00002000); + return ((bitField1_ & 0x00002000) != 0); } /** * optional bool IsEncryptedContent = 48; + * @return The isEncryptedContent. */ + @java.lang.Override public boolean getIsEncryptedContent() { return isEncryptedContent_; } /** * optional bool IsEncryptedContent = 48; + * @param value The isEncryptedContent to set. + * @return This builder for chaining. */ public Builder setIsEncryptedContent(boolean value) { - bitField1_ |= 0x00002000; + isEncryptedContent_ = value; + bitField1_ |= 0x00002000; onChanged(); return this; } /** * optional bool IsEncryptedContent = 48; + * @return This builder for chaining. */ public Builder clearIsEncryptedContent() { bitField1_ = (bitField1_ & ~0x00002000); @@ -11780,56 +13078,65 @@ public Builder clearIsEncryptedContent() { return this; } - private Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus senderSignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus; + private int senderSignatureStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 49 [default = UnknownSenderSignatureStatus]; + * @return Whether the senderSignatureStatus field is set. */ - public boolean hasSenderSignatureStatus() { - return ((bitField1_ & 0x00004000) == 0x00004000); + @java.lang.Override public boolean hasSenderSignatureStatus() { + return ((bitField1_ & 0x00004000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 49 [default = UnknownSenderSignatureStatus]; + * @return The senderSignatureStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus getSenderSignatureStatus() { - return senderSignatureStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.forNumber(senderSignatureStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 49 [default = UnknownSenderSignatureStatus]; + * @param value The senderSignatureStatus to set. + * @return This builder for chaining. */ public Builder setSenderSignatureStatus(Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00004000; - senderSignatureStatus_ = value; + senderSignatureStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.SenderSignatureStatus SenderSignatureStatus = 49 [default = UnknownSenderSignatureStatus]; + * @return This builder for chaining. */ public Builder clearSenderSignatureStatus() { bitField1_ = (bitField1_ & ~0x00004000); - senderSignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderSignatureStatus.UnknownSenderSignatureStatus; + senderSignatureStatus_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata supplementaryAgreementMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata supplementaryAgreementMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.Builder, Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadataOrBuilder> supplementaryAgreementMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata SupplementaryAgreementMetadata = 50; + * @return Whether the supplementaryAgreementMetadata field is set. */ public boolean hasSupplementaryAgreementMetadata() { - return ((bitField1_ & 0x00008000) == 0x00008000); + return ((bitField1_ & 0x00008000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata SupplementaryAgreementMetadata = 50; + * @return The supplementaryAgreementMetadata. */ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata getSupplementaryAgreementMetadata() { if (supplementaryAgreementMetadataBuilder_ == null) { - return supplementaryAgreementMetadata_; + return supplementaryAgreementMetadata_ == null ? Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance() : supplementaryAgreementMetadata_; } else { return supplementaryAgreementMetadataBuilder_.getMessage(); } @@ -11843,11 +13150,11 @@ public Builder setSupplementaryAgreementMetadata(Diadoc.Api.Proto.Documents.Bila throw new NullPointerException(); } supplementaryAgreementMetadata_ = value; - onChanged(); } else { supplementaryAgreementMetadataBuilder_.setMessage(value); } bitField1_ |= 0x00008000; + onChanged(); return this; } /** @@ -11857,11 +13164,11 @@ public Builder setSupplementaryAgreementMetadata( Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.Builder builderForValue) { if (supplementaryAgreementMetadataBuilder_ == null) { supplementaryAgreementMetadata_ = builderForValue.build(); - onChanged(); } else { supplementaryAgreementMetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00008000; + onChanged(); return this; } /** @@ -11869,31 +13176,33 @@ public Builder setSupplementaryAgreementMetadata( */ public Builder mergeSupplementaryAgreementMetadata(Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata value) { if (supplementaryAgreementMetadataBuilder_ == null) { - if (((bitField1_ & 0x00008000) == 0x00008000) && - supplementaryAgreementMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance()) { - supplementaryAgreementMetadata_ = - Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.newBuilder(supplementaryAgreementMetadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x00008000) != 0) && + supplementaryAgreementMetadata_ != null && + supplementaryAgreementMetadata_ != Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance()) { + getSupplementaryAgreementMetadataBuilder().mergeFrom(value); } else { supplementaryAgreementMetadata_ = value; } - onChanged(); } else { supplementaryAgreementMetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x00008000; + if (supplementaryAgreementMetadata_ != null) { + bitField1_ |= 0x00008000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.BilateralDocument.SupplementaryAgreementMetadata SupplementaryAgreementMetadata = 50; */ public Builder clearSupplementaryAgreementMetadata() { - if (supplementaryAgreementMetadataBuilder_ == null) { - supplementaryAgreementMetadata_ = Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance(); - onChanged(); - } else { - supplementaryAgreementMetadataBuilder_.clear(); - } bitField1_ = (bitField1_ & ~0x00008000); + supplementaryAgreementMetadata_ = null; + if (supplementaryAgreementMetadataBuilder_ != null) { + supplementaryAgreementMetadataBuilder_.dispose(); + supplementaryAgreementMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -11911,7 +13220,8 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Supp if (supplementaryAgreementMetadataBuilder_ != null) { return supplementaryAgreementMetadataBuilder_.getMessageOrBuilder(); } else { - return supplementaryAgreementMetadata_; + return supplementaryAgreementMetadata_ == null ? + Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.SupplementaryAgreementMetadata.getDefaultInstance() : supplementaryAgreementMetadata_; } } /** @@ -11934,27 +13244,35 @@ public Diadoc.Api.Proto.Documents.BilateralDocument.BilateralDocumentProtos.Supp private boolean isRead_ ; /** * optional bool IsRead = 51 [default = false]; + * @return Whether the isRead field is set. */ + @java.lang.Override public boolean hasIsRead() { - return ((bitField1_ & 0x00010000) == 0x00010000); + return ((bitField1_ & 0x00010000) != 0); } /** * optional bool IsRead = 51 [default = false]; + * @return The isRead. */ + @java.lang.Override public boolean getIsRead() { return isRead_; } /** * optional bool IsRead = 51 [default = false]; + * @param value The isRead to set. + * @return This builder for chaining. */ public Builder setIsRead(boolean value) { - bitField1_ |= 0x00010000; + isRead_ = value; + bitField1_ |= 0x00010000; onChanged(); return this; } /** * optional bool IsRead = 51 [default = false]; + * @return This builder for chaining. */ public Builder clearIsRead() { bitField1_ = (bitField1_ & ~0x00010000); @@ -11966,12 +13284,14 @@ public Builder clearIsRead() { private java.lang.Object roamingNotificationStatusDescription_ = ""; /** * optional string RoamingNotificationStatusDescription = 52; + * @return Whether the roamingNotificationStatusDescription field is set. */ public boolean hasRoamingNotificationStatusDescription() { - return ((bitField1_ & 0x00020000) == 0x00020000); + return ((bitField1_ & 0x00020000) != 0); } /** * optional string RoamingNotificationStatusDescription = 52; + * @return The roamingNotificationStatusDescription. */ public java.lang.String getRoamingNotificationStatusDescription() { java.lang.Object ref = roamingNotificationStatusDescription_; @@ -11989,6 +13309,7 @@ public java.lang.String getRoamingNotificationStatusDescription() { } /** * optional string RoamingNotificationStatusDescription = 52; + * @return The bytes for roamingNotificationStatusDescription. */ public com.google.protobuf.ByteString getRoamingNotificationStatusDescriptionBytes() { @@ -12005,36 +13326,37 @@ public java.lang.String getRoamingNotificationStatusDescription() { } /** * optional string RoamingNotificationStatusDescription = 52; + * @param value The roamingNotificationStatusDescription to set. + * @return This builder for chaining. */ public Builder setRoamingNotificationStatusDescription( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00020000; + if (value == null) { throw new NullPointerException(); } roamingNotificationStatusDescription_ = value; + bitField1_ |= 0x00020000; onChanged(); return this; } /** * optional string RoamingNotificationStatusDescription = 52; + * @return This builder for chaining. */ public Builder clearRoamingNotificationStatusDescription() { - bitField1_ = (bitField1_ & ~0x00020000); roamingNotificationStatusDescription_ = getDefaultInstance().getRoamingNotificationStatusDescription(); + bitField1_ = (bitField1_ & ~0x00020000); onChanged(); return this; } /** * optional string RoamingNotificationStatusDescription = 52; + * @param value The bytes for roamingNotificationStatusDescription to set. + * @return This builder for chaining. */ public Builder setRoamingNotificationStatusDescriptionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00020000; + if (value == null) { throw new NullPointerException(); } roamingNotificationStatusDescription_ = value; + bitField1_ |= 0x00020000; onChanged(); return this; } @@ -12042,27 +13364,35 @@ public Builder setRoamingNotificationStatusDescriptionBytes( private boolean packetIsLocked_ ; /** * optional bool PacketIsLocked = 53 [default = false]; + * @return Whether the packetIsLocked field is set. */ + @java.lang.Override public boolean hasPacketIsLocked() { - return ((bitField1_ & 0x00040000) == 0x00040000); + return ((bitField1_ & 0x00040000) != 0); } /** * optional bool PacketIsLocked = 53 [default = false]; + * @return The packetIsLocked. */ + @java.lang.Override public boolean getPacketIsLocked() { return packetIsLocked_; } /** * optional bool PacketIsLocked = 53 [default = false]; + * @param value The packetIsLocked to set. + * @return This builder for chaining. */ public Builder setPacketIsLocked(boolean value) { - bitField1_ |= 0x00040000; + packetIsLocked_ = value; + bitField1_ |= 0x00040000; onChanged(); return this; } /** * optional bool PacketIsLocked = 53 [default = false]; + * @return This builder for chaining. */ public Builder clearPacketIsLocked() { bitField1_ = (bitField1_ & ~0x00040000); @@ -12071,21 +13401,23 @@ public Builder clearPacketIsLocked() { return this; } - private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata priceListAgreementMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata priceListAgreementMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata, Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.Builder, Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadataOrBuilder> priceListAgreementMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata PriceListAgreementMetadata = 54; + * @return Whether the priceListAgreementMetadata field is set. */ public boolean hasPriceListAgreementMetadata() { - return ((bitField1_ & 0x00080000) == 0x00080000); + return ((bitField1_ & 0x00080000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata PriceListAgreementMetadata = 54; + * @return The priceListAgreementMetadata. */ public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getPriceListAgreementMetadata() { if (priceListAgreementMetadataBuilder_ == null) { - return priceListAgreementMetadata_; + return priceListAgreementMetadata_ == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : priceListAgreementMetadata_; } else { return priceListAgreementMetadataBuilder_.getMessage(); } @@ -12099,11 +13431,11 @@ public Builder setPriceListAgreementMetadata(Diadoc.Api.Proto.Documents.Nonforma throw new NullPointerException(); } priceListAgreementMetadata_ = value; - onChanged(); } else { priceListAgreementMetadataBuilder_.setMessage(value); } bitField1_ |= 0x00080000; + onChanged(); return this; } /** @@ -12113,11 +13445,11 @@ public Builder setPriceListAgreementMetadata( Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.Builder builderForValue) { if (priceListAgreementMetadataBuilder_ == null) { priceListAgreementMetadata_ = builderForValue.build(); - onChanged(); } else { priceListAgreementMetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00080000; + onChanged(); return this; } /** @@ -12125,31 +13457,33 @@ public Builder setPriceListAgreementMetadata( */ public Builder mergePriceListAgreementMetadata(Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata value) { if (priceListAgreementMetadataBuilder_ == null) { - if (((bitField1_ & 0x00080000) == 0x00080000) && - priceListAgreementMetadata_ != Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance()) { - priceListAgreementMetadata_ = - Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.newBuilder(priceListAgreementMetadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x00080000) != 0) && + priceListAgreementMetadata_ != null && + priceListAgreementMetadata_ != Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance()) { + getPriceListAgreementMetadataBuilder().mergeFrom(value); } else { priceListAgreementMetadata_ = value; } - onChanged(); } else { priceListAgreementMetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x00080000; + if (priceListAgreementMetadata_ != null) { + bitField1_ |= 0x00080000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata PriceListAgreementMetadata = 54; */ public Builder clearPriceListAgreementMetadata() { - if (priceListAgreementMetadataBuilder_ == null) { - priceListAgreementMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); - onChanged(); - } else { - priceListAgreementMetadataBuilder_.clear(); - } bitField1_ = (bitField1_ & ~0x00080000); + priceListAgreementMetadata_ = null; + if (priceListAgreementMetadataBuilder_ != null) { + priceListAgreementMetadataBuilder_.dispose(); + priceListAgreementMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -12167,7 +13501,8 @@ public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentPro if (priceListAgreementMetadataBuilder_ != null) { return priceListAgreementMetadataBuilder_.getMessageOrBuilder(); } else { - return priceListAgreementMetadata_; + return priceListAgreementMetadata_ == null ? + Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : priceListAgreementMetadata_; } } /** @@ -12187,21 +13522,23 @@ public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentPro return priceListAgreementMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata certificateRegistryMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata certificateRegistryMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata, Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.Builder, Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadataOrBuilder> certificateRegistryMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata CertificateRegistryMetadata = 55; + * @return Whether the certificateRegistryMetadata field is set. */ public boolean hasCertificateRegistryMetadata() { - return ((bitField1_ & 0x00100000) == 0x00100000); + return ((bitField1_ & 0x00100000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata CertificateRegistryMetadata = 55; + * @return The certificateRegistryMetadata. */ public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getCertificateRegistryMetadata() { if (certificateRegistryMetadataBuilder_ == null) { - return certificateRegistryMetadata_; + return certificateRegistryMetadata_ == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : certificateRegistryMetadata_; } else { return certificateRegistryMetadataBuilder_.getMessage(); } @@ -12215,11 +13552,11 @@ public Builder setCertificateRegistryMetadata(Diadoc.Api.Proto.Documents.Nonform throw new NullPointerException(); } certificateRegistryMetadata_ = value; - onChanged(); } else { certificateRegistryMetadataBuilder_.setMessage(value); } bitField1_ |= 0x00100000; + onChanged(); return this; } /** @@ -12229,11 +13566,11 @@ public Builder setCertificateRegistryMetadata( Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.Builder builderForValue) { if (certificateRegistryMetadataBuilder_ == null) { certificateRegistryMetadata_ = builderForValue.build(); - onChanged(); } else { certificateRegistryMetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00100000; + onChanged(); return this; } /** @@ -12241,31 +13578,33 @@ public Builder setCertificateRegistryMetadata( */ public Builder mergeCertificateRegistryMetadata(Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata value) { if (certificateRegistryMetadataBuilder_ == null) { - if (((bitField1_ & 0x00100000) == 0x00100000) && - certificateRegistryMetadata_ != Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance()) { - certificateRegistryMetadata_ = - Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.newBuilder(certificateRegistryMetadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x00100000) != 0) && + certificateRegistryMetadata_ != null && + certificateRegistryMetadata_ != Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance()) { + getCertificateRegistryMetadataBuilder().mergeFrom(value); } else { certificateRegistryMetadata_ = value; } - onChanged(); } else { certificateRegistryMetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x00100000; + if (certificateRegistryMetadata_ != null) { + bitField1_ |= 0x00100000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata CertificateRegistryMetadata = 55; */ public Builder clearCertificateRegistryMetadata() { - if (certificateRegistryMetadataBuilder_ == null) { - certificateRegistryMetadata_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); - onChanged(); - } else { - certificateRegistryMetadataBuilder_.clear(); - } bitField1_ = (bitField1_ & ~0x00100000); + certificateRegistryMetadata_ = null; + if (certificateRegistryMetadataBuilder_ != null) { + certificateRegistryMetadataBuilder_.dispose(); + certificateRegistryMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -12283,7 +13622,8 @@ public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentPro if (certificateRegistryMetadataBuilder_ != null) { return certificateRegistryMetadataBuilder_.getMessageOrBuilder(); } else { - return certificateRegistryMetadata_; + return certificateRegistryMetadata_ == null ? + Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance() : certificateRegistryMetadata_; } } /** @@ -12303,21 +13643,23 @@ public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentPro return certificateRegistryMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata universalTransferDocumentMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata universalTransferDocumentMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.Builder, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadataOrBuilder> universalTransferDocumentMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata UniversalTransferDocumentMetadata = 56; + * @return Whether the universalTransferDocumentMetadata field is set. */ public boolean hasUniversalTransferDocumentMetadata() { - return ((bitField1_ & 0x00200000) == 0x00200000); + return ((bitField1_ & 0x00200000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata UniversalTransferDocumentMetadata = 56; + * @return The universalTransferDocumentMetadata. */ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata getUniversalTransferDocumentMetadata() { if (universalTransferDocumentMetadataBuilder_ == null) { - return universalTransferDocumentMetadata_; + return universalTransferDocumentMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance() : universalTransferDocumentMetadata_; } else { return universalTransferDocumentMetadataBuilder_.getMessage(); } @@ -12331,11 +13673,11 @@ public Builder setUniversalTransferDocumentMetadata(Diadoc.Api.Proto.Documents.U throw new NullPointerException(); } universalTransferDocumentMetadata_ = value; - onChanged(); } else { universalTransferDocumentMetadataBuilder_.setMessage(value); } bitField1_ |= 0x00200000; + onChanged(); return this; } /** @@ -12345,11 +13687,11 @@ public Builder setUniversalTransferDocumentMetadata( Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.Builder builderForValue) { if (universalTransferDocumentMetadataBuilder_ == null) { universalTransferDocumentMetadata_ = builderForValue.build(); - onChanged(); } else { universalTransferDocumentMetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00200000; + onChanged(); return this; } /** @@ -12357,31 +13699,33 @@ public Builder setUniversalTransferDocumentMetadata( */ public Builder mergeUniversalTransferDocumentMetadata(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata value) { if (universalTransferDocumentMetadataBuilder_ == null) { - if (((bitField1_ & 0x00200000) == 0x00200000) && - universalTransferDocumentMetadata_ != Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance()) { - universalTransferDocumentMetadata_ = - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.newBuilder(universalTransferDocumentMetadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x00200000) != 0) && + universalTransferDocumentMetadata_ != null && + universalTransferDocumentMetadata_ != Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance()) { + getUniversalTransferDocumentMetadataBuilder().mergeFrom(value); } else { universalTransferDocumentMetadata_ = value; } - onChanged(); } else { universalTransferDocumentMetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x00200000; + if (universalTransferDocumentMetadata_ != null) { + bitField1_ |= 0x00200000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata UniversalTransferDocumentMetadata = 56; */ public Builder clearUniversalTransferDocumentMetadata() { - if (universalTransferDocumentMetadataBuilder_ == null) { - universalTransferDocumentMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance(); - onChanged(); - } else { - universalTransferDocumentMetadataBuilder_.clear(); - } bitField1_ = (bitField1_ & ~0x00200000); + universalTransferDocumentMetadata_ = null; + if (universalTransferDocumentMetadataBuilder_ != null) { + universalTransferDocumentMetadataBuilder_.dispose(); + universalTransferDocumentMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -12399,7 +13743,8 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc if (universalTransferDocumentMetadataBuilder_ != null) { return universalTransferDocumentMetadataBuilder_.getMessageOrBuilder(); } else { - return universalTransferDocumentMetadata_; + return universalTransferDocumentMetadata_ == null ? + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance() : universalTransferDocumentMetadata_; } } /** @@ -12419,21 +13764,23 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc return universalTransferDocumentMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata universalTransferDocumentRevisionMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata universalTransferDocumentRevisionMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.Builder, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadataOrBuilder> universalTransferDocumentRevisionMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata UniversalTransferDocumentRevisionMetadata = 57; + * @return Whether the universalTransferDocumentRevisionMetadata field is set. */ public boolean hasUniversalTransferDocumentRevisionMetadata() { - return ((bitField1_ & 0x00400000) == 0x00400000); + return ((bitField1_ & 0x00400000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata UniversalTransferDocumentRevisionMetadata = 57; + * @return The universalTransferDocumentRevisionMetadata. */ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata getUniversalTransferDocumentRevisionMetadata() { if (universalTransferDocumentRevisionMetadataBuilder_ == null) { - return universalTransferDocumentRevisionMetadata_; + return universalTransferDocumentRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance() : universalTransferDocumentRevisionMetadata_; } else { return universalTransferDocumentRevisionMetadataBuilder_.getMessage(); } @@ -12447,11 +13794,11 @@ public Builder setUniversalTransferDocumentRevisionMetadata(Diadoc.Api.Proto.Doc throw new NullPointerException(); } universalTransferDocumentRevisionMetadata_ = value; - onChanged(); } else { universalTransferDocumentRevisionMetadataBuilder_.setMessage(value); } bitField1_ |= 0x00400000; + onChanged(); return this; } /** @@ -12461,11 +13808,11 @@ public Builder setUniversalTransferDocumentRevisionMetadata( Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.Builder builderForValue) { if (universalTransferDocumentRevisionMetadataBuilder_ == null) { universalTransferDocumentRevisionMetadata_ = builderForValue.build(); - onChanged(); } else { universalTransferDocumentRevisionMetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00400000; + onChanged(); return this; } /** @@ -12473,31 +13820,33 @@ public Builder setUniversalTransferDocumentRevisionMetadata( */ public Builder mergeUniversalTransferDocumentRevisionMetadata(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata value) { if (universalTransferDocumentRevisionMetadataBuilder_ == null) { - if (((bitField1_ & 0x00400000) == 0x00400000) && - universalTransferDocumentRevisionMetadata_ != Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance()) { - universalTransferDocumentRevisionMetadata_ = - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.newBuilder(universalTransferDocumentRevisionMetadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x00400000) != 0) && + universalTransferDocumentRevisionMetadata_ != null && + universalTransferDocumentRevisionMetadata_ != Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance()) { + getUniversalTransferDocumentRevisionMetadataBuilder().mergeFrom(value); } else { universalTransferDocumentRevisionMetadata_ = value; } - onChanged(); } else { universalTransferDocumentRevisionMetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x00400000; + if (universalTransferDocumentRevisionMetadata_ != null) { + bitField1_ |= 0x00400000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata UniversalTransferDocumentRevisionMetadata = 57; */ public Builder clearUniversalTransferDocumentRevisionMetadata() { - if (universalTransferDocumentRevisionMetadataBuilder_ == null) { - universalTransferDocumentRevisionMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance(); - onChanged(); - } else { - universalTransferDocumentRevisionMetadataBuilder_.clear(); - } bitField1_ = (bitField1_ & ~0x00400000); + universalTransferDocumentRevisionMetadata_ = null; + if (universalTransferDocumentRevisionMetadataBuilder_ != null) { + universalTransferDocumentRevisionMetadataBuilder_.dispose(); + universalTransferDocumentRevisionMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -12515,7 +13864,8 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc if (universalTransferDocumentRevisionMetadataBuilder_ != null) { return universalTransferDocumentRevisionMetadataBuilder_.getMessageOrBuilder(); } else { - return universalTransferDocumentRevisionMetadata_; + return universalTransferDocumentRevisionMetadata_ == null ? + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance() : universalTransferDocumentRevisionMetadata_; } } /** @@ -12535,21 +13885,23 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc return universalTransferDocumentRevisionMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata universalCorrectionDocumentMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata universalCorrectionDocumentMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.Builder, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadataOrBuilder> universalCorrectionDocumentMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata UniversalCorrectionDocumentMetadata = 58; + * @return Whether the universalCorrectionDocumentMetadata field is set. */ public boolean hasUniversalCorrectionDocumentMetadata() { - return ((bitField1_ & 0x00800000) == 0x00800000); + return ((bitField1_ & 0x00800000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata UniversalCorrectionDocumentMetadata = 58; + * @return The universalCorrectionDocumentMetadata. */ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata getUniversalCorrectionDocumentMetadata() { if (universalCorrectionDocumentMetadataBuilder_ == null) { - return universalCorrectionDocumentMetadata_; + return universalCorrectionDocumentMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance() : universalCorrectionDocumentMetadata_; } else { return universalCorrectionDocumentMetadataBuilder_.getMessage(); } @@ -12563,11 +13915,11 @@ public Builder setUniversalCorrectionDocumentMetadata(Diadoc.Api.Proto.Documents throw new NullPointerException(); } universalCorrectionDocumentMetadata_ = value; - onChanged(); } else { universalCorrectionDocumentMetadataBuilder_.setMessage(value); } bitField1_ |= 0x00800000; + onChanged(); return this; } /** @@ -12577,11 +13929,11 @@ public Builder setUniversalCorrectionDocumentMetadata( Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.Builder builderForValue) { if (universalCorrectionDocumentMetadataBuilder_ == null) { universalCorrectionDocumentMetadata_ = builderForValue.build(); - onChanged(); } else { universalCorrectionDocumentMetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00800000; + onChanged(); return this; } /** @@ -12589,31 +13941,33 @@ public Builder setUniversalCorrectionDocumentMetadata( */ public Builder mergeUniversalCorrectionDocumentMetadata(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata value) { if (universalCorrectionDocumentMetadataBuilder_ == null) { - if (((bitField1_ & 0x00800000) == 0x00800000) && - universalCorrectionDocumentMetadata_ != Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance()) { - universalCorrectionDocumentMetadata_ = - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.newBuilder(universalCorrectionDocumentMetadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x00800000) != 0) && + universalCorrectionDocumentMetadata_ != null && + universalCorrectionDocumentMetadata_ != Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance()) { + getUniversalCorrectionDocumentMetadataBuilder().mergeFrom(value); } else { universalCorrectionDocumentMetadata_ = value; } - onChanged(); } else { universalCorrectionDocumentMetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x00800000; + if (universalCorrectionDocumentMetadata_ != null) { + bitField1_ |= 0x00800000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata UniversalCorrectionDocumentMetadata = 58; */ public Builder clearUniversalCorrectionDocumentMetadata() { - if (universalCorrectionDocumentMetadataBuilder_ == null) { - universalCorrectionDocumentMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance(); - onChanged(); - } else { - universalCorrectionDocumentMetadataBuilder_.clear(); - } bitField1_ = (bitField1_ & ~0x00800000); + universalCorrectionDocumentMetadata_ = null; + if (universalCorrectionDocumentMetadataBuilder_ != null) { + universalCorrectionDocumentMetadataBuilder_.dispose(); + universalCorrectionDocumentMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -12631,7 +13985,8 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc if (universalCorrectionDocumentMetadataBuilder_ != null) { return universalCorrectionDocumentMetadataBuilder_.getMessageOrBuilder(); } else { - return universalCorrectionDocumentMetadata_; + return universalCorrectionDocumentMetadata_ == null ? + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance() : universalCorrectionDocumentMetadata_; } } /** @@ -12651,21 +14006,23 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc return universalCorrectionDocumentMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata universalCorrectionDocumentRevisionMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata universalCorrectionDocumentRevisionMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.Builder, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadataOrBuilder> universalCorrectionDocumentRevisionMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata = 59; + * @return Whether the universalCorrectionDocumentRevisionMetadata field is set. */ public boolean hasUniversalCorrectionDocumentRevisionMetadata() { - return ((bitField1_ & 0x01000000) == 0x01000000); + return ((bitField1_ & 0x01000000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata = 59; + * @return The universalCorrectionDocumentRevisionMetadata. */ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata getUniversalCorrectionDocumentRevisionMetadata() { if (universalCorrectionDocumentRevisionMetadataBuilder_ == null) { - return universalCorrectionDocumentRevisionMetadata_; + return universalCorrectionDocumentRevisionMetadata_ == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance() : universalCorrectionDocumentRevisionMetadata_; } else { return universalCorrectionDocumentRevisionMetadataBuilder_.getMessage(); } @@ -12679,11 +14036,11 @@ public Builder setUniversalCorrectionDocumentRevisionMetadata(Diadoc.Api.Proto.D throw new NullPointerException(); } universalCorrectionDocumentRevisionMetadata_ = value; - onChanged(); } else { universalCorrectionDocumentRevisionMetadataBuilder_.setMessage(value); } bitField1_ |= 0x01000000; + onChanged(); return this; } /** @@ -12693,11 +14050,11 @@ public Builder setUniversalCorrectionDocumentRevisionMetadata( Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.Builder builderForValue) { if (universalCorrectionDocumentRevisionMetadataBuilder_ == null) { universalCorrectionDocumentRevisionMetadata_ = builderForValue.build(); - onChanged(); } else { universalCorrectionDocumentRevisionMetadataBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x01000000; + onChanged(); return this; } /** @@ -12705,31 +14062,33 @@ public Builder setUniversalCorrectionDocumentRevisionMetadata( */ public Builder mergeUniversalCorrectionDocumentRevisionMetadata(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata value) { if (universalCorrectionDocumentRevisionMetadataBuilder_ == null) { - if (((bitField1_ & 0x01000000) == 0x01000000) && - universalCorrectionDocumentRevisionMetadata_ != Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance()) { - universalCorrectionDocumentRevisionMetadata_ = - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.newBuilder(universalCorrectionDocumentRevisionMetadata_).mergeFrom(value).buildPartial(); + if (((bitField1_ & 0x01000000) != 0) && + universalCorrectionDocumentRevisionMetadata_ != null && + universalCorrectionDocumentRevisionMetadata_ != Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance()) { + getUniversalCorrectionDocumentRevisionMetadataBuilder().mergeFrom(value); } else { universalCorrectionDocumentRevisionMetadata_ = value; } - onChanged(); } else { universalCorrectionDocumentRevisionMetadataBuilder_.mergeFrom(value); } - bitField1_ |= 0x01000000; + if (universalCorrectionDocumentRevisionMetadata_ != null) { + bitField1_ |= 0x01000000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata = 59; */ public Builder clearUniversalCorrectionDocumentRevisionMetadata() { - if (universalCorrectionDocumentRevisionMetadataBuilder_ == null) { - universalCorrectionDocumentRevisionMetadata_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance(); - onChanged(); - } else { - universalCorrectionDocumentRevisionMetadataBuilder_.clear(); - } bitField1_ = (bitField1_ & ~0x01000000); + universalCorrectionDocumentRevisionMetadata_ = null; + if (universalCorrectionDocumentRevisionMetadataBuilder_ != null) { + universalCorrectionDocumentRevisionMetadataBuilder_.dispose(); + universalCorrectionDocumentRevisionMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -12747,7 +14106,8 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc if (universalCorrectionDocumentRevisionMetadataBuilder_ != null) { return universalCorrectionDocumentRevisionMetadataBuilder_.getMessageOrBuilder(); } else { - return universalCorrectionDocumentRevisionMetadata_; + return universalCorrectionDocumentRevisionMetadata_ == null ? + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance() : universalCorrectionDocumentRevisionMetadata_; } } /** @@ -12770,12 +14130,14 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc private java.lang.Object resolutionRouteId_ = ""; /** * optional string ResolutionRouteId = 60 [default = ""]; + * @return Whether the resolutionRouteId field is set. */ public boolean hasResolutionRouteId() { - return ((bitField1_ & 0x02000000) == 0x02000000); + return ((bitField1_ & 0x02000000) != 0); } /** * optional string ResolutionRouteId = 60 [default = ""]; + * @return The resolutionRouteId. */ public java.lang.String getResolutionRouteId() { java.lang.Object ref = resolutionRouteId_; @@ -12793,6 +14155,7 @@ public java.lang.String getResolutionRouteId() { } /** * optional string ResolutionRouteId = 60 [default = ""]; + * @return The bytes for resolutionRouteId. */ public com.google.protobuf.ByteString getResolutionRouteIdBytes() { @@ -12809,36 +14172,37 @@ public java.lang.String getResolutionRouteId() { } /** * optional string ResolutionRouteId = 60 [default = ""]; + * @param value The resolutionRouteId to set. + * @return This builder for chaining. */ public Builder setResolutionRouteId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x02000000; + if (value == null) { throw new NullPointerException(); } resolutionRouteId_ = value; + bitField1_ |= 0x02000000; onChanged(); return this; } /** * optional string ResolutionRouteId = 60 [default = ""]; + * @return This builder for chaining. */ public Builder clearResolutionRouteId() { - bitField1_ = (bitField1_ & ~0x02000000); resolutionRouteId_ = getDefaultInstance().getResolutionRouteId(); + bitField1_ = (bitField1_ & ~0x02000000); onChanged(); return this; } /** * optional string ResolutionRouteId = 60 [default = ""]; + * @param value The bytes for resolutionRouteId to set. + * @return This builder for chaining. */ public Builder setResolutionRouteIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x02000000; + if (value == null) { throw new NullPointerException(); } resolutionRouteId_ = value; + bitField1_ |= 0x02000000; onChanged(); return this; } @@ -12846,12 +14210,14 @@ public Builder setResolutionRouteIdBytes( private java.lang.Object attachmentVersion_ = ""; /** * optional string AttachmentVersion = 61; + * @return Whether the attachmentVersion field is set. */ public boolean hasAttachmentVersion() { - return ((bitField1_ & 0x04000000) == 0x04000000); + return ((bitField1_ & 0x04000000) != 0); } /** * optional string AttachmentVersion = 61; + * @return The attachmentVersion. */ public java.lang.String getAttachmentVersion() { java.lang.Object ref = attachmentVersion_; @@ -12869,6 +14235,7 @@ public java.lang.String getAttachmentVersion() { } /** * optional string AttachmentVersion = 61; + * @return The bytes for attachmentVersion. */ public com.google.protobuf.ByteString getAttachmentVersionBytes() { @@ -12885,71 +14252,79 @@ public java.lang.String getAttachmentVersion() { } /** * optional string AttachmentVersion = 61; + * @param value The attachmentVersion to set. + * @return This builder for chaining. */ public Builder setAttachmentVersion( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x04000000; + if (value == null) { throw new NullPointerException(); } attachmentVersion_ = value; + bitField1_ |= 0x04000000; onChanged(); return this; } /** * optional string AttachmentVersion = 61; + * @return This builder for chaining. */ public Builder clearAttachmentVersion() { - bitField1_ = (bitField1_ & ~0x04000000); attachmentVersion_ = getDefaultInstance().getAttachmentVersion(); + bitField1_ = (bitField1_ & ~0x04000000); onChanged(); return this; } /** * optional string AttachmentVersion = 61; + * @param value The bytes for attachmentVersion to set. + * @return This builder for chaining. */ public Builder setAttachmentVersionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x04000000; + if (value == null) { throw new NullPointerException(); } attachmentVersion_ = value; + bitField1_ |= 0x04000000; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus proxySignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus.UnknownProxySignatureStatus; + private int proxySignatureStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ProxySignatureStatus ProxySignatureStatus = 62 [default = UnknownProxySignatureStatus]; + * @return Whether the proxySignatureStatus field is set. */ - public boolean hasProxySignatureStatus() { - return ((bitField1_ & 0x08000000) == 0x08000000); + @java.lang.Override public boolean hasProxySignatureStatus() { + return ((bitField1_ & 0x08000000) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ProxySignatureStatus ProxySignatureStatus = 62 [default = UnknownProxySignatureStatus]; + * @return The proxySignatureStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus getProxySignatureStatus() { - return proxySignatureStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus.forNumber(proxySignatureStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus.UnknownProxySignatureStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.ProxySignatureStatus ProxySignatureStatus = 62 [default = UnknownProxySignatureStatus]; + * @param value The proxySignatureStatus to set. + * @return This builder for chaining. */ public Builder setProxySignatureStatus(Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x08000000; - proxySignatureStatus_ = value; + proxySignatureStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.ProxySignatureStatus ProxySignatureStatus = 62 [default = UnknownProxySignatureStatus]; + * @return This builder for chaining. */ public Builder clearProxySignatureStatus() { bitField1_ = (bitField1_ & ~0x08000000); - proxySignatureStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.ProxySignatureStatus.UnknownProxySignatureStatus; + proxySignatureStatus_ = 0; onChanged(); return this; } @@ -12957,12 +14332,14 @@ public Builder clearProxySignatureStatus() { private java.lang.Object typeNamedId_ = ""; /** * required string TypeNamedId = 63; + * @return Whether the typeNamedId field is set. */ public boolean hasTypeNamedId() { - return ((bitField1_ & 0x10000000) == 0x10000000); + return ((bitField1_ & 0x10000000) != 0); } /** * required string TypeNamedId = 63; + * @return The typeNamedId. */ public java.lang.String getTypeNamedId() { java.lang.Object ref = typeNamedId_; @@ -12980,6 +14357,7 @@ public java.lang.String getTypeNamedId() { } /** * required string TypeNamedId = 63; + * @return The bytes for typeNamedId. */ public com.google.protobuf.ByteString getTypeNamedIdBytes() { @@ -12996,36 +14374,37 @@ public java.lang.String getTypeNamedId() { } /** * required string TypeNamedId = 63; + * @param value The typeNamedId to set. + * @return This builder for chaining. */ public Builder setTypeNamedId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x10000000; + if (value == null) { throw new NullPointerException(); } typeNamedId_ = value; + bitField1_ |= 0x10000000; onChanged(); return this; } /** * required string TypeNamedId = 63; + * @return This builder for chaining. */ public Builder clearTypeNamedId() { - bitField1_ = (bitField1_ & ~0x10000000); typeNamedId_ = getDefaultInstance().getTypeNamedId(); + bitField1_ = (bitField1_ & ~0x10000000); onChanged(); return this; } /** * required string TypeNamedId = 63; + * @param value The bytes for typeNamedId to set. + * @return This builder for chaining. */ public Builder setTypeNamedIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x10000000; + if (value == null) { throw new NullPointerException(); } typeNamedId_ = value; + bitField1_ |= 0x10000000; onChanged(); return this; } @@ -13033,12 +14412,14 @@ public Builder setTypeNamedIdBytes( private java.lang.Object function_ = ""; /** * required string Function = 64; + * @return Whether the function field is set. */ public boolean hasFunction() { - return ((bitField1_ & 0x20000000) == 0x20000000); + return ((bitField1_ & 0x20000000) != 0); } /** * required string Function = 64; + * @return The function. */ public java.lang.String getFunction() { java.lang.Object ref = function_; @@ -13056,6 +14437,7 @@ public java.lang.String getFunction() { } /** * required string Function = 64; + * @return The bytes for function. */ public com.google.protobuf.ByteString getFunctionBytes() { @@ -13072,36 +14454,37 @@ public java.lang.String getFunction() { } /** * required string Function = 64; + * @param value The function to set. + * @return This builder for chaining. */ public Builder setFunction( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x20000000; + if (value == null) { throw new NullPointerException(); } function_ = value; + bitField1_ |= 0x20000000; onChanged(); return this; } /** * required string Function = 64; + * @return This builder for chaining. */ public Builder clearFunction() { - bitField1_ = (bitField1_ & ~0x20000000); function_ = getDefaultInstance().getFunction(); + bitField1_ = (bitField1_ & ~0x20000000); onChanged(); return this; } /** * required string Function = 64; + * @param value The bytes for function to set. + * @return This builder for chaining. */ public Builder setFunctionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x20000000; + if (value == null) { throw new NullPointerException(); } function_ = value; + bitField1_ |= 0x20000000; onChanged(); return this; } @@ -13109,27 +14492,35 @@ public Builder setFunctionBytes( private int workflowId_ ; /** * required int32 WorkflowId = 65; + * @return Whether the workflowId field is set. */ + @java.lang.Override public boolean hasWorkflowId() { - return ((bitField1_ & 0x40000000) == 0x40000000); + return ((bitField1_ & 0x40000000) != 0); } /** * required int32 WorkflowId = 65; + * @return The workflowId. */ + @java.lang.Override public int getWorkflowId() { return workflowId_; } /** * required int32 WorkflowId = 65; + * @param value The workflowId to set. + * @return This builder for chaining. */ public Builder setWorkflowId(int value) { - bitField1_ |= 0x40000000; + workflowId_ = value; + bitField1_ |= 0x40000000; onChanged(); return this; } /** * required int32 WorkflowId = 65; + * @return This builder for chaining. */ public Builder clearWorkflowId() { bitField1_ = (bitField1_ & ~0x40000000); @@ -13141,12 +14532,14 @@ public Builder clearWorkflowId() { private java.lang.Object title_ = ""; /** * required string Title = 66; + * @return Whether the title field is set. */ public boolean hasTitle() { - return ((bitField1_ & 0x80000000) == 0x80000000); + return ((bitField1_ & 0x80000000) != 0); } /** * required string Title = 66; + * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; @@ -13164,6 +14557,7 @@ public java.lang.String getTitle() { } /** * required string Title = 66; + * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { @@ -13180,36 +14574,37 @@ public java.lang.String getTitle() { } /** * required string Title = 66; + * @param value The title to set. + * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x80000000; + if (value == null) { throw new NullPointerException(); } title_ = value; + bitField1_ |= 0x80000000; onChanged(); return this; } /** * required string Title = 66; + * @return This builder for chaining. */ public Builder clearTitle() { - bitField1_ = (bitField1_ & ~0x80000000); title_ = getDefaultInstance().getTitle(); + bitField1_ = (bitField1_ & ~0x80000000); onChanged(); return this; } /** * required string Title = 66; + * @param value The bytes for title to set. + * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x80000000; + if (value == null) { throw new NullPointerException(); } title_ = value; + bitField1_ |= 0x80000000; onChanged(); return this; } @@ -13217,7 +14612,7 @@ public Builder setTitleBytes( private java.util.List metadata_ = java.util.Collections.emptyList(); private void ensureMetadataIsMutable() { - if (!((bitField2_ & 0x00000001) == 0x00000001)) { + if (!((bitField2_ & 0x00000001) != 0)) { metadata_ = new java.util.ArrayList(metadata_); bitField2_ |= 0x00000001; } @@ -13446,7 +14841,7 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder metadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem, Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder, Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItemOrBuilder>( metadata_, - ((bitField2_ & 0x00000001) == 0x00000001), + ((bitField2_ & 0x00000001) != 0), getParentForChildren(), isClean()); metadata_ = null; @@ -13454,21 +14849,23 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.MetadataItem.Builder return metadataBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata recipientReceiptMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata recipientReceiptMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata, Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.Builder, Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadataOrBuilder> recipientReceiptMetadataBuilder_; /** * required .Diadoc.Api.Proto.Documents.RecipientReceiptMetadata RecipientReceiptMetadata = 68; + * @return Whether the recipientReceiptMetadata field is set. */ public boolean hasRecipientReceiptMetadata() { - return ((bitField2_ & 0x00000002) == 0x00000002); + return ((bitField2_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Documents.RecipientReceiptMetadata RecipientReceiptMetadata = 68; + * @return The recipientReceiptMetadata. */ public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata getRecipientReceiptMetadata() { if (recipientReceiptMetadataBuilder_ == null) { - return recipientReceiptMetadata_; + return recipientReceiptMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance() : recipientReceiptMetadata_; } else { return recipientReceiptMetadataBuilder_.getMessage(); } @@ -13482,11 +14879,11 @@ public Builder setRecipientReceiptMetadata(Diadoc.Api.Proto.Documents.DocumentPr throw new NullPointerException(); } recipientReceiptMetadata_ = value; - onChanged(); } else { recipientReceiptMetadataBuilder_.setMessage(value); } bitField2_ |= 0x00000002; + onChanged(); return this; } /** @@ -13496,11 +14893,11 @@ public Builder setRecipientReceiptMetadata( Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.Builder builderForValue) { if (recipientReceiptMetadataBuilder_ == null) { recipientReceiptMetadata_ = builderForValue.build(); - onChanged(); } else { recipientReceiptMetadataBuilder_.setMessage(builderForValue.build()); } bitField2_ |= 0x00000002; + onChanged(); return this; } /** @@ -13508,31 +14905,33 @@ public Builder setRecipientReceiptMetadata( */ public Builder mergeRecipientReceiptMetadata(Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata value) { if (recipientReceiptMetadataBuilder_ == null) { - if (((bitField2_ & 0x00000002) == 0x00000002) && - recipientReceiptMetadata_ != Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance()) { - recipientReceiptMetadata_ = - Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.newBuilder(recipientReceiptMetadata_).mergeFrom(value).buildPartial(); + if (((bitField2_ & 0x00000002) != 0) && + recipientReceiptMetadata_ != null && + recipientReceiptMetadata_ != Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance()) { + getRecipientReceiptMetadataBuilder().mergeFrom(value); } else { recipientReceiptMetadata_ = value; } - onChanged(); } else { recipientReceiptMetadataBuilder_.mergeFrom(value); } - bitField2_ |= 0x00000002; + if (recipientReceiptMetadata_ != null) { + bitField2_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Documents.RecipientReceiptMetadata RecipientReceiptMetadata = 68; */ public Builder clearRecipientReceiptMetadata() { - if (recipientReceiptMetadataBuilder_ == null) { - recipientReceiptMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance(); - onChanged(); - } else { - recipientReceiptMetadataBuilder_.clear(); - } bitField2_ = (bitField2_ & ~0x00000002); + recipientReceiptMetadata_ = null; + if (recipientReceiptMetadataBuilder_ != null) { + recipientReceiptMetadataBuilder_.dispose(); + recipientReceiptMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -13550,7 +14949,8 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadataOrBuild if (recipientReceiptMetadataBuilder_ != null) { return recipientReceiptMetadataBuilder_.getMessageOrBuilder(); } else { - return recipientReceiptMetadata_; + return recipientReceiptMetadata_ == null ? + Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance() : recipientReceiptMetadata_; } } /** @@ -13570,21 +14970,23 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadataOrBuild return recipientReceiptMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata confirmationMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata confirmationMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata, Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.Builder, Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadataOrBuilder> confirmationMetadataBuilder_; /** * required .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 69; + * @return Whether the confirmationMetadata field is set. */ public boolean hasConfirmationMetadata() { - return ((bitField2_ & 0x00000004) == 0x00000004); + return ((bitField2_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 69; + * @return The confirmationMetadata. */ public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata getConfirmationMetadata() { if (confirmationMetadataBuilder_ == null) { - return confirmationMetadata_; + return confirmationMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance() : confirmationMetadata_; } else { return confirmationMetadataBuilder_.getMessage(); } @@ -13598,11 +15000,11 @@ public Builder setConfirmationMetadata(Diadoc.Api.Proto.Documents.DocumentProtos throw new NullPointerException(); } confirmationMetadata_ = value; - onChanged(); } else { confirmationMetadataBuilder_.setMessage(value); } bitField2_ |= 0x00000004; + onChanged(); return this; } /** @@ -13612,11 +15014,11 @@ public Builder setConfirmationMetadata( Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.Builder builderForValue) { if (confirmationMetadataBuilder_ == null) { confirmationMetadata_ = builderForValue.build(); - onChanged(); } else { confirmationMetadataBuilder_.setMessage(builderForValue.build()); } bitField2_ |= 0x00000004; + onChanged(); return this; } /** @@ -13624,31 +15026,33 @@ public Builder setConfirmationMetadata( */ public Builder mergeConfirmationMetadata(Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata value) { if (confirmationMetadataBuilder_ == null) { - if (((bitField2_ & 0x00000004) == 0x00000004) && - confirmationMetadata_ != Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance()) { - confirmationMetadata_ = - Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.newBuilder(confirmationMetadata_).mergeFrom(value).buildPartial(); + if (((bitField2_ & 0x00000004) != 0) && + confirmationMetadata_ != null && + confirmationMetadata_ != Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance()) { + getConfirmationMetadataBuilder().mergeFrom(value); } else { confirmationMetadata_ = value; } - onChanged(); } else { confirmationMetadataBuilder_.mergeFrom(value); } - bitField2_ |= 0x00000004; + if (confirmationMetadata_ != null) { + bitField2_ |= 0x00000004; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 69; */ public Builder clearConfirmationMetadata() { - if (confirmationMetadataBuilder_ == null) { - confirmationMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance(); - onChanged(); - } else { - confirmationMetadataBuilder_.clear(); - } bitField2_ = (bitField2_ & ~0x00000004); + confirmationMetadata_ = null; + if (confirmationMetadataBuilder_ != null) { + confirmationMetadataBuilder_.dispose(); + confirmationMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -13666,7 +15070,8 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadataOrBuilder g if (confirmationMetadataBuilder_ != null) { return confirmationMetadataBuilder_.getMessageOrBuilder(); } else { - return confirmationMetadata_; + return confirmationMetadata_ == null ? + Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance() : confirmationMetadata_; } } /** @@ -13686,56 +15091,65 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadataOrBuilder g return confirmationMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus recipientResponseStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown; + private int recipientResponseStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus RecipientResponseStatus = 70 [default = RecipientResponseStatusUnknown]; + * @return Whether the recipientResponseStatus field is set. */ - public boolean hasRecipientResponseStatus() { - return ((bitField2_ & 0x00000008) == 0x00000008); + @java.lang.Override public boolean hasRecipientResponseStatus() { + return ((bitField2_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus RecipientResponseStatus = 70 [default = RecipientResponseStatusUnknown]; + * @return The recipientResponseStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus getRecipientResponseStatus() { - return recipientResponseStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.forNumber(recipientResponseStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown : result; } /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus RecipientResponseStatus = 70 [default = RecipientResponseStatusUnknown]; + * @param value The recipientResponseStatus to set. + * @return This builder for chaining. */ public Builder setRecipientResponseStatus(Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000008; - recipientResponseStatus_ = value; + recipientResponseStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.RecipientResponseStatus RecipientResponseStatus = 70 [default = RecipientResponseStatusUnknown]; + * @return This builder for chaining. */ public Builder clearRecipientResponseStatus() { bitField2_ = (bitField2_ & ~0x00000008); - recipientResponseStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.RecipientResponseStatus.RecipientResponseStatusUnknown; + recipientResponseStatus_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata amendmentRequestMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata amendmentRequestMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata, Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.Builder, Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadataOrBuilder> amendmentRequestMetadataBuilder_; /** * required .Diadoc.Api.Proto.Documents.AmendmentRequestMetadata AmendmentRequestMetadata = 71; + * @return Whether the amendmentRequestMetadata field is set. */ public boolean hasAmendmentRequestMetadata() { - return ((bitField2_ & 0x00000010) == 0x00000010); + return ((bitField2_ & 0x00000010) != 0); } /** * required .Diadoc.Api.Proto.Documents.AmendmentRequestMetadata AmendmentRequestMetadata = 71; + * @return The amendmentRequestMetadata. */ public Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata getAmendmentRequestMetadata() { if (amendmentRequestMetadataBuilder_ == null) { - return amendmentRequestMetadata_; + return amendmentRequestMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance() : amendmentRequestMetadata_; } else { return amendmentRequestMetadataBuilder_.getMessage(); } @@ -13749,11 +15163,11 @@ public Builder setAmendmentRequestMetadata(Diadoc.Api.Proto.Documents.DocumentPr throw new NullPointerException(); } amendmentRequestMetadata_ = value; - onChanged(); } else { amendmentRequestMetadataBuilder_.setMessage(value); } bitField2_ |= 0x00000010; + onChanged(); return this; } /** @@ -13763,11 +15177,11 @@ public Builder setAmendmentRequestMetadata( Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.Builder builderForValue) { if (amendmentRequestMetadataBuilder_ == null) { amendmentRequestMetadata_ = builderForValue.build(); - onChanged(); } else { amendmentRequestMetadataBuilder_.setMessage(builderForValue.build()); } bitField2_ |= 0x00000010; + onChanged(); return this; } /** @@ -13775,31 +15189,33 @@ public Builder setAmendmentRequestMetadata( */ public Builder mergeAmendmentRequestMetadata(Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata value) { if (amendmentRequestMetadataBuilder_ == null) { - if (((bitField2_ & 0x00000010) == 0x00000010) && - amendmentRequestMetadata_ != Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance()) { - amendmentRequestMetadata_ = - Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.newBuilder(amendmentRequestMetadata_).mergeFrom(value).buildPartial(); + if (((bitField2_ & 0x00000010) != 0) && + amendmentRequestMetadata_ != null && + amendmentRequestMetadata_ != Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance()) { + getAmendmentRequestMetadataBuilder().mergeFrom(value); } else { amendmentRequestMetadata_ = value; } - onChanged(); } else { amendmentRequestMetadataBuilder_.mergeFrom(value); } - bitField2_ |= 0x00000010; + if (amendmentRequestMetadata_ != null) { + bitField2_ |= 0x00000010; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Documents.AmendmentRequestMetadata AmendmentRequestMetadata = 71; */ public Builder clearAmendmentRequestMetadata() { - if (amendmentRequestMetadataBuilder_ == null) { - amendmentRequestMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance(); - onChanged(); - } else { - amendmentRequestMetadataBuilder_.clear(); - } bitField2_ = (bitField2_ & ~0x00000010); + amendmentRequestMetadata_ = null; + if (amendmentRequestMetadataBuilder_ != null) { + amendmentRequestMetadataBuilder_.dispose(); + amendmentRequestMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -13817,7 +15233,8 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadataOrBuild if (amendmentRequestMetadataBuilder_ != null) { return amendmentRequestMetadataBuilder_.getMessageOrBuilder(); } else { - return amendmentRequestMetadata_; + return amendmentRequestMetadata_ == null ? + Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance() : amendmentRequestMetadata_; } } /** @@ -13837,21 +15254,23 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadataOrBuild return amendmentRequestMetadataBuilder_; } - private Diadoc.Api.Proto.Documents.DocumentProtos.Origin origin_ = Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.DocumentProtos.Origin origin_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.DocumentProtos.Origin, Diadoc.Api.Proto.Documents.DocumentProtos.Origin.Builder, Diadoc.Api.Proto.Documents.DocumentProtos.OriginOrBuilder> originBuilder_; /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 72; + * @return Whether the origin field is set. */ public boolean hasOrigin() { - return ((bitField2_ & 0x00000020) == 0x00000020); + return ((bitField2_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 72; + * @return The origin. */ public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getOrigin() { if (originBuilder_ == null) { - return origin_; + return origin_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance() : origin_; } else { return originBuilder_.getMessage(); } @@ -13865,11 +15284,11 @@ public Builder setOrigin(Diadoc.Api.Proto.Documents.DocumentProtos.Origin value) throw new NullPointerException(); } origin_ = value; - onChanged(); } else { originBuilder_.setMessage(value); } bitField2_ |= 0x00000020; + onChanged(); return this; } /** @@ -13879,11 +15298,11 @@ public Builder setOrigin( Diadoc.Api.Proto.Documents.DocumentProtos.Origin.Builder builderForValue) { if (originBuilder_ == null) { origin_ = builderForValue.build(); - onChanged(); } else { originBuilder_.setMessage(builderForValue.build()); } bitField2_ |= 0x00000020; + onChanged(); return this; } /** @@ -13891,31 +15310,33 @@ public Builder setOrigin( */ public Builder mergeOrigin(Diadoc.Api.Proto.Documents.DocumentProtos.Origin value) { if (originBuilder_ == null) { - if (((bitField2_ & 0x00000020) == 0x00000020) && - origin_ != Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance()) { - origin_ = - Diadoc.Api.Proto.Documents.DocumentProtos.Origin.newBuilder(origin_).mergeFrom(value).buildPartial(); + if (((bitField2_ & 0x00000020) != 0) && + origin_ != null && + origin_ != Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance()) { + getOriginBuilder().mergeFrom(value); } else { origin_ = value; } - onChanged(); } else { originBuilder_.mergeFrom(value); } - bitField2_ |= 0x00000020; + if (origin_ != null) { + bitField2_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.Origin Origin = 72; - */ - public Builder clearOrigin() { - if (originBuilder_ == null) { - origin_ = Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance(); - onChanged(); - } else { - originBuilder_.clear(); - } + */ + public Builder clearOrigin() { bitField2_ = (bitField2_ & ~0x00000020); + origin_ = null; + if (originBuilder_ != null) { + originBuilder_.dispose(); + originBuilder_ = null; + } + onChanged(); return this; } /** @@ -13933,7 +15354,8 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.OriginOrBuilder getOriginOrBuil if (originBuilder_ != null) { return originBuilder_.getMessageOrBuilder(); } else { - return origin_; + return origin_ == null ? + Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance() : origin_; } } /** @@ -13956,12 +15378,14 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.OriginOrBuilder getOriginOrBuil private java.lang.Object editingSettingId_ = ""; /** * optional string EditingSettingId = 73 [default = ""]; + * @return Whether the editingSettingId field is set. */ public boolean hasEditingSettingId() { - return ((bitField2_ & 0x00000040) == 0x00000040); + return ((bitField2_ & 0x00000040) != 0); } /** * optional string EditingSettingId = 73 [default = ""]; + * @return The editingSettingId. */ public java.lang.String getEditingSettingId() { java.lang.Object ref = editingSettingId_; @@ -13979,6 +15403,7 @@ public java.lang.String getEditingSettingId() { } /** * optional string EditingSettingId = 73 [default = ""]; + * @return The bytes for editingSettingId. */ public com.google.protobuf.ByteString getEditingSettingIdBytes() { @@ -13995,90 +15420,100 @@ public java.lang.String getEditingSettingId() { } /** * optional string EditingSettingId = 73 [default = ""]; + * @param value The editingSettingId to set. + * @return This builder for chaining. */ public Builder setEditingSettingId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField2_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } editingSettingId_ = value; + bitField2_ |= 0x00000040; onChanged(); return this; } /** * optional string EditingSettingId = 73 [default = ""]; + * @return This builder for chaining. */ public Builder clearEditingSettingId() { - bitField2_ = (bitField2_ & ~0x00000040); editingSettingId_ = getDefaultInstance().getEditingSettingId(); + bitField2_ = (bitField2_ & ~0x00000040); onChanged(); return this; } /** * optional string EditingSettingId = 73 [default = ""]; + * @param value The bytes for editingSettingId to set. + * @return This builder for chaining. */ public Builder setEditingSettingIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField2_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } editingSettingId_ = value; + bitField2_ |= 0x00000040; onChanged(); return this; } - private Diadoc.Api.Proto.LockModeProtos.LockMode lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.None; + private int lockMode_ = 1; /** * required .Diadoc.Api.Proto.LockMode LockMode = 74 [default = None]; + * @return Whether the lockMode field is set. */ - public boolean hasLockMode() { - return ((bitField2_ & 0x00000080) == 0x00000080); + @java.lang.Override public boolean hasLockMode() { + return ((bitField2_ & 0x00000080) != 0); } /** * required .Diadoc.Api.Proto.LockMode LockMode = 74 [default = None]; + * @return The lockMode. */ + @java.lang.Override public Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode() { - return lockMode_; + Diadoc.Api.Proto.LockModeProtos.LockMode result = Diadoc.Api.Proto.LockModeProtos.LockMode.forNumber(lockMode_); + return result == null ? Diadoc.Api.Proto.LockModeProtos.LockMode.None : result; } /** * required .Diadoc.Api.Proto.LockMode LockMode = 74 [default = None]; + * @param value The lockMode to set. + * @return This builder for chaining. */ public Builder setLockMode(Diadoc.Api.Proto.LockModeProtos.LockMode value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000080; - lockMode_ = value; + lockMode_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.LockMode LockMode = 74 [default = None]; + * @return This builder for chaining. */ public Builder clearLockMode() { bitField2_ = (bitField2_ & ~0x00000080); - lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.None; + lockMode_ = 1; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata senderReceiptMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata senderReceiptMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata, Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.Builder, Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadataOrBuilder> senderReceiptMetadataBuilder_; /** * required .Diadoc.Api.Proto.Documents.SenderReceiptMetadata SenderReceiptMetadata = 75; + * @return Whether the senderReceiptMetadata field is set. */ public boolean hasSenderReceiptMetadata() { - return ((bitField2_ & 0x00000100) == 0x00000100); + return ((bitField2_ & 0x00000100) != 0); } /** * required .Diadoc.Api.Proto.Documents.SenderReceiptMetadata SenderReceiptMetadata = 75; + * @return The senderReceiptMetadata. */ public Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata getSenderReceiptMetadata() { if (senderReceiptMetadataBuilder_ == null) { - return senderReceiptMetadata_; + return senderReceiptMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance() : senderReceiptMetadata_; } else { return senderReceiptMetadataBuilder_.getMessage(); } @@ -14092,11 +15527,11 @@ public Builder setSenderReceiptMetadata(Diadoc.Api.Proto.Documents.DocumentProto throw new NullPointerException(); } senderReceiptMetadata_ = value; - onChanged(); } else { senderReceiptMetadataBuilder_.setMessage(value); } bitField2_ |= 0x00000100; + onChanged(); return this; } /** @@ -14106,11 +15541,11 @@ public Builder setSenderReceiptMetadata( Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.Builder builderForValue) { if (senderReceiptMetadataBuilder_ == null) { senderReceiptMetadata_ = builderForValue.build(); - onChanged(); } else { senderReceiptMetadataBuilder_.setMessage(builderForValue.build()); } bitField2_ |= 0x00000100; + onChanged(); return this; } /** @@ -14118,31 +15553,33 @@ public Builder setSenderReceiptMetadata( */ public Builder mergeSenderReceiptMetadata(Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata value) { if (senderReceiptMetadataBuilder_ == null) { - if (((bitField2_ & 0x00000100) == 0x00000100) && - senderReceiptMetadata_ != Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance()) { - senderReceiptMetadata_ = - Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.newBuilder(senderReceiptMetadata_).mergeFrom(value).buildPartial(); + if (((bitField2_ & 0x00000100) != 0) && + senderReceiptMetadata_ != null && + senderReceiptMetadata_ != Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance()) { + getSenderReceiptMetadataBuilder().mergeFrom(value); } else { senderReceiptMetadata_ = value; } - onChanged(); } else { senderReceiptMetadataBuilder_.mergeFrom(value); } - bitField2_ |= 0x00000100; + if (senderReceiptMetadata_ != null) { + bitField2_ |= 0x00000100; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Documents.SenderReceiptMetadata SenderReceiptMetadata = 75; */ public Builder clearSenderReceiptMetadata() { - if (senderReceiptMetadataBuilder_ == null) { - senderReceiptMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance(); - onChanged(); - } else { - senderReceiptMetadataBuilder_.clear(); - } bitField2_ = (bitField2_ & ~0x00000100); + senderReceiptMetadata_ = null; + if (senderReceiptMetadataBuilder_ != null) { + senderReceiptMetadataBuilder_.dispose(); + senderReceiptMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -14160,7 +15597,8 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadataOrBuilder if (senderReceiptMetadataBuilder_ != null) { return senderReceiptMetadataBuilder_.getMessageOrBuilder(); } else { - return senderReceiptMetadata_; + return senderReceiptMetadata_ == null ? + Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance() : senderReceiptMetadata_; } } /** @@ -14183,12 +15621,14 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadataOrBuilder private java.lang.Object version_ = ""; /** * required string Version = 76; + * @return Whether the version field is set. */ public boolean hasVersion() { - return ((bitField2_ & 0x00000200) == 0x00000200); + return ((bitField2_ & 0x00000200) != 0); } /** * required string Version = 76; + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -14206,6 +15646,7 @@ public java.lang.String getVersion() { } /** * required string Version = 76; + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { @@ -14222,36 +15663,37 @@ public java.lang.String getVersion() { } /** * required string Version = 76; + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField2_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } version_ = value; + bitField2_ |= 0x00000200; onChanged(); return this; } /** * required string Version = 76; + * @return This builder for chaining. */ public Builder clearVersion() { - bitField2_ = (bitField2_ & ~0x00000200); version_ = getDefaultInstance().getVersion(); + bitField2_ = (bitField2_ & ~0x00000200); onChanged(); return this; } /** * required string Version = 76; + * @param value The bytes for version to set. + * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField2_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } version_ = value; + bitField2_ |= 0x00000200; onChanged(); return this; } @@ -14259,7 +15701,7 @@ public Builder setVersionBytes( private java.util.List lastOuterDocflows_ = java.util.Collections.emptyList(); private void ensureLastOuterDocflowsIsMutable() { - if (!((bitField2_ & 0x00000400) == 0x00000400)) { + if (!((bitField2_ & 0x00000400) != 0)) { lastOuterDocflows_ = new java.util.ArrayList(lastOuterDocflows_); bitField2_ |= 0x00000400; } @@ -14488,7 +15930,7 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow.Builder addLas lastOuterDocflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow, Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow.Builder, Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflowOrBuilder>( lastOuterDocflows_, - ((bitField2_ & 0x00000400) == 0x00000400), + ((bitField2_ & 0x00000400) != 0), getParentForChildren(), isClean()); lastOuterDocflows_ = null; @@ -14499,12 +15941,14 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow.Builder addLas private java.lang.Object proxyBoxId_ = ""; /** * optional string ProxyBoxId = 78; + * @return Whether the proxyBoxId field is set. */ public boolean hasProxyBoxId() { - return ((bitField2_ & 0x00000800) == 0x00000800); + return ((bitField2_ & 0x00000800) != 0); } /** * optional string ProxyBoxId = 78; + * @return The proxyBoxId. */ public java.lang.String getProxyBoxId() { java.lang.Object ref = proxyBoxId_; @@ -14522,6 +15966,7 @@ public java.lang.String getProxyBoxId() { } /** * optional string ProxyBoxId = 78; + * @return The bytes for proxyBoxId. */ public com.google.protobuf.ByteString getProxyBoxIdBytes() { @@ -14538,36 +15983,37 @@ public java.lang.String getProxyBoxId() { } /** * optional string ProxyBoxId = 78; + * @param value The proxyBoxId to set. + * @return This builder for chaining. */ public Builder setProxyBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField2_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } proxyBoxId_ = value; + bitField2_ |= 0x00000800; onChanged(); return this; } /** * optional string ProxyBoxId = 78; + * @return This builder for chaining. */ public Builder clearProxyBoxId() { - bitField2_ = (bitField2_ & ~0x00000800); proxyBoxId_ = getDefaultInstance().getProxyBoxId(); + bitField2_ = (bitField2_ & ~0x00000800); onChanged(); return this; } /** * optional string ProxyBoxId = 78; + * @param value The bytes for proxyBoxId to set. + * @return This builder for chaining. */ public Builder setProxyBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField2_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } proxyBoxId_ = value; + bitField2_ |= 0x00000800; onChanged(); return this; } @@ -14575,12 +16021,14 @@ public Builder setProxyBoxIdBytes( private java.lang.Object proxyDepartmentId_ = ""; /** * optional string ProxyDepartmentId = 79; + * @return Whether the proxyDepartmentId field is set. */ public boolean hasProxyDepartmentId() { - return ((bitField2_ & 0x00001000) == 0x00001000); + return ((bitField2_ & 0x00001000) != 0); } /** * optional string ProxyDepartmentId = 79; + * @return The proxyDepartmentId. */ public java.lang.String getProxyDepartmentId() { java.lang.Object ref = proxyDepartmentId_; @@ -14598,6 +16046,7 @@ public java.lang.String getProxyDepartmentId() { } /** * optional string ProxyDepartmentId = 79; + * @return The bytes for proxyDepartmentId. */ public com.google.protobuf.ByteString getProxyDepartmentIdBytes() { @@ -14614,55 +16063,58 @@ public java.lang.String getProxyDepartmentId() { } /** * optional string ProxyDepartmentId = 79; + * @param value The proxyDepartmentId to set. + * @return This builder for chaining. */ public Builder setProxyDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField2_ |= 0x00001000; + if (value == null) { throw new NullPointerException(); } proxyDepartmentId_ = value; + bitField2_ |= 0x00001000; onChanged(); return this; } /** * optional string ProxyDepartmentId = 79; + * @return This builder for chaining. */ public Builder clearProxyDepartmentId() { - bitField2_ = (bitField2_ & ~0x00001000); proxyDepartmentId_ = getDefaultInstance().getProxyDepartmentId(); + bitField2_ = (bitField2_ & ~0x00001000); onChanged(); return this; } /** * optional string ProxyDepartmentId = 79; + * @param value The bytes for proxyDepartmentId to set. + * @return This builder for chaining. */ public Builder setProxyDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField2_ |= 0x00001000; + if (value == null) { throw new NullPointerException(); } proxyDepartmentId_ = value; + bitField2_ |= 0x00001000; onChanged(); return this; } - private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 docflowStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance(); + private Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 docflowStatus_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3, Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.Builder, Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3OrBuilder> docflowStatusBuilder_; /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 80; + * @return Whether the docflowStatus field is set. */ public boolean hasDocflowStatus() { - return ((bitField2_ & 0x00002000) == 0x00002000); + return ((bitField2_ & 0x00002000) != 0); } /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 80; + * @return The docflowStatus. */ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 getDocflowStatus() { if (docflowStatusBuilder_ == null) { - return docflowStatus_; + return docflowStatus_ == null ? Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance() : docflowStatus_; } else { return docflowStatusBuilder_.getMessage(); } @@ -14676,11 +16128,11 @@ public Builder setDocflowStatus(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowSt throw new NullPointerException(); } docflowStatus_ = value; - onChanged(); } else { docflowStatusBuilder_.setMessage(value); } bitField2_ |= 0x00002000; + onChanged(); return this; } /** @@ -14690,11 +16142,11 @@ public Builder setDocflowStatus( Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.Builder builderForValue) { if (docflowStatusBuilder_ == null) { docflowStatus_ = builderForValue.build(); - onChanged(); } else { docflowStatusBuilder_.setMessage(builderForValue.build()); } bitField2_ |= 0x00002000; + onChanged(); return this; } /** @@ -14702,31 +16154,33 @@ public Builder setDocflowStatus( */ public Builder mergeDocflowStatus(Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3 value) { if (docflowStatusBuilder_ == null) { - if (((bitField2_ & 0x00002000) == 0x00002000) && - docflowStatus_ != Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance()) { - docflowStatus_ = - Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.newBuilder(docflowStatus_).mergeFrom(value).buildPartial(); + if (((bitField2_ & 0x00002000) != 0) && + docflowStatus_ != null && + docflowStatus_ != Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance()) { + getDocflowStatusBuilder().mergeFrom(value); } else { docflowStatus_ = value; } - onChanged(); } else { docflowStatusBuilder_.mergeFrom(value); } - bitField2_ |= 0x00002000; + if (docflowStatus_ != null) { + bitField2_ |= 0x00002000; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.DocflowStatusV3 DocflowStatus = 80; */ public Builder clearDocflowStatus() { - if (docflowStatusBuilder_ == null) { - docflowStatus_ = Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance(); - onChanged(); - } else { - docflowStatusBuilder_.clear(); - } bitField2_ = (bitField2_ & ~0x00002000); + docflowStatus_ = null; + if (docflowStatusBuilder_ != null) { + docflowStatusBuilder_.dispose(); + docflowStatusBuilder_ = null; + } + onChanged(); return this; } /** @@ -14744,7 +16198,8 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3OrBuilder getDocflo if (docflowStatusBuilder_ != null) { return docflowStatusBuilder_.getMessageOrBuilder(); } else { - return docflowStatus_; + return docflowStatus_ == null ? + Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3.getDefaultInstance() : docflowStatus_; } } /** @@ -14767,12 +16222,52 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3OrBuilder getDocflo // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Document) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Document) + private static final Diadoc.Api.Proto.Documents.DocumentProtos.Document DEFAULT_INSTANCE; static { - defaultInstance = new Document(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentProtos.Document(); + } + + public static Diadoc.Api.Proto.Documents.DocumentProtos.Document getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Document parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentProtos.Document getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Document) } public interface LastOuterDocflowOrBuilder extends @@ -14781,24 +16276,29 @@ public interface LastOuterDocflowOrBuilder extends /** * required string ParentEntityId = 1; + * @return Whether the parentEntityId field is set. */ boolean hasParentEntityId(); /** * required string ParentEntityId = 1; + * @return The parentEntityId. */ java.lang.String getParentEntityId(); /** * required string ParentEntityId = 1; + * @return The bytes for parentEntityId. */ com.google.protobuf.ByteString getParentEntityIdBytes(); /** * required .Diadoc.Api.Proto.OuterDocflows.OuterDocflowInfo OuterDocflow = 2; + * @return Whether the outerDocflow field is set. */ boolean hasOuterDocflow(); /** * required .Diadoc.Api.Proto.OuterDocflows.OuterDocflowInfo OuterDocflow = 2; + * @return The outerDocflow. */ Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo getOuterDocflow(); /** @@ -14813,87 +16313,30 @@ public static final class LastOuterDocflow extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.LastOuterDocflow) LastOuterDocflowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + LastOuterDocflow.class.getName()); + } // Use LastOuterDocflow.newBuilder() to construct. private LastOuterDocflow(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private LastOuterDocflow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final LastOuterDocflow defaultInstance; - public static LastOuterDocflow getDefaultInstance() { - return defaultInstance; } - - public LastOuterDocflow getDefaultInstanceForType() { - return defaultInstance; + private LastOuterDocflow() { + parentEntityId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LastOuterDocflow( - 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; - parentEntityId_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = outerDocflow_.toBuilder(); - } - outerDocflow_ = input.readMessage(Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outerDocflow_); - outerDocflow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_LastOuterDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_LastOuterDocflow_fieldAccessorTable @@ -14901,33 +16344,23 @@ private LastOuterDocflow( Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow.class, Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public LastOuterDocflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LastOuterDocflow(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PARENTENTITYID_FIELD_NUMBER = 1; - private java.lang.Object parentEntityId_; + @SuppressWarnings("serial") + private volatile java.lang.Object parentEntityId_ = ""; /** * required string ParentEntityId = 1; + * @return Whether the parentEntityId field is set. */ + @java.lang.Override public boolean hasParentEntityId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string ParentEntityId = 1; + * @return The parentEntityId. */ + @java.lang.Override public java.lang.String getParentEntityId() { java.lang.Object ref = parentEntityId_; if (ref instanceof java.lang.String) { @@ -14944,7 +16377,9 @@ public java.lang.String getParentEntityId() { } /** * required string ParentEntityId = 1; + * @return The bytes for parentEntityId. */ + @java.lang.Override public com.google.protobuf.ByteString getParentEntityIdBytes() { java.lang.Object ref = parentEntityId_; @@ -14963,28 +16398,30 @@ public java.lang.String getParentEntityId() { private Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo outerDocflow_; /** * required .Diadoc.Api.Proto.OuterDocflows.OuterDocflowInfo OuterDocflow = 2; + * @return Whether the outerDocflow field is set. */ + @java.lang.Override public boolean hasOuterDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.OuterDocflows.OuterDocflowInfo OuterDocflow = 2; + * @return The outerDocflow. */ + @java.lang.Override public Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo getOuterDocflow() { - return outerDocflow_; + return outerDocflow_ == null ? Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.getDefaultInstance() : outerDocflow_; } /** * required .Diadoc.Api.Proto.OuterDocflows.OuterDocflowInfo OuterDocflow = 2; */ + @java.lang.Override public Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfoOrBuilder getOuterDocflowOrBuilder() { - return outerDocflow_; + return outerDocflow_ == null ? Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.getDefaultInstance() : outerDocflow_; } - private void initFields() { - parentEntityId_ = ""; - outerDocflow_ = Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -15006,44 +16443,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getParentEntityIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parentEntityId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, outerDocflow_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getOuterDocflow()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getParentEntityIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parentEntityId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, outerDocflow_); + .computeMessageSize(2, getOuterDocflow()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow other = (Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow) obj; + + if (hasParentEntityId() != other.hasParentEntityId()) return false; + if (hasParentEntityId()) { + if (!getParentEntityId() + .equals(other.getParentEntityId())) return false; + } + if (hasOuterDocflow() != other.hasOuterDocflow()) return false; + if (hasOuterDocflow()) { + if (!getOuterDocflow() + .equals(other.getOuterDocflow())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasParentEntityId()) { + hash = (37 * hash) + PARENTENTITYID_FIELD_NUMBER; + hash = (53 * hash) + getParentEntityId().hashCode(); + } + if (hasOuterDocflow()) { + hash = (37 * hash) + OUTERDOCFLOW_FIELD_NUMBER; + hash = (53 * hash) + getOuterDocflow().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15067,42 +16551,57 @@ public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parseFr } public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -15122,6 +16621,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_LastOuterDocflow_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_LastOuterDocflow_fieldAccessorTable @@ -15140,40 +16640,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getOuterDocflowFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parentEntityId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (outerDocflowBuilder_ == null) { - outerDocflow_ = Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.getDefaultInstance(); - } else { - outerDocflowBuilder_.clear(); + outerDocflow_ = null; + if (outerDocflowBuilder_ != null) { + outerDocflowBuilder_.dispose(); + outerDocflowBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_LastOuterDocflow_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow build() { Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow result = buildPartial(); if (!result.isInitialized()) { @@ -15182,27 +16678,31 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow buildPartial() { Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow result = new Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parentEntityId_ = parentEntityId_; to_bitField0_ |= 0x00000001; } - result.parentEntityId_ = parentEntityId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outerDocflow_ = outerDocflowBuilder_ == null + ? outerDocflow_ + : outerDocflowBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (outerDocflowBuilder_ == null) { - result.outerDocflow_ = outerDocflow_; - } else { - result.outerDocflow_ = outerDocflowBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow)other); @@ -15215,48 +16715,73 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow other) { if (other == Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow.getDefaultInstance()) return this; if (other.hasParentEntityId()) { - bitField0_ |= 0x00000001; parentEntityId_ = other.parentEntityId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasOuterDocflow()) { mergeOuterDocflow(other.getOuterDocflow()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasParentEntityId()) { - return false; } if (!hasOuterDocflow()) { - return false; } if (!getOuterDocflow().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parentEntityId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getOuterDocflowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -15264,12 +16789,14 @@ public Builder mergeFrom( private java.lang.Object parentEntityId_ = ""; /** * required string ParentEntityId = 1; + * @return Whether the parentEntityId field is set. */ public boolean hasParentEntityId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string ParentEntityId = 1; + * @return The parentEntityId. */ public java.lang.String getParentEntityId() { java.lang.Object ref = parentEntityId_; @@ -15287,6 +16814,7 @@ public java.lang.String getParentEntityId() { } /** * required string ParentEntityId = 1; + * @return The bytes for parentEntityId. */ public com.google.protobuf.ByteString getParentEntityIdBytes() { @@ -15303,55 +16831,58 @@ public java.lang.String getParentEntityId() { } /** * required string ParentEntityId = 1; + * @param value The parentEntityId to set. + * @return This builder for chaining. */ public Builder setParentEntityId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } parentEntityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string ParentEntityId = 1; + * @return This builder for chaining. */ public Builder clearParentEntityId() { - bitField0_ = (bitField0_ & ~0x00000001); parentEntityId_ = getDefaultInstance().getParentEntityId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string ParentEntityId = 1; + * @param value The bytes for parentEntityId to set. + * @return This builder for chaining. */ public Builder setParentEntityIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } parentEntityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo outerDocflow_ = Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.getDefaultInstance(); + private Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo outerDocflow_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo, Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.Builder, Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfoOrBuilder> outerDocflowBuilder_; /** * required .Diadoc.Api.Proto.OuterDocflows.OuterDocflowInfo OuterDocflow = 2; + * @return Whether the outerDocflow field is set. */ public boolean hasOuterDocflow() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.OuterDocflows.OuterDocflowInfo OuterDocflow = 2; + * @return The outerDocflow. */ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo getOuterDocflow() { if (outerDocflowBuilder_ == null) { - return outerDocflow_; + return outerDocflow_ == null ? Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.getDefaultInstance() : outerDocflow_; } else { return outerDocflowBuilder_.getMessage(); } @@ -15365,11 +16896,11 @@ public Builder setOuterDocflow(Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos throw new NullPointerException(); } outerDocflow_ = value; - onChanged(); } else { outerDocflowBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -15379,11 +16910,11 @@ public Builder setOuterDocflow( Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.Builder builderForValue) { if (outerDocflowBuilder_ == null) { outerDocflow_ = builderForValue.build(); - onChanged(); } else { outerDocflowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -15391,31 +16922,33 @@ public Builder setOuterDocflow( */ public Builder mergeOuterDocflow(Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo value) { if (outerDocflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - outerDocflow_ != Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.getDefaultInstance()) { - outerDocflow_ = - Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.newBuilder(outerDocflow_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + outerDocflow_ != null && + outerDocflow_ != Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.getDefaultInstance()) { + getOuterDocflowBuilder().mergeFrom(value); } else { outerDocflow_ = value; } - onChanged(); } else { outerDocflowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (outerDocflow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.OuterDocflows.OuterDocflowInfo OuterDocflow = 2; */ public Builder clearOuterDocflow() { - if (outerDocflowBuilder_ == null) { - outerDocflow_ = Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.getDefaultInstance(); - onChanged(); - } else { - outerDocflowBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + outerDocflow_ = null; + if (outerDocflowBuilder_ != null) { + outerDocflowBuilder_.dispose(); + outerDocflowBuilder_ = null; + } + onChanged(); return this; } /** @@ -15433,7 +16966,8 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfoOrBuild if (outerDocflowBuilder_ != null) { return outerDocflowBuilder_.getMessageOrBuilder(); } else { - return outerDocflow_; + return outerDocflow_ == null ? + Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfo.getDefaultInstance() : outerDocflow_; } } /** @@ -15456,12 +16990,52 @@ public Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.OuterDocflowInfoOrBuild // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.LastOuterDocflow) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.LastOuterDocflow) + private static final Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow DEFAULT_INSTANCE; static { - defaultInstance = new LastOuterDocflow(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow(); + } + + public static Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LastOuterDocflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.LastOuterDocflow) } public interface ResolutionStatusOrBuilder extends @@ -15470,19 +17044,23 @@ public interface ResolutionStatusOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatusType Type = 1 [default = UnknownResolutionStatus]; + * @return Whether the type field is set. */ boolean hasType(); /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatusType Type = 1 [default = UnknownResolutionStatus]; + * @return The type. */ Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType getType(); /** * optional .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return Whether the target field is set. */ boolean hasTarget(); /** * optional .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return The target. */ Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget getTarget(); /** @@ -15492,28 +17070,34 @@ public interface ResolutionStatusOrBuilder extends /** * required string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ boolean hasAuthorUserId(); /** * required string AuthorUserId = 3; + * @return The authorUserId. */ java.lang.String getAuthorUserId(); /** * required string AuthorUserId = 3; + * @return The bytes for authorUserId. */ com.google.protobuf.ByteString getAuthorUserIdBytes(); /** * required string AuthorFIO = 4; + * @return Whether the authorFIO field is set. */ boolean hasAuthorFIO(); /** * required string AuthorFIO = 4; + * @return The authorFIO. */ java.lang.String getAuthorFIO(); /** * required string AuthorFIO = 4; + * @return The bytes for authorFIO. */ com.google.protobuf.ByteString getAuthorFIOBytes(); @@ -15525,104 +17109,32 @@ public static final class ResolutionStatus extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.ResolutionStatus) ResolutionStatusOrBuilder { - // Use ResolutionStatus.newBuilder() to construct. - private ResolutionStatus(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ResolutionStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ResolutionStatus defaultInstance; - public static ResolutionStatus getDefaultInstance() { - return defaultInstance; - } - - public ResolutionStatus getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ResolutionStatus.class.getName()); } - private ResolutionStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType value = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = value; - } - break; - } - case 18: { - Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = target_.toBuilder(); - } - target_ = input.readMessage(Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(target_); - target_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - authorUserId_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - authorFIO_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + // Use ResolutionStatus.newBuilder() to construct. + private ResolutionStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ResolutionStatus() { + type_ = -1; + authorUserId_ = ""; + authorFIO_ = ""; } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_ResolutionStatus_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_ResolutionStatus_fieldAccessorTable @@ -15630,69 +17142,67 @@ private ResolutionStatus( Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.class, Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ResolutionStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResolutionStatus(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType type_; + private int type_ = -1; /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatusType Type = 1 [default = UnknownResolutionStatus]; + * @return Whether the type field is set. */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatusType Type = 1 [default = UnknownResolutionStatus]; + * @return The type. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType getType() { - return type_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType getType() { + Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType result = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType.forNumber(type_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType.UnknownResolutionStatus : result; } public static final int TARGET_FIELD_NUMBER = 2; private Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget target_; /** * optional .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return Whether the target field is set. */ + @java.lang.Override public boolean hasTarget() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return The target. */ + @java.lang.Override public Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget getTarget() { - return target_; + return target_ == null ? Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance() : target_; } /** * optional .Diadoc.Api.Proto.ResolutionTarget Target = 2; */ + @java.lang.Override public Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTargetOrBuilder getTargetOrBuilder() { - return target_; + return target_ == null ? Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance() : target_; } public static final int AUTHORUSERID_FIELD_NUMBER = 3; - private java.lang.Object authorUserId_; + @SuppressWarnings("serial") + private volatile java.lang.Object authorUserId_ = ""; /** * required string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ + @java.lang.Override public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string AuthorUserId = 3; + * @return The authorUserId. */ + @java.lang.Override public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; if (ref instanceof java.lang.String) { @@ -15709,7 +17219,9 @@ public java.lang.String getAuthorUserId() { } /** * required string AuthorUserId = 3; + * @return The bytes for authorUserId. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorUserIdBytes() { java.lang.Object ref = authorUserId_; @@ -15725,16 +17237,21 @@ public java.lang.String getAuthorUserId() { } public static final int AUTHORFIO_FIELD_NUMBER = 4; - private java.lang.Object authorFIO_; + @SuppressWarnings("serial") + private volatile java.lang.Object authorFIO_ = ""; /** * required string AuthorFIO = 4; + * @return Whether the authorFIO field is set. */ + @java.lang.Override public boolean hasAuthorFIO() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string AuthorFIO = 4; + * @return The authorFIO. */ + @java.lang.Override public java.lang.String getAuthorFIO() { java.lang.Object ref = authorFIO_; if (ref instanceof java.lang.String) { @@ -15751,7 +17268,9 @@ public java.lang.String getAuthorFIO() { } /** * required string AuthorFIO = 4; + * @return The bytes for authorFIO. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorFIOBytes() { java.lang.Object ref = authorFIO_; @@ -15766,13 +17285,8 @@ public java.lang.String getAuthorFIO() { } } - private void initFields() { - type_ = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType.UnknownResolutionStatus; - target_ = Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance(); - authorUserId_ = ""; - authorFIO_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -15790,58 +17304,121 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, type_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, type_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, target_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTarget()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authorUserId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getAuthorFIOBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, authorFIO_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_.getNumber()); + .computeEnumSize(1, type_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, target_); + .computeMessageSize(2, getTarget()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getAuthorUserIdBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authorUserId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getAuthorFIOBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, authorFIO_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus other = (Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (type_ != other.type_) return false; + } + if (hasTarget() != other.hasTarget()) return false; + if (hasTarget()) { + if (!getTarget() + .equals(other.getTarget())) return false; + } + if (hasAuthorUserId() != other.hasAuthorUserId()) return false; + if (hasAuthorUserId()) { + if (!getAuthorUserId() + .equals(other.getAuthorUserId())) return false; + } + if (hasAuthorFIO() != other.hasAuthorFIO()) return false; + if (hasAuthorFIO()) { + if (!getAuthorFIO() + .equals(other.getAuthorFIO())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + } + if (hasTarget()) { + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + } + if (hasAuthorUserId()) { + hash = (37 * hash) + AUTHORUSERID_FIELD_NUMBER; + hash = (53 * hash) + getAuthorUserId().hashCode(); + } + if (hasAuthorFIO()) { + hash = (37 * hash) + AUTHORFIO_FIELD_NUMBER; + hash = (53 * hash) + getAuthorFIO().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15865,42 +17442,57 @@ public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parseFr } public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -15920,6 +17512,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_ResolutionStatus_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_ResolutionStatus_fieldAccessorTable @@ -15938,44 +17531,38 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getTargetFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - type_ = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType.UnknownResolutionStatus; - bitField0_ = (bitField0_ & ~0x00000001); - if (targetBuilder_ == null) { - target_ = Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance(); - } else { - targetBuilder_.clear(); + bitField0_ = 0; + type_ = -1; + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); + targetBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); authorUserId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); authorFIO_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_ResolutionStatus_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus build() { Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus result = buildPartial(); if (!result.isInitialized()) { @@ -15984,35 +17571,39 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus buildPartial() { Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus result = new Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; to_bitField0_ |= 0x00000001; } - result.type_ = type_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.target_ = targetBuilder_ == null + ? target_ + : targetBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (targetBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = targetBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authorUserId_ = authorUserId_; to_bitField0_ |= 0x00000004; } - result.authorUserId_ = authorUserId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.authorFIO_ = authorFIO_; to_bitField0_ |= 0x00000008; } - result.authorFIO_ = authorFIO_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus)other); @@ -16031,100 +17622,152 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionSta mergeTarget(other.getTarget()); } if (other.hasAuthorUserId()) { - bitField0_ |= 0x00000004; authorUserId_ = other.authorUserId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasAuthorFIO()) { - bitField0_ |= 0x00000008; authorFIO_ = other.authorFIO_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasAuthorUserId()) { - return false; } if (!hasAuthorFIO()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + type_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + input.readMessage( + getTargetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + authorUserId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + authorFIO_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType type_ = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType.UnknownResolutionStatus; + private int type_ = -1; /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatusType Type = 1 [default = UnknownResolutionStatus]; + * @return Whether the type field is set. */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatusType Type = 1 [default = UnknownResolutionStatus]; + * @return The type. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType getType() { - return type_; + Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType result = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType.forNumber(type_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType.UnknownResolutionStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatusType Type = 1 [default = UnknownResolutionStatus]; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - type_ = value; + type_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.ResolutionStatusType Type = 1 [default = UnknownResolutionStatus]; + * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); - type_ = Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatusType.UnknownResolutionStatus; + type_ = -1; onChanged(); return this; } - private Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget target_ = Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance(); + private Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget target_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget, Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.Builder, Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTargetOrBuilder> targetBuilder_; /** * optional .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return Whether the target field is set. */ public boolean hasTarget() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.ResolutionTarget Target = 2; + * @return The target. */ public Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget getTarget() { if (targetBuilder_ == null) { - return target_; + return target_ == null ? Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance() : target_; } else { return targetBuilder_.getMessage(); } @@ -16138,11 +17781,11 @@ public Builder setTarget(Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarge throw new NullPointerException(); } target_ = value; - onChanged(); } else { targetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -16152,11 +17795,11 @@ public Builder setTarget( Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); - onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -16164,31 +17807,33 @@ public Builder setTarget( */ public Builder mergeTarget(Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget value) { if (targetBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - target_ != Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance()) { - target_ = - Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.newBuilder(target_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + target_ != null && + target_ != Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance()) { + getTargetBuilder().mergeFrom(value); } else { target_ = value; } - onChanged(); } else { targetBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (target_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.ResolutionTarget Target = 2; */ public Builder clearTarget() { - if (targetBuilder_ == null) { - target_ = Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance(); - onChanged(); - } else { - targetBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); + targetBuilder_ = null; + } + onChanged(); return this; } /** @@ -16206,7 +17851,8 @@ public Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTargetOrBuilder getTarg if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { - return target_; + return target_ == null ? + Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTarget.getDefaultInstance() : target_; } } /** @@ -16229,12 +17875,14 @@ public Diadoc.Api.Proto.ResolutionTargetProtos.ResolutionTargetOrBuilder getTarg private java.lang.Object authorUserId_ = ""; /** * required string AuthorUserId = 3; + * @return Whether the authorUserId field is set. */ public boolean hasAuthorUserId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string AuthorUserId = 3; + * @return The authorUserId. */ public java.lang.String getAuthorUserId() { java.lang.Object ref = authorUserId_; @@ -16252,6 +17900,7 @@ public java.lang.String getAuthorUserId() { } /** * required string AuthorUserId = 3; + * @return The bytes for authorUserId. */ public com.google.protobuf.ByteString getAuthorUserIdBytes() { @@ -16268,36 +17917,37 @@ public java.lang.String getAuthorUserId() { } /** * required string AuthorUserId = 3; + * @param value The authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string AuthorUserId = 3; + * @return This builder for chaining. */ public Builder clearAuthorUserId() { - bitField0_ = (bitField0_ & ~0x00000004); authorUserId_ = getDefaultInstance().getAuthorUserId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string AuthorUserId = 3; + * @param value The bytes for authorUserId to set. + * @return This builder for chaining. */ public Builder setAuthorUserIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } authorUserId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -16305,12 +17955,14 @@ public Builder setAuthorUserIdBytes( private java.lang.Object authorFIO_ = ""; /** * required string AuthorFIO = 4; + * @return Whether the authorFIO field is set. */ public boolean hasAuthorFIO() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string AuthorFIO = 4; + * @return The authorFIO. */ public java.lang.String getAuthorFIO() { java.lang.Object ref = authorFIO_; @@ -16328,6 +17980,7 @@ public java.lang.String getAuthorFIO() { } /** * required string AuthorFIO = 4; + * @return The bytes for authorFIO. */ public com.google.protobuf.ByteString getAuthorFIOBytes() { @@ -16344,36 +17997,37 @@ public java.lang.String getAuthorFIO() { } /** * required string AuthorFIO = 4; + * @param value The authorFIO to set. + * @return This builder for chaining. */ public Builder setAuthorFIO( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } authorFIO_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required string AuthorFIO = 4; + * @return This builder for chaining. */ public Builder clearAuthorFIO() { - bitField0_ = (bitField0_ & ~0x00000008); authorFIO_ = getDefaultInstance().getAuthorFIO(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * required string AuthorFIO = 4; + * @param value The bytes for authorFIO to set. + * @return This builder for chaining. */ public Builder setAuthorFIOBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } authorFIO_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -16381,12 +18035,52 @@ public Builder setAuthorFIOBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.ResolutionStatus) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.ResolutionStatus) + private static final Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus DEFAULT_INSTANCE; static { - defaultInstance = new ResolutionStatus(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus(); + } + + public static Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResolutionStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentProtos.ResolutionStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.ResolutionStatus) } public interface RecipientReceiptMetadataOrBuilder extends @@ -16395,19 +18089,23 @@ public interface RecipientReceiptMetadataOrBuilder extends /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus(); /** * optional .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 2; + * @return Whether the confirmationMetadata field is set. */ boolean hasConfirmationMetadata(); /** * optional .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 2; + * @return The confirmationMetadata. */ Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata getConfirmationMetadata(); /** @@ -16422,92 +18120,30 @@ public static final class RecipientReceiptMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.RecipientReceiptMetadata) RecipientReceiptMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RecipientReceiptMetadata.class.getName()); + } // Use RecipientReceiptMetadata.newBuilder() to construct. private RecipientReceiptMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private RecipientReceiptMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RecipientReceiptMetadata defaultInstance; - public static RecipientReceiptMetadata getDefaultInstance() { - return defaultInstance; - } - - public RecipientReceiptMetadata getDefaultInstanceForType() { - return defaultInstance; + private RecipientReceiptMetadata() { + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RecipientReceiptMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - receiptStatus_ = value; - } - break; - } - case 18: { - Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = confirmationMetadata_.toBuilder(); - } - confirmationMetadata_ = input.readMessage(Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confirmationMetadata_); - confirmationMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_RecipientReceiptMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_RecipientReceiptMetadata_fieldAccessorTable @@ -16515,63 +18151,53 @@ private RecipientReceiptMetadata( Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.class, Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RecipientReceiptMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecipientReceiptMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int RECEIPTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown : result; } public static final int CONFIRMATIONMETADATA_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata confirmationMetadata_; /** * optional .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 2; + * @return Whether the confirmationMetadata field is set. */ + @java.lang.Override public boolean hasConfirmationMetadata() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 2; + * @return The confirmationMetadata. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata getConfirmationMetadata() { - return confirmationMetadata_; + return confirmationMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance() : confirmationMetadata_; } /** * optional .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadataOrBuilder getConfirmationMetadataOrBuilder() { - return confirmationMetadata_; + return confirmationMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance() : confirmationMetadata_; } - private void initFields() { - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; - confirmationMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -16591,44 +18217,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, receiptStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, confirmationMetadata_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getConfirmationMetadata()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, receiptStatus_.getNumber()); + .computeEnumSize(1, receiptStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, confirmationMetadata_); + .computeMessageSize(2, getConfirmationMetadata()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata other = (Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata) obj; + + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (hasConfirmationMetadata() != other.hasConfirmationMetadata()) return false; + if (hasConfirmationMetadata()) { + if (!getConfirmationMetadata() + .equals(other.getConfirmationMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + if (hasConfirmationMetadata()) { + hash = (37 * hash) + CONFIRMATIONMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -16652,42 +18325,57 @@ public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata } public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -16707,6 +18395,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_RecipientReceiptMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_RecipientReceiptMetadata_fieldAccessorTable @@ -16725,40 +18414,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getConfirmationMetadataFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; - bitField0_ = (bitField0_ & ~0x00000001); - if (confirmationMetadataBuilder_ == null) { - confirmationMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance(); - } else { - confirmationMetadataBuilder_.clear(); + bitField0_ = 0; + receiptStatus_ = 0; + confirmationMetadata_ = null; + if (confirmationMetadataBuilder_ != null) { + confirmationMetadataBuilder_.dispose(); + confirmationMetadataBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_RecipientReceiptMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata build() { Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -16767,27 +18452,31 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata buildPartial() { Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata result = new Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000001; } - result.receiptStatus_ = receiptStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationMetadata_ = confirmationMetadataBuilder_ == null + ? confirmationMetadata_ + : confirmationMetadataBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (confirmationMetadataBuilder_ == null) { - result.confirmationMetadata_ = confirmationMetadata_; - } else { - result.confirmationMetadata_ = confirmationMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata)other); @@ -16806,92 +18495,134 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.RecipientRece mergeConfirmationMetadata(other.getConfirmationMetadata()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasReceiptStatus()) { - return false; } if (hasConfirmationMetadata()) { if (!getConfirmationMetadata().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + input.readMessage( + getConfirmationMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; + private int receiptStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown : result; } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000001); - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; + receiptStatus_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata confirmationMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata confirmationMetadata_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata, Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.Builder, Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadataOrBuilder> confirmationMetadataBuilder_; /** * optional .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 2; + * @return Whether the confirmationMetadata field is set. */ public boolean hasConfirmationMetadata() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 2; + * @return The confirmationMetadata. */ public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata getConfirmationMetadata() { if (confirmationMetadataBuilder_ == null) { - return confirmationMetadata_; + return confirmationMetadata_ == null ? Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance() : confirmationMetadata_; } else { return confirmationMetadataBuilder_.getMessage(); } @@ -16905,11 +18636,11 @@ public Builder setConfirmationMetadata(Diadoc.Api.Proto.Documents.DocumentProtos throw new NullPointerException(); } confirmationMetadata_ = value; - onChanged(); } else { confirmationMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -16919,11 +18650,11 @@ public Builder setConfirmationMetadata( Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.Builder builderForValue) { if (confirmationMetadataBuilder_ == null) { confirmationMetadata_ = builderForValue.build(); - onChanged(); } else { confirmationMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -16931,31 +18662,33 @@ public Builder setConfirmationMetadata( */ public Builder mergeConfirmationMetadata(Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata value) { if (confirmationMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - confirmationMetadata_ != Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance()) { - confirmationMetadata_ = - Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.newBuilder(confirmationMetadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + confirmationMetadata_ != null && + confirmationMetadata_ != Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance()) { + getConfirmationMetadataBuilder().mergeFrom(value); } else { confirmationMetadata_ = value; } - onChanged(); } else { confirmationMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (confirmationMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Documents.ConfirmationMetadata ConfirmationMetadata = 2; */ public Builder clearConfirmationMetadata() { - if (confirmationMetadataBuilder_ == null) { - confirmationMetadata_ = Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance(); - onChanged(); - } else { - confirmationMetadataBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + confirmationMetadata_ = null; + if (confirmationMetadataBuilder_ != null) { + confirmationMetadataBuilder_.dispose(); + confirmationMetadataBuilder_ = null; + } + onChanged(); return this; } /** @@ -16973,7 +18706,8 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadataOrBuilder g if (confirmationMetadataBuilder_ != null) { return confirmationMetadataBuilder_.getMessageOrBuilder(); } else { - return confirmationMetadata_; + return confirmationMetadata_ == null ? + Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance() : confirmationMetadata_; } } /** @@ -16996,12 +18730,52 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadataOrBuilder g // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.RecipientReceiptMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.RecipientReceiptMetadata) + private static final Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata DEFAULT_INSTANCE; static { - defaultInstance = new RecipientReceiptMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata(); + } + + public static Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecipientReceiptMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentProtos.RecipientReceiptMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.RecipientReceiptMetadata) } public interface SenderReceiptMetadataOrBuilder extends @@ -17010,10 +18784,12 @@ public interface SenderReceiptMetadataOrBuilder extends /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus(); } @@ -17024,79 +18800,30 @@ public static final class SenderReceiptMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.SenderReceiptMetadata) SenderReceiptMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SenderReceiptMetadata.class.getName()); + } // Use SenderReceiptMetadata.newBuilder() to construct. private SenderReceiptMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SenderReceiptMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SenderReceiptMetadata defaultInstance; - public static SenderReceiptMetadata getDefaultInstance() { - return defaultInstance; } - - public SenderReceiptMetadata getDefaultInstanceForType() { - return defaultInstance; + private SenderReceiptMetadata() { + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SenderReceiptMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - receiptStatus_ = value; - } - 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.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_SenderReceiptMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_SenderReceiptMetadata_fieldAccessorTable @@ -17104,41 +18831,27 @@ private SenderReceiptMetadata( Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.class, Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SenderReceiptMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SenderReceiptMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int RECEIPTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown : result; } - private void initFields() { - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -17152,37 +18865,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, receiptStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, receiptStatus_.getNumber()); + .computeEnumSize(1, receiptStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata other = (Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata) obj; + + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -17206,42 +18957,57 @@ public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata pa } public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -17261,6 +19027,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_SenderReceiptMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_SenderReceiptMetadata_fieldAccessorTable @@ -17270,42 +19037,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + receiptStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_SenderReceiptMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata build() { Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -17314,19 +19073,25 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata buildPartial() { Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata result = new Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000001; } - result.receiptStatus_ = receiptStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata)other); @@ -17342,67 +19107,101 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceipt setReceiptStatus(other.getReceiptStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasReceiptStatus()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; + private int receiptStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown : result; } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000001); - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; + receiptStatus_ = 0; onChanged(); return this; } @@ -17410,12 +19209,52 @@ public Builder clearReceiptStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.SenderReceiptMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.SenderReceiptMetadata) + private static final Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata DEFAULT_INSTANCE; static { - defaultInstance = new SenderReceiptMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata(); + } + + public static Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SenderReceiptMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentProtos.SenderReceiptMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.SenderReceiptMetadata) } public interface ConfirmationMetadataOrBuilder extends @@ -17424,19 +19263,23 @@ public interface ConfirmationMetadataOrBuilder extends /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus(); /** * required sfixed64 DateTimeTicks = 2; + * @return Whether the dateTimeTicks field is set. */ boolean hasDateTimeTicks(); /** * required sfixed64 DateTimeTicks = 2; + * @return The dateTimeTicks. */ long getDateTimeTicks(); } @@ -17447,84 +19290,30 @@ public static final class ConfirmationMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.ConfirmationMetadata) ConfirmationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ConfirmationMetadata.class.getName()); + } // Use ConfirmationMetadata.newBuilder() to construct. private ConfirmationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ConfirmationMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ConfirmationMetadata defaultInstance; - public static ConfirmationMetadata getDefaultInstance() { - return defaultInstance; } - - public ConfirmationMetadata getDefaultInstanceForType() { - return defaultInstance; + private ConfirmationMetadata() { + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConfirmationMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - receiptStatus_ = value; - } - break; - } - case 17: { - bitField0_ |= 0x00000002; - dateTimeTicks_ = input.readSFixed64(); - 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.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_ConfirmationMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_ConfirmationMetadata_fieldAccessorTable @@ -17532,57 +19321,46 @@ private ConfirmationMetadata( Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.class, Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ConfirmationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfirmationMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int RECEIPTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown : result; } public static final int DATETIMETICKS_FIELD_NUMBER = 2; - private long dateTimeTicks_; + private long dateTimeTicks_ = 0L; /** * required sfixed64 DateTimeTicks = 2; + * @return Whether the dateTimeTicks field is set. */ + @java.lang.Override public boolean hasDateTimeTicks() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required sfixed64 DateTimeTicks = 2; + * @return The dateTimeTicks. */ + @java.lang.Override public long getDateTimeTicks() { return dateTimeTicks_; } - private void initFields() { - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; - dateTimeTicks_ = 0L; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -17600,44 +19378,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, receiptStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeSFixed64(2, dateTimeTicks_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, receiptStatus_.getNumber()); + .computeEnumSize(1, receiptStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(2, dateTimeTicks_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata other = (Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata) obj; + + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (hasDateTimeTicks() != other.hasDateTimeTicks()) return false; + if (hasDateTimeTicks()) { + if (getDateTimeTicks() + != other.getDateTimeTicks()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + if (hasDateTimeTicks()) { + hash = (37 * hash) + DATETIMETICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDateTimeTicks()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -17661,42 +19487,57 @@ public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata par } public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -17716,6 +19557,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_ConfirmationMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_ConfirmationMetadata_fieldAccessorTable @@ -17725,44 +19567,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + receiptStatus_ = 0; dateTimeTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_ConfirmationMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata build() { Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -17771,23 +19604,29 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata buildPartial() { Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata result = new Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000001; } - result.receiptStatus_ = receiptStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dateTimeTicks_ = dateTimeTicks_; to_bitField0_ |= 0x00000002; } - result.dateTimeTicks_ = dateTimeTicks_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata)other); @@ -17806,71 +19645,109 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationM setDateTimeTicks(other.getDateTimeTicks()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasReceiptStatus()) { - return false; } if (!hasDateTimeTicks()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 17: { + dateTimeTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; + private int receiptStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown : result; } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 1 [default = GeneralReceiptStatusUnknown]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000001); - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; + receiptStatus_ = 0; onChanged(); return this; } @@ -17878,27 +19755,35 @@ public Builder clearReceiptStatus() { private long dateTimeTicks_ ; /** * required sfixed64 DateTimeTicks = 2; + * @return Whether the dateTimeTicks field is set. */ + @java.lang.Override public boolean hasDateTimeTicks() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required sfixed64 DateTimeTicks = 2; + * @return The dateTimeTicks. */ + @java.lang.Override public long getDateTimeTicks() { return dateTimeTicks_; } /** * required sfixed64 DateTimeTicks = 2; + * @param value The dateTimeTicks to set. + * @return This builder for chaining. */ public Builder setDateTimeTicks(long value) { - bitField0_ |= 0x00000002; + dateTimeTicks_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required sfixed64 DateTimeTicks = 2; + * @return This builder for chaining. */ public Builder clearDateTimeTicks() { bitField0_ = (bitField0_ & ~0x00000002); @@ -17910,12 +19795,52 @@ public Builder clearDateTimeTicks() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.ConfirmationMetadata) } - static { - defaultInstance = new ConfirmationMetadata(true); - defaultInstance.initFields(); + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.ConfirmationMetadata) + private static final Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata(); + } + + public static Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfirmationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentProtos.ConfirmationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.ConfirmationMetadata) } public interface AmendmentRequestMetadataOrBuilder extends @@ -17924,19 +19849,23 @@ public interface AmendmentRequestMetadataOrBuilder extends /** * required int32 AmendmentFlags = 1; + * @return Whether the amendmentFlags field is set. */ boolean hasAmendmentFlags(); /** * required int32 AmendmentFlags = 1; + * @return The amendmentFlags. */ int getAmendmentFlags(); /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 2 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 2 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus(); } @@ -17947,84 +19876,30 @@ public static final class AmendmentRequestMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.AmendmentRequestMetadata) AmendmentRequestMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AmendmentRequestMetadata.class.getName()); + } // Use AmendmentRequestMetadata.newBuilder() to construct. private AmendmentRequestMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private AmendmentRequestMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AmendmentRequestMetadata defaultInstance; - public static AmendmentRequestMetadata getDefaultInstance() { - return defaultInstance; - } - - public AmendmentRequestMetadata getDefaultInstanceForType() { - return defaultInstance; + private AmendmentRequestMetadata() { + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AmendmentRequestMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - amendmentFlags_ = input.readInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus value = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - receiptStatus_ = value; - } - 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.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_AmendmentRequestMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_AmendmentRequestMetadata_fieldAccessorTable @@ -18032,57 +19907,46 @@ private AmendmentRequestMetadata( Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.class, Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AmendmentRequestMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AmendmentRequestMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int AMENDMENTFLAGS_FIELD_NUMBER = 1; - private int amendmentFlags_; + private int amendmentFlags_ = 0; /** * required int32 AmendmentFlags = 1; + * @return Whether the amendmentFlags field is set. */ + @java.lang.Override public boolean hasAmendmentFlags() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 AmendmentFlags = 1; + * @return The amendmentFlags. */ + @java.lang.Override public int getAmendmentFlags() { return amendmentFlags_; } public static final int RECEIPTSTATUS_FIELD_NUMBER = 2; - private Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 2 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 2 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown : result; } - private void initFields() { - amendmentFlags_ = 0; - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -18100,44 +19964,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, amendmentFlags_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, receiptStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, amendmentFlags_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, receiptStatus_.getNumber()); + .computeEnumSize(2, receiptStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata other = (Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata) obj; + + if (hasAmendmentFlags() != other.hasAmendmentFlags()) return false; + if (hasAmendmentFlags()) { + if (getAmendmentFlags() + != other.getAmendmentFlags()) return false; + } + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAmendmentFlags()) { + hash = (37 * hash) + AMENDMENTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getAmendmentFlags(); + } + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -18161,42 +20072,57 @@ public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata } public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -18216,6 +20142,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_AmendmentRequestMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_AmendmentRequestMetadata_fieldAccessorTable @@ -18225,44 +20152,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; amendmentFlags_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; - bitField0_ = (bitField0_ & ~0x00000002); + receiptStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_AmendmentRequestMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata build() { Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -18271,23 +20189,29 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata buildPartial() { Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata result = new Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.amendmentFlags_ = amendmentFlags_; to_bitField0_ |= 0x00000001; } - result.amendmentFlags_ = amendmentFlags_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000002; } - result.receiptStatus_ = receiptStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata)other); @@ -18306,36 +20230,67 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequ setReceiptStatus(other.getReceiptStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasAmendmentFlags()) { - return false; } if (!hasReceiptStatus()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + amendmentFlags_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -18343,27 +20298,35 @@ public Builder mergeFrom( private int amendmentFlags_ ; /** * required int32 AmendmentFlags = 1; + * @return Whether the amendmentFlags field is set. */ + @java.lang.Override public boolean hasAmendmentFlags() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 AmendmentFlags = 1; + * @return The amendmentFlags. */ + @java.lang.Override public int getAmendmentFlags() { return amendmentFlags_; } /** * required int32 AmendmentFlags = 1; + * @param value The amendmentFlags to set. + * @return This builder for chaining. */ public Builder setAmendmentFlags(int value) { - bitField0_ |= 0x00000001; + amendmentFlags_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int32 AmendmentFlags = 1; + * @return This builder for chaining. */ public Builder clearAmendmentFlags() { bitField0_ = (bitField0_ & ~0x00000001); @@ -18372,37 +20335,44 @@ public Builder clearAmendmentFlags() { return this; } - private Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; + private int receiptStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 2 [default = GeneralReceiptStatusUnknown]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 2 [default = GeneralReceiptStatusUnknown]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus result = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown : result; } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 2 [default = GeneralReceiptStatusUnknown]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.GeneralReceiptStatus ReceiptStatus = 2 [default = GeneralReceiptStatusUnknown]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000002); - receiptStatus_ = Diadoc.Api.Proto.Documents.DocumentProtos.GeneralReceiptStatus.GeneralReceiptStatusUnknown; + receiptStatus_ = 0; onChanged(); return this; } @@ -18410,12 +20380,52 @@ public Builder clearReceiptStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.AmendmentRequestMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.AmendmentRequestMetadata) + private static final Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata DEFAULT_INSTANCE; static { - defaultInstance = new AmendmentRequestMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata(); + } + + public static Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AmendmentRequestMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentProtos.AmendmentRequestMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.AmendmentRequestMetadata) } public interface OriginOrBuilder extends @@ -18424,23 +20434,28 @@ public interface OriginOrBuilder extends /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 1; + * @return Whether the messageType field is set. */ boolean hasMessageType(); /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 1; + * @return The messageType. */ Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType(); /** * required string MessageId = 2; + * @return Whether the messageId field is set. */ boolean hasMessageId(); /** * required string MessageId = 2; + * @return The messageId. */ java.lang.String getMessageId(); /** * required string MessageId = 2; + * @return The bytes for messageId. */ com.google.protobuf.ByteString getMessageIdBytes(); @@ -18452,85 +20467,31 @@ public static final class Origin extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Origin) OriginOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Origin.class.getName()); + } // Use Origin.newBuilder() to construct. private Origin(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Origin(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Origin defaultInstance; - public static Origin getDefaultInstance() { - return defaultInstance; } - - public Origin getDefaultInstanceForType() { - return defaultInstance; + private Origin() { + messageType_ = 0; + messageId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Origin( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.MessageType value = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - messageType_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - messageId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_Origin_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_Origin_fieldAccessorTable @@ -18538,48 +20499,41 @@ private Origin( Diadoc.Api.Proto.Documents.DocumentProtos.Origin.class, Diadoc.Api.Proto.Documents.DocumentProtos.Origin.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Origin parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Origin(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int MESSAGETYPE_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.DocumentProtos.MessageType messageType_; + private int messageType_ = 0; /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 1; + * @return Whether the messageType field is set. */ - public boolean hasMessageType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasMessageType() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 1; + * @return The messageType. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType() { - return messageType_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType() { + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType result = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.forNumber(messageType_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown : result; } public static final int MESSAGEID_FIELD_NUMBER = 2; - private java.lang.Object messageId_; + @SuppressWarnings("serial") + private volatile java.lang.Object messageId_ = ""; /** * required string MessageId = 2; + * @return Whether the messageId field is set. */ + @java.lang.Override public boolean hasMessageId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string MessageId = 2; + * @return The messageId. */ + @java.lang.Override public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { @@ -18596,7 +20550,9 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 2; + * @return The bytes for messageId. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; @@ -18611,11 +20567,8 @@ public java.lang.String getMessageId() { } } - private void initFields() { - messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; - messageId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -18633,44 +20586,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, messageType_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, messageType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getMessageIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, messageId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, messageType_.getNumber()); + .computeEnumSize(1, messageType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getMessageIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, messageId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentProtos.Origin)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentProtos.Origin other = (Diadoc.Api.Proto.Documents.DocumentProtos.Origin) obj; + + if (hasMessageType() != other.hasMessageType()) return false; + if (hasMessageType()) { + if (messageType_ != other.messageType_) return false; + } + if (hasMessageId() != other.hasMessageId()) return false; + if (hasMessageId()) { + if (!getMessageId() + .equals(other.getMessageId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMessageType()) { + hash = (37 * hash) + MESSAGETYPE_FIELD_NUMBER; + hash = (53 * hash) + messageType_; + } + if (hasMessageId()) { + hash = (37 * hash) + MESSAGEID_FIELD_NUMBER; + hash = (53 * hash) + getMessageId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -18694,42 +20693,57 @@ public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin parseFrom( } public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentProtos.Origin prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -18749,6 +20763,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_Origin_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_Origin_fieldAccessorTable @@ -18758,44 +20773,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.DocumentProtos.Origin.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + messageType_ = 0; messageId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.internal_static_Diadoc_Api_Proto_Documents_Origin_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentProtos.Origin.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.Origin build() { Diadoc.Api.Proto.Documents.DocumentProtos.Origin result = buildPartial(); if (!result.isInitialized()) { @@ -18804,23 +20810,29 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Origin build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.Origin buildPartial() { Diadoc.Api.Proto.Documents.DocumentProtos.Origin result = new Diadoc.Api.Proto.Documents.DocumentProtos.Origin(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentProtos.Origin result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.messageType_ = messageType_; to_bitField0_ |= 0x00000001; } - result.messageType_ = messageType_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.messageId_ = messageId_; to_bitField0_ |= 0x00000002; } - result.messageId_ = messageId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentProtos.Origin) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentProtos.Origin)other); @@ -18836,76 +20848,114 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Origin other) setMessageType(other.getMessageType()); } if (other.hasMessageId()) { - bitField0_ |= 0x00000002; messageId_ = other.messageId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasMessageType()) { - return false; } if (!hasMessageId()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentProtos.Origin parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + messageType_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + messageId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentProtos.Origin) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.DocumentProtos.MessageType messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; + private int messageType_ = 0; /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 1; + * @return Whether the messageType field is set. */ - public boolean hasMessageType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasMessageType() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 1; + * @return The messageType. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType() { - return messageType_; + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType result = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.forNumber(messageType_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown : result; } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 1; + * @param value The messageType to set. + * @return This builder for chaining. */ public Builder setMessageType(Diadoc.Api.Proto.Documents.DocumentProtos.MessageType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - messageType_ = value; + messageType_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 1; + * @return This builder for chaining. */ public Builder clearMessageType() { bitField0_ = (bitField0_ & ~0x00000001); - messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; + messageType_ = 0; onChanged(); return this; } @@ -18913,12 +20963,14 @@ public Builder clearMessageType() { private java.lang.Object messageId_ = ""; /** * required string MessageId = 2; + * @return Whether the messageId field is set. */ public boolean hasMessageId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string MessageId = 2; + * @return The messageId. */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; @@ -18936,6 +20988,7 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 2; + * @return The bytes for messageId. */ public com.google.protobuf.ByteString getMessageIdBytes() { @@ -18952,36 +21005,37 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 2; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } messageId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string MessageId = 2; + * @return This builder for chaining. */ public Builder clearMessageId() { - bitField0_ = (bitField0_ & ~0x00000002); messageId_ = getDefaultInstance().getMessageId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string MessageId = 2; + * @param value The bytes for messageId to set. + * @return This builder for chaining. */ public Builder setMessageIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } messageId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -18989,52 +21043,92 @@ public Builder setMessageIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Origin) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Origin) + private static final Diadoc.Api.Proto.Documents.DocumentProtos.Origin DEFAULT_INSTANCE; static { - defaultInstance = new Origin(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentProtos.Origin(); + } + + public static Diadoc.Api.Proto.Documents.DocumentProtos.Origin getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Origin parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Origin) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Document_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Document_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_LastOuterDocflow_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_LastOuterDocflow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_ResolutionStatus_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_ResolutionStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_RecipientReceiptMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_RecipientReceiptMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_SenderReceiptMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_SenderReceiptMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_ConfirmationMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_ConfirmationMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_AmendmentRequestMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_AmendmentRequestMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Origin_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Origin_fieldAccessorTable; @@ -19042,7 +21136,7 @@ public Builder setMessageIdBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -19055,7 +21149,7 @@ public Builder setMessageIdBytes( "cument.proto\032\037Documents/InvoiceDocument." + "proto\032%Documents/NonformalizedDocument.p" + "roto\032\"Documents/UnilateralDocument.proto" + - "\032)Documents/UniversalTransferDocument.pr", + "\032)Documents/UniversalTransferDocument.pr" + "oto\032\026ResolutionTarget.proto\032\032ForwardDocu" + "mentEvent.proto\032\"Events/DiadocMessage-Po" + "stApi.proto\032 OuterDocflows/OuterDocflow." + @@ -19065,7 +21159,7 @@ public Builder setMessageIdBytes( "ks\030\004 \002(\020\022\031\n\021CounteragentBoxId\030\005 \001(\t\022I\n\014D" + "ocumentType\030\006 \001(\0162\036.Diadoc.Api.Proto.Doc" + "umentType:\023UnknownDocumentType\0228\n\022Initia" + - "lDocumentIds\030\007 \003(\0132\034.Diadoc.Api.Proto.Do", + "lDocumentIds\030\007 \003(\0132\034.Diadoc.Api.Proto.Do" + "cumentId\022<\n\026SubordinateDocumentIds\030\010 \003(\013" + "2\034.Diadoc.Api.Proto.DocumentId\022*\n\007Conten" + "t\030\t \001(\0132\031.Diadoc.Api.Proto.Content\022\020\n\010Fi" + @@ -19075,7 +21169,7 @@ public Builder setMessageIdBytes( "uments.NonformalizedDocument.Nonformaliz" + "edDocumentMetadata\022T\n\017InvoiceMetadata\030\016 " + "\001(\0132;.Diadoc.Api.Proto.Documents.Invoice" + - "Document.InvoiceMetadata\022t\n\036TrustConnect", + "Document.InvoiceMetadata\022t\n\036TrustConnect" + "ionRequestMetadata\030\017 \001(\0132L.Diadoc.Api.Pr" + "oto.Documents.BilateralDocument.TrustCon" + "nectionRequestMetadata\022[\n\016Torg12Metadata" + @@ -19085,7 +21179,7 @@ public Builder setMessageIdBytes( "i.Proto.Documents.InvoiceDocument.Invoic" + "eRevisionMetadata\022h\n\031InvoiceCorrectionMe" + "tadata\030\022 \001(\0132E.Diadoc.Api.Proto.Document" + - "s.InvoiceDocument.InvoiceCorrectionMetad", + "s.InvoiceDocument.InvoiceCorrectionMetad" + "ata\022x\n!InvoiceCorrectionRevisionMetadata" + "\030\023 \001(\0132M.Diadoc.Api.Proto.Documents.Invo" + "iceDocument.InvoiceCorrectionRevisionMet" + @@ -19095,7 +21189,7 @@ public Builder setMessageIdBytes( "icateMetadata\022g\n\027ProformaInvoiceMetadata" + "\030\025 \001(\0132F.Diadoc.Api.Proto.Documents.Unil" + "ateralDocument.ProformaInvoiceMetadata\022^" + - "\n\021XmlTorg12Metadata\030\026 \001(\0132C.Diadoc.Api.P", + "\n\021XmlTorg12Metadata\030\026 \001(\0132C.Diadoc.Api.P" + "roto.Documents.BilateralDocument.BasicDo" + "cumentMetadata\022m\n XmlAcceptanceCertifica" + "teMetadata\030\027 \001(\0132C.Diadoc.Api.Proto.Docu" + @@ -19105,7 +21199,7 @@ public Builder setMessageIdBytes( "FromDepartmentId\030\033 \001(\t\022\026\n\016ToDepartmentId" + "\030\034 \001(\t\022Z\n\021PriceListMetadata\030\035 \001(\0132?.Diad" + "oc.Api.Proto.Documents.BilateralDocument" + - ".PriceListMetadata\022\030\n\020CustomDocumentId\030\036", + ".PriceListMetadata\022\030\n\020CustomDocumentId\030\036" + " \001(\t\022F\n\020ResolutionStatus\030\037 \001(\0132,.Diadoc." + "Api.Proto.Documents.ResolutionStatus\022_\n\020" + "RevocationStatus\030 \001(\0162,.Diadoc.Api.Prot" + @@ -19115,7 +21209,7 @@ public Builder setMessageIdBytes( "wardDocumentEvents\030# \003(\0132&.Diadoc.Api.Pr" + "oto.ForwardDocumentEvent\022j\n\031Reconciliati" + "onActMetadata\030& \001(\0132G.Diadoc.Api.Proto.D" + - "ocuments.BilateralDocument.BilateralDocu", + "ocuments.BilateralDocument.BilateralDocu" + "mentMetadata\022X\n\020ContractMetadata\030\' \001(\0132>" + ".Diadoc.Api.Proto.Documents.BilateralDoc" + "ument.ContractMetadata\022[\n\016Torg13Metadata" + @@ -19125,7 +21219,7 @@ public Builder setMessageIdBytes( ".Proto.Documents.UnilateralDocument.Serv" + "iceDetailsMetadata\022z\n\031RoamingNotificatio" + "nStatus\030* \001(\01625.Diadoc.Api.Proto.Documen" + - "ts.RoamingNotificationStatus: UnknownRoa", + "ts.RoamingNotificationStatus: UnknownRoa" + "mingNotificationStatus\022!\n\022HasCustomPrint" + "Form\030+ \001(\010:\005false\0224\n\nCustomData\030, \003(\0132 ." + "Diadoc.Api.Proto.CustomDataItem\022\020\n\010Packe" + @@ -19135,7 +21229,7 @@ public Builder setMessageIdBytes( "imestampTicks\030/ \001(\020\022\032\n\022IsEncryptedConten" + "t\0300 \001(\010\022n\n\025SenderSignatureStatus\0301 \001(\01621" + ".Diadoc.Api.Proto.Documents.SenderSignat" + - "ureStatus:\034UnknownSenderSignatureStatus\022", + "ureStatus:\034UnknownSenderSignatureStatus\022" + "t\n\036SupplementaryAgreementMetadata\0302 \001(\0132" + "L.Diadoc.Api.Proto.Documents.BilateralDo" + "cument.SupplementaryAgreementMetadata\022\025\n" + @@ -19145,7 +21239,7 @@ public Builder setMessageIdBytes( "etadata\0306 \001(\0132O.Diadoc.Api.Proto.Documen" + "ts.NonformalizedDocument.NonformalizedDo" + "cumentMetadata\022t\n\033CertificateRegistryMet" + - "adata\0307 \001(\0132O.Diadoc.Api.Proto.Documents", + "adata\0307 \001(\0132O.Diadoc.Api.Proto.Documents" + ".NonformalizedDocument.NonformalizedDocu" + "mentMetadata\022\202\001\n!UniversalTransferDocume" + "ntMetadata\0308 \001(\0132W.Diadoc.Api.Proto.Docu" + @@ -19155,7 +21249,7 @@ public Builder setMessageIdBytes( "Diadoc.Api.Proto.Documents.UniversalTran" + "sferDocument.UniversalTransferDocumentRe" + "visionMetadata\022\206\001\n#UniversalCorrectionDo" + - "cumentMetadata\030: \001(\0132Y.Diadoc.Api.Proto.", + "cumentMetadata\030: \001(\0132Y.Diadoc.Api.Proto." + "Documents.UniversalTransferDocument.Univ" + "ersalCorrectionDocumentMetadata\022\226\001\n+Univ" + "ersalCorrectionDocumentRevisionMetadata\030" + @@ -19165,7 +21259,7 @@ public Builder setMessageIdBytes( "uteId\030< \001(\t:\000\022\031\n\021AttachmentVersion\030= \001(\t" + "\022k\n\024ProxySignatureStatus\030> \001(\01620.Diadoc." + "Api.Proto.Documents.ProxySignatureStatus" + - ":\033UnknownProxySignatureStatus\022\023\n\013TypeNam", + ":\033UnknownProxySignatureStatus\022\023\n\013TypeNam" + "edId\030? \002(\t\022\020\n\010Function\030@ \002(\t\022\022\n\nWorkflow" + "Id\030A \002(\005\022\r\n\005Title\030B \002(\t\0227\n\010Metadata\030C \003(" + "\0132%.Diadoc.Api.Proto.Events.MetadataItem" + @@ -19175,7 +21269,7 @@ public Builder setMessageIdBytes( ".Diadoc.Api.Proto.Documents.Confirmation" + "Metadata\022t\n\027RecipientResponseStatus\030F \002(" + "\01623.Diadoc.Api.Proto.Documents.Recipient" + - "ResponseStatus:\036RecipientResponseStatusU", + "ResponseStatus:\036RecipientResponseStatusU" + "nknown\022V\n\030AmendmentRequestMetadata\030G \002(\013" + "24.Diadoc.Api.Proto.Documents.AmendmentR" + "equestMetadata\0222\n\006Origin\030H \001(\0132\".Diadoc." + @@ -19185,7 +21279,7 @@ public Builder setMessageIdBytes( "iptMetadata\030K \002(\01321.Diadoc.Api.Proto.Doc" + "uments.SenderReceiptMetadata\022\017\n\007Version\030" + "L \002(\t\022G\n\021LastOuterDocflows\030M \003(\0132,.Diado" + - "c.Api.Proto.Documents.LastOuterDocflow\022\022", + "c.Api.Proto.Documents.LastOuterDocflow\022\022" + "\n\nProxyBoxId\030N \001(\t\022\031\n\021ProxyDepartmentId\030" + "O \001(\t\0228\n\rDocflowStatus\030P \002(\0132!.Diadoc.Ap" + "i.Proto.DocflowStatusV3\"r\n\020LastOuterDocf" + @@ -19195,7 +21289,7 @@ public Builder setMessageIdBytes( "\022W\n\004Type\030\001 \001(\01620.Diadoc.Api.Proto.Docume" + "nts.ResolutionStatusType:\027UnknownResolut" + "ionStatus\0222\n\006Target\030\002 \001(\0132\".Diadoc.Api.P" + - "roto.ResolutionTarget\022\024\n\014AuthorUserId\030\003 ", + "roto.ResolutionTarget\022\024\n\014AuthorUserId\030\003 " + "\002(\t\022\021\n\tAuthorFIO\030\004 \002(\t\"\320\001\n\030RecipientRece" + "iptMetadata\022d\n\rReceiptStatus\030\001 \002(\01620.Dia" + "doc.Api.Proto.Documents.GeneralReceiptSt" + @@ -19205,7 +21299,7 @@ public Builder setMessageIdBytes( "derReceiptMetadata\022d\n\rReceiptStatus\030\001 \002(" + "\01620.Diadoc.Api.Proto.Documents.GeneralRe" + "ceiptStatus:\033GeneralReceiptStatusUnknown" + - "\"\223\001\n\024ConfirmationMetadata\022d\n\rReceiptStat", + "\"\223\001\n\024ConfirmationMetadata\022d\n\rReceiptStat" + "us\030\001 \002(\01620.Diadoc.Api.Proto.Documents.Ge" + "neralReceiptStatus:\033GeneralReceiptStatus" + "Unknown\022\025\n\rDateTimeTicks\030\002 \002(\020\"\230\001\n\030Amend" + @@ -19215,7 +21309,7 @@ public Builder setMessageIdBytes( "neralReceiptStatusUnknown\"Y\n\006Origin\022<\n\013M" + "essageType\030\001 \002(\0162\'.Diadoc.Api.Proto.Docu" + "ments.MessageType\022\021\n\tMessageId\030\002 \002(\t*\302\001\n" + - "\024ResolutionStatusType\022$\n\027UnknownResoluti", + "\024ResolutionStatusType\022$\n\027UnknownResoluti" + "onStatus\020\377\377\377\377\377\377\377\377\377\001\022\010\n\004None\020\000\022\014\n\010Approve" + "d\020\001\022\017\n\013Disapproved\020\002\022\030\n\024ApprovementReque" + "sted\020\003\022\026\n\022SignatureRequested\020\004\022\023\n\017Signat" + @@ -19225,7 +21319,7 @@ public Builder setMessageIdBytes( "ionIsRequestedByMe\020\002\022\030\n\024RequestsMyRevoca" + "tion\020\003\022\026\n\022RevocationAccepted\020\004\022\026\n\022Revoca" + "tionRejected\020\005*\256\001\n\031RoamingNotificationSt" + - "atus\022$\n UnknownRoamingNotificationStatus", + "atus\022$\n UnknownRoamingNotificationStatus" + "\020\000\022!\n\035RoamingNotificationStatusNone\020\001\022$\n" + " RoamingNotificationStatusSuccess\020\002\022\"\n\036R" + "oamingNotificationStatusError\020\003*\300\001\n\025Send" + @@ -19235,7 +21329,7 @@ public Builder setMessageIdBytes( "erSignatureCheckedAndValid\020\003\022$\n SenderSi" + "gnatureCheckedAndInvalid\020\004*\302\001\n\024ProxySign" + "atureStatus\022\037\n\033UnknownProxySignatureStat" + - "us\020\000\022\034\n\030ProxySignatureStatusNone\020\001\022\034\n\030Wa", + "us\020\000\022\034\n\030ProxySignatureStatusNone\020\001\022\034\n\030Wa" + "itingForProxySignature\020\002\022\026\n\022WithProxySig" + "nature\020\003\022\032\n\026ProxySignatureRejected\020\004\022\031\n\025" + "InvalidProxySignature\020\005*\234\001\n\024GeneralRecei" + @@ -19245,7 +21339,7 @@ public Builder setMessageIdBytes( "eceipt\020\003\022\014\n\010Finished\020\004*\220\002\n\027RecipientResp" + "onseStatus\022\"\n\036RecipientResponseStatusUnk" + "nown\020\000\022(\n$RecipientResponseStatusNotAcce" + - "ptable\020\001\022 \n\034WaitingForRecipientSignature", + "ptable\020\001\022 \n\034WaitingForRecipientSignature" + "\020\002\022\032\n\026WithRecipientSignature\020\003\022%\n!Recipi" + "entSignatureRequestRejected\020\004\022\035\n\031Invalid" + "RecipientSignature\020\005\022#\n\037WithRecipientPar" + @@ -19253,15 +21347,7 @@ public Builder setMessageIdBytes( "own\020\000\022\n\n\006Letter\020\001\022\t\n\005Draft\020\002\022\014\n\010Template" + "\020\003B\020B\016DocumentProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.ContentProtos.getDescriptor(), @@ -19281,7 +21367,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.getDescriptor(), Diadoc.Api.Proto.OuterDocflows.OuterDocflowProtos.getDescriptor(), Diadoc.Api.Proto.DocflowStatusV3Protos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_Document_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_Document_fieldAccessorTable = new @@ -19330,6 +21416,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_Origin_descriptor, new java.lang.String[] { "MessageType", "MessageId", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.ContentProtos.getDescriptor(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); Diadoc.Api.Proto.CustomDataItemProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Documents/DocumentZipProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/DocumentZipProtos.java index a0ba7728..bdac9bb3 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/DocumentZipProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/DocumentZipProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/DocumentZip.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents; public final class DocumentZipProtos { private DocumentZipProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentZipProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DocumentZipGenerationResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.DocumentZipGenerationResult) @@ -14,14 +31,17 @@ public interface DocumentZipGenerationResultOrBuilder extends /** * optional string ZipFileNameOnShelf = 1; + * @return Whether the zipFileNameOnShelf field is set. */ boolean hasZipFileNameOnShelf(); /** * optional string ZipFileNameOnShelf = 1; + * @return The zipFileNameOnShelf. */ java.lang.String getZipFileNameOnShelf(); /** * optional string ZipFileNameOnShelf = 1; + * @return The bytes for zipFileNameOnShelf. */ com.google.protobuf.ByteString getZipFileNameOnShelfBytes(); @@ -33,74 +53,30 @@ public static final class DocumentZipGenerationResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.DocumentZipGenerationResult) DocumentZipGenerationResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentZipGenerationResult.class.getName()); + } // Use DocumentZipGenerationResult.newBuilder() to construct. private DocumentZipGenerationResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DocumentZipGenerationResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentZipGenerationResult defaultInstance; - public static DocumentZipGenerationResult getDefaultInstance() { - return defaultInstance; - } - - public DocumentZipGenerationResult getDefaultInstanceForType() { - return defaultInstance; + private DocumentZipGenerationResult() { + zipFileNameOnShelf_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentZipGenerationResult( - 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; - zipFileNameOnShelf_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.DocumentZipProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentZipGenerationResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentZipProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentZipGenerationResult_fieldAccessorTable @@ -108,33 +84,23 @@ private DocumentZipGenerationResult( Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult.class, Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentZipGenerationResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentZipGenerationResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ZIPFILENAMEONSHELF_FIELD_NUMBER = 1; - private java.lang.Object zipFileNameOnShelf_; + @SuppressWarnings("serial") + private volatile java.lang.Object zipFileNameOnShelf_ = ""; /** * optional string ZipFileNameOnShelf = 1; + * @return Whether the zipFileNameOnShelf field is set. */ + @java.lang.Override public boolean hasZipFileNameOnShelf() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string ZipFileNameOnShelf = 1; + * @return The zipFileNameOnShelf. */ + @java.lang.Override public java.lang.String getZipFileNameOnShelf() { java.lang.Object ref = zipFileNameOnShelf_; if (ref instanceof java.lang.String) { @@ -151,7 +117,9 @@ public java.lang.String getZipFileNameOnShelf() { } /** * optional string ZipFileNameOnShelf = 1; + * @return The bytes for zipFileNameOnShelf. */ + @java.lang.Override public com.google.protobuf.ByteString getZipFileNameOnShelfBytes() { java.lang.Object ref = zipFileNameOnShelf_; @@ -166,10 +134,8 @@ public java.lang.String getZipFileNameOnShelf() { } } - private void initFields() { - zipFileNameOnShelf_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -179,37 +145,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getZipFileNameOnShelfBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, zipFileNameOnShelf_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getZipFileNameOnShelfBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, zipFileNameOnShelf_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult other = (Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult) obj; + + if (hasZipFileNameOnShelf() != other.hasZipFileNameOnShelf()) return false; + if (hasZipFileNameOnShelf()) { + if (!getZipFileNameOnShelf() + .equals(other.getZipFileNameOnShelf())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasZipFileNameOnShelf()) { + hash = (37 * hash) + ZIPFILENAMEONSHELF_FIELD_NUMBER; + hash = (53 * hash) + getZipFileNameOnShelf().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -233,42 +237,57 @@ public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGeneration } public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -288,6 +307,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentZipProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentZipGenerationResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentZipProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentZipGenerationResult_fieldAccessorTable @@ -297,42 +317,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; zipFileNameOnShelf_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentZipProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentZipGenerationResult_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult build() { Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult result = buildPartial(); if (!result.isInitialized()) { @@ -341,19 +353,25 @@ public Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult buildPartial() { Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult result = new Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.zipFileNameOnShelf_ = zipFileNameOnShelf_; to_bitField0_ |= 0x00000001; } - result.zipFileNameOnShelf_ = zipFileNameOnShelf_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult)other); @@ -366,33 +384,54 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult other) { if (other == Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult.getDefaultInstance()) return this; if (other.hasZipFileNameOnShelf()) { - bitField0_ |= 0x00000001; zipFileNameOnShelf_ = other.zipFileNameOnShelf_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + zipFileNameOnShelf_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -400,12 +439,14 @@ public Builder mergeFrom( private java.lang.Object zipFileNameOnShelf_ = ""; /** * optional string ZipFileNameOnShelf = 1; + * @return Whether the zipFileNameOnShelf field is set. */ public boolean hasZipFileNameOnShelf() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string ZipFileNameOnShelf = 1; + * @return The zipFileNameOnShelf. */ public java.lang.String getZipFileNameOnShelf() { java.lang.Object ref = zipFileNameOnShelf_; @@ -423,6 +464,7 @@ public java.lang.String getZipFileNameOnShelf() { } /** * optional string ZipFileNameOnShelf = 1; + * @return The bytes for zipFileNameOnShelf. */ public com.google.protobuf.ByteString getZipFileNameOnShelfBytes() { @@ -439,36 +481,37 @@ public java.lang.String getZipFileNameOnShelf() { } /** * optional string ZipFileNameOnShelf = 1; + * @param value The zipFileNameOnShelf to set. + * @return This builder for chaining. */ public Builder setZipFileNameOnShelf( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } zipFileNameOnShelf_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string ZipFileNameOnShelf = 1; + * @return This builder for chaining. */ public Builder clearZipFileNameOnShelf() { - bitField0_ = (bitField0_ & ~0x00000001); zipFileNameOnShelf_ = getDefaultInstance().getZipFileNameOnShelf(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string ZipFileNameOnShelf = 1; + * @param value The bytes for zipFileNameOnShelf to set. + * @return This builder for chaining. */ public Builder setZipFileNameOnShelfBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } zipFileNameOnShelf_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -476,17 +519,57 @@ public Builder setZipFileNameOnShelfBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.DocumentZipGenerationResult) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DocumentZipGenerationResult) + private static final Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult DEFAULT_INSTANCE; static { - defaultInstance = new DocumentZipGenerationResult(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult(); + } + + public static Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentZipGenerationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentZipProtos.DocumentZipGenerationResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DocumentZipGenerationResult) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_DocumentZipGenerationResult_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_DocumentZipGenerationResult_fieldAccessorTable; @@ -494,7 +577,7 @@ public Builder setZipFileNameOnShelfBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -503,24 +586,17 @@ public Builder setZipFileNameOnShelfBytes( "onResult\022\032\n\022ZipFileNameOnShelf\030\001 \001(\tB\023B\021" + "DocumentZipProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_DocumentZipGenerationResult_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_DocumentZipGenerationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_DocumentZipGenerationResult_descriptor, new java.lang.String[] { "ZipFileNameOnShelf", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Documents/DocumentsMoveOperationProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/DocumentsMoveOperationProtos.java index 8e42a69e..fe263040 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/DocumentsMoveOperationProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/DocumentsMoveOperationProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/DocumentsMoveOperation.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents; public final class DocumentsMoveOperationProtos { private DocumentsMoveOperationProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentsMoveOperationProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DocumentsMoveOperationOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.DocumentsMoveOperation) @@ -14,28 +31,34 @@ public interface DocumentsMoveOperationOrBuilder extends /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ boolean hasBoxId(); /** * required string BoxId = 1; + * @return The boxId. */ java.lang.String getBoxId(); /** * required string BoxId = 1; + * @return The bytes for boxId. */ com.google.protobuf.ByteString getBoxIdBytes(); /** * optional string ToDepartmentId = 2; + * @return Whether the toDepartmentId field is set. */ boolean hasToDepartmentId(); /** * optional string ToDepartmentId = 2; + * @return The toDepartmentId. */ java.lang.String getToDepartmentId(); /** * optional string ToDepartmentId = 2; + * @return The bytes for toDepartmentId. */ com.google.protobuf.ByteString getToDepartmentIdBytes(); @@ -71,91 +94,32 @@ public static final class DocumentsMoveOperation extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.DocumentsMoveOperation) DocumentsMoveOperationOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentsMoveOperation.class.getName()); + } // Use DocumentsMoveOperation.newBuilder() to construct. private DocumentsMoveOperation(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentsMoveOperation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentsMoveOperation defaultInstance; - public static DocumentsMoveOperation getDefaultInstance() { - return defaultInstance; } - - public DocumentsMoveOperation getDefaultInstanceForType() { - return defaultInstance; + private DocumentsMoveOperation() { + boxId_ = ""; + toDepartmentId_ = ""; + documentIds_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentsMoveOperation( - 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; - boxId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - toDepartmentId_ = bs; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - documentIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - documentIds_.add(input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.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_ & 0x00000004) == 0x00000004)) { - documentIds_ = java.util.Collections.unmodifiableList(documentIds_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentsMoveOperation_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentsMoveOperation_fieldAccessorTable @@ -163,33 +127,23 @@ private DocumentsMoveOperation( Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation.class, Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentsMoveOperation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentsMoveOperation(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int BOXID_FIELD_NUMBER = 1; - private java.lang.Object boxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object boxId_ = ""; /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ + @java.lang.Override public boolean hasBoxId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string BoxId = 1; + * @return The boxId. */ + @java.lang.Override public java.lang.String getBoxId() { java.lang.Object ref = boxId_; if (ref instanceof java.lang.String) { @@ -206,7 +160,9 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @return The bytes for boxId. */ + @java.lang.Override public com.google.protobuf.ByteString getBoxIdBytes() { java.lang.Object ref = boxId_; @@ -222,16 +178,21 @@ public java.lang.String getBoxId() { } public static final int TODEPARTMENTID_FIELD_NUMBER = 2; - private java.lang.Object toDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object toDepartmentId_ = ""; /** * optional string ToDepartmentId = 2; + * @return Whether the toDepartmentId field is set. */ + @java.lang.Override public boolean hasToDepartmentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ToDepartmentId = 2; + * @return The toDepartmentId. */ + @java.lang.Override public java.lang.String getToDepartmentId() { java.lang.Object ref = toDepartmentId_; if (ref instanceof java.lang.String) { @@ -248,7 +209,9 @@ public java.lang.String getToDepartmentId() { } /** * optional string ToDepartmentId = 2; + * @return The bytes for toDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getToDepartmentIdBytes() { java.lang.Object ref = toDepartmentId_; @@ -264,16 +227,19 @@ public java.lang.String getToDepartmentId() { } public static final int DOCUMENTIDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List documentIds_; /** * repeated .Diadoc.Api.Proto.DocumentId DocumentIds = 3; */ + @java.lang.Override public java.util.List getDocumentIdsList() { return documentIds_; } /** * repeated .Diadoc.Api.Proto.DocumentId DocumentIds = 3; */ + @java.lang.Override public java.util.List getDocumentIdsOrBuilderList() { return documentIds_; @@ -281,29 +247,28 @@ public java.util.List getDocumentI /** * repeated .Diadoc.Api.Proto.DocumentId DocumentIds = 3; */ + @java.lang.Override public int getDocumentIdsCount() { return documentIds_.size(); } /** * repeated .Diadoc.Api.Proto.DocumentId DocumentIds = 3; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getDocumentIds(int index) { return documentIds_.get(index); } /** * repeated .Diadoc.Api.Proto.DocumentId DocumentIds = 3; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getDocumentIdsOrBuilder( int index) { return documentIds_.get(index); } - private void initFields() { - boxId_ = ""; - toDepartmentId_ = ""; - documentIds_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -323,14 +288,14 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getBoxIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, boxId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getToDepartmentIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, toDepartmentId_); } for (int i = 0; i < documentIds_.size(); i++) { output.writeMessage(3, documentIds_.get(i)); @@ -338,36 +303,88 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getBoxIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, boxId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getToDepartmentIdBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, toDepartmentId_); } for (int i = 0; i < documentIds_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, documentIds_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation other = (Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation) obj; + + if (hasBoxId() != other.hasBoxId()) return false; + if (hasBoxId()) { + if (!getBoxId() + .equals(other.getBoxId())) return false; + } + if (hasToDepartmentId() != other.hasToDepartmentId()) return false; + if (hasToDepartmentId()) { + if (!getToDepartmentId() + .equals(other.getToDepartmentId())) return false; + } + if (!getDocumentIdsList() + .equals(other.getDocumentIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBoxId()) { + hash = (37 * hash) + BOXID_FIELD_NUMBER; + hash = (53 * hash) + getBoxId().hashCode(); + } + if (hasToDepartmentId()) { + hash = (37 * hash) + TODEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getToDepartmentId().hashCode(); + } + if (getDocumentIdsCount() > 0) { + hash = (37 * hash) + DOCUMENTIDS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -391,42 +408,57 @@ public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsM } public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -446,6 +478,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentsMoveOperation_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentsMoveOperation_fieldAccessorTable @@ -455,51 +488,42 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentIdsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; boxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); toDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); if (documentIdsBuilder_ == null) { documentIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + documentIds_ = null; documentIdsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.internal_static_Diadoc_Api_Proto_Documents_DocumentsMoveOperation_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation build() { Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation result = buildPartial(); if (!result.isInitialized()) { @@ -508,20 +532,18 @@ public Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOper return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation buildPartial() { Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation result = new Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.boxId_ = boxId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.toDepartmentId_ = toDepartmentId_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation result) { if (documentIdsBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { documentIds_ = java.util.Collections.unmodifiableList(documentIds_); bitField0_ = (bitField0_ & ~0x00000004); } @@ -529,11 +551,23 @@ public Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOper } else { result.documentIds_ = documentIdsBuilder_.build(); } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.boxId_ = boxId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toDepartmentId_ = toDepartmentId_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation) { return mergeFrom((Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation)other); @@ -546,13 +580,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation other) { if (other == Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation.getDefaultInstance()) return this; if (other.hasBoxId()) { - bitField0_ |= 0x00000001; boxId_ = other.boxId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasToDepartmentId()) { - bitField0_ |= 0x00000002; toDepartmentId_ = other.toDepartmentId_; + bitField0_ |= 0x00000002; onChanged(); } if (documentIdsBuilder_ == null) { @@ -582,38 +616,75 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasBoxId()) { - return false; } for (int i = 0; i < getDocumentIdsCount(); i++) { if (!getDocumentIds(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + boxId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + toDepartmentId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + Diadoc.Api.Proto.DocumentIdProtos.DocumentId m = + input.readMessage( + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.parser(), + extensionRegistry); + if (documentIdsBuilder_ == null) { + ensureDocumentIdsIsMutable(); + documentIds_.add(m); + } else { + documentIdsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -621,12 +692,14 @@ public Builder mergeFrom( private java.lang.Object boxId_ = ""; /** * required string BoxId = 1; + * @return Whether the boxId field is set. */ public boolean hasBoxId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string BoxId = 1; + * @return The boxId. */ public java.lang.String getBoxId() { java.lang.Object ref = boxId_; @@ -644,6 +717,7 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @return The bytes for boxId. */ public com.google.protobuf.ByteString getBoxIdBytes() { @@ -660,36 +734,37 @@ public java.lang.String getBoxId() { } /** * required string BoxId = 1; + * @param value The boxId to set. + * @return This builder for chaining. */ public Builder setBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string BoxId = 1; + * @return This builder for chaining. */ public Builder clearBoxId() { - bitField0_ = (bitField0_ & ~0x00000001); boxId_ = getDefaultInstance().getBoxId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string BoxId = 1; + * @param value The bytes for boxId to set. + * @return This builder for chaining. */ public Builder setBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } boxId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -697,12 +772,14 @@ public Builder setBoxIdBytes( private java.lang.Object toDepartmentId_ = ""; /** * optional string ToDepartmentId = 2; + * @return Whether the toDepartmentId field is set. */ public boolean hasToDepartmentId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string ToDepartmentId = 2; + * @return The toDepartmentId. */ public java.lang.String getToDepartmentId() { java.lang.Object ref = toDepartmentId_; @@ -720,6 +797,7 @@ public java.lang.String getToDepartmentId() { } /** * optional string ToDepartmentId = 2; + * @return The bytes for toDepartmentId. */ public com.google.protobuf.ByteString getToDepartmentIdBytes() { @@ -736,36 +814,37 @@ public java.lang.String getToDepartmentId() { } /** * optional string ToDepartmentId = 2; + * @param value The toDepartmentId to set. + * @return This builder for chaining. */ public Builder setToDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } toDepartmentId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string ToDepartmentId = 2; + * @return This builder for chaining. */ public Builder clearToDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000002); toDepartmentId_ = getDefaultInstance().getToDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string ToDepartmentId = 2; + * @param value The bytes for toDepartmentId to set. + * @return This builder for chaining. */ public Builder setToDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } toDepartmentId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -773,7 +852,7 @@ public Builder setToDepartmentIdBytes( private java.util.List documentIds_ = java.util.Collections.emptyList(); private void ensureDocumentIdsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000004) != 0)) { documentIds_ = new java.util.ArrayList(documentIds_); bitField0_ |= 0x00000004; } @@ -1002,7 +1081,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addDocumentIdsBuilde documentIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder>( documentIds_, - ((bitField0_ & 0x00000004) == 0x00000004), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); documentIds_ = null; @@ -1013,17 +1092,57 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addDocumentIdsBuilde // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.DocumentsMoveOperation) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DocumentsMoveOperation) + private static final Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation DEFAULT_INSTANCE; static { - defaultInstance = new DocumentsMoveOperation(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation(); + } + + public static Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentsMoveOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.DocumentsMoveOperationProtos.DocumentsMoveOperation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.DocumentsMoveOperation) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_DocumentsMoveOperation_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_DocumentsMoveOperation_fieldAccessorTable; @@ -1031,7 +1150,7 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addDocumentIdsBuilde getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1042,25 +1161,18 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder addDocumentIdsBuilde "entIds\030\003 \003(\0132\034.Diadoc.Api.Proto.Document" + "IdB\036B\034DocumentsMoveOperationProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_DocumentsMoveOperation_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_DocumentsMoveOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_DocumentsMoveOperation_descriptor, new java.lang.String[] { "BoxId", "ToDepartmentId", "DocumentIds", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Documents/InvoiceDocument/InvoiceDocumentProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/InvoiceDocument/InvoiceDocumentProtos.java index 78023851..542731d9 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/InvoiceDocument/InvoiceDocumentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/InvoiceDocument/InvoiceDocumentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/InvoiceDocument.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents.InvoiceDocument; public final class InvoiceDocumentProtos { private InvoiceDocumentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceDocumentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus} @@ -14,49 +31,58 @@ public static void registerAllExtensions( public enum InvoiceStatus implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownInvoiceStatus = 0; - * *
      * This type will be reported to legacy client when it receives unknown status from server
      * 
+ * + * UnknownInvoiceStatus = 0; */ - UnknownInvoiceStatus(0, 0), + UnknownInvoiceStatus(0), /** * OutboundWaitingForInvoiceReceipt = 1; */ - OutboundWaitingForInvoiceReceipt(1, 1), + OutboundWaitingForInvoiceReceipt(1), /** * OutboundNotFinished = 2; */ - OutboundNotFinished(2, 2), + OutboundNotFinished(2), /** * OutboundFinished = 3; */ - OutboundFinished(3, 3), + OutboundFinished(3), /** * OutboundWaitingForSenderSignature = 6; */ - OutboundWaitingForSenderSignature(4, 6), + OutboundWaitingForSenderSignature(6), /** * OutboundInvalidSenderSignature = 7; */ - OutboundInvalidSenderSignature(5, 7), + OutboundInvalidSenderSignature(7), /** * InboundNotFinished = 4; */ - InboundNotFinished(6, 4), + InboundNotFinished(4), /** * InboundFinished = 5; */ - InboundFinished(7, 5), + InboundFinished(5), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceStatus.class.getName()); + } /** - * UnknownInvoiceStatus = 0; - * *
      * This type will be reported to legacy client when it receives unknown status from server
      * 
+ * + * UnknownInvoiceStatus = 0; */ public static final int UnknownInvoiceStatus_VALUE = 0; /** @@ -89,9 +115,25 @@ public enum InvoiceStatus public static final int InboundFinished_VALUE = 5; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static InvoiceStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static InvoiceStatus forNumber(int value) { switch (value) { case 0: return UnknownInvoiceStatus; case 1: return OutboundWaitingForInvoiceReceipt; @@ -109,17 +151,17 @@ public static InvoiceStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + InvoiceStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public InvoiceStatus findValueByNumber(int number) { - return InvoiceStatus.valueOf(number); + return InvoiceStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -141,11 +183,9 @@ public static InvoiceStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private InvoiceStatus(int index, int value) { - this.index = index; + private InvoiceStatus(int value) { this.value = value; } @@ -158,65 +198,79 @@ public interface InvoiceMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceStatus field is set. */ boolean hasInvoiceStatus(); /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceStatus. */ Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceStatus(); /** * required string Total = 2; + * @return Whether the total field is set. */ boolean hasTotal(); /** * required string Total = 2; + * @return The total. */ java.lang.String getTotal(); /** * required string Total = 2; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** * required string Vat = 3; + * @return Whether the vat field is set. */ boolean hasVat(); /** * required string Vat = 3; + * @return The vat. */ java.lang.String getVat(); /** * required string Vat = 3; + * @return The bytes for vat. */ com.google.protobuf.ByteString getVatBytes(); /** * required int32 Currency = 4; + * @return Whether the currency field is set. */ boolean hasCurrency(); /** * required int32 Currency = 4; + * @return The currency. */ int getCurrency(); /** * required sfixed64 ConfirmationDateTimeTicks = 5; + * @return Whether the confirmationDateTimeTicks field is set. */ boolean hasConfirmationDateTimeTicks(); /** * required sfixed64 ConfirmationDateTimeTicks = 5; + * @return The confirmationDateTimeTicks. */ long getConfirmationDateTimeTicks(); /** * required int32 InvoiceAmendmentFlags = 6; + * @return Whether the invoiceAmendmentFlags field is set. */ boolean hasInvoiceAmendmentFlags(); /** * required int32 InvoiceAmendmentFlags = 6; + * @return The invoiceAmendmentFlags. */ int getInvoiceAmendmentFlags(); } @@ -227,106 +281,32 @@ public static final class InvoiceMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata) InvoiceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceMetadata.class.getName()); + } // Use InvoiceMetadata.newBuilder() to construct. private InvoiceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private InvoiceMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InvoiceMetadata defaultInstance; - public static InvoiceMetadata getDefaultInstance() { - return defaultInstance; } - - public InvoiceMetadata getDefaultInstanceForType() { - return defaultInstance; + private InvoiceMetadata() { + invoiceStatus_ = 0; + total_ = ""; + vat_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvoiceMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus value = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - invoiceStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - total_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - vat_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - currency_ = input.readInt32(); - break; - } - case 41: { - bitField0_ |= 0x00000010; - confirmationDateTimeTicks_ = input.readSFixed64(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - invoiceAmendmentFlags_ = input.readInt32(); - 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.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceMetadata_fieldAccessorTable @@ -334,48 +314,41 @@ private InvoiceMetadata( Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.class, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InvoiceMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvoiceMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int INVOICESTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus invoiceStatus_; + private int invoiceStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceStatus field is set. */ - public boolean hasInvoiceStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasInvoiceStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceStatus. */ - public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceStatus() { - return invoiceStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceStatus() { + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus result = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(invoiceStatus_); + return result == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus : result; } public static final int TOTAL_FIELD_NUMBER = 2; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** * required string Total = 2; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Total = 2; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -392,7 +365,9 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -408,16 +383,21 @@ public java.lang.String getTotal() { } public static final int VAT_FIELD_NUMBER = 3; - private java.lang.Object vat_; + @SuppressWarnings("serial") + private volatile java.lang.Object vat_ = ""; /** * required string Vat = 3; + * @return Whether the vat field is set. */ + @java.lang.Override public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Vat = 3; + * @return The vat. */ + @java.lang.Override public java.lang.String getVat() { java.lang.Object ref = vat_; if (ref instanceof java.lang.String) { @@ -434,7 +414,9 @@ public java.lang.String getVat() { } /** * required string Vat = 3; + * @return The bytes for vat. */ + @java.lang.Override public com.google.protobuf.ByteString getVatBytes() { java.lang.Object ref = vat_; @@ -450,59 +432,64 @@ public java.lang.String getVat() { } public static final int CURRENCY_FIELD_NUMBER = 4; - private int currency_; + private int currency_ = 0; /** * required int32 Currency = 4; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required int32 Currency = 4; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } public static final int CONFIRMATIONDATETIMETICKS_FIELD_NUMBER = 5; - private long confirmationDateTimeTicks_; + private long confirmationDateTimeTicks_ = 0L; /** * required sfixed64 ConfirmationDateTimeTicks = 5; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 5; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } public static final int INVOICEAMENDMENTFLAGS_FIELD_NUMBER = 6; - private int invoiceAmendmentFlags_; + private int invoiceAmendmentFlags_ = 0; /** * required int32 InvoiceAmendmentFlags = 6; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required int32 InvoiceAmendmentFlags = 6; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } - private void initFields() { - invoiceStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; - total_ = ""; - vat_ = ""; - currency_ = 0; - confirmationDateTimeTicks_ = 0L; - invoiceAmendmentFlags_ = 0; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -532,72 +519,154 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, invoiceStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, invoiceStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, currency_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeSFixed64(5, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(6, invoiceAmendmentFlags_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, invoiceStatus_.getNumber()); + .computeEnumSize(1, invoiceStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, currency_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(5, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, invoiceAmendmentFlags_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata other = (Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata) obj; + + if (hasInvoiceStatus() != other.hasInvoiceStatus()) return false; + if (hasInvoiceStatus()) { + if (invoiceStatus_ != other.invoiceStatus_) return false; + } + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (hasVat() != other.hasVat()) return false; + if (hasVat()) { + if (!getVat() + .equals(other.getVat())) return false; + } + if (hasCurrency() != other.hasCurrency()) return false; + if (hasCurrency()) { + if (getCurrency() + != other.getCurrency()) return false; + } + if (hasConfirmationDateTimeTicks() != other.hasConfirmationDateTimeTicks()) return false; + if (hasConfirmationDateTimeTicks()) { + if (getConfirmationDateTimeTicks() + != other.getConfirmationDateTimeTicks()) return false; + } + if (hasInvoiceAmendmentFlags() != other.hasInvoiceAmendmentFlags()) return false; + if (hasInvoiceAmendmentFlags()) { + if (getInvoiceAmendmentFlags() + != other.getInvoiceAmendmentFlags()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInvoiceStatus()) { + hash = (37 * hash) + INVOICESTATUS_FIELD_NUMBER; + hash = (53 * hash) + invoiceStatus_; + } + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + if (hasVat()) { + hash = (37 * hash) + VAT_FIELD_NUMBER; + hash = (53 * hash) + getVat().hashCode(); + } + if (hasCurrency()) { + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency(); + } + if (hasConfirmationDateTimeTicks()) { + hash = (37 * hash) + CONFIRMATIONDATETIMETICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConfirmationDateTimeTicks()); + } + if (hasInvoiceAmendmentFlags()) { + hash = (37 * hash) + INVOICEAMENDMENTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceAmendmentFlags(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -621,42 +690,57 @@ public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.I } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -676,6 +760,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceMetadata_fieldAccessorTable @@ -685,52 +770,39 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - invoiceStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + invoiceStatus_ = 0; total_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); vat_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); currency_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); confirmationDateTimeTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); invoiceAmendmentFlags_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata build() { Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -739,39 +811,45 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceM return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata buildPartial() { Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata result = new Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.invoiceStatus_ = invoiceStatus_; to_bitField0_ |= 0x00000001; } - result.invoiceStatus_ = invoiceStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000002; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vat_ = vat_; to_bitField0_ |= 0x00000004; } - result.vat_ = vat_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.currency_ = currency_; to_bitField0_ |= 0x00000008; } - result.currency_ = currency_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; to_bitField0_ |= 0x00000010; } - result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; to_bitField0_ |= 0x00000020; } - result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata)other); @@ -787,13 +865,13 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocum setInvoiceStatus(other.getInvoiceStatus()); } if (other.hasTotal()) { - bitField0_ |= 0x00000002; total_ = other.total_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasVat()) { - bitField0_ |= 0x00000004; vat_ = other.vat_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCurrency()) { @@ -806,83 +884,138 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocum setInvoiceAmendmentFlags(other.getInvoiceAmendmentFlags()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotal()) { - return false; } if (!hasVat()) { - return false; } if (!hasCurrency()) { - return false; } if (!hasConfirmationDateTimeTicks()) { - return false; } if (!hasInvoiceAmendmentFlags()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus tmpValue = + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + invoiceStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + total_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + vat_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + currency_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 41: { + confirmationDateTimeTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 48: { + invoiceAmendmentFlags_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus invoiceStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; + private int invoiceStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceStatus field is set. */ - public boolean hasInvoiceStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasInvoiceStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceStatus() { - return invoiceStatus_; + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus result = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(invoiceStatus_); + return result == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceStatus = 1 [default = UnknownInvoiceStatus]; + * @param value The invoiceStatus to set. + * @return This builder for chaining. */ public Builder setInvoiceStatus(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - invoiceStatus_ = value; + invoiceStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceStatus = 1 [default = UnknownInvoiceStatus]; + * @return This builder for chaining. */ public Builder clearInvoiceStatus() { bitField0_ = (bitField0_ & ~0x00000001); - invoiceStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; + invoiceStatus_ = 0; onChanged(); return this; } @@ -890,12 +1023,14 @@ public Builder clearInvoiceStatus() { private java.lang.Object total_ = ""; /** * required string Total = 2; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Total = 2; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -913,6 +1048,7 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -929,36 +1065,37 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string Total = 2; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000002); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string Total = 2; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -966,12 +1103,14 @@ public Builder setTotalBytes( private java.lang.Object vat_ = ""; /** * required string Vat = 3; + * @return Whether the vat field is set. */ public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Vat = 3; + * @return The vat. */ public java.lang.String getVat() { java.lang.Object ref = vat_; @@ -989,6 +1128,7 @@ public java.lang.String getVat() { } /** * required string Vat = 3; + * @return The bytes for vat. */ public com.google.protobuf.ByteString getVatBytes() { @@ -1005,36 +1145,37 @@ public java.lang.String getVat() { } /** * required string Vat = 3; + * @param value The vat to set. + * @return This builder for chaining. */ public Builder setVat( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string Vat = 3; + * @return This builder for chaining. */ public Builder clearVat() { - bitField0_ = (bitField0_ & ~0x00000004); vat_ = getDefaultInstance().getVat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string Vat = 3; + * @param value The bytes for vat to set. + * @return This builder for chaining. */ public Builder setVatBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1042,27 +1183,35 @@ public Builder setVatBytes( private int currency_ ; /** * required int32 Currency = 4; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required int32 Currency = 4; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } /** * required int32 Currency = 4; + * @param value The currency to set. + * @return This builder for chaining. */ public Builder setCurrency(int value) { - bitField0_ |= 0x00000008; + currency_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required int32 Currency = 4; + * @return This builder for chaining. */ public Builder clearCurrency() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1074,27 +1223,35 @@ public Builder clearCurrency() { private long confirmationDateTimeTicks_ ; /** * required sfixed64 ConfirmationDateTimeTicks = 5; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 5; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } /** * required sfixed64 ConfirmationDateTimeTicks = 5; + * @param value The confirmationDateTimeTicks to set. + * @return This builder for chaining. */ public Builder setConfirmationDateTimeTicks(long value) { - bitField0_ |= 0x00000010; + confirmationDateTimeTicks_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * required sfixed64 ConfirmationDateTimeTicks = 5; + * @return This builder for chaining. */ public Builder clearConfirmationDateTimeTicks() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1106,27 +1263,35 @@ public Builder clearConfirmationDateTimeTicks() { private int invoiceAmendmentFlags_ ; /** * required int32 InvoiceAmendmentFlags = 6; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required int32 InvoiceAmendmentFlags = 6; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } /** * required int32 InvoiceAmendmentFlags = 6; + * @param value The invoiceAmendmentFlags to set. + * @return This builder for chaining. */ public Builder setInvoiceAmendmentFlags(int value) { - bitField0_ |= 0x00000020; + invoiceAmendmentFlags_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * required int32 InvoiceAmendmentFlags = 6; + * @return This builder for chaining. */ public Builder clearInvoiceAmendmentFlags() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1138,12 +1303,52 @@ public Builder clearInvoiceAmendmentFlags() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata) + private static final Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata DEFAULT_INSTANCE; static { - defaultInstance = new InvoiceMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata(); + } + + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvoiceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceMetadata) } public interface InvoiceRevisionMetadataOrBuilder extends @@ -1152,93 +1357,113 @@ public interface InvoiceRevisionMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceRevisionStatus field is set. */ boolean hasInvoiceRevisionStatus(); /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceRevisionStatus. */ Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceRevisionStatus(); /** * required string OriginalInvoiceNumber = 2; + * @return Whether the originalInvoiceNumber field is set. */ boolean hasOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 2; + * @return The originalInvoiceNumber. */ java.lang.String getOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 2; + * @return The bytes for originalInvoiceNumber. */ com.google.protobuf.ByteString getOriginalInvoiceNumberBytes(); /** * required string OriginalInvoiceDate = 3; + * @return Whether the originalInvoiceDate field is set. */ boolean hasOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 3; + * @return The originalInvoiceDate. */ java.lang.String getOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 3; + * @return The bytes for originalInvoiceDate. */ com.google.protobuf.ByteString getOriginalInvoiceDateBytes(); /** * required string Total = 4; + * @return Whether the total field is set. */ boolean hasTotal(); /** * required string Total = 4; + * @return The total. */ java.lang.String getTotal(); /** * required string Total = 4; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** * required string Vat = 5; + * @return Whether the vat field is set. */ boolean hasVat(); /** * required string Vat = 5; + * @return The vat. */ java.lang.String getVat(); /** * required string Vat = 5; + * @return The bytes for vat. */ com.google.protobuf.ByteString getVatBytes(); /** * required int32 Currency = 6; + * @return Whether the currency field is set. */ boolean hasCurrency(); /** * required int32 Currency = 6; + * @return The currency. */ int getCurrency(); /** * required sfixed64 ConfirmationDateTimeTicks = 7; + * @return Whether the confirmationDateTimeTicks field is set. */ boolean hasConfirmationDateTimeTicks(); /** * required sfixed64 ConfirmationDateTimeTicks = 7; + * @return The confirmationDateTimeTicks. */ long getConfirmationDateTimeTicks(); /** * required int32 InvoiceAmendmentFlags = 8; + * @return Whether the invoiceAmendmentFlags field is set. */ boolean hasInvoiceAmendmentFlags(); /** * required int32 InvoiceAmendmentFlags = 8; + * @return The invoiceAmendmentFlags. */ int getInvoiceAmendmentFlags(); } @@ -1249,118 +1474,34 @@ public static final class InvoiceRevisionMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata) InvoiceRevisionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceRevisionMetadata.class.getName()); + } // Use InvoiceRevisionMetadata.newBuilder() to construct. private InvoiceRevisionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private InvoiceRevisionMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InvoiceRevisionMetadata defaultInstance; - public static InvoiceRevisionMetadata getDefaultInstance() { - return defaultInstance; } - - public InvoiceRevisionMetadata getDefaultInstanceForType() { - return defaultInstance; + private InvoiceRevisionMetadata() { + invoiceRevisionStatus_ = 0; + originalInvoiceNumber_ = ""; + originalInvoiceDate_ = ""; + total_ = ""; + vat_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvoiceRevisionMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus value = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - invoiceRevisionStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - originalInvoiceNumber_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - originalInvoiceDate_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - total_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - vat_ = bs; - break; - } - case 48: { - bitField0_ |= 0x00000020; - currency_ = input.readInt32(); - break; - } - case 57: { - bitField0_ |= 0x00000040; - confirmationDateTimeTicks_ = input.readSFixed64(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - invoiceAmendmentFlags_ = input.readInt32(); - 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.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceRevisionMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceRevisionMetadata_fieldAccessorTable @@ -1368,48 +1509,41 @@ private InvoiceRevisionMetadata( Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.class, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InvoiceRevisionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvoiceRevisionMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int INVOICEREVISIONSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus invoiceRevisionStatus_; + private int invoiceRevisionStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceRevisionStatus field is set. */ - public boolean hasInvoiceRevisionStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasInvoiceRevisionStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceRevisionStatus. */ - public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceRevisionStatus() { - return invoiceRevisionStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceRevisionStatus() { + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus result = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(invoiceRevisionStatus_); + return result == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus : result; } public static final int ORIGINALINVOICENUMBER_FIELD_NUMBER = 2; - private java.lang.Object originalInvoiceNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 2; + * @return Whether the originalInvoiceNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string OriginalInvoiceNumber = 2; + * @return The originalInvoiceNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; if (ref instanceof java.lang.String) { @@ -1426,7 +1560,9 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 2; + * @return The bytes for originalInvoiceNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { java.lang.Object ref = originalInvoiceNumber_; @@ -1442,16 +1578,21 @@ public java.lang.String getOriginalInvoiceNumber() { } public static final int ORIGINALINVOICEDATE_FIELD_NUMBER = 3; - private java.lang.Object originalInvoiceDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 3; + * @return Whether the originalInvoiceDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string OriginalInvoiceDate = 3; + * @return The originalInvoiceDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; if (ref instanceof java.lang.String) { @@ -1468,7 +1609,9 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 3; + * @return The bytes for originalInvoiceDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { java.lang.Object ref = originalInvoiceDate_; @@ -1484,16 +1627,21 @@ public java.lang.String getOriginalInvoiceDate() { } public static final int TOTAL_FIELD_NUMBER = 4; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** * required string Total = 4; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string Total = 4; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -1510,7 +1658,9 @@ public java.lang.String getTotal() { } /** * required string Total = 4; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -1526,16 +1676,21 @@ public java.lang.String getTotal() { } public static final int VAT_FIELD_NUMBER = 5; - private java.lang.Object vat_; + @SuppressWarnings("serial") + private volatile java.lang.Object vat_ = ""; /** * required string Vat = 5; + * @return Whether the vat field is set. */ + @java.lang.Override public boolean hasVat() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string Vat = 5; + * @return The vat. */ + @java.lang.Override public java.lang.String getVat() { java.lang.Object ref = vat_; if (ref instanceof java.lang.String) { @@ -1552,7 +1707,9 @@ public java.lang.String getVat() { } /** * required string Vat = 5; + * @return The bytes for vat. */ + @java.lang.Override public com.google.protobuf.ByteString getVatBytes() { java.lang.Object ref = vat_; @@ -1568,61 +1725,64 @@ public java.lang.String getVat() { } public static final int CURRENCY_FIELD_NUMBER = 6; - private int currency_; + private int currency_ = 0; /** * required int32 Currency = 6; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required int32 Currency = 6; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } public static final int CONFIRMATIONDATETIMETICKS_FIELD_NUMBER = 7; - private long confirmationDateTimeTicks_; + private long confirmationDateTimeTicks_ = 0L; /** * required sfixed64 ConfirmationDateTimeTicks = 7; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 7; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } public static final int INVOICEAMENDMENTFLAGS_FIELD_NUMBER = 8; - private int invoiceAmendmentFlags_; + private int invoiceAmendmentFlags_ = 0; /** * required int32 InvoiceAmendmentFlags = 8; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required int32 InvoiceAmendmentFlags = 8; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } - private void initFields() { - invoiceRevisionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; - originalInvoiceNumber_ = ""; - originalInvoiceDate_ = ""; - total_ = ""; - vat_ = ""; - currency_ = 0; - confirmationDateTimeTicks_ = 0L; - invoiceAmendmentFlags_ = 0; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1660,86 +1820,184 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, invoiceRevisionStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, invoiceRevisionStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, originalInvoiceDate_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getTotalBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, total_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getVatBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, vat_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(6, currency_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeSFixed64(7, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeInt32(8, invoiceAmendmentFlags_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, invoiceRevisionStatus_.getNumber()); + .computeEnumSize(1, invoiceRevisionStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, originalInvoiceDate_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getTotalBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, total_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getVatBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, vat_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, currency_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(7, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, invoiceAmendmentFlags_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata other = (Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata) obj; + + if (hasInvoiceRevisionStatus() != other.hasInvoiceRevisionStatus()) return false; + if (hasInvoiceRevisionStatus()) { + if (invoiceRevisionStatus_ != other.invoiceRevisionStatus_) return false; + } + if (hasOriginalInvoiceNumber() != other.hasOriginalInvoiceNumber()) return false; + if (hasOriginalInvoiceNumber()) { + if (!getOriginalInvoiceNumber() + .equals(other.getOriginalInvoiceNumber())) return false; + } + if (hasOriginalInvoiceDate() != other.hasOriginalInvoiceDate()) return false; + if (hasOriginalInvoiceDate()) { + if (!getOriginalInvoiceDate() + .equals(other.getOriginalInvoiceDate())) return false; + } + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (hasVat() != other.hasVat()) return false; + if (hasVat()) { + if (!getVat() + .equals(other.getVat())) return false; + } + if (hasCurrency() != other.hasCurrency()) return false; + if (hasCurrency()) { + if (getCurrency() + != other.getCurrency()) return false; + } + if (hasConfirmationDateTimeTicks() != other.hasConfirmationDateTimeTicks()) return false; + if (hasConfirmationDateTimeTicks()) { + if (getConfirmationDateTimeTicks() + != other.getConfirmationDateTimeTicks()) return false; + } + if (hasInvoiceAmendmentFlags() != other.hasInvoiceAmendmentFlags()) return false; + if (hasInvoiceAmendmentFlags()) { + if (getInvoiceAmendmentFlags() + != other.getInvoiceAmendmentFlags()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInvoiceRevisionStatus()) { + hash = (37 * hash) + INVOICEREVISIONSTATUS_FIELD_NUMBER; + hash = (53 * hash) + invoiceRevisionStatus_; + } + if (hasOriginalInvoiceNumber()) { + hash = (37 * hash) + ORIGINALINVOICENUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceNumber().hashCode(); + } + if (hasOriginalInvoiceDate()) { + hash = (37 * hash) + ORIGINALINVOICEDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceDate().hashCode(); + } + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + if (hasVat()) { + hash = (37 * hash) + VAT_FIELD_NUMBER; + hash = (53 * hash) + getVat().hashCode(); + } + if (hasCurrency()) { + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency(); + } + if (hasConfirmationDateTimeTicks()) { + hash = (37 * hash) + CONFIRMATIONDATETIMETICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConfirmationDateTimeTicks()); + } + if (hasInvoiceAmendmentFlags()) { + hash = (37 * hash) + INVOICEAMENDMENTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceAmendmentFlags(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1763,42 +2021,57 @@ public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.I } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1818,6 +2091,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceRevisionMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceRevisionMetadata_fieldAccessorTable @@ -1827,56 +2101,41 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - invoiceRevisionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + invoiceRevisionStatus_ = 0; originalInvoiceNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); originalInvoiceDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); total_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); vat_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); currency_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); confirmationDateTimeTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000040); invoiceAmendmentFlags_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceRevisionMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata build() { Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -1885,47 +2144,53 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceR return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata buildPartial() { Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata result = new Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.invoiceRevisionStatus_ = invoiceRevisionStatus_; to_bitField0_ |= 0x00000001; } - result.invoiceRevisionStatus_ = invoiceRevisionStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.originalInvoiceNumber_ = originalInvoiceNumber_; to_bitField0_ |= 0x00000002; } - result.originalInvoiceNumber_ = originalInvoiceNumber_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.originalInvoiceDate_ = originalInvoiceDate_; to_bitField0_ |= 0x00000004; } - result.originalInvoiceDate_ = originalInvoiceDate_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000008; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.vat_ = vat_; to_bitField0_ |= 0x00000010; } - result.vat_ = vat_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.currency_ = currency_; to_bitField0_ |= 0x00000020; } - result.currency_ = currency_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; to_bitField0_ |= 0x00000040; } - result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; to_bitField0_ |= 0x00000080; } - result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata)other); @@ -1941,23 +2206,23 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocum setInvoiceRevisionStatus(other.getInvoiceRevisionStatus()); } if (other.hasOriginalInvoiceNumber()) { - bitField0_ |= 0x00000002; originalInvoiceNumber_ = other.originalInvoiceNumber_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasOriginalInvoiceDate()) { - bitField0_ |= 0x00000004; originalInvoiceDate_ = other.originalInvoiceDate_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasTotal()) { - bitField0_ |= 0x00000008; total_ = other.total_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasVat()) { - bitField0_ |= 0x00000010; vat_ = other.vat_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasCurrency()) { @@ -1970,91 +2235,154 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocum setInvoiceAmendmentFlags(other.getInvoiceAmendmentFlags()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasOriginalInvoiceNumber()) { - return false; } if (!hasOriginalInvoiceDate()) { - return false; } if (!hasTotal()) { - return false; } if (!hasVat()) { - return false; } if (!hasCurrency()) { - return false; } if (!hasConfirmationDateTimeTicks()) { - return false; } if (!hasInvoiceAmendmentFlags()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus tmpValue = + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + invoiceRevisionStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + originalInvoiceNumber_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + originalInvoiceDate_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + total_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + vat_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + currency_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 57: { + confirmationDateTimeTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 64: { + invoiceAmendmentFlags_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus invoiceRevisionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; + private int invoiceRevisionStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceRevisionStatus field is set. */ - public boolean hasInvoiceRevisionStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasInvoiceRevisionStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceRevisionStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceRevisionStatus() { - return invoiceRevisionStatus_; + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus result = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(invoiceRevisionStatus_); + return result == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @param value The invoiceRevisionStatus to set. + * @return This builder for chaining. */ public Builder setInvoiceRevisionStatus(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - invoiceRevisionStatus_ = value; + invoiceRevisionStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return This builder for chaining. */ public Builder clearInvoiceRevisionStatus() { bitField0_ = (bitField0_ & ~0x00000001); - invoiceRevisionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; + invoiceRevisionStatus_ = 0; onChanged(); return this; } @@ -2062,12 +2390,14 @@ public Builder clearInvoiceRevisionStatus() { private java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 2; + * @return Whether the originalInvoiceNumber field is set. */ public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string OriginalInvoiceNumber = 2; + * @return The originalInvoiceNumber. */ public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; @@ -2085,6 +2415,7 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 2; + * @return The bytes for originalInvoiceNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { @@ -2101,36 +2432,37 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 2; + * @param value The originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string OriginalInvoiceNumber = 2; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceNumber() { - bitField0_ = (bitField0_ & ~0x00000002); originalInvoiceNumber_ = getDefaultInstance().getOriginalInvoiceNumber(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string OriginalInvoiceNumber = 2; + * @param value The bytes for originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2138,12 +2470,14 @@ public Builder setOriginalInvoiceNumberBytes( private java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 3; + * @return Whether the originalInvoiceDate field is set. */ public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string OriginalInvoiceDate = 3; + * @return The originalInvoiceDate. */ public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; @@ -2161,6 +2495,7 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 3; + * @return The bytes for originalInvoiceDate. */ public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { @@ -2177,36 +2512,37 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 3; + * @param value The originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string OriginalInvoiceDate = 3; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceDate() { - bitField0_ = (bitField0_ & ~0x00000004); originalInvoiceDate_ = getDefaultInstance().getOriginalInvoiceDate(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string OriginalInvoiceDate = 3; + * @param value The bytes for originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2214,12 +2550,14 @@ public Builder setOriginalInvoiceDateBytes( private java.lang.Object total_ = ""; /** * required string Total = 4; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string Total = 4; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -2237,6 +2575,7 @@ public java.lang.String getTotal() { } /** * required string Total = 4; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -2253,36 +2592,37 @@ public java.lang.String getTotal() { } /** * required string Total = 4; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required string Total = 4; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000008); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * required string Total = 4; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2290,12 +2630,14 @@ public Builder setTotalBytes( private java.lang.Object vat_ = ""; /** * required string Vat = 5; + * @return Whether the vat field is set. */ public boolean hasVat() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string Vat = 5; + * @return The vat. */ public java.lang.String getVat() { java.lang.Object ref = vat_; @@ -2313,6 +2655,7 @@ public java.lang.String getVat() { } /** * required string Vat = 5; + * @return The bytes for vat. */ public com.google.protobuf.ByteString getVatBytes() { @@ -2329,36 +2672,37 @@ public java.lang.String getVat() { } /** * required string Vat = 5; + * @param value The vat to set. + * @return This builder for chaining. */ public Builder setVat( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * required string Vat = 5; + * @return This builder for chaining. */ public Builder clearVat() { - bitField0_ = (bitField0_ & ~0x00000010); vat_ = getDefaultInstance().getVat(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * required string Vat = 5; + * @param value The bytes for vat to set. + * @return This builder for chaining. */ public Builder setVatBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2366,27 +2710,35 @@ public Builder setVatBytes( private int currency_ ; /** * required int32 Currency = 6; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required int32 Currency = 6; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } /** * required int32 Currency = 6; + * @param value The currency to set. + * @return This builder for chaining. */ public Builder setCurrency(int value) { - bitField0_ |= 0x00000020; + currency_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * required int32 Currency = 6; + * @return This builder for chaining. */ public Builder clearCurrency() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2398,27 +2750,35 @@ public Builder clearCurrency() { private long confirmationDateTimeTicks_ ; /** * required sfixed64 ConfirmationDateTimeTicks = 7; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 7; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } /** * required sfixed64 ConfirmationDateTimeTicks = 7; + * @param value The confirmationDateTimeTicks to set. + * @return This builder for chaining. */ public Builder setConfirmationDateTimeTicks(long value) { - bitField0_ |= 0x00000040; + confirmationDateTimeTicks_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * required sfixed64 ConfirmationDateTimeTicks = 7; + * @return This builder for chaining. */ public Builder clearConfirmationDateTimeTicks() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2430,27 +2790,35 @@ public Builder clearConfirmationDateTimeTicks() { private int invoiceAmendmentFlags_ ; /** * required int32 InvoiceAmendmentFlags = 8; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required int32 InvoiceAmendmentFlags = 8; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } /** * required int32 InvoiceAmendmentFlags = 8; + * @param value The invoiceAmendmentFlags to set. + * @return This builder for chaining. */ public Builder setInvoiceAmendmentFlags(int value) { - bitField0_ |= 0x00000080; + invoiceAmendmentFlags_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * required int32 InvoiceAmendmentFlags = 8; + * @return This builder for chaining. */ public Builder clearInvoiceAmendmentFlags() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2462,12 +2830,52 @@ public Builder clearInvoiceAmendmentFlags() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata) + private static final Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata DEFAULT_INSTANCE; static { - defaultInstance = new InvoiceRevisionMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata(); + } + + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvoiceRevisionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceRevisionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceRevisionMetadata) } public interface InvoiceCorrectionMetadataOrBuilder extends @@ -2476,149 +2884,181 @@ public interface InvoiceCorrectionMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceCorrectionStatus field is set. */ boolean hasInvoiceCorrectionStatus(); /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceCorrectionStatus. */ Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceCorrectionStatus(); /** * required string OriginalInvoiceNumber = 2; + * @return Whether the originalInvoiceNumber field is set. */ boolean hasOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 2; + * @return The originalInvoiceNumber. */ java.lang.String getOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 2; + * @return The bytes for originalInvoiceNumber. */ com.google.protobuf.ByteString getOriginalInvoiceNumberBytes(); /** * required string OriginalInvoiceDate = 3; + * @return Whether the originalInvoiceDate field is set. */ boolean hasOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 3; + * @return The originalInvoiceDate. */ java.lang.String getOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 3; + * @return The bytes for originalInvoiceDate. */ com.google.protobuf.ByteString getOriginalInvoiceDateBytes(); /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return Whether the originalInvoiceRevisionNumber field is set. */ boolean hasOriginalInvoiceRevisionNumber(); /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The originalInvoiceRevisionNumber. */ java.lang.String getOriginalInvoiceRevisionNumber(); /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The bytes for originalInvoiceRevisionNumber. */ com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes(); /** * optional string OriginalInvoiceRevisionDate = 5; + * @return Whether the originalInvoiceRevisionDate field is set. */ boolean hasOriginalInvoiceRevisionDate(); /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The originalInvoiceRevisionDate. */ java.lang.String getOriginalInvoiceRevisionDate(); /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The bytes for originalInvoiceRevisionDate. */ com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes(); /** * required string TotalInc = 6; + * @return Whether the totalInc field is set. */ boolean hasTotalInc(); /** * required string TotalInc = 6; + * @return The totalInc. */ java.lang.String getTotalInc(); /** * required string TotalInc = 6; + * @return The bytes for totalInc. */ com.google.protobuf.ByteString getTotalIncBytes(); /** * required string TotalDec = 7; + * @return Whether the totalDec field is set. */ boolean hasTotalDec(); /** * required string TotalDec = 7; + * @return The totalDec. */ java.lang.String getTotalDec(); /** * required string TotalDec = 7; + * @return The bytes for totalDec. */ com.google.protobuf.ByteString getTotalDecBytes(); /** * required string VatInc = 8; + * @return Whether the vatInc field is set. */ boolean hasVatInc(); /** * required string VatInc = 8; + * @return The vatInc. */ java.lang.String getVatInc(); /** * required string VatInc = 8; + * @return The bytes for vatInc. */ com.google.protobuf.ByteString getVatIncBytes(); /** * required string VatDec = 9; + * @return Whether the vatDec field is set. */ boolean hasVatDec(); /** * required string VatDec = 9; + * @return The vatDec. */ java.lang.String getVatDec(); /** * required string VatDec = 9; + * @return The bytes for vatDec. */ com.google.protobuf.ByteString getVatDecBytes(); /** * required int32 Currency = 10; + * @return Whether the currency field is set. */ boolean hasCurrency(); /** * required int32 Currency = 10; + * @return The currency. */ int getCurrency(); /** * required sfixed64 ConfirmationDateTimeTicks = 11; + * @return Whether the confirmationDateTimeTicks field is set. */ boolean hasConfirmationDateTimeTicks(); /** * required sfixed64 ConfirmationDateTimeTicks = 11; + * @return The confirmationDateTimeTicks. */ long getConfirmationDateTimeTicks(); /** * required int32 InvoiceAmendmentFlags = 12; + * @return Whether the invoiceAmendmentFlags field is set. */ boolean hasInvoiceAmendmentFlags(); /** * required int32 InvoiceAmendmentFlags = 12; + * @return The invoiceAmendmentFlags. */ int getInvoiceAmendmentFlags(); } @@ -2629,142 +3069,38 @@ public static final class InvoiceCorrectionMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata) InvoiceCorrectionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceCorrectionMetadata.class.getName()); + } // Use InvoiceCorrectionMetadata.newBuilder() to construct. private InvoiceCorrectionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private InvoiceCorrectionMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InvoiceCorrectionMetadata defaultInstance; - public static InvoiceCorrectionMetadata getDefaultInstance() { - return defaultInstance; - } - - public InvoiceCorrectionMetadata getDefaultInstanceForType() { - return defaultInstance; + private InvoiceCorrectionMetadata() { + invoiceCorrectionStatus_ = 0; + originalInvoiceNumber_ = ""; + originalInvoiceDate_ = ""; + originalInvoiceRevisionNumber_ = ""; + originalInvoiceRevisionDate_ = ""; + totalInc_ = ""; + totalDec_ = ""; + vatInc_ = ""; + vatDec_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvoiceCorrectionMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus value = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - invoiceCorrectionStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - originalInvoiceNumber_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - originalInvoiceDate_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - originalInvoiceRevisionNumber_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - originalInvoiceRevisionDate_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - totalInc_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - totalDec_ = bs; - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - vatInc_ = bs; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - vatDec_ = bs; - break; - } - case 80: { - bitField0_ |= 0x00000200; - currency_ = input.readInt32(); - break; - } - case 89: { - bitField0_ |= 0x00000400; - confirmationDateTimeTicks_ = input.readSFixed64(); - break; - } - case 96: { - bitField0_ |= 0x00000800; - invoiceAmendmentFlags_ = input.readInt32(); - 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.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionMetadata_fieldAccessorTable @@ -2772,48 +3108,41 @@ private InvoiceCorrectionMetadata( Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.class, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InvoiceCorrectionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvoiceCorrectionMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int INVOICECORRECTIONSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus invoiceCorrectionStatus_; + private int invoiceCorrectionStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceCorrectionStatus field is set. */ - public boolean hasInvoiceCorrectionStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasInvoiceCorrectionStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceCorrectionStatus. */ - public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceCorrectionStatus() { - return invoiceCorrectionStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceCorrectionStatus() { + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus result = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(invoiceCorrectionStatus_); + return result == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus : result; } public static final int ORIGINALINVOICENUMBER_FIELD_NUMBER = 2; - private java.lang.Object originalInvoiceNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 2; + * @return Whether the originalInvoiceNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string OriginalInvoiceNumber = 2; + * @return The originalInvoiceNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; if (ref instanceof java.lang.String) { @@ -2830,7 +3159,9 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 2; + * @return The bytes for originalInvoiceNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { java.lang.Object ref = originalInvoiceNumber_; @@ -2846,16 +3177,21 @@ public java.lang.String getOriginalInvoiceNumber() { } public static final int ORIGINALINVOICEDATE_FIELD_NUMBER = 3; - private java.lang.Object originalInvoiceDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 3; + * @return Whether the originalInvoiceDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string OriginalInvoiceDate = 3; + * @return The originalInvoiceDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; if (ref instanceof java.lang.String) { @@ -2872,7 +3208,9 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 3; + * @return The bytes for originalInvoiceDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { java.lang.Object ref = originalInvoiceDate_; @@ -2888,16 +3226,21 @@ public java.lang.String getOriginalInvoiceDate() { } public static final int ORIGINALINVOICEREVISIONNUMBER_FIELD_NUMBER = 4; - private java.lang.Object originalInvoiceRevisionNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceRevisionNumber_ = ""; /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return Whether the originalInvoiceRevisionNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceRevisionNumber() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The originalInvoiceRevisionNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceRevisionNumber() { java.lang.Object ref = originalInvoiceRevisionNumber_; if (ref instanceof java.lang.String) { @@ -2914,7 +3257,9 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The bytes for originalInvoiceRevisionNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes() { java.lang.Object ref = originalInvoiceRevisionNumber_; @@ -2930,16 +3275,21 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } public static final int ORIGINALINVOICEREVISIONDATE_FIELD_NUMBER = 5; - private java.lang.Object originalInvoiceRevisionDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceRevisionDate_ = ""; /** * optional string OriginalInvoiceRevisionDate = 5; + * @return Whether the originalInvoiceRevisionDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceRevisionDate() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The originalInvoiceRevisionDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceRevisionDate() { java.lang.Object ref = originalInvoiceRevisionDate_; if (ref instanceof java.lang.String) { @@ -2956,7 +3306,9 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The bytes for originalInvoiceRevisionDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes() { java.lang.Object ref = originalInvoiceRevisionDate_; @@ -2972,16 +3324,21 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } public static final int TOTALINC_FIELD_NUMBER = 6; - private java.lang.Object totalInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalInc_ = ""; /** * required string TotalInc = 6; + * @return Whether the totalInc field is set. */ + @java.lang.Override public boolean hasTotalInc() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required string TotalInc = 6; + * @return The totalInc. */ + @java.lang.Override public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; if (ref instanceof java.lang.String) { @@ -2998,7 +3355,9 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 6; + * @return The bytes for totalInc. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalIncBytes() { java.lang.Object ref = totalInc_; @@ -3014,16 +3373,21 @@ public java.lang.String getTotalInc() { } public static final int TOTALDEC_FIELD_NUMBER = 7; - private java.lang.Object totalDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalDec_ = ""; /** * required string TotalDec = 7; + * @return Whether the totalDec field is set. */ + @java.lang.Override public boolean hasTotalDec() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required string TotalDec = 7; + * @return The totalDec. */ + @java.lang.Override public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; if (ref instanceof java.lang.String) { @@ -3040,7 +3404,9 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 7; + * @return The bytes for totalDec. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalDecBytes() { java.lang.Object ref = totalDec_; @@ -3056,16 +3422,21 @@ public java.lang.String getTotalDec() { } public static final int VATINC_FIELD_NUMBER = 8; - private java.lang.Object vatInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatInc_ = ""; /** * required string VatInc = 8; + * @return Whether the vatInc field is set. */ + @java.lang.Override public boolean hasVatInc() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required string VatInc = 8; + * @return The vatInc. */ + @java.lang.Override public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; if (ref instanceof java.lang.String) { @@ -3082,7 +3453,9 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 8; + * @return The bytes for vatInc. */ + @java.lang.Override public com.google.protobuf.ByteString getVatIncBytes() { java.lang.Object ref = vatInc_; @@ -3098,16 +3471,21 @@ public java.lang.String getVatInc() { } public static final int VATDEC_FIELD_NUMBER = 9; - private java.lang.Object vatDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatDec_ = ""; /** * required string VatDec = 9; + * @return Whether the vatDec field is set. */ + @java.lang.Override public boolean hasVatDec() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required string VatDec = 9; + * @return The vatDec. */ + @java.lang.Override public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; if (ref instanceof java.lang.String) { @@ -3124,7 +3502,9 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 9; + * @return The bytes for vatDec. */ + @java.lang.Override public com.google.protobuf.ByteString getVatDecBytes() { java.lang.Object ref = vatDec_; @@ -3140,65 +3520,64 @@ public java.lang.String getVatDec() { } public static final int CURRENCY_FIELD_NUMBER = 10; - private int currency_; + private int currency_ = 0; /** * required int32 Currency = 10; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required int32 Currency = 10; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } public static final int CONFIRMATIONDATETIMETICKS_FIELD_NUMBER = 11; - private long confirmationDateTimeTicks_; + private long confirmationDateTimeTicks_ = 0L; /** * required sfixed64 ConfirmationDateTimeTicks = 11; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 11; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } public static final int INVOICEAMENDMENTFLAGS_FIELD_NUMBER = 12; - private int invoiceAmendmentFlags_; + private int invoiceAmendmentFlags_ = 0; /** * required int32 InvoiceAmendmentFlags = 12; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * required int32 InvoiceAmendmentFlags = 12; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } - private void initFields() { - invoiceCorrectionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; - originalInvoiceNumber_ = ""; - originalInvoiceDate_ = ""; - originalInvoiceRevisionNumber_ = ""; - originalInvoiceRevisionDate_ = ""; - totalInc_ = ""; - totalDec_ = ""; - vatInc_ = ""; - vatDec_ = ""; - currency_ = 0; - confirmationDateTimeTicks_ = 0L; - invoiceAmendmentFlags_ = 0; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3244,114 +3623,244 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, invoiceCorrectionStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, invoiceCorrectionStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, originalInvoiceDate_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getOriginalInvoiceRevisionNumberBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, originalInvoiceRevisionNumber_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getOriginalInvoiceRevisionDateBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, originalInvoiceRevisionDate_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getTotalIncBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, totalInc_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getTotalDecBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, totalDec_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getVatIncBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, vatInc_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getVatDecBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, vatDec_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeInt32(10, currency_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeSFixed64(11, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeInt32(12, invoiceAmendmentFlags_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, invoiceCorrectionStatus_.getNumber()); + .computeEnumSize(1, invoiceCorrectionStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, originalInvoiceDate_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getOriginalInvoiceRevisionNumberBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, originalInvoiceRevisionNumber_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getOriginalInvoiceRevisionDateBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, originalInvoiceRevisionDate_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getTotalIncBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, totalInc_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getTotalDecBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, totalDec_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getVatIncBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, vatInc_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getVatDecBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, vatDec_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, currency_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(11, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, invoiceAmendmentFlags_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata other = (Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata) obj; + + if (hasInvoiceCorrectionStatus() != other.hasInvoiceCorrectionStatus()) return false; + if (hasInvoiceCorrectionStatus()) { + if (invoiceCorrectionStatus_ != other.invoiceCorrectionStatus_) return false; + } + if (hasOriginalInvoiceNumber() != other.hasOriginalInvoiceNumber()) return false; + if (hasOriginalInvoiceNumber()) { + if (!getOriginalInvoiceNumber() + .equals(other.getOriginalInvoiceNumber())) return false; + } + if (hasOriginalInvoiceDate() != other.hasOriginalInvoiceDate()) return false; + if (hasOriginalInvoiceDate()) { + if (!getOriginalInvoiceDate() + .equals(other.getOriginalInvoiceDate())) return false; + } + if (hasOriginalInvoiceRevisionNumber() != other.hasOriginalInvoiceRevisionNumber()) return false; + if (hasOriginalInvoiceRevisionNumber()) { + if (!getOriginalInvoiceRevisionNumber() + .equals(other.getOriginalInvoiceRevisionNumber())) return false; + } + if (hasOriginalInvoiceRevisionDate() != other.hasOriginalInvoiceRevisionDate()) return false; + if (hasOriginalInvoiceRevisionDate()) { + if (!getOriginalInvoiceRevisionDate() + .equals(other.getOriginalInvoiceRevisionDate())) return false; + } + if (hasTotalInc() != other.hasTotalInc()) return false; + if (hasTotalInc()) { + if (!getTotalInc() + .equals(other.getTotalInc())) return false; + } + if (hasTotalDec() != other.hasTotalDec()) return false; + if (hasTotalDec()) { + if (!getTotalDec() + .equals(other.getTotalDec())) return false; + } + if (hasVatInc() != other.hasVatInc()) return false; + if (hasVatInc()) { + if (!getVatInc() + .equals(other.getVatInc())) return false; + } + if (hasVatDec() != other.hasVatDec()) return false; + if (hasVatDec()) { + if (!getVatDec() + .equals(other.getVatDec())) return false; + } + if (hasCurrency() != other.hasCurrency()) return false; + if (hasCurrency()) { + if (getCurrency() + != other.getCurrency()) return false; + } + if (hasConfirmationDateTimeTicks() != other.hasConfirmationDateTimeTicks()) return false; + if (hasConfirmationDateTimeTicks()) { + if (getConfirmationDateTimeTicks() + != other.getConfirmationDateTimeTicks()) return false; + } + if (hasInvoiceAmendmentFlags() != other.hasInvoiceAmendmentFlags()) return false; + if (hasInvoiceAmendmentFlags()) { + if (getInvoiceAmendmentFlags() + != other.getInvoiceAmendmentFlags()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInvoiceCorrectionStatus()) { + hash = (37 * hash) + INVOICECORRECTIONSTATUS_FIELD_NUMBER; + hash = (53 * hash) + invoiceCorrectionStatus_; + } + if (hasOriginalInvoiceNumber()) { + hash = (37 * hash) + ORIGINALINVOICENUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceNumber().hashCode(); + } + if (hasOriginalInvoiceDate()) { + hash = (37 * hash) + ORIGINALINVOICEDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceDate().hashCode(); + } + if (hasOriginalInvoiceRevisionNumber()) { + hash = (37 * hash) + ORIGINALINVOICEREVISIONNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceRevisionNumber().hashCode(); + } + if (hasOriginalInvoiceRevisionDate()) { + hash = (37 * hash) + ORIGINALINVOICEREVISIONDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceRevisionDate().hashCode(); + } + if (hasTotalInc()) { + hash = (37 * hash) + TOTALINC_FIELD_NUMBER; + hash = (53 * hash) + getTotalInc().hashCode(); + } + if (hasTotalDec()) { + hash = (37 * hash) + TOTALDEC_FIELD_NUMBER; + hash = (53 * hash) + getTotalDec().hashCode(); + } + if (hasVatInc()) { + hash = (37 * hash) + VATINC_FIELD_NUMBER; + hash = (53 * hash) + getVatInc().hashCode(); + } + if (hasVatDec()) { + hash = (37 * hash) + VATDEC_FIELD_NUMBER; + hash = (53 * hash) + getVatDec().hashCode(); + } + if (hasCurrency()) { + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency(); + } + if (hasConfirmationDateTimeTicks()) { + hash = (37 * hash) + CONFIRMATIONDATETIMETICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConfirmationDateTimeTicks()); + } + if (hasInvoiceAmendmentFlags()) { + hash = (37 * hash) + INVOICEAMENDMENTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceAmendmentFlags(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3375,42 +3884,57 @@ public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.I } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3430,6 +3954,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionMetadata_fieldAccessorTable @@ -3439,64 +3964,45 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - invoiceCorrectionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + invoiceCorrectionStatus_ = 0; originalInvoiceNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); originalInvoiceDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); originalInvoiceRevisionNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); originalInvoiceRevisionDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); totalInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); totalDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); vatInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); vatDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); currency_ = 0; - bitField0_ = (bitField0_ & ~0x00000200); confirmationDateTimeTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000400); invoiceAmendmentFlags_ = 0; - bitField0_ = (bitField0_ & ~0x00000800); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata build() { Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -3505,63 +4011,69 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceC return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata buildPartial() { Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata result = new Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.invoiceCorrectionStatus_ = invoiceCorrectionStatus_; to_bitField0_ |= 0x00000001; } - result.invoiceCorrectionStatus_ = invoiceCorrectionStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.originalInvoiceNumber_ = originalInvoiceNumber_; to_bitField0_ |= 0x00000002; } - result.originalInvoiceNumber_ = originalInvoiceNumber_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.originalInvoiceDate_ = originalInvoiceDate_; to_bitField0_ |= 0x00000004; } - result.originalInvoiceDate_ = originalInvoiceDate_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.originalInvoiceRevisionNumber_ = originalInvoiceRevisionNumber_; to_bitField0_ |= 0x00000008; } - result.originalInvoiceRevisionNumber_ = originalInvoiceRevisionNumber_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.originalInvoiceRevisionDate_ = originalInvoiceRevisionDate_; to_bitField0_ |= 0x00000010; } - result.originalInvoiceRevisionDate_ = originalInvoiceRevisionDate_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.totalInc_ = totalInc_; to_bitField0_ |= 0x00000020; } - result.totalInc_ = totalInc_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.totalDec_ = totalDec_; to_bitField0_ |= 0x00000040; } - result.totalDec_ = totalDec_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.vatInc_ = vatInc_; to_bitField0_ |= 0x00000080; } - result.vatInc_ = vatInc_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.vatDec_ = vatDec_; to_bitField0_ |= 0x00000100; } - result.vatDec_ = vatDec_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.currency_ = currency_; to_bitField0_ |= 0x00000200; } - result.currency_ = currency_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; to_bitField0_ |= 0x00000400; } - result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; to_bitField0_ |= 0x00000800; } - result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata)other); @@ -3577,43 +4089,43 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocum setInvoiceCorrectionStatus(other.getInvoiceCorrectionStatus()); } if (other.hasOriginalInvoiceNumber()) { - bitField0_ |= 0x00000002; originalInvoiceNumber_ = other.originalInvoiceNumber_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasOriginalInvoiceDate()) { - bitField0_ |= 0x00000004; originalInvoiceDate_ = other.originalInvoiceDate_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasOriginalInvoiceRevisionNumber()) { - bitField0_ |= 0x00000008; originalInvoiceRevisionNumber_ = other.originalInvoiceRevisionNumber_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasOriginalInvoiceRevisionDate()) { - bitField0_ |= 0x00000010; originalInvoiceRevisionDate_ = other.originalInvoiceRevisionDate_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasTotalInc()) { - bitField0_ |= 0x00000020; totalInc_ = other.totalInc_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasTotalDec()) { - bitField0_ |= 0x00000040; totalDec_ = other.totalDec_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasVatInc()) { - bitField0_ |= 0x00000080; vatInc_ = other.vatInc_; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasVatDec()) { - bitField0_ |= 0x00000100; vatDec_ = other.vatDec_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasCurrency()) { @@ -3626,99 +4138,180 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocum setInvoiceAmendmentFlags(other.getInvoiceAmendmentFlags()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasOriginalInvoiceNumber()) { - return false; } if (!hasOriginalInvoiceDate()) { - return false; } if (!hasTotalInc()) { - return false; } if (!hasTotalDec()) { - return false; } if (!hasVatInc()) { - return false; } if (!hasVatDec()) { - return false; } if (!hasCurrency()) { - return false; } if (!hasConfirmationDateTimeTicks()) { - return false; } if (!hasInvoiceAmendmentFlags()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus tmpValue = + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + invoiceCorrectionStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + originalInvoiceNumber_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + originalInvoiceDate_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + originalInvoiceRevisionNumber_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + originalInvoiceRevisionDate_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + totalInc_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + totalDec_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + vatInc_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + vatDec_ = input.readBytes(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: { + currency_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 89: { + confirmationDateTimeTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000400; + break; + } // case 89 + case 96: { + invoiceAmendmentFlags_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus invoiceCorrectionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; + private int invoiceCorrectionStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceCorrectionStatus field is set. */ - public boolean hasInvoiceCorrectionStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasInvoiceCorrectionStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceCorrectionStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceCorrectionStatus() { - return invoiceCorrectionStatus_; + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus result = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(invoiceCorrectionStatus_); + return result == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionStatus = 1 [default = UnknownInvoiceStatus]; + * @param value The invoiceCorrectionStatus to set. + * @return This builder for chaining. */ public Builder setInvoiceCorrectionStatus(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - invoiceCorrectionStatus_ = value; + invoiceCorrectionStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionStatus = 1 [default = UnknownInvoiceStatus]; + * @return This builder for chaining. */ public Builder clearInvoiceCorrectionStatus() { bitField0_ = (bitField0_ & ~0x00000001); - invoiceCorrectionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; + invoiceCorrectionStatus_ = 0; onChanged(); return this; } @@ -3726,12 +4319,14 @@ public Builder clearInvoiceCorrectionStatus() { private java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 2; + * @return Whether the originalInvoiceNumber field is set. */ public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string OriginalInvoiceNumber = 2; + * @return The originalInvoiceNumber. */ public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; @@ -3749,6 +4344,7 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 2; + * @return The bytes for originalInvoiceNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { @@ -3765,36 +4361,37 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 2; + * @param value The originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string OriginalInvoiceNumber = 2; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceNumber() { - bitField0_ = (bitField0_ & ~0x00000002); originalInvoiceNumber_ = getDefaultInstance().getOriginalInvoiceNumber(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string OriginalInvoiceNumber = 2; + * @param value The bytes for originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3802,12 +4399,14 @@ public Builder setOriginalInvoiceNumberBytes( private java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 3; + * @return Whether the originalInvoiceDate field is set. */ public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string OriginalInvoiceDate = 3; + * @return The originalInvoiceDate. */ public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; @@ -3825,6 +4424,7 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 3; + * @return The bytes for originalInvoiceDate. */ public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { @@ -3841,36 +4441,37 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 3; + * @param value The originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string OriginalInvoiceDate = 3; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceDate() { - bitField0_ = (bitField0_ & ~0x00000004); originalInvoiceDate_ = getDefaultInstance().getOriginalInvoiceDate(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string OriginalInvoiceDate = 3; + * @param value The bytes for originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3878,12 +4479,14 @@ public Builder setOriginalInvoiceDateBytes( private java.lang.Object originalInvoiceRevisionNumber_ = ""; /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return Whether the originalInvoiceRevisionNumber field is set. */ public boolean hasOriginalInvoiceRevisionNumber() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The originalInvoiceRevisionNumber. */ public java.lang.String getOriginalInvoiceRevisionNumber() { java.lang.Object ref = originalInvoiceRevisionNumber_; @@ -3901,6 +4504,7 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The bytes for originalInvoiceRevisionNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes() { @@ -3917,36 +4521,37 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @param value The originalInvoiceRevisionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionNumber_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceRevisionNumber() { - bitField0_ = (bitField0_ & ~0x00000008); originalInvoiceRevisionNumber_ = getDefaultInstance().getOriginalInvoiceRevisionNumber(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @param value The bytes for originalInvoiceRevisionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionNumber_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3954,12 +4559,14 @@ public Builder setOriginalInvoiceRevisionNumberBytes( private java.lang.Object originalInvoiceRevisionDate_ = ""; /** * optional string OriginalInvoiceRevisionDate = 5; + * @return Whether the originalInvoiceRevisionDate field is set. */ public boolean hasOriginalInvoiceRevisionDate() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The originalInvoiceRevisionDate. */ public java.lang.String getOriginalInvoiceRevisionDate() { java.lang.Object ref = originalInvoiceRevisionDate_; @@ -3977,6 +4584,7 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The bytes for originalInvoiceRevisionDate. */ public com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes() { @@ -3993,36 +4601,37 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 5; + * @param value The originalInvoiceRevisionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionDate_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string OriginalInvoiceRevisionDate = 5; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceRevisionDate() { - bitField0_ = (bitField0_ & ~0x00000010); originalInvoiceRevisionDate_ = getDefaultInstance().getOriginalInvoiceRevisionDate(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string OriginalInvoiceRevisionDate = 5; + * @param value The bytes for originalInvoiceRevisionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionDate_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4030,12 +4639,14 @@ public Builder setOriginalInvoiceRevisionDateBytes( private java.lang.Object totalInc_ = ""; /** * required string TotalInc = 6; + * @return Whether the totalInc field is set. */ public boolean hasTotalInc() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required string TotalInc = 6; + * @return The totalInc. */ public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; @@ -4053,6 +4664,7 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 6; + * @return The bytes for totalInc. */ public com.google.protobuf.ByteString getTotalIncBytes() { @@ -4069,36 +4681,37 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 6; + * @param value The totalInc to set. + * @return This builder for chaining. */ public Builder setTotalInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * required string TotalInc = 6; + * @return This builder for chaining. */ public Builder clearTotalInc() { - bitField0_ = (bitField0_ & ~0x00000020); totalInc_ = getDefaultInstance().getTotalInc(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * required string TotalInc = 6; + * @param value The bytes for totalInc to set. + * @return This builder for chaining. */ public Builder setTotalIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4106,12 +4719,14 @@ public Builder setTotalIncBytes( private java.lang.Object totalDec_ = ""; /** * required string TotalDec = 7; + * @return Whether the totalDec field is set. */ public boolean hasTotalDec() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required string TotalDec = 7; + * @return The totalDec. */ public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; @@ -4129,6 +4744,7 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 7; + * @return The bytes for totalDec. */ public com.google.protobuf.ByteString getTotalDecBytes() { @@ -4145,36 +4761,37 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 7; + * @param value The totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * required string TotalDec = 7; + * @return This builder for chaining. */ public Builder clearTotalDec() { - bitField0_ = (bitField0_ & ~0x00000040); totalDec_ = getDefaultInstance().getTotalDec(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * required string TotalDec = 7; + * @param value The bytes for totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4182,12 +4799,14 @@ public Builder setTotalDecBytes( private java.lang.Object vatInc_ = ""; /** * required string VatInc = 8; + * @return Whether the vatInc field is set. */ public boolean hasVatInc() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required string VatInc = 8; + * @return The vatInc. */ public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; @@ -4205,6 +4824,7 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 8; + * @return The bytes for vatInc. */ public com.google.protobuf.ByteString getVatIncBytes() { @@ -4221,36 +4841,37 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 8; + * @param value The vatInc to set. + * @return This builder for chaining. */ public Builder setVatInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * required string VatInc = 8; + * @return This builder for chaining. */ public Builder clearVatInc() { - bitField0_ = (bitField0_ & ~0x00000080); vatInc_ = getDefaultInstance().getVatInc(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * required string VatInc = 8; + * @param value The bytes for vatInc to set. + * @return This builder for chaining. */ public Builder setVatIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4258,12 +4879,14 @@ public Builder setVatIncBytes( private java.lang.Object vatDec_ = ""; /** * required string VatDec = 9; + * @return Whether the vatDec field is set. */ public boolean hasVatDec() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required string VatDec = 9; + * @return The vatDec. */ public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; @@ -4281,6 +4904,7 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 9; + * @return The bytes for vatDec. */ public com.google.protobuf.ByteString getVatDecBytes() { @@ -4297,36 +4921,37 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 9; + * @param value The vatDec to set. + * @return This builder for chaining. */ public Builder setVatDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * required string VatDec = 9; + * @return This builder for chaining. */ public Builder clearVatDec() { - bitField0_ = (bitField0_ & ~0x00000100); vatDec_ = getDefaultInstance().getVatDec(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * required string VatDec = 9; + * @param value The bytes for vatDec to set. + * @return This builder for chaining. */ public Builder setVatDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4334,27 +4959,35 @@ public Builder setVatDecBytes( private int currency_ ; /** * required int32 Currency = 10; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required int32 Currency = 10; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } /** * required int32 Currency = 10; + * @param value The currency to set. + * @return This builder for chaining. */ public Builder setCurrency(int value) { - bitField0_ |= 0x00000200; + currency_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * required int32 Currency = 10; + * @return This builder for chaining. */ public Builder clearCurrency() { bitField0_ = (bitField0_ & ~0x00000200); @@ -4366,27 +4999,35 @@ public Builder clearCurrency() { private long confirmationDateTimeTicks_ ; /** * required sfixed64 ConfirmationDateTimeTicks = 11; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 11; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } /** * required sfixed64 ConfirmationDateTimeTicks = 11; + * @param value The confirmationDateTimeTicks to set. + * @return This builder for chaining. */ public Builder setConfirmationDateTimeTicks(long value) { - bitField0_ |= 0x00000400; + confirmationDateTimeTicks_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * required sfixed64 ConfirmationDateTimeTicks = 11; + * @return This builder for chaining. */ public Builder clearConfirmationDateTimeTicks() { bitField0_ = (bitField0_ & ~0x00000400); @@ -4398,27 +5039,35 @@ public Builder clearConfirmationDateTimeTicks() { private int invoiceAmendmentFlags_ ; /** * required int32 InvoiceAmendmentFlags = 12; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * required int32 InvoiceAmendmentFlags = 12; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } /** * required int32 InvoiceAmendmentFlags = 12; + * @param value The invoiceAmendmentFlags to set. + * @return This builder for chaining. */ public Builder setInvoiceAmendmentFlags(int value) { - bitField0_ |= 0x00000800; + invoiceAmendmentFlags_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * required int32 InvoiceAmendmentFlags = 12; + * @return This builder for chaining. */ public Builder clearInvoiceAmendmentFlags() { bitField0_ = (bitField0_ & ~0x00000800); @@ -4430,12 +5079,52 @@ public Builder clearInvoiceAmendmentFlags() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata) + private static final Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata DEFAULT_INSTANCE; static { - defaultInstance = new InvoiceCorrectionMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata(); + } + + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvoiceCorrectionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionMetadata) } public interface InvoiceCorrectionRevisionMetadataOrBuilder extends @@ -4444,177 +5133,215 @@ public interface InvoiceCorrectionRevisionMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceCorrectionRevisionStatus field is set. */ boolean hasInvoiceCorrectionRevisionStatus(); /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceCorrectionRevisionStatus. */ Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceCorrectionRevisionStatus(); /** * required string OriginalInvoiceNumber = 2; + * @return Whether the originalInvoiceNumber field is set. */ boolean hasOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 2; + * @return The originalInvoiceNumber. */ java.lang.String getOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 2; + * @return The bytes for originalInvoiceNumber. */ com.google.protobuf.ByteString getOriginalInvoiceNumberBytes(); /** * required string OriginalInvoiceDate = 3; + * @return Whether the originalInvoiceDate field is set. */ boolean hasOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 3; + * @return The originalInvoiceDate. */ java.lang.String getOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 3; + * @return The bytes for originalInvoiceDate. */ com.google.protobuf.ByteString getOriginalInvoiceDateBytes(); /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return Whether the originalInvoiceRevisionNumber field is set. */ boolean hasOriginalInvoiceRevisionNumber(); /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The originalInvoiceRevisionNumber. */ java.lang.String getOriginalInvoiceRevisionNumber(); /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The bytes for originalInvoiceRevisionNumber. */ com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes(); /** * optional string OriginalInvoiceRevisionDate = 5; + * @return Whether the originalInvoiceRevisionDate field is set. */ boolean hasOriginalInvoiceRevisionDate(); /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The originalInvoiceRevisionDate. */ java.lang.String getOriginalInvoiceRevisionDate(); /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The bytes for originalInvoiceRevisionDate. */ com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes(); /** * required string OriginalInvoiceCorrectionNumber = 6; + * @return Whether the originalInvoiceCorrectionNumber field is set. */ boolean hasOriginalInvoiceCorrectionNumber(); /** * required string OriginalInvoiceCorrectionNumber = 6; + * @return The originalInvoiceCorrectionNumber. */ java.lang.String getOriginalInvoiceCorrectionNumber(); /** * required string OriginalInvoiceCorrectionNumber = 6; + * @return The bytes for originalInvoiceCorrectionNumber. */ com.google.protobuf.ByteString getOriginalInvoiceCorrectionNumberBytes(); /** * required string OriginalInvoiceCorrectionDate = 7; + * @return Whether the originalInvoiceCorrectionDate field is set. */ boolean hasOriginalInvoiceCorrectionDate(); /** * required string OriginalInvoiceCorrectionDate = 7; + * @return The originalInvoiceCorrectionDate. */ java.lang.String getOriginalInvoiceCorrectionDate(); /** * required string OriginalInvoiceCorrectionDate = 7; + * @return The bytes for originalInvoiceCorrectionDate. */ com.google.protobuf.ByteString getOriginalInvoiceCorrectionDateBytes(); /** * required string TotalInc = 8; + * @return Whether the totalInc field is set. */ boolean hasTotalInc(); /** * required string TotalInc = 8; + * @return The totalInc. */ java.lang.String getTotalInc(); /** * required string TotalInc = 8; + * @return The bytes for totalInc. */ com.google.protobuf.ByteString getTotalIncBytes(); /** * required string TotalDec = 9; + * @return Whether the totalDec field is set. */ boolean hasTotalDec(); /** * required string TotalDec = 9; + * @return The totalDec. */ java.lang.String getTotalDec(); /** * required string TotalDec = 9; + * @return The bytes for totalDec. */ com.google.protobuf.ByteString getTotalDecBytes(); /** * required string VatInc = 10; + * @return Whether the vatInc field is set. */ boolean hasVatInc(); /** * required string VatInc = 10; + * @return The vatInc. */ java.lang.String getVatInc(); /** * required string VatInc = 10; + * @return The bytes for vatInc. */ com.google.protobuf.ByteString getVatIncBytes(); /** * required string VatDec = 11; + * @return Whether the vatDec field is set. */ boolean hasVatDec(); /** * required string VatDec = 11; + * @return The vatDec. */ java.lang.String getVatDec(); /** * required string VatDec = 11; + * @return The bytes for vatDec. */ com.google.protobuf.ByteString getVatDecBytes(); /** * required int32 Currency = 12; + * @return Whether the currency field is set. */ boolean hasCurrency(); /** * required int32 Currency = 12; + * @return The currency. */ int getCurrency(); /** * required sfixed64 ConfirmationDateTimeTicks = 13; + * @return Whether the confirmationDateTimeTicks field is set. */ boolean hasConfirmationDateTimeTicks(); /** * required sfixed64 ConfirmationDateTimeTicks = 13; + * @return The confirmationDateTimeTicks. */ long getConfirmationDateTimeTicks(); /** * required int32 InvoiceAmendmentFlags = 14; + * @return Whether the invoiceAmendmentFlags field is set. */ boolean hasInvoiceAmendmentFlags(); /** * required int32 InvoiceAmendmentFlags = 14; + * @return The invoiceAmendmentFlags. */ int getInvoiceAmendmentFlags(); } @@ -4625,154 +5352,40 @@ public static final class InvoiceCorrectionRevisionMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata) InvoiceCorrectionRevisionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + InvoiceCorrectionRevisionMetadata.class.getName()); + } // Use InvoiceCorrectionRevisionMetadata.newBuilder() to construct. private InvoiceCorrectionRevisionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private InvoiceCorrectionRevisionMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final InvoiceCorrectionRevisionMetadata defaultInstance; - public static InvoiceCorrectionRevisionMetadata getDefaultInstance() { - return defaultInstance; - } - - public InvoiceCorrectionRevisionMetadata getDefaultInstanceForType() { - return defaultInstance; + private InvoiceCorrectionRevisionMetadata() { + invoiceCorrectionRevisionStatus_ = 0; + originalInvoiceNumber_ = ""; + originalInvoiceDate_ = ""; + originalInvoiceRevisionNumber_ = ""; + originalInvoiceRevisionDate_ = ""; + originalInvoiceCorrectionNumber_ = ""; + originalInvoiceCorrectionDate_ = ""; + totalInc_ = ""; + totalDec_ = ""; + vatInc_ = ""; + vatDec_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvoiceCorrectionRevisionMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus value = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - invoiceCorrectionRevisionStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - originalInvoiceNumber_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - originalInvoiceDate_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - originalInvoiceRevisionNumber_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - originalInvoiceRevisionDate_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - originalInvoiceCorrectionNumber_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - originalInvoiceCorrectionDate_ = bs; - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - totalInc_ = bs; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - totalDec_ = bs; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - vatInc_ = bs; - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - vatDec_ = bs; - break; - } - case 96: { - bitField0_ |= 0x00000800; - currency_ = input.readInt32(); - break; - } - case 105: { - bitField0_ |= 0x00001000; - confirmationDateTimeTicks_ = input.readSFixed64(); - break; - } - case 112: { - bitField0_ |= 0x00002000; - invoiceAmendmentFlags_ = input.readInt32(); - 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.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionRevisionMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionRevisionMetadata_fieldAccessorTable @@ -4780,48 +5393,41 @@ private InvoiceCorrectionRevisionMetadata( Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.class, Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InvoiceCorrectionRevisionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvoiceCorrectionRevisionMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int INVOICECORRECTIONREVISIONSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus invoiceCorrectionRevisionStatus_; + private int invoiceCorrectionRevisionStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceCorrectionRevisionStatus field is set. */ - public boolean hasInvoiceCorrectionRevisionStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasInvoiceCorrectionRevisionStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceCorrectionRevisionStatus. */ - public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceCorrectionRevisionStatus() { - return invoiceCorrectionRevisionStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceCorrectionRevisionStatus() { + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus result = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(invoiceCorrectionRevisionStatus_); + return result == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus : result; } public static final int ORIGINALINVOICENUMBER_FIELD_NUMBER = 2; - private java.lang.Object originalInvoiceNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 2; + * @return Whether the originalInvoiceNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string OriginalInvoiceNumber = 2; + * @return The originalInvoiceNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; if (ref instanceof java.lang.String) { @@ -4838,7 +5444,9 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 2; + * @return The bytes for originalInvoiceNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { java.lang.Object ref = originalInvoiceNumber_; @@ -4854,16 +5462,21 @@ public java.lang.String getOriginalInvoiceNumber() { } public static final int ORIGINALINVOICEDATE_FIELD_NUMBER = 3; - private java.lang.Object originalInvoiceDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 3; + * @return Whether the originalInvoiceDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string OriginalInvoiceDate = 3; + * @return The originalInvoiceDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; if (ref instanceof java.lang.String) { @@ -4880,7 +5493,9 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 3; + * @return The bytes for originalInvoiceDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { java.lang.Object ref = originalInvoiceDate_; @@ -4896,16 +5511,21 @@ public java.lang.String getOriginalInvoiceDate() { } public static final int ORIGINALINVOICEREVISIONNUMBER_FIELD_NUMBER = 4; - private java.lang.Object originalInvoiceRevisionNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceRevisionNumber_ = ""; /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return Whether the originalInvoiceRevisionNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceRevisionNumber() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The originalInvoiceRevisionNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceRevisionNumber() { java.lang.Object ref = originalInvoiceRevisionNumber_; if (ref instanceof java.lang.String) { @@ -4922,7 +5542,9 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The bytes for originalInvoiceRevisionNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes() { java.lang.Object ref = originalInvoiceRevisionNumber_; @@ -4938,16 +5560,21 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } public static final int ORIGINALINVOICEREVISIONDATE_FIELD_NUMBER = 5; - private java.lang.Object originalInvoiceRevisionDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceRevisionDate_ = ""; /** * optional string OriginalInvoiceRevisionDate = 5; + * @return Whether the originalInvoiceRevisionDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceRevisionDate() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The originalInvoiceRevisionDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceRevisionDate() { java.lang.Object ref = originalInvoiceRevisionDate_; if (ref instanceof java.lang.String) { @@ -4964,7 +5591,9 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The bytes for originalInvoiceRevisionDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes() { java.lang.Object ref = originalInvoiceRevisionDate_; @@ -4980,16 +5609,21 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } public static final int ORIGINALINVOICECORRECTIONNUMBER_FIELD_NUMBER = 6; - private java.lang.Object originalInvoiceCorrectionNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceCorrectionNumber_ = ""; /** * required string OriginalInvoiceCorrectionNumber = 6; + * @return Whether the originalInvoiceCorrectionNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceCorrectionNumber() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required string OriginalInvoiceCorrectionNumber = 6; + * @return The originalInvoiceCorrectionNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceCorrectionNumber() { java.lang.Object ref = originalInvoiceCorrectionNumber_; if (ref instanceof java.lang.String) { @@ -5006,7 +5640,9 @@ public java.lang.String getOriginalInvoiceCorrectionNumber() { } /** * required string OriginalInvoiceCorrectionNumber = 6; + * @return The bytes for originalInvoiceCorrectionNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceCorrectionNumberBytes() { java.lang.Object ref = originalInvoiceCorrectionNumber_; @@ -5022,16 +5658,21 @@ public java.lang.String getOriginalInvoiceCorrectionNumber() { } public static final int ORIGINALINVOICECORRECTIONDATE_FIELD_NUMBER = 7; - private java.lang.Object originalInvoiceCorrectionDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceCorrectionDate_ = ""; /** * required string OriginalInvoiceCorrectionDate = 7; + * @return Whether the originalInvoiceCorrectionDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceCorrectionDate() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required string OriginalInvoiceCorrectionDate = 7; + * @return The originalInvoiceCorrectionDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceCorrectionDate() { java.lang.Object ref = originalInvoiceCorrectionDate_; if (ref instanceof java.lang.String) { @@ -5048,7 +5689,9 @@ public java.lang.String getOriginalInvoiceCorrectionDate() { } /** * required string OriginalInvoiceCorrectionDate = 7; + * @return The bytes for originalInvoiceCorrectionDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceCorrectionDateBytes() { java.lang.Object ref = originalInvoiceCorrectionDate_; @@ -5064,16 +5707,21 @@ public java.lang.String getOriginalInvoiceCorrectionDate() { } public static final int TOTALINC_FIELD_NUMBER = 8; - private java.lang.Object totalInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalInc_ = ""; /** * required string TotalInc = 8; + * @return Whether the totalInc field is set. */ + @java.lang.Override public boolean hasTotalInc() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required string TotalInc = 8; + * @return The totalInc. */ + @java.lang.Override public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; if (ref instanceof java.lang.String) { @@ -5090,7 +5738,9 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 8; + * @return The bytes for totalInc. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalIncBytes() { java.lang.Object ref = totalInc_; @@ -5106,16 +5756,21 @@ public java.lang.String getTotalInc() { } public static final int TOTALDEC_FIELD_NUMBER = 9; - private java.lang.Object totalDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalDec_ = ""; /** * required string TotalDec = 9; + * @return Whether the totalDec field is set. */ + @java.lang.Override public boolean hasTotalDec() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required string TotalDec = 9; + * @return The totalDec. */ + @java.lang.Override public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; if (ref instanceof java.lang.String) { @@ -5132,7 +5787,9 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 9; + * @return The bytes for totalDec. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalDecBytes() { java.lang.Object ref = totalDec_; @@ -5148,16 +5805,21 @@ public java.lang.String getTotalDec() { } public static final int VATINC_FIELD_NUMBER = 10; - private java.lang.Object vatInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatInc_ = ""; /** * required string VatInc = 10; + * @return Whether the vatInc field is set. */ + @java.lang.Override public boolean hasVatInc() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required string VatInc = 10; + * @return The vatInc. */ + @java.lang.Override public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; if (ref instanceof java.lang.String) { @@ -5174,7 +5836,9 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 10; + * @return The bytes for vatInc. */ + @java.lang.Override public com.google.protobuf.ByteString getVatIncBytes() { java.lang.Object ref = vatInc_; @@ -5190,16 +5854,21 @@ public java.lang.String getVatInc() { } public static final int VATDEC_FIELD_NUMBER = 11; - private java.lang.Object vatDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatDec_ = ""; /** * required string VatDec = 11; + * @return Whether the vatDec field is set. */ + @java.lang.Override public boolean hasVatDec() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required string VatDec = 11; + * @return The vatDec. */ + @java.lang.Override public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; if (ref instanceof java.lang.String) { @@ -5216,7 +5885,9 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 11; + * @return The bytes for vatDec. */ + @java.lang.Override public com.google.protobuf.ByteString getVatDecBytes() { java.lang.Object ref = vatDec_; @@ -5232,67 +5903,64 @@ public java.lang.String getVatDec() { } public static final int CURRENCY_FIELD_NUMBER = 12; - private int currency_; + private int currency_ = 0; /** * required int32 Currency = 12; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * required int32 Currency = 12; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } public static final int CONFIRMATIONDATETIMETICKS_FIELD_NUMBER = 13; - private long confirmationDateTimeTicks_; + private long confirmationDateTimeTicks_ = 0L; /** * required sfixed64 ConfirmationDateTimeTicks = 13; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 13; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } public static final int INVOICEAMENDMENTFLAGS_FIELD_NUMBER = 14; - private int invoiceAmendmentFlags_; + private int invoiceAmendmentFlags_ = 0; /** * required int32 InvoiceAmendmentFlags = 14; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * required int32 InvoiceAmendmentFlags = 14; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } - private void initFields() { - invoiceCorrectionRevisionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; - originalInvoiceNumber_ = ""; - originalInvoiceDate_ = ""; - originalInvoiceRevisionNumber_ = ""; - originalInvoiceRevisionDate_ = ""; - originalInvoiceCorrectionNumber_ = ""; - originalInvoiceCorrectionDate_ = ""; - totalInc_ = ""; - totalDec_ = ""; - vatInc_ = ""; - vatDec_ = ""; - currency_ = 0; - confirmationDateTimeTicks_ = 0L; - invoiceAmendmentFlags_ = 0; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5346,128 +6014,274 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, invoiceCorrectionRevisionStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, invoiceCorrectionRevisionStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, originalInvoiceDate_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getOriginalInvoiceRevisionNumberBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, originalInvoiceRevisionNumber_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getOriginalInvoiceRevisionDateBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, originalInvoiceRevisionDate_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getOriginalInvoiceCorrectionNumberBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, originalInvoiceCorrectionNumber_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getOriginalInvoiceCorrectionDateBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, originalInvoiceCorrectionDate_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getTotalIncBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, totalInc_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getTotalDecBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, totalDec_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(10, getVatIncBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, vatInc_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, getVatDecBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, vatDec_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeInt32(12, currency_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeSFixed64(13, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeInt32(14, invoiceAmendmentFlags_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, invoiceCorrectionRevisionStatus_.getNumber()); + .computeEnumSize(1, invoiceCorrectionRevisionStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, originalInvoiceDate_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getOriginalInvoiceRevisionNumberBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, originalInvoiceRevisionNumber_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getOriginalInvoiceRevisionDateBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, originalInvoiceRevisionDate_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getOriginalInvoiceCorrectionNumberBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, originalInvoiceCorrectionNumber_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getOriginalInvoiceCorrectionDateBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, originalInvoiceCorrectionDate_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getTotalIncBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, totalInc_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getTotalDecBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, totalDec_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getVatIncBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, vatInc_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getVatDecBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, vatDec_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, currency_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(13, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, invoiceAmendmentFlags_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata other = (Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata) obj; + + if (hasInvoiceCorrectionRevisionStatus() != other.hasInvoiceCorrectionRevisionStatus()) return false; + if (hasInvoiceCorrectionRevisionStatus()) { + if (invoiceCorrectionRevisionStatus_ != other.invoiceCorrectionRevisionStatus_) return false; + } + if (hasOriginalInvoiceNumber() != other.hasOriginalInvoiceNumber()) return false; + if (hasOriginalInvoiceNumber()) { + if (!getOriginalInvoiceNumber() + .equals(other.getOriginalInvoiceNumber())) return false; + } + if (hasOriginalInvoiceDate() != other.hasOriginalInvoiceDate()) return false; + if (hasOriginalInvoiceDate()) { + if (!getOriginalInvoiceDate() + .equals(other.getOriginalInvoiceDate())) return false; + } + if (hasOriginalInvoiceRevisionNumber() != other.hasOriginalInvoiceRevisionNumber()) return false; + if (hasOriginalInvoiceRevisionNumber()) { + if (!getOriginalInvoiceRevisionNumber() + .equals(other.getOriginalInvoiceRevisionNumber())) return false; + } + if (hasOriginalInvoiceRevisionDate() != other.hasOriginalInvoiceRevisionDate()) return false; + if (hasOriginalInvoiceRevisionDate()) { + if (!getOriginalInvoiceRevisionDate() + .equals(other.getOriginalInvoiceRevisionDate())) return false; + } + if (hasOriginalInvoiceCorrectionNumber() != other.hasOriginalInvoiceCorrectionNumber()) return false; + if (hasOriginalInvoiceCorrectionNumber()) { + if (!getOriginalInvoiceCorrectionNumber() + .equals(other.getOriginalInvoiceCorrectionNumber())) return false; + } + if (hasOriginalInvoiceCorrectionDate() != other.hasOriginalInvoiceCorrectionDate()) return false; + if (hasOriginalInvoiceCorrectionDate()) { + if (!getOriginalInvoiceCorrectionDate() + .equals(other.getOriginalInvoiceCorrectionDate())) return false; + } + if (hasTotalInc() != other.hasTotalInc()) return false; + if (hasTotalInc()) { + if (!getTotalInc() + .equals(other.getTotalInc())) return false; + } + if (hasTotalDec() != other.hasTotalDec()) return false; + if (hasTotalDec()) { + if (!getTotalDec() + .equals(other.getTotalDec())) return false; + } + if (hasVatInc() != other.hasVatInc()) return false; + if (hasVatInc()) { + if (!getVatInc() + .equals(other.getVatInc())) return false; + } + if (hasVatDec() != other.hasVatDec()) return false; + if (hasVatDec()) { + if (!getVatDec() + .equals(other.getVatDec())) return false; + } + if (hasCurrency() != other.hasCurrency()) return false; + if (hasCurrency()) { + if (getCurrency() + != other.getCurrency()) return false; + } + if (hasConfirmationDateTimeTicks() != other.hasConfirmationDateTimeTicks()) return false; + if (hasConfirmationDateTimeTicks()) { + if (getConfirmationDateTimeTicks() + != other.getConfirmationDateTimeTicks()) return false; + } + if (hasInvoiceAmendmentFlags() != other.hasInvoiceAmendmentFlags()) return false; + if (hasInvoiceAmendmentFlags()) { + if (getInvoiceAmendmentFlags() + != other.getInvoiceAmendmentFlags()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInvoiceCorrectionRevisionStatus()) { + hash = (37 * hash) + INVOICECORRECTIONREVISIONSTATUS_FIELD_NUMBER; + hash = (53 * hash) + invoiceCorrectionRevisionStatus_; + } + if (hasOriginalInvoiceNumber()) { + hash = (37 * hash) + ORIGINALINVOICENUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceNumber().hashCode(); + } + if (hasOriginalInvoiceDate()) { + hash = (37 * hash) + ORIGINALINVOICEDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceDate().hashCode(); + } + if (hasOriginalInvoiceRevisionNumber()) { + hash = (37 * hash) + ORIGINALINVOICEREVISIONNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceRevisionNumber().hashCode(); + } + if (hasOriginalInvoiceRevisionDate()) { + hash = (37 * hash) + ORIGINALINVOICEREVISIONDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceRevisionDate().hashCode(); + } + if (hasOriginalInvoiceCorrectionNumber()) { + hash = (37 * hash) + ORIGINALINVOICECORRECTIONNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceCorrectionNumber().hashCode(); + } + if (hasOriginalInvoiceCorrectionDate()) { + hash = (37 * hash) + ORIGINALINVOICECORRECTIONDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceCorrectionDate().hashCode(); + } + if (hasTotalInc()) { + hash = (37 * hash) + TOTALINC_FIELD_NUMBER; + hash = (53 * hash) + getTotalInc().hashCode(); + } + if (hasTotalDec()) { + hash = (37 * hash) + TOTALDEC_FIELD_NUMBER; + hash = (53 * hash) + getTotalDec().hashCode(); + } + if (hasVatInc()) { + hash = (37 * hash) + VATINC_FIELD_NUMBER; + hash = (53 * hash) + getVatInc().hashCode(); + } + if (hasVatDec()) { + hash = (37 * hash) + VATDEC_FIELD_NUMBER; + hash = (53 * hash) + getVatDec().hashCode(); + } + if (hasCurrency()) { + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency(); + } + if (hasConfirmationDateTimeTicks()) { + hash = (37 * hash) + CONFIRMATIONDATETIMETICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConfirmationDateTimeTicks()); + } + if (hasInvoiceAmendmentFlags()) { + hash = (37 * hash) + INVOICEAMENDMENTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceAmendmentFlags(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5491,42 +6305,57 @@ public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.I } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5546,6 +6375,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionRevisionMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionRevisionMetadata_fieldAccessorTable @@ -5555,68 +6385,47 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - invoiceCorrectionRevisionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + invoiceCorrectionRevisionStatus_ = 0; originalInvoiceNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); originalInvoiceDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); originalInvoiceRevisionNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); originalInvoiceRevisionDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); originalInvoiceCorrectionNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); originalInvoiceCorrectionDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); totalInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); totalDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); vatInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); vatDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); currency_ = 0; - bitField0_ = (bitField0_ & ~0x00000800); confirmationDateTimeTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00001000); invoiceAmendmentFlags_ = 0; - bitField0_ = (bitField0_ & ~0x00002000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionRevisionMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata build() { Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -5625,71 +6434,77 @@ public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceC return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata buildPartial() { Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata result = new Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.invoiceCorrectionRevisionStatus_ = invoiceCorrectionRevisionStatus_; to_bitField0_ |= 0x00000001; } - result.invoiceCorrectionRevisionStatus_ = invoiceCorrectionRevisionStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.originalInvoiceNumber_ = originalInvoiceNumber_; to_bitField0_ |= 0x00000002; } - result.originalInvoiceNumber_ = originalInvoiceNumber_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.originalInvoiceDate_ = originalInvoiceDate_; to_bitField0_ |= 0x00000004; } - result.originalInvoiceDate_ = originalInvoiceDate_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.originalInvoiceRevisionNumber_ = originalInvoiceRevisionNumber_; to_bitField0_ |= 0x00000008; } - result.originalInvoiceRevisionNumber_ = originalInvoiceRevisionNumber_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.originalInvoiceRevisionDate_ = originalInvoiceRevisionDate_; to_bitField0_ |= 0x00000010; } - result.originalInvoiceRevisionDate_ = originalInvoiceRevisionDate_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.originalInvoiceCorrectionNumber_ = originalInvoiceCorrectionNumber_; to_bitField0_ |= 0x00000020; } - result.originalInvoiceCorrectionNumber_ = originalInvoiceCorrectionNumber_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.originalInvoiceCorrectionDate_ = originalInvoiceCorrectionDate_; to_bitField0_ |= 0x00000040; } - result.originalInvoiceCorrectionDate_ = originalInvoiceCorrectionDate_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.totalInc_ = totalInc_; to_bitField0_ |= 0x00000080; } - result.totalInc_ = totalInc_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.totalDec_ = totalDec_; to_bitField0_ |= 0x00000100; } - result.totalDec_ = totalDec_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.vatInc_ = vatInc_; to_bitField0_ |= 0x00000200; } - result.vatInc_ = vatInc_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.vatDec_ = vatDec_; to_bitField0_ |= 0x00000400; } - result.vatDec_ = vatDec_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.currency_ = currency_; to_bitField0_ |= 0x00000800; } - result.currency_ = currency_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + if (((from_bitField0_ & 0x00001000) != 0)) { + result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; to_bitField0_ |= 0x00001000; } - result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; to_bitField0_ |= 0x00002000; } - result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata)other); @@ -5705,53 +6520,53 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocum setInvoiceCorrectionRevisionStatus(other.getInvoiceCorrectionRevisionStatus()); } if (other.hasOriginalInvoiceNumber()) { - bitField0_ |= 0x00000002; originalInvoiceNumber_ = other.originalInvoiceNumber_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasOriginalInvoiceDate()) { - bitField0_ |= 0x00000004; originalInvoiceDate_ = other.originalInvoiceDate_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasOriginalInvoiceRevisionNumber()) { - bitField0_ |= 0x00000008; originalInvoiceRevisionNumber_ = other.originalInvoiceRevisionNumber_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasOriginalInvoiceRevisionDate()) { - bitField0_ |= 0x00000010; originalInvoiceRevisionDate_ = other.originalInvoiceRevisionDate_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasOriginalInvoiceCorrectionNumber()) { - bitField0_ |= 0x00000020; originalInvoiceCorrectionNumber_ = other.originalInvoiceCorrectionNumber_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasOriginalInvoiceCorrectionDate()) { - bitField0_ |= 0x00000040; originalInvoiceCorrectionDate_ = other.originalInvoiceCorrectionDate_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasTotalInc()) { - bitField0_ |= 0x00000080; totalInc_ = other.totalInc_; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasTotalDec()) { - bitField0_ |= 0x00000100; totalDec_ = other.totalDec_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasVatInc()) { - bitField0_ |= 0x00000200; vatInc_ = other.vatInc_; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasVatDec()) { - bitField0_ |= 0x00000400; vatDec_ = other.vatDec_; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasCurrency()) { @@ -5764,107 +6579,196 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocum setInvoiceAmendmentFlags(other.getInvoiceAmendmentFlags()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasOriginalInvoiceNumber()) { - return false; } if (!hasOriginalInvoiceDate()) { - return false; } if (!hasOriginalInvoiceCorrectionNumber()) { - return false; } if (!hasOriginalInvoiceCorrectionDate()) { - return false; } if (!hasTotalInc()) { - return false; } if (!hasTotalDec()) { - return false; } if (!hasVatInc()) { - return false; } if (!hasVatDec()) { - return false; } if (!hasCurrency()) { - return false; } if (!hasConfirmationDateTimeTicks()) { - return false; } if (!hasInvoiceAmendmentFlags()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus tmpValue = + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + invoiceCorrectionRevisionStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + originalInvoiceNumber_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + originalInvoiceDate_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + originalInvoiceRevisionNumber_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + originalInvoiceRevisionDate_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + originalInvoiceCorrectionNumber_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + originalInvoiceCorrectionDate_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + totalInc_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + totalDec_ = input.readBytes(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + vatInc_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + vatDec_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: { + currency_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 105: { + confirmationDateTimeTicks_ = input.readSFixed64(); + bitField0_ |= 0x00001000; + break; + } // case 105 + case 112: { + invoiceAmendmentFlags_ = input.readInt32(); + bitField0_ |= 0x00002000; + break; + } // case 112 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus invoiceCorrectionRevisionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; + private int invoiceCorrectionRevisionStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return Whether the invoiceCorrectionRevisionStatus field is set. */ - public boolean hasInvoiceCorrectionRevisionStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasInvoiceCorrectionRevisionStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return The invoiceCorrectionRevisionStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus getInvoiceCorrectionRevisionStatus() { - return invoiceCorrectionRevisionStatus_; + Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus result = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.forNumber(invoiceCorrectionRevisionStatus_); + return result == null ? Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @param value The invoiceCorrectionRevisionStatus to set. + * @return This builder for chaining. */ public Builder setInvoiceCorrectionRevisionStatus(Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - invoiceCorrectionRevisionStatus_ = value; + invoiceCorrectionRevisionStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceStatus InvoiceCorrectionRevisionStatus = 1 [default = UnknownInvoiceStatus]; + * @return This builder for chaining. */ public Builder clearInvoiceCorrectionRevisionStatus() { bitField0_ = (bitField0_ & ~0x00000001); - invoiceCorrectionRevisionStatus_ = Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceStatus.UnknownInvoiceStatus; + invoiceCorrectionRevisionStatus_ = 0; onChanged(); return this; } @@ -5872,12 +6776,14 @@ public Builder clearInvoiceCorrectionRevisionStatus() { private java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 2; + * @return Whether the originalInvoiceNumber field is set. */ public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string OriginalInvoiceNumber = 2; + * @return The originalInvoiceNumber. */ public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; @@ -5895,6 +6801,7 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 2; + * @return The bytes for originalInvoiceNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { @@ -5911,36 +6818,37 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 2; + * @param value The originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string OriginalInvoiceNumber = 2; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceNumber() { - bitField0_ = (bitField0_ & ~0x00000002); originalInvoiceNumber_ = getDefaultInstance().getOriginalInvoiceNumber(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string OriginalInvoiceNumber = 2; + * @param value The bytes for originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5948,12 +6856,14 @@ public Builder setOriginalInvoiceNumberBytes( private java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 3; + * @return Whether the originalInvoiceDate field is set. */ public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string OriginalInvoiceDate = 3; + * @return The originalInvoiceDate. */ public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; @@ -5971,6 +6881,7 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 3; + * @return The bytes for originalInvoiceDate. */ public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { @@ -5987,36 +6898,37 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 3; + * @param value The originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string OriginalInvoiceDate = 3; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceDate() { - bitField0_ = (bitField0_ & ~0x00000004); originalInvoiceDate_ = getDefaultInstance().getOriginalInvoiceDate(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string OriginalInvoiceDate = 3; + * @param value The bytes for originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6024,12 +6936,14 @@ public Builder setOriginalInvoiceDateBytes( private java.lang.Object originalInvoiceRevisionNumber_ = ""; /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return Whether the originalInvoiceRevisionNumber field is set. */ public boolean hasOriginalInvoiceRevisionNumber() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The originalInvoiceRevisionNumber. */ public java.lang.String getOriginalInvoiceRevisionNumber() { java.lang.Object ref = originalInvoiceRevisionNumber_; @@ -6047,6 +6961,7 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return The bytes for originalInvoiceRevisionNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes() { @@ -6063,36 +6978,37 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @param value The originalInvoiceRevisionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionNumber_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceRevisionNumber() { - bitField0_ = (bitField0_ & ~0x00000008); originalInvoiceRevisionNumber_ = getDefaultInstance().getOriginalInvoiceRevisionNumber(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string OriginalInvoiceRevisionNumber = 4; + * @param value The bytes for originalInvoiceRevisionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionNumber_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -6100,12 +7016,14 @@ public Builder setOriginalInvoiceRevisionNumberBytes( private java.lang.Object originalInvoiceRevisionDate_ = ""; /** * optional string OriginalInvoiceRevisionDate = 5; + * @return Whether the originalInvoiceRevisionDate field is set. */ public boolean hasOriginalInvoiceRevisionDate() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The originalInvoiceRevisionDate. */ public java.lang.String getOriginalInvoiceRevisionDate() { java.lang.Object ref = originalInvoiceRevisionDate_; @@ -6123,6 +7041,7 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 5; + * @return The bytes for originalInvoiceRevisionDate. */ public com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes() { @@ -6139,36 +7058,37 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 5; + * @param value The originalInvoiceRevisionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionDate_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string OriginalInvoiceRevisionDate = 5; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceRevisionDate() { - bitField0_ = (bitField0_ & ~0x00000010); originalInvoiceRevisionDate_ = getDefaultInstance().getOriginalInvoiceRevisionDate(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string OriginalInvoiceRevisionDate = 5; + * @param value The bytes for originalInvoiceRevisionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionDate_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -6176,12 +7096,14 @@ public Builder setOriginalInvoiceRevisionDateBytes( private java.lang.Object originalInvoiceCorrectionNumber_ = ""; /** * required string OriginalInvoiceCorrectionNumber = 6; + * @return Whether the originalInvoiceCorrectionNumber field is set. */ public boolean hasOriginalInvoiceCorrectionNumber() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required string OriginalInvoiceCorrectionNumber = 6; + * @return The originalInvoiceCorrectionNumber. */ public java.lang.String getOriginalInvoiceCorrectionNumber() { java.lang.Object ref = originalInvoiceCorrectionNumber_; @@ -6199,6 +7121,7 @@ public java.lang.String getOriginalInvoiceCorrectionNumber() { } /** * required string OriginalInvoiceCorrectionNumber = 6; + * @return The bytes for originalInvoiceCorrectionNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceCorrectionNumberBytes() { @@ -6215,36 +7138,37 @@ public java.lang.String getOriginalInvoiceCorrectionNumber() { } /** * required string OriginalInvoiceCorrectionNumber = 6; + * @param value The originalInvoiceCorrectionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceCorrectionNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } originalInvoiceCorrectionNumber_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * required string OriginalInvoiceCorrectionNumber = 6; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceCorrectionNumber() { - bitField0_ = (bitField0_ & ~0x00000020); originalInvoiceCorrectionNumber_ = getDefaultInstance().getOriginalInvoiceCorrectionNumber(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * required string OriginalInvoiceCorrectionNumber = 6; + * @param value The bytes for originalInvoiceCorrectionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceCorrectionNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } originalInvoiceCorrectionNumber_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6252,12 +7176,14 @@ public Builder setOriginalInvoiceCorrectionNumberBytes( private java.lang.Object originalInvoiceCorrectionDate_ = ""; /** * required string OriginalInvoiceCorrectionDate = 7; + * @return Whether the originalInvoiceCorrectionDate field is set. */ public boolean hasOriginalInvoiceCorrectionDate() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required string OriginalInvoiceCorrectionDate = 7; + * @return The originalInvoiceCorrectionDate. */ public java.lang.String getOriginalInvoiceCorrectionDate() { java.lang.Object ref = originalInvoiceCorrectionDate_; @@ -6275,6 +7201,7 @@ public java.lang.String getOriginalInvoiceCorrectionDate() { } /** * required string OriginalInvoiceCorrectionDate = 7; + * @return The bytes for originalInvoiceCorrectionDate. */ public com.google.protobuf.ByteString getOriginalInvoiceCorrectionDateBytes() { @@ -6291,36 +7218,37 @@ public java.lang.String getOriginalInvoiceCorrectionDate() { } /** * required string OriginalInvoiceCorrectionDate = 7; + * @param value The originalInvoiceCorrectionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceCorrectionDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } originalInvoiceCorrectionDate_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * required string OriginalInvoiceCorrectionDate = 7; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceCorrectionDate() { - bitField0_ = (bitField0_ & ~0x00000040); originalInvoiceCorrectionDate_ = getDefaultInstance().getOriginalInvoiceCorrectionDate(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * required string OriginalInvoiceCorrectionDate = 7; + * @param value The bytes for originalInvoiceCorrectionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceCorrectionDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } originalInvoiceCorrectionDate_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6328,12 +7256,14 @@ public Builder setOriginalInvoiceCorrectionDateBytes( private java.lang.Object totalInc_ = ""; /** * required string TotalInc = 8; + * @return Whether the totalInc field is set. */ public boolean hasTotalInc() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required string TotalInc = 8; + * @return The totalInc. */ public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; @@ -6351,6 +7281,7 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 8; + * @return The bytes for totalInc. */ public com.google.protobuf.ByteString getTotalIncBytes() { @@ -6367,36 +7298,37 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 8; + * @param value The totalInc to set. + * @return This builder for chaining. */ public Builder setTotalInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * required string TotalInc = 8; + * @return This builder for chaining. */ public Builder clearTotalInc() { - bitField0_ = (bitField0_ & ~0x00000080); totalInc_ = getDefaultInstance().getTotalInc(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * required string TotalInc = 8; + * @param value The bytes for totalInc to set. + * @return This builder for chaining. */ public Builder setTotalIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6404,12 +7336,14 @@ public Builder setTotalIncBytes( private java.lang.Object totalDec_ = ""; /** * required string TotalDec = 9; + * @return Whether the totalDec field is set. */ public boolean hasTotalDec() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required string TotalDec = 9; + * @return The totalDec. */ public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; @@ -6427,6 +7361,7 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 9; + * @return The bytes for totalDec. */ public com.google.protobuf.ByteString getTotalDecBytes() { @@ -6443,36 +7378,37 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 9; + * @param value The totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * required string TotalDec = 9; + * @return This builder for chaining. */ public Builder clearTotalDec() { - bitField0_ = (bitField0_ & ~0x00000100); totalDec_ = getDefaultInstance().getTotalDec(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * required string TotalDec = 9; + * @param value The bytes for totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -6480,12 +7416,14 @@ public Builder setTotalDecBytes( private java.lang.Object vatInc_ = ""; /** * required string VatInc = 10; + * @return Whether the vatInc field is set. */ public boolean hasVatInc() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required string VatInc = 10; + * @return The vatInc. */ public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; @@ -6503,6 +7441,7 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 10; + * @return The bytes for vatInc. */ public com.google.protobuf.ByteString getVatIncBytes() { @@ -6519,36 +7458,37 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 10; + * @param value The vatInc to set. + * @return This builder for chaining. */ public Builder setVatInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * required string VatInc = 10; + * @return This builder for chaining. */ public Builder clearVatInc() { - bitField0_ = (bitField0_ & ~0x00000200); vatInc_ = getDefaultInstance().getVatInc(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * required string VatInc = 10; + * @param value The bytes for vatInc to set. + * @return This builder for chaining. */ public Builder setVatIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6556,12 +7496,14 @@ public Builder setVatIncBytes( private java.lang.Object vatDec_ = ""; /** * required string VatDec = 11; + * @return Whether the vatDec field is set. */ public boolean hasVatDec() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required string VatDec = 11; + * @return The vatDec. */ public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; @@ -6579,6 +7521,7 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 11; + * @return The bytes for vatDec. */ public com.google.protobuf.ByteString getVatDecBytes() { @@ -6595,36 +7538,37 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 11; + * @param value The vatDec to set. + * @return This builder for chaining. */ public Builder setVatDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * required string VatDec = 11; + * @return This builder for chaining. */ public Builder clearVatDec() { - bitField0_ = (bitField0_ & ~0x00000400); vatDec_ = getDefaultInstance().getVatDec(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * required string VatDec = 11; + * @param value The bytes for vatDec to set. + * @return This builder for chaining. */ public Builder setVatDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6632,27 +7576,35 @@ public Builder setVatDecBytes( private int currency_ ; /** * required int32 Currency = 12; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * required int32 Currency = 12; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } /** * required int32 Currency = 12; + * @param value The currency to set. + * @return This builder for chaining. */ public Builder setCurrency(int value) { - bitField0_ |= 0x00000800; + currency_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * required int32 Currency = 12; + * @return This builder for chaining. */ public Builder clearCurrency() { bitField0_ = (bitField0_ & ~0x00000800); @@ -6664,27 +7616,35 @@ public Builder clearCurrency() { private long confirmationDateTimeTicks_ ; /** * required sfixed64 ConfirmationDateTimeTicks = 13; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 13; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } /** * required sfixed64 ConfirmationDateTimeTicks = 13; + * @param value The confirmationDateTimeTicks to set. + * @return This builder for chaining. */ public Builder setConfirmationDateTimeTicks(long value) { - bitField0_ |= 0x00001000; + confirmationDateTimeTicks_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } /** * required sfixed64 ConfirmationDateTimeTicks = 13; + * @return This builder for chaining. */ public Builder clearConfirmationDateTimeTicks() { bitField0_ = (bitField0_ & ~0x00001000); @@ -6696,27 +7656,35 @@ public Builder clearConfirmationDateTimeTicks() { private int invoiceAmendmentFlags_ ; /** * required int32 InvoiceAmendmentFlags = 14; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * required int32 InvoiceAmendmentFlags = 14; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } /** * required int32 InvoiceAmendmentFlags = 14; + * @param value The invoiceAmendmentFlags to set. + * @return This builder for chaining. */ public Builder setInvoiceAmendmentFlags(int value) { - bitField0_ |= 0x00002000; + invoiceAmendmentFlags_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } /** * required int32 InvoiceAmendmentFlags = 14; + * @return This builder for chaining. */ public Builder clearInvoiceAmendmentFlags() { bitField0_ = (bitField0_ & ~0x00002000); @@ -6728,32 +7696,72 @@ public Builder clearInvoiceAmendmentFlags() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata) + private static final Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata DEFAULT_INSTANCE; static { - defaultInstance = new InvoiceCorrectionRevisionMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata(); + } + + public static Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvoiceCorrectionRevisionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceDocumentProtos.InvoiceCorrectionRevisionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.InvoiceDocument.InvoiceCorrectionRevisionMetadata) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceRevisionMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceRevisionMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionRevisionMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionRevisionMetadata_fieldAccessorTable; @@ -6761,7 +7769,7 @@ public Builder clearInvoiceAmendmentFlags() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -6774,7 +7782,7 @@ public Builder clearInvoiceAmendmentFlags() { "y\030\004 \002(\005\022!\n\031ConfirmationDateTimeTicks\030\005 \002" + "(\020\022\035\n\025InvoiceAmendmentFlags\030\006 \002(\005\"\265\002\n\027In" + "voiceRevisionMetadata\022n\n\025InvoiceRevision" + - "Status\030\001 \001(\01629.Diadoc.Api.Proto.Document", + "Status\030\001 \001(\01629.Diadoc.Api.Proto.Document" + "s.InvoiceDocument.InvoiceStatus:\024Unknown" + "InvoiceStatus\022\035\n\025OriginalInvoiceNumber\030\002" + " \002(\t\022\033\n\023OriginalInvoiceDate\030\003 \002(\t\022\r\n\005Tot" + @@ -6784,7 +7792,7 @@ public Builder clearInvoiceAmendmentFlags() { "rectionMetadata\022p\n\027InvoiceCorrectionStat" + "us\030\001 \001(\01629.Diadoc.Api.Proto.Documents.In" + "voiceDocument.InvoiceStatus:\024UnknownInvo" + - "iceStatus\022\035\n\025OriginalInvoiceNumber\030\002 \002(\t", + "iceStatus\022\035\n\025OriginalInvoiceNumber\030\002 \002(\t" + "\022\033\n\023OriginalInvoiceDate\030\003 \002(\t\022%\n\035Origina" + "lInvoiceRevisionNumber\030\004 \001(\t\022#\n\033Original" + "InvoiceRevisionDate\030\005 \001(\t\022\020\n\010TotalInc\030\006 " + @@ -6794,7 +7802,7 @@ public Builder clearInvoiceAmendmentFlags() { "ndmentFlags\030\014 \002(\005\"\215\004\n!InvoiceCorrectionR" + "evisionMetadata\022x\n\037InvoiceCorrectionRevi" + "sionStatus\030\001 \001(\01629.Diadoc.Api.Proto.Docu" + - "ments.InvoiceDocument.InvoiceStatus:\024Unk", + "ments.InvoiceDocument.InvoiceStatus:\024Unk" + "nownInvoiceStatus\022\035\n\025OriginalInvoiceNumb" + "er\030\002 \002(\t\022\033\n\023OriginalInvoiceDate\030\003 \002(\t\022%\n" + "\035OriginalInvoiceRevisionNumber\030\004 \001(\t\022#\n\033" + @@ -6804,7 +7812,7 @@ public Builder clearInvoiceAmendmentFlags() { "alInc\030\010 \002(\t\022\020\n\010TotalDec\030\t \002(\t\022\016\n\006VatInc\030" + "\n \002(\t\022\016\n\006VatDec\030\013 \002(\t\022\020\n\010Currency\030\014 \002(\005\022" + "!\n\031ConfirmationDateTimeTicks\030\r \002(\020\022\035\n\025In" + - "voiceAmendmentFlags\030\016 \002(\005*\366\001\n\rInvoiceSta", + "voiceAmendmentFlags\030\016 \002(\005*\366\001\n\rInvoiceSta" + "tus\022\030\n\024UnknownInvoiceStatus\020\000\022$\n Outboun" + "dWaitingForInvoiceReceipt\020\001\022\027\n\023OutboundN" + "otFinished\020\002\022\024\n\020OutboundFinished\020\003\022%\n!Ou" + @@ -6813,18 +7821,10 @@ public Builder clearInvoiceAmendmentFlags() { "NotFinished\020\004\022\023\n\017InboundFinished\020\005B\027B\025In" + "voiceDocumentProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceMetadata_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceMetadata_fieldAccessorTable = new @@ -6849,6 +7849,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_InvoiceDocument_InvoiceCorrectionRevisionMetadata_descriptor, new java.lang.String[] { "InvoiceCorrectionRevisionStatus", "OriginalInvoiceNumber", "OriginalInvoiceDate", "OriginalInvoiceRevisionNumber", "OriginalInvoiceRevisionDate", "OriginalInvoiceCorrectionNumber", "OriginalInvoiceCorrectionDate", "TotalInc", "TotalDec", "VatInc", "VatDec", "Currency", "ConfirmationDateTimeTicks", "InvoiceAmendmentFlags", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Documents/NonformalizedDocument/NonformalizedDocumentProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/NonformalizedDocument/NonformalizedDocumentProtos.java index 529c7bf7..c53f0f8d 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/NonformalizedDocument/NonformalizedDocumentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/NonformalizedDocument/NonformalizedDocumentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/NonformalizedDocument.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents.NonformalizedDocument; public final class NonformalizedDocumentProtos { private NonformalizedDocumentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + NonformalizedDocumentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentStatus} @@ -14,93 +31,102 @@ public static void registerAllExtensions( public enum NonformalizedDocumentStatus implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownNonformalizedDocumentStatus = 0; - * *
      * Reserved state to report to legacy client for new statuses
      * 
+ * + * UnknownNonformalizedDocumentStatus = 0; */ - UnknownNonformalizedDocumentStatus(0, 0), + UnknownNonformalizedDocumentStatus(0), /** * OutboundNoRecipientSignatureRequest = 1; */ - OutboundNoRecipientSignatureRequest(1, 1), + OutboundNoRecipientSignatureRequest(1), /** * OutboundWaitingForRecipientSignature = 2; */ - OutboundWaitingForRecipientSignature(2, 2), + OutboundWaitingForRecipientSignature(2), /** * OutboundWithRecipientSignature = 3; */ - OutboundWithRecipientSignature(3, 3), + OutboundWithRecipientSignature(3), /** * OutboundRecipientSignatureRequestRejected = 4; */ - OutboundRecipientSignatureRequestRejected(4, 4), + OutboundRecipientSignatureRequestRejected(4), /** * OutboundWaitingForSenderSignature = 13; */ - OutboundWaitingForSenderSignature(5, 13), + OutboundWaitingForSenderSignature(13), /** * OutboundInvalidSenderSignature = 14; */ - OutboundInvalidSenderSignature(6, 14), + OutboundInvalidSenderSignature(14), /** * InboundNoRecipientSignatureRequest = 5; */ - InboundNoRecipientSignatureRequest(7, 5), + InboundNoRecipientSignatureRequest(5), /** * InboundWaitingForRecipientSignature = 6; */ - InboundWaitingForRecipientSignature(8, 6), + InboundWaitingForRecipientSignature(6), /** * InboundWithRecipientSignature = 7; */ - InboundWithRecipientSignature(9, 7), + InboundWithRecipientSignature(7), /** * InboundRecipientSignatureRequestRejected = 8; */ - InboundRecipientSignatureRequestRejected(10, 8), + InboundRecipientSignatureRequestRejected(8), /** * InboundInvalidRecipientSignature = 15; */ - InboundInvalidRecipientSignature(11, 15), + InboundInvalidRecipientSignature(15), /** * InternalNoRecipientSignatureRequest = 9; */ - InternalNoRecipientSignatureRequest(12, 9), + InternalNoRecipientSignatureRequest(9), /** * InternalWaitingForRecipientSignature = 10; */ - InternalWaitingForRecipientSignature(13, 10), + InternalWaitingForRecipientSignature(10), /** * InternalWithRecipientSignature = 11; */ - InternalWithRecipientSignature(14, 11), + InternalWithRecipientSignature(11), /** * InternalRecipientSignatureRequestRejected = 12; */ - InternalRecipientSignatureRequestRejected(15, 12), + InternalRecipientSignatureRequestRejected(12), /** * InternalWaitingForSenderSignature = 16; */ - InternalWaitingForSenderSignature(16, 16), + InternalWaitingForSenderSignature(16), /** * InternalInvalidSenderSignature = 17; */ - InternalInvalidSenderSignature(17, 17), + InternalInvalidSenderSignature(17), /** * InternalInvalidRecipientSignature = 18; */ - InternalInvalidRecipientSignature(18, 18), + InternalInvalidRecipientSignature(18), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + NonformalizedDocumentStatus.class.getName()); + } /** - * UnknownNonformalizedDocumentStatus = 0; - * *
      * Reserved state to report to legacy client for new statuses
      * 
+ * + * UnknownNonformalizedDocumentStatus = 0; */ public static final int UnknownNonformalizedDocumentStatus_VALUE = 0; /** @@ -177,9 +203,25 @@ public enum NonformalizedDocumentStatus public static final int InternalInvalidRecipientSignature_VALUE = 18; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static NonformalizedDocumentStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NonformalizedDocumentStatus forNumber(int value) { switch (value) { case 0: return UnknownNonformalizedDocumentStatus; case 1: return OutboundNoRecipientSignatureRequest; @@ -208,17 +250,17 @@ public static NonformalizedDocumentStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + NonformalizedDocumentStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public NonformalizedDocumentStatus findValueByNumber(int number) { - return NonformalizedDocumentStatus.valueOf(number); + return NonformalizedDocumentStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -240,130 +282,73 @@ public static NonformalizedDocumentStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private NonformalizedDocumentStatus(int index, int value) { - this.index = index; + private NonformalizedDocumentStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentStatus) } - public interface NonformalizedDocumentMetadataOrBuilder extends + @java.lang.Deprecated public interface NonformalizedDocumentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentStatus DocumentStatus = 1 [default = UnknownNonformalizedDocumentStatus]; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentStatus DocumentStatus = 1 [default = UnknownNonformalizedDocumentStatus]; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus getDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus(); } /** * Protobuf type {@code Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata} */ - public static final class NonformalizedDocumentMetadata extends + @java.lang.Deprecated public static final class NonformalizedDocumentMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata) NonformalizedDocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + NonformalizedDocumentMetadata.class.getName()); + } // Use NonformalizedDocumentMetadata.newBuilder() to construct. private NonformalizedDocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private NonformalizedDocumentMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final NonformalizedDocumentMetadata defaultInstance; - public static NonformalizedDocumentMetadata getDefaultInstance() { - return defaultInstance; - } - - public NonformalizedDocumentMetadata getDefaultInstanceForType() { - return defaultInstance; + private NonformalizedDocumentMetadata() { + documentStatus_ = 0; + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NonformalizedDocumentMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus value = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 16: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - receiptStatus_ = value; - } - 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.Documents.NonformalizedDocument.NonformalizedDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_NonformalizedDocument_NonformalizedDocumentMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_NonformalizedDocument_NonformalizedDocumentMetadata_fieldAccessorTable @@ -371,57 +356,45 @@ private NonformalizedDocumentMetadata( Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.class, Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public NonformalizedDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NonformalizedDocumentMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentStatus DocumentStatus = 1 [default = UnknownNonformalizedDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentStatus DocumentStatus = 1 [default = UnknownNonformalizedDocumentStatus]; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus result = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus.UnknownNonformalizedDocumentStatus : result; } public static final int RECEIPTSTATUS_FIELD_NUMBER = 2; - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus.UnknownNonformalizedDocumentStatus; - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -431,44 +404,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, receiptStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, receiptStatus_.getNumber()); + .computeEnumSize(2, receiptStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata other = (Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -492,42 +511,57 @@ public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocu } public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -547,6 +581,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_NonformalizedDocument_NonformalizedDocumentMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_NonformalizedDocument_NonformalizedDocumentMetadata_fieldAccessorTable @@ -556,44 +591,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus.UnknownNonformalizedDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = 0; + documentStatus_ = 0; + receiptStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_NonformalizedDocument_NonformalizedDocumentMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata build() { Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -602,23 +628,29 @@ public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentPro return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata buildPartial() { Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata result = new Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000002; } - result.receiptStatus_ = receiptStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata)other); @@ -637,98 +669,152 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.NonformalizedDocument.Nonfor setReceiptStatus(other.getReceiptStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 16: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus.UnknownNonformalizedDocumentStatus; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentStatus DocumentStatus = 1 [default = UnknownNonformalizedDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentStatus DocumentStatus = 1 [default = UnknownNonformalizedDocumentStatus]; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus result = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus.UnknownNonformalizedDocumentStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentStatus DocumentStatus = 1 [default = UnknownNonformalizedDocumentStatus]; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentStatus DocumentStatus = 1 [default = UnknownNonformalizedDocumentStatus]; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentStatus.UnknownNonformalizedDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000002); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + receiptStatus_ = 0; onChanged(); return this; } @@ -736,17 +822,57 @@ public Builder clearReceiptStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata) + private static final Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata DEFAULT_INSTANCE; static { - defaultInstance = new NonformalizedDocumentMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata(); + } + + public static Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NonformalizedDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentProtos.NonformalizedDocumentMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.NonformalizedDocument.NonformalizedDocumentMetadata) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_NonformalizedDocument_NonformalizedDocumentMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_NonformalizedDocument_NonformalizedDocumentMetadata_fieldAccessorTable; @@ -754,61 +880,54 @@ public Builder clearReceiptStatus() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n%Documents/NonformalizedDocument.proto\022" + "0Diadoc.Api.Proto.Documents.Nonformalize" + "dDocument\032\035Documents/ReceiptStatus.proto" + - "\"\203\002\n\035NonformalizedDocumentMetadata\022\211\001\n\016D" + + "\"\207\002\n\035NonformalizedDocumentMetadata\022\211\001\n\016D" + "ocumentStatus\030\001 \001(\0162M.Diadoc.Api.Proto.D" + "ocuments.NonformalizedDocument.Nonformal" + "izedDocumentStatus:\"UnknownNonformalized" + "DocumentStatus\022V\n\rReceiptStatus\030\002 \001(\0162)." + "Diadoc.Api.Proto.Documents.ReceiptStatus" + - ":\024UnknownReceiptStatus*\226\006\n\033Nonformalized", - "DocumentStatus\022&\n\"UnknownNonformalizedDo" + - "cumentStatus\020\000\022\'\n#OutboundNoRecipientSig" + - "natureRequest\020\001\022(\n$OutboundWaitingForRec" + - "ipientSignature\020\002\022\"\n\036OutboundWithRecipie" + - "ntSignature\020\003\022-\n)OutboundRecipientSignat" + - "ureRequestRejected\020\004\022%\n!OutboundWaitingF" + - "orSenderSignature\020\r\022\"\n\036OutboundInvalidSe" + - "nderSignature\020\016\022&\n\"InboundNoRecipientSig" + - "natureRequest\020\005\022\'\n#InboundWaitingForReci" + - "pientSignature\020\006\022!\n\035InboundWithRecipient", - "Signature\020\007\022,\n(InboundRecipientSignature" + - "RequestRejected\020\010\022$\n InboundInvalidRecip" + - "ientSignature\020\017\022\'\n#InternalNoRecipientSi" + - "gnatureRequest\020\t\022(\n$InternalWaitingForRe" + - "cipientSignature\020\n\022\"\n\036InternalWithRecipi" + - "entSignature\020\013\022-\n)InternalRecipientSigna" + - "tureRequestRejected\020\014\022%\n!InternalWaiting" + - "ForSenderSignature\020\020\022\"\n\036InternalInvalidS" + - "enderSignature\020\021\022%\n!InternalInvalidRecip" + - "ientSignature\020\022B\035B\033NonformalizedDocument", - "Protos" + ":\024UnknownReceiptStatus:\002\030\001*\226\006\n\033Nonformal" + + "izedDocumentStatus\022&\n\"UnknownNonformaliz" + + "edDocumentStatus\020\000\022\'\n#OutboundNoRecipien" + + "tSignatureRequest\020\001\022(\n$OutboundWaitingFo" + + "rRecipientSignature\020\002\022\"\n\036OutboundWithRec" + + "ipientSignature\020\003\022-\n)OutboundRecipientSi" + + "gnatureRequestRejected\020\004\022%\n!OutboundWait" + + "ingForSenderSignature\020\r\022\"\n\036OutboundInval" + + "idSenderSignature\020\016\022&\n\"InboundNoRecipien" + + "tSignatureRequest\020\005\022\'\n#InboundWaitingFor" + + "RecipientSignature\020\006\022!\n\035InboundWithRecip" + + "ientSignature\020\007\022,\n(InboundRecipientSigna" + + "tureRequestRejected\020\010\022$\n InboundInvalidR" + + "ecipientSignature\020\017\022\'\n#InternalNoRecipie" + + "ntSignatureRequest\020\t\022(\n$InternalWaitingF" + + "orRecipientSignature\020\n\022\"\n\036InternalWithRe" + + "cipientSignature\020\013\022-\n)InternalRecipientS" + + "ignatureRequestRejected\020\014\022%\n!InternalWai" + + "tingForSenderSignature\020\020\022\"\n\036InternalInva" + + "lidSenderSignature\020\021\022%\n!InternalInvalidR" + + "ecipientSignature\020\022B\035B\033NonformalizedDocu" + + "mentProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Documents.ReceiptStatusProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_NonformalizedDocument_NonformalizedDocumentMetadata_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_NonformalizedDocument_NonformalizedDocumentMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_NonformalizedDocument_NonformalizedDocumentMetadata_descriptor, new java.lang.String[] { "DocumentStatus", "ReceiptStatus", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Documents.ReceiptStatusProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Documents/ReceiptStatusProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/ReceiptStatusProtos.java index c843873f..b8cd6f47 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/ReceiptStatusProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/ReceiptStatusProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/ReceiptStatus.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents; public final class ReceiptStatusProtos { private ReceiptStatusProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ReceiptStatusProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Documents.ReceiptStatus} @@ -14,37 +31,46 @@ public static void registerAllExtensions( public enum ReceiptStatus implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownReceiptStatus = 0; - * *
      * Reserved state to report to legacy client for new statuses
      * 
+ * + * UnknownReceiptStatus = 0; */ - UnknownReceiptStatus(0, 0), + UnknownReceiptStatus(0), /** * ReceiptStatusNone = 1; */ - ReceiptStatusNone(1, 1), + ReceiptStatusNone(1), /** * ReceiptStatusFinished = 2; */ - ReceiptStatusFinished(2, 2), + ReceiptStatusFinished(2), /** * ReceiptStatusHaveToCreateReceipt = 3; */ - ReceiptStatusHaveToCreateReceipt(3, 3), + ReceiptStatusHaveToCreateReceipt(3), /** * ReceiptStatusWaitingForReceipt = 4; */ - ReceiptStatusWaitingForReceipt(4, 4), + ReceiptStatusWaitingForReceipt(4), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ReceiptStatus.class.getName()); + } /** - * UnknownReceiptStatus = 0; - * *
      * Reserved state to report to legacy client for new statuses
      * 
+ * + * UnknownReceiptStatus = 0; */ public static final int UnknownReceiptStatus_VALUE = 0; /** @@ -65,9 +91,25 @@ public enum ReceiptStatus public static final int ReceiptStatusWaitingForReceipt_VALUE = 4; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ReceiptStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ReceiptStatus forNumber(int value) { switch (value) { case 0: return UnknownReceiptStatus; case 1: return ReceiptStatusNone; @@ -82,17 +124,17 @@ public static ReceiptStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + ReceiptStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ReceiptStatus findValueByNumber(int number) { - return ReceiptStatus.valueOf(number); + return ReceiptStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -114,11 +156,9 @@ public static ReceiptStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private ReceiptStatus(int index, int value) { - this.index = index; + private ReceiptStatus(int value) { this.value = value; } @@ -130,7 +170,7 @@ private ReceiptStatus(int index, int value) { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -142,18 +182,11 @@ private ReceiptStatus(int index, int value) { "ptStatusWaitingForReceipt\020\004B\025B\023ReceiptSt" + "atusProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Documents/Types/DocumentTypeDescriptionProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/Types/DocumentTypeDescriptionProtos.java index 07f1870f..1e166a3a 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/Types/DocumentTypeDescriptionProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/Types/DocumentTypeDescriptionProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/Types/DocumentTypeDescription.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents.Types; public final class DocumentTypeDescriptionProtos { private DocumentTypeDescriptionProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentTypeDescriptionProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DetectedDocumentTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.Types.DetectedDocumentType) @@ -14,42 +31,51 @@ public interface DetectedDocumentTypeOrBuilder extends /** * required string TypeNamedId = 1; + * @return Whether the typeNamedId field is set. */ boolean hasTypeNamedId(); /** * required string TypeNamedId = 1; + * @return The typeNamedId. */ java.lang.String getTypeNamedId(); /** * required string TypeNamedId = 1; + * @return The bytes for typeNamedId. */ com.google.protobuf.ByteString getTypeNamedIdBytes(); /** * required string Function = 2; + * @return Whether the function field is set. */ boolean hasFunction(); /** * required string Function = 2; + * @return The function. */ java.lang.String getFunction(); /** * required string Function = 2; + * @return The bytes for function. */ com.google.protobuf.ByteString getFunctionBytes(); /** * required string Version = 3; + * @return Whether the version field is set. */ boolean hasVersion(); /** * required string Version = 3; + * @return The version. */ java.lang.String getVersion(); /** * required string Version = 3; + * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); @@ -61,86 +87,32 @@ public static final class DetectedDocumentType extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Types.DetectedDocumentType) DetectedDocumentTypeOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DetectedDocumentType.class.getName()); + } // Use DetectedDocumentType.newBuilder() to construct. private DetectedDocumentType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DetectedDocumentType(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DetectedDocumentType defaultInstance; - public static DetectedDocumentType getDefaultInstance() { - return defaultInstance; } - - public DetectedDocumentType getDefaultInstanceForType() { - return defaultInstance; + private DetectedDocumentType() { + typeNamedId_ = ""; + function_ = ""; + version_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DetectedDocumentType( - 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; - typeNamedId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - function_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - version_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.internal_static_Diadoc_Api_Proto_Documents_Types_DetectedDocumentType_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.internal_static_Diadoc_Api_Proto_Documents_Types_DetectedDocumentType_fieldAccessorTable @@ -148,33 +120,23 @@ private DetectedDocumentType( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType.class, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DetectedDocumentType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedDocumentType(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TYPENAMEDID_FIELD_NUMBER = 1; - private java.lang.Object typeNamedId_; + @SuppressWarnings("serial") + private volatile java.lang.Object typeNamedId_ = ""; /** * required string TypeNamedId = 1; + * @return Whether the typeNamedId field is set. */ + @java.lang.Override public boolean hasTypeNamedId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string TypeNamedId = 1; + * @return The typeNamedId. */ + @java.lang.Override public java.lang.String getTypeNamedId() { java.lang.Object ref = typeNamedId_; if (ref instanceof java.lang.String) { @@ -191,7 +153,9 @@ public java.lang.String getTypeNamedId() { } /** * required string TypeNamedId = 1; + * @return The bytes for typeNamedId. */ + @java.lang.Override public com.google.protobuf.ByteString getTypeNamedIdBytes() { java.lang.Object ref = typeNamedId_; @@ -207,16 +171,21 @@ public java.lang.String getTypeNamedId() { } public static final int FUNCTION_FIELD_NUMBER = 2; - private java.lang.Object function_; + @SuppressWarnings("serial") + private volatile java.lang.Object function_ = ""; /** * required string Function = 2; + * @return Whether the function field is set. */ + @java.lang.Override public boolean hasFunction() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Function = 2; + * @return The function. */ + @java.lang.Override public java.lang.String getFunction() { java.lang.Object ref = function_; if (ref instanceof java.lang.String) { @@ -233,7 +202,9 @@ public java.lang.String getFunction() { } /** * required string Function = 2; + * @return The bytes for function. */ + @java.lang.Override public com.google.protobuf.ByteString getFunctionBytes() { java.lang.Object ref = function_; @@ -249,16 +220,21 @@ public java.lang.String getFunction() { } public static final int VERSION_FIELD_NUMBER = 3; - private java.lang.Object version_; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * required string Version = 3; + * @return Whether the version field is set. */ + @java.lang.Override public boolean hasVersion() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Version = 3; + * @return The version. */ + @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { @@ -275,7 +251,9 @@ public java.lang.String getVersion() { } /** * required string Version = 3; + * @return The bytes for version. */ + @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -290,12 +268,8 @@ public java.lang.String getVersion() { } } - private void initFields() { - typeNamedId_ = ""; - function_ = ""; - version_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -317,51 +291,105 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTypeNamedIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, typeNamedId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getFunctionBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, function_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVersionBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, version_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTypeNamedIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, typeNamedId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getFunctionBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, function_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVersionBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, version_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType other = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType) obj; + + if (hasTypeNamedId() != other.hasTypeNamedId()) return false; + if (hasTypeNamedId()) { + if (!getTypeNamedId() + .equals(other.getTypeNamedId())) return false; + } + if (hasFunction() != other.hasFunction()) return false; + if (hasFunction()) { + if (!getFunction() + .equals(other.getFunction())) return false; + } + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion() + .equals(other.getVersion())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTypeNamedId()) { + hash = (37 * hash) + TYPENAMEDID_FIELD_NUMBER; + hash = (53 * hash) + getTypeNamedId().hashCode(); + } + if (hasFunction()) { + hash = (37 * hash) + FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getFunction().hashCode(); + } + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -385,42 +413,57 @@ public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.Det } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -440,6 +483,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.internal_static_Diadoc_Api_Proto_Documents_Types_DetectedDocumentType_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.internal_static_Diadoc_Api_Proto_Documents_Types_DetectedDocumentType_fieldAccessorTable @@ -449,46 +493,36 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; typeNamedId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); function_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); version_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.internal_static_Diadoc_Api_Proto_Documents_Types_DetectedDocumentType_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType build() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType result = buildPartial(); if (!result.isInitialized()) { @@ -497,27 +531,33 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDo return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType buildPartial() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType result = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.typeNamedId_ = typeNamedId_; to_bitField0_ |= 0x00000001; } - result.typeNamedId_ = typeNamedId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.function_ = function_; to_bitField0_ |= 0x00000002; } - result.function_ = function_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.version_ = version_; to_bitField0_ |= 0x00000004; } - result.version_ = version_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType) { return mergeFrom((Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType)other); @@ -530,55 +570,83 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType other) { if (other == Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType.getDefaultInstance()) return this; if (other.hasTypeNamedId()) { - bitField0_ |= 0x00000001; typeNamedId_ = other.typeNamedId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFunction()) { - bitField0_ |= 0x00000002; function_ = other.function_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasVersion()) { - bitField0_ |= 0x00000004; version_ = other.version_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTypeNamedId()) { - return false; } if (!hasFunction()) { - return false; } if (!hasVersion()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + typeNamedId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + function_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + version_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -586,12 +654,14 @@ public Builder mergeFrom( private java.lang.Object typeNamedId_ = ""; /** * required string TypeNamedId = 1; + * @return Whether the typeNamedId field is set. */ public boolean hasTypeNamedId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string TypeNamedId = 1; + * @return The typeNamedId. */ public java.lang.String getTypeNamedId() { java.lang.Object ref = typeNamedId_; @@ -609,6 +679,7 @@ public java.lang.String getTypeNamedId() { } /** * required string TypeNamedId = 1; + * @return The bytes for typeNamedId. */ public com.google.protobuf.ByteString getTypeNamedIdBytes() { @@ -625,36 +696,37 @@ public java.lang.String getTypeNamedId() { } /** * required string TypeNamedId = 1; + * @param value The typeNamedId to set. + * @return This builder for chaining. */ public Builder setTypeNamedId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } typeNamedId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string TypeNamedId = 1; + * @return This builder for chaining. */ public Builder clearTypeNamedId() { - bitField0_ = (bitField0_ & ~0x00000001); typeNamedId_ = getDefaultInstance().getTypeNamedId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string TypeNamedId = 1; + * @param value The bytes for typeNamedId to set. + * @return This builder for chaining. */ public Builder setTypeNamedIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } typeNamedId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -662,12 +734,14 @@ public Builder setTypeNamedIdBytes( private java.lang.Object function_ = ""; /** * required string Function = 2; + * @return Whether the function field is set. */ public boolean hasFunction() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Function = 2; + * @return The function. */ public java.lang.String getFunction() { java.lang.Object ref = function_; @@ -685,6 +759,7 @@ public java.lang.String getFunction() { } /** * required string Function = 2; + * @return The bytes for function. */ public com.google.protobuf.ByteString getFunctionBytes() { @@ -701,36 +776,37 @@ public java.lang.String getFunction() { } /** * required string Function = 2; + * @param value The function to set. + * @return This builder for chaining. */ public Builder setFunction( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } function_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string Function = 2; + * @return This builder for chaining. */ public Builder clearFunction() { - bitField0_ = (bitField0_ & ~0x00000002); function_ = getDefaultInstance().getFunction(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string Function = 2; + * @param value The bytes for function to set. + * @return This builder for chaining. */ public Builder setFunctionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } function_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -738,12 +814,14 @@ public Builder setFunctionBytes( private java.lang.Object version_ = ""; /** * required string Version = 3; + * @return Whether the version field is set. */ public boolean hasVersion() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Version = 3; + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -761,6 +839,7 @@ public java.lang.String getVersion() { } /** * required string Version = 3; + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { @@ -777,36 +856,37 @@ public java.lang.String getVersion() { } /** * required string Version = 3; + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } version_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string Version = 3; + * @return This builder for chaining. */ public Builder clearVersion() { - bitField0_ = (bitField0_ & ~0x00000004); version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string Version = 3; + * @param value The bytes for version to set. + * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } version_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -814,12 +894,52 @@ public Builder setVersionBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Types.DetectedDocumentType) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DetectedDocumentType) + private static final Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType DEFAULT_INSTANCE; static { - defaultInstance = new DetectedDocumentType(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType(); + } + + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedDocumentType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DetectedDocumentType) } public interface DetectDocumentTypesResponseOrBuilder extends @@ -857,79 +977,30 @@ public static final class DetectDocumentTypesResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Types.DetectDocumentTypesResponse) DetectDocumentTypesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DetectDocumentTypesResponse.class.getName()); + } // Use DetectDocumentTypesResponse.newBuilder() to construct. private DetectDocumentTypesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DetectDocumentTypesResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DetectDocumentTypesResponse defaultInstance; - public static DetectDocumentTypesResponse getDefaultInstance() { - return defaultInstance; - } - - public DetectDocumentTypesResponse getDefaultInstanceForType() { - return defaultInstance; + private DetectDocumentTypesResponse() { + documentTypes_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DetectDocumentTypesResponse( - 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)) { - documentTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documentTypes_.add(input.readMessage(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType.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)) { - documentTypes_ = java.util.Collections.unmodifiableList(documentTypes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.internal_static_Diadoc_Api_Proto_Documents_Types_DetectDocumentTypesResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.internal_static_Diadoc_Api_Proto_Documents_Types_DetectDocumentTypesResponse_fieldAccessorTable @@ -937,32 +1008,20 @@ private DetectDocumentTypesResponse( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse.class, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DetectDocumentTypesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectDocumentTypesResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int DOCUMENTTYPES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documentTypes_; /** * repeated .Diadoc.Api.Proto.Documents.Types.DetectedDocumentType DocumentTypes = 1; */ + @java.lang.Override public java.util.List getDocumentTypesList() { return documentTypes_; } /** * repeated .Diadoc.Api.Proto.Documents.Types.DetectedDocumentType DocumentTypes = 1; */ + @java.lang.Override public java.util.List getDocumentTypesOrBuilderList() { return documentTypes_; @@ -970,27 +1029,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Documents.Types.DetectedDocumentType DocumentTypes = 1; */ + @java.lang.Override public int getDocumentTypesCount() { return documentTypes_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DetectedDocumentType DocumentTypes = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType getDocumentTypes(int index) { return documentTypes_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DetectedDocumentType DocumentTypes = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentTypeOrBuilder getDocumentTypesOrBuilder( int index) { return documentTypes_.get(index); } - private void initFields() { - documentTypes_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1006,18 +1066,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < documentTypes_.size(); i++) { output.writeMessage(1, documentTypes_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1026,17 +1086,53 @@ public int getSerializedSize() { .computeMessageSize(1, documentTypes_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse other = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse) obj; + + if (!getDocumentTypesList() + .equals(other.getDocumentTypesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentTypesCount() > 0) { + hash = (37 * hash) + DOCUMENTTYPES_FIELD_NUMBER; + hash = (53 * hash) + getDocumentTypesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1060,42 +1156,57 @@ public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.Det } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1115,6 +1226,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.internal_static_Diadoc_Api_Proto_Documents_Types_DetectDocumentTypesResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.internal_static_Diadoc_Api_Proto_Documents_Types_DetectDocumentTypesResponse_fieldAccessorTable @@ -1124,47 +1236,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentTypesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (documentTypesBuilder_ == null) { documentTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + documentTypes_ = null; documentTypesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.internal_static_Diadoc_Api_Proto_Documents_Types_DetectDocumentTypesResponse_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse build() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse result = buildPartial(); if (!result.isInitialized()) { @@ -1173,11 +1278,18 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocu return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse buildPartial() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse result = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse result) { if (documentTypesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { documentTypes_ = java.util.Collections.unmodifiableList(documentTypes_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1185,10 +1297,13 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocu } else { result.documentTypes_ = documentTypesBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse) { return mergeFrom((Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse)other); @@ -1227,34 +1342,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptio } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getDocumentTypesCount(); i++) { if (!getDocumentTypes(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType m = + input.readMessage( + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType.parser(), + extensionRegistry); + if (documentTypesBuilder_ == null) { + ensureDocumentTypesIsMutable(); + documentTypes_.add(m); + } else { + documentTypesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1262,7 +1405,7 @@ public Builder mergeFrom( private java.util.List documentTypes_ = java.util.Collections.emptyList(); private void ensureDocumentTypesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { documentTypes_ = new java.util.ArrayList(documentTypes_); bitField0_ |= 0x00000001; } @@ -1491,7 +1634,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDo documentTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentType.Builder, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDocumentTypeOrBuilder>( documentTypes_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documentTypes_ = null; @@ -1502,22 +1645,62 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDo // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Types.DetectDocumentTypesResponse) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DetectDocumentTypesResponse) + private static final Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse DEFAULT_INSTANCE; static { - defaultInstance = new DetectDocumentTypesResponse(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse(); + } + + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectDocumentTypesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectDocumentTypesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DetectDocumentTypesResponse) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Types_DetectedDocumentType_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Types_DetectedDocumentType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Types_DetectDocumentTypesResponse_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Types_DetectDocumentTypesResponse_fieldAccessorTable; @@ -1525,7 +1708,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDo getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1539,19 +1722,11 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionProtos.DetectedDo "es.DetectedDocumentTypeB\037B\035DocumentTypeD" + "escriptionProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Invoicing.Signers.ExtendedSignerProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_Types_DetectedDocumentType_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_Types_DetectedDocumentType_fieldAccessorTable = new @@ -1564,6 +1739,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_Types_DetectDocumentTypesResponse_descriptor, new java.lang.String[] { "DocumentTypes", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Invoicing.Signers.ExtendedSignerProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Documents/Types/DocumentTypeDescriptionV2Protos.java b/src/main/java/Diadoc/Api/Proto/Documents/Types/DocumentTypeDescriptionV2Protos.java index 7d14d158..d98ed21f 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/Types/DocumentTypeDescriptionV2Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/Types/DocumentTypeDescriptionV2Protos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/Types/DocumentTypeDescriptionV2.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents.Types; public final class DocumentTypeDescriptionV2Protos { private DocumentTypeDescriptionV2Protos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentTypeDescriptionV2Protos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DocumentTypeDescriptionV2OrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2) @@ -14,51 +31,63 @@ public interface DocumentTypeDescriptionV2OrBuilder extends /** * required string Name = 1; + * @return Whether the name field is set. */ boolean hasName(); /** * required string Name = 1; + * @return The name. */ java.lang.String getName(); /** * required string Name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * required string Title = 2; + * @return Whether the title field is set. */ boolean hasTitle(); /** * required string Title = 2; + * @return The title. */ java.lang.String getTitle(); /** * required string Title = 2; + * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); /** * repeated int32 SupportedDocflows = 3; + * @return A list containing the supportedDocflows. */ java.util.List getSupportedDocflowsList(); /** * repeated int32 SupportedDocflows = 3; + * @return The count of supportedDocflows. */ int getSupportedDocflowsCount(); /** * repeated int32 SupportedDocflows = 3; + * @param index The index of the element to return. + * @return The supportedDocflows at the given index. */ int getSupportedDocflows(int index); /** * required bool RequiresFnsRegistration = 4; + * @return Whether the requiresFnsRegistration field is set. */ boolean hasRequiresFnsRegistration(); /** * required bool RequiresFnsRegistration = 4; + * @return The requiresFnsRegistration. */ boolean getRequiresFnsRegistration(); @@ -93,120 +122,33 @@ public static final class DocumentTypeDescriptionV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2) DocumentTypeDescriptionV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentTypeDescriptionV2.class.getName()); + } // Use DocumentTypeDescriptionV2.newBuilder() to construct. private DocumentTypeDescriptionV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentTypeDescriptionV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentTypeDescriptionV2 defaultInstance; - public static DocumentTypeDescriptionV2 getDefaultInstance() { - return defaultInstance; } - - public DocumentTypeDescriptionV2 getDefaultInstanceForType() { - return defaultInstance; + private DocumentTypeDescriptionV2() { + name_ = ""; + title_ = ""; + supportedDocflows_ = emptyIntList(); + functions_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentTypeDescriptionV2( - 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; - name_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - title_ = bs; - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - supportedDocflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - supportedDocflows_.add(input.readInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { - supportedDocflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - supportedDocflows_.add(input.readInt32()); - } - input.popLimit(limit); - break; - } - case 32: { - bitField0_ |= 0x00000004; - requiresFnsRegistration_ = input.readBool(); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - functions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - functions_.add(input.readMessage(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2.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_ & 0x00000004) == 0x00000004)) { - supportedDocflows_ = java.util.Collections.unmodifiableList(supportedDocflows_); - } - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - functions_ = java.util.Collections.unmodifiableList(functions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTypeDescriptionV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTypeDescriptionV2_fieldAccessorTable @@ -214,33 +156,23 @@ private DocumentTypeDescriptionV2( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2.class, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentTypeDescriptionV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentTypeDescriptionV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * required string Name = 1; + * @return Whether the name field is set. */ + @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -257,7 +189,9 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -273,16 +207,21 @@ public java.lang.String getName() { } public static final int TITLE_FIELD_NUMBER = 2; - private java.lang.Object title_; + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; /** * required string Title = 2; + * @return Whether the title field is set. */ + @java.lang.Override public boolean hasTitle() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Title = 2; + * @return The title. */ + @java.lang.Override public java.lang.String getTitle() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { @@ -299,7 +238,9 @@ public java.lang.String getTitle() { } /** * required string Title = 2; + * @return The bytes for title. */ + @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; @@ -315,53 +256,67 @@ public java.lang.String getTitle() { } public static final int SUPPORTEDDOCFLOWS_FIELD_NUMBER = 3; - private java.util.List supportedDocflows_; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList supportedDocflows_ = + emptyIntList(); /** * repeated int32 SupportedDocflows = 3; + * @return A list containing the supportedDocflows. */ + @java.lang.Override public java.util.List getSupportedDocflowsList() { return supportedDocflows_; } /** * repeated int32 SupportedDocflows = 3; + * @return The count of supportedDocflows. */ public int getSupportedDocflowsCount() { return supportedDocflows_.size(); } /** * repeated int32 SupportedDocflows = 3; + * @param index The index of the element to return. + * @return The supportedDocflows at the given index. */ public int getSupportedDocflows(int index) { - return supportedDocflows_.get(index); + return supportedDocflows_.getInt(index); } public static final int REQUIRESFNSREGISTRATION_FIELD_NUMBER = 4; - private boolean requiresFnsRegistration_; + private boolean requiresFnsRegistration_ = false; /** * required bool RequiresFnsRegistration = 4; + * @return Whether the requiresFnsRegistration field is set. */ + @java.lang.Override public boolean hasRequiresFnsRegistration() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required bool RequiresFnsRegistration = 4; + * @return The requiresFnsRegistration. */ + @java.lang.Override public boolean getRequiresFnsRegistration() { return requiresFnsRegistration_; } public static final int FUNCTIONS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List functions_; /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentFunctionV2 Functions = 9; */ + @java.lang.Override public java.util.List getFunctionsList() { return functions_; } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentFunctionV2 Functions = 9; */ + @java.lang.Override public java.util.List getFunctionsOrBuilderList() { return functions_; @@ -369,31 +324,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Documents.Types.DocumentFunctionV2 Functions = 9; */ + @java.lang.Override public int getFunctionsCount() { return functions_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentFunctionV2 Functions = 9; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 getFunctions(int index) { return functions_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentFunctionV2 Functions = 9; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2OrBuilder getFunctionsOrBuilder( int index) { return functions_.get(index); } - private void initFields() { - name_ = ""; - title_ = ""; - supportedDocflows_ = java.util.Collections.emptyList(); - requiresFnsRegistration_ = false; - functions_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -421,19 +373,19 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTitleBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); } for (int i = 0; i < supportedDocflows_.size(); i++) { - output.writeInt32(3, supportedDocflows_.get(i)); + output.writeInt32(3, supportedDocflows_.getInt(i)); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(4, requiresFnsRegistration_); } for (int i = 0; i < functions_.size(); i++) { @@ -442,30 +394,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTitleBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); } { int dataSize = 0; for (int i = 0; i < supportedDocflows_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(supportedDocflows_.get(i)); + .computeInt32SizeNoTag(supportedDocflows_.getInt(i)); } size += dataSize; size += 1 * getSupportedDocflowsList().size(); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, requiresFnsRegistration_); } @@ -474,17 +424,87 @@ public int getSerializedSize() { .computeMessageSize(9, functions_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 other = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle() + .equals(other.getTitle())) return false; + } + if (!getSupportedDocflowsList() + .equals(other.getSupportedDocflowsList())) return false; + if (hasRequiresFnsRegistration() != other.hasRequiresFnsRegistration()) return false; + if (hasRequiresFnsRegistration()) { + if (getRequiresFnsRegistration() + != other.getRequiresFnsRegistration()) return false; + } + if (!getFunctionsList() + .equals(other.getFunctionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (getSupportedDocflowsCount() > 0) { + hash = (37 * hash) + SUPPORTEDDOCFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSupportedDocflowsList().hashCode(); + } + if (hasRequiresFnsRegistration()) { + hash = (37 * hash) + REQUIRESFNSREGISTRATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequiresFnsRegistration()); + } + if (getFunctionsCount() > 0) { + hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER; + hash = (53 * hash) + getFunctionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -508,42 +528,57 @@ public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.D } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -563,6 +598,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTypeDescriptionV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTypeDescriptionV2_fieldAccessorTable @@ -572,55 +608,44 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getFunctionsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); title_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - supportedDocflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + supportedDocflows_ = emptyIntList(); requiresFnsRegistration_ = false; - bitField0_ = (bitField0_ & ~0x00000008); if (functionsBuilder_ == null) { functions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + functions_ = null; functionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTypeDescriptionV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 build() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 result = buildPartial(); if (!result.isInitialized()) { @@ -629,41 +654,50 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 buildPartial() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 result = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 result) { + if (functionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + functions_ = java.util.Collections.unmodifiableList(functions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.functions_ = functions_; + } else { + result.functions_ = functionsBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; to_bitField0_ |= 0x00000001; } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; to_bitField0_ |= 0x00000002; } - result.title_ = title_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - supportedDocflows_ = java.util.Collections.unmodifiableList(supportedDocflows_); - bitField0_ = (bitField0_ & ~0x00000004); + if (((from_bitField0_ & 0x00000004) != 0)) { + supportedDocflows_.makeImmutable(); + result.supportedDocflows_ = supportedDocflows_; } - result.supportedDocflows_ = supportedDocflows_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requiresFnsRegistration_ = requiresFnsRegistration_; to_bitField0_ |= 0x00000004; } - result.requiresFnsRegistration_ = requiresFnsRegistration_; - if (functionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - functions_ = java.util.Collections.unmodifiableList(functions_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.functions_ = functions_; - } else { - result.functions_ = functionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2) { return mergeFrom((Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2)other); @@ -676,19 +710,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 other) { if (other == Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTitle()) { - bitField0_ |= 0x00000002; title_ = other.title_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.supportedDocflows_.isEmpty()) { if (supportedDocflows_.isEmpty()) { supportedDocflows_ = other.supportedDocflows_; - bitField0_ = (bitField0_ & ~0x00000004); + supportedDocflows_.makeImmutable(); + bitField0_ |= 0x00000004; } else { ensureSupportedDocflowsIsMutable(); supportedDocflows_.addAll(other.supportedDocflows_); @@ -725,46 +760,102 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptio } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasName()) { - return false; } if (!hasTitle()) { - return false; } if (!hasRequiresFnsRegistration()) { - return false; } for (int i = 0; i < getFunctionsCount(); i++) { if (!getFunctions(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + title_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + int v = input.readInt32(); + ensureSupportedDocflowsIsMutable(); + supportedDocflows_.addInt(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSupportedDocflowsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + supportedDocflows_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 26 + case 32: { + requiresFnsRegistration_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 74: { + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 m = + input.readMessage( + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2.parser(), + extensionRegistry); + if (functionsBuilder_ == null) { + ensureFunctionsIsMutable(); + functions_.add(m); + } else { + functionsBuilder_.addMessage(m); + } + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -772,12 +863,14 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** * required string Name = 1; + * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -795,6 +888,7 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -811,36 +905,37 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Name = 1; + * @return This builder for chaining. */ public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -848,12 +943,14 @@ public Builder setNameBytes( private java.lang.Object title_ = ""; /** * required string Title = 2; + * @return Whether the title field is set. */ public boolean hasTitle() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Title = 2; + * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; @@ -871,6 +968,7 @@ public java.lang.String getTitle() { } /** * required string Title = 2; + * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { @@ -887,101 +985,120 @@ public java.lang.String getTitle() { } /** * required string Title = 2; + * @param value The title to set. + * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } title_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string Title = 2; + * @return This builder for chaining. */ public Builder clearTitle() { - bitField0_ = (bitField0_ & ~0x00000002); title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string Title = 2; + * @param value The bytes for title to set. + * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } title_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - private java.util.List supportedDocflows_ = java.util.Collections.emptyList(); + private com.google.protobuf.Internal.IntList supportedDocflows_ = emptyIntList(); private void ensureSupportedDocflowsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - supportedDocflows_ = new java.util.ArrayList(supportedDocflows_); - bitField0_ |= 0x00000004; - } + if (!supportedDocflows_.isModifiable()) { + supportedDocflows_ = makeMutableCopy(supportedDocflows_); + } + bitField0_ |= 0x00000004; } /** * repeated int32 SupportedDocflows = 3; + * @return A list containing the supportedDocflows. */ public java.util.List getSupportedDocflowsList() { - return java.util.Collections.unmodifiableList(supportedDocflows_); + supportedDocflows_.makeImmutable(); + return supportedDocflows_; } /** * repeated int32 SupportedDocflows = 3; + * @return The count of supportedDocflows. */ public int getSupportedDocflowsCount() { return supportedDocflows_.size(); } /** * repeated int32 SupportedDocflows = 3; + * @param index The index of the element to return. + * @return The supportedDocflows at the given index. */ public int getSupportedDocflows(int index) { - return supportedDocflows_.get(index); + return supportedDocflows_.getInt(index); } /** * repeated int32 SupportedDocflows = 3; + * @param index The index to set the value at. + * @param value The supportedDocflows to set. + * @return This builder for chaining. */ public Builder setSupportedDocflows( int index, int value) { + ensureSupportedDocflowsIsMutable(); - supportedDocflows_.set(index, value); + supportedDocflows_.setInt(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated int32 SupportedDocflows = 3; + * @param value The supportedDocflows to add. + * @return This builder for chaining. */ public Builder addSupportedDocflows(int value) { + ensureSupportedDocflowsIsMutable(); - supportedDocflows_.add(value); + supportedDocflows_.addInt(value); + bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated int32 SupportedDocflows = 3; + * @param values The supportedDocflows to add. + * @return This builder for chaining. */ public Builder addAllSupportedDocflows( java.lang.Iterable values) { ensureSupportedDocflowsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, supportedDocflows_); + bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated int32 SupportedDocflows = 3; + * @return This builder for chaining. */ public Builder clearSupportedDocflows() { - supportedDocflows_ = java.util.Collections.emptyList(); + supportedDocflows_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; @@ -990,27 +1107,35 @@ public Builder clearSupportedDocflows() { private boolean requiresFnsRegistration_ ; /** * required bool RequiresFnsRegistration = 4; + * @return Whether the requiresFnsRegistration field is set. */ + @java.lang.Override public boolean hasRequiresFnsRegistration() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required bool RequiresFnsRegistration = 4; + * @return The requiresFnsRegistration. */ + @java.lang.Override public boolean getRequiresFnsRegistration() { return requiresFnsRegistration_; } /** * required bool RequiresFnsRegistration = 4; + * @param value The requiresFnsRegistration to set. + * @return This builder for chaining. */ public Builder setRequiresFnsRegistration(boolean value) { - bitField0_ |= 0x00000008; + requiresFnsRegistration_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required bool RequiresFnsRegistration = 4; + * @return This builder for chaining. */ public Builder clearRequiresFnsRegistration() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1022,7 +1147,7 @@ public Builder clearRequiresFnsRegistration() { private java.util.List functions_ = java.util.Collections.emptyList(); private void ensureFunctionsIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { + if (!((bitField0_ & 0x00000010) != 0)) { functions_ = new java.util.ArrayList(functions_); bitField0_ |= 0x00000010; } @@ -1251,7 +1376,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2.Builder, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2OrBuilder>( functions_, - ((bitField0_ & 0x00000010) == 0x00000010), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); functions_ = null; @@ -1262,12 +1387,52 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2) + private static final Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 DEFAULT_INSTANCE; static { - defaultInstance = new DocumentTypeDescriptionV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2(); + } + + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTypeDescriptionV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2) } public interface GetDocumentTypesResponseV2OrBuilder extends @@ -1305,79 +1470,30 @@ public static final class GetDocumentTypesResponseV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Types.GetDocumentTypesResponseV2) GetDocumentTypesResponseV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + GetDocumentTypesResponseV2.class.getName()); + } // Use GetDocumentTypesResponseV2.newBuilder() to construct. private GetDocumentTypesResponseV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private GetDocumentTypesResponseV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetDocumentTypesResponseV2 defaultInstance; - public static GetDocumentTypesResponseV2 getDefaultInstance() { - return defaultInstance; - } - - public GetDocumentTypesResponseV2 getDefaultInstanceForType() { - return defaultInstance; + private GetDocumentTypesResponseV2() { + documentTypes_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDocumentTypesResponseV2( - 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)) { - documentTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documentTypes_.add(input.readMessage(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2.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)) { - documentTypes_ = java.util.Collections.unmodifiableList(documentTypes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_GetDocumentTypesResponseV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_GetDocumentTypesResponseV2_fieldAccessorTable @@ -1385,32 +1501,20 @@ private GetDocumentTypesResponseV2( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2.class, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetDocumentTypesResponseV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocumentTypesResponseV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int DOCUMENTTYPES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documentTypes_; /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2 DocumentTypes = 1; */ + @java.lang.Override public java.util.List getDocumentTypesList() { return documentTypes_; } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2 DocumentTypes = 1; */ + @java.lang.Override public java.util.List getDocumentTypesOrBuilderList() { return documentTypes_; @@ -1418,27 +1522,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2 DocumentTypes = 1; */ + @java.lang.Override public int getDocumentTypesCount() { return documentTypes_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2 DocumentTypes = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 getDocumentTypes(int index) { return documentTypes_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2 DocumentTypes = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2OrBuilder getDocumentTypesOrBuilder( int index) { return documentTypes_.get(index); } - private void initFields() { - documentTypes_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1454,18 +1559,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < documentTypes_.size(); i++) { output.writeMessage(1, documentTypes_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1474,17 +1579,53 @@ public int getSerializedSize() { .computeMessageSize(1, documentTypes_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 other = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2) obj; + + if (!getDocumentTypesList() + .equals(other.getDocumentTypesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentTypesCount() > 0) { + hash = (37 * hash) + DOCUMENTTYPES_FIELD_NUMBER; + hash = (53 * hash) + getDocumentTypesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1508,42 +1649,57 @@ public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.G } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1563,6 +1719,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_GetDocumentTypesResponseV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_GetDocumentTypesResponseV2_fieldAccessorTable @@ -1572,47 +1729,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDocumentTypesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (documentTypesBuilder_ == null) { documentTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + documentTypes_ = null; documentTypesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_GetDocumentTypesResponseV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 build() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 result = buildPartial(); if (!result.isInitialized()) { @@ -1621,11 +1771,18 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocum return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 buildPartial() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 result = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 result) { if (documentTypesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { documentTypes_ = java.util.Collections.unmodifiableList(documentTypes_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1633,10 +1790,13 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocum } else { result.documentTypes_ = documentTypesBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2) { return mergeFrom((Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2)other); @@ -1675,34 +1835,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptio } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getDocumentTypesCount(); i++) { if (!getDocumentTypes(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2 m = + input.readMessage( + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2.parser(), + extensionRegistry); + if (documentTypesBuilder_ == null) { + ensureDocumentTypesIsMutable(); + documentTypes_.add(m); + } else { + documentTypesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1710,7 +1898,7 @@ public Builder mergeFrom( private java.util.List documentTypes_ = java.util.Collections.emptyList(); private void ensureDocumentTypesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { documentTypes_ = new java.util.ArrayList(documentTypes_); bitField0_ |= 0x00000001; } @@ -1939,7 +2127,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document documentTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2.Builder, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTypeDescriptionV2OrBuilder>( documentTypes_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documentTypes_ = null; @@ -1950,12 +2138,52 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Types.GetDocumentTypesResponseV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.GetDocumentTypesResponseV2) + private static final Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 DEFAULT_INSTANCE; static { - defaultInstance = new GetDocumentTypesResponseV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2(); + } + + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocumentTypesResponseV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.GetDocumentTypesResponseV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.GetDocumentTypesResponseV2) } public interface DocumentFunctionV2OrBuilder extends @@ -1964,14 +2192,17 @@ public interface DocumentFunctionV2OrBuilder extends /** * required string Name = 1; + * @return Whether the name field is set. */ boolean hasName(); /** * required string Name = 1; + * @return The name. */ java.lang.String getName(); /** * required string Name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -2007,85 +2238,31 @@ public static final class DocumentFunctionV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Types.DocumentFunctionV2) DocumentFunctionV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentFunctionV2.class.getName()); + } // Use DocumentFunctionV2.newBuilder() to construct. private DocumentFunctionV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentFunctionV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentFunctionV2 defaultInstance; - public static DocumentFunctionV2 getDefaultInstance() { - return defaultInstance; } - - public DocumentFunctionV2 getDefaultInstanceForType() { - return defaultInstance; + private DocumentFunctionV2() { + name_ = ""; + versions_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentFunctionV2( - 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; - name_ = bs; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - versions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - versions_.add(input.readMessage(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2.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_ & 0x00000002) == 0x00000002)) { - versions_ = java.util.Collections.unmodifiableList(versions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentFunctionV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentFunctionV2_fieldAccessorTable @@ -2093,33 +2270,23 @@ private DocumentFunctionV2( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2.class, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentFunctionV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentFunctionV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * required string Name = 1; + * @return Whether the name field is set. */ + @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -2136,7 +2303,9 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -2152,16 +2321,19 @@ public java.lang.String getName() { } public static final int VERSIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List versions_; /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentVersionV2 Versions = 2; */ + @java.lang.Override public java.util.List getVersionsList() { return versions_; } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentVersionV2 Versions = 2; */ + @java.lang.Override public java.util.List getVersionsOrBuilderList() { return versions_; @@ -2169,28 +2341,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Documents.Types.DocumentVersionV2 Versions = 2; */ + @java.lang.Override public int getVersionsCount() { return versions_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentVersionV2 Versions = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 getVersions(int index) { return versions_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentVersionV2 Versions = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2OrBuilder getVersionsOrBuilder( int index) { return versions_.get(index); } - private void initFields() { - name_ = ""; - versions_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2210,11 +2382,11 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } for (int i = 0; i < versions_.size(); i++) { output.writeMessage(2, versions_.get(i)); @@ -2222,32 +2394,76 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } for (int i = 0; i < versions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, versions_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 other = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (!getVersionsList() + .equals(other.getVersionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (getVersionsCount() > 0) { + hash = (37 * hash) + VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getVersionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2271,42 +2487,57 @@ public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.D } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2326,6 +2557,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentFunctionV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentFunctionV2_fieldAccessorTable @@ -2335,49 +2567,41 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getVersionsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); if (versionsBuilder_ == null) { versions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + versions_ = null; versionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentFunctionV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 build() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 result = buildPartial(); if (!result.isInitialized()) { @@ -2386,16 +2610,18 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 buildPartial() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 result = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 result) { if (versionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { versions_ = java.util.Collections.unmodifiableList(versions_); bitField0_ = (bitField0_ & ~0x00000002); } @@ -2403,11 +2629,19 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document } else { result.versions_ = versionsBuilder_.build(); } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2) { return mergeFrom((Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2)other); @@ -2420,8 +2654,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 other) { if (other == Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (versionsBuilder_ == null) { @@ -2451,38 +2685,70 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptio } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasName()) { - return false; } for (int i = 0; i < getVersionsCount(); i++) { if (!getVersions(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 m = + input.readMessage( + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2.parser(), + extensionRegistry); + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.add(m); + } else { + versionsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2490,12 +2756,14 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** * required string Name = 1; + * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -2513,6 +2781,7 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -2529,36 +2798,37 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Name = 1; + * @return This builder for chaining. */ public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2566,7 +2836,7 @@ public Builder setNameBytes( private java.util.List versions_ = java.util.Collections.emptyList(); private void ensureVersionsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { versions_ = new java.util.ArrayList(versions_); bitField0_ |= 0x00000002; } @@ -2795,7 +3065,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2.Builder, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2OrBuilder>( versions_, - ((bitField0_ & 0x00000002) == 0x00000002), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); versions_ = null; @@ -2806,12 +3076,52 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Types.DocumentFunctionV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentFunctionV2) + private static final Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 DEFAULT_INSTANCE; static { - defaultInstance = new DocumentFunctionV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2(); + } + + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentFunctionV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentFunctionV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentFunctionV2) } public interface DocumentVersionV2OrBuilder extends @@ -2820,51 +3130,62 @@ public interface DocumentVersionV2OrBuilder extends /** * required string Version = 1; + * @return Whether the version field is set. */ boolean hasVersion(); /** * required string Version = 1; + * @return The version. */ java.lang.String getVersion(); /** * required string Version = 1; + * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * required bool SupportsContentPatching = 2; + * @return Whether the supportsContentPatching field is set. */ boolean hasSupportsContentPatching(); /** * required bool SupportsContentPatching = 2; + * @return The supportsContentPatching. */ boolean getSupportsContentPatching(); /** * required bool SupportsEncrypting = 3; + * @return Whether the supportsEncrypting field is set. */ boolean hasSupportsEncrypting(); /** * required bool SupportsEncrypting = 3; + * @return The supportsEncrypting. */ boolean getSupportsEncrypting(); /** * required bool SupportsPredefinedRecipientTitle = 7; + * @return Whether the supportsPredefinedRecipientTitle field is set. */ boolean hasSupportsPredefinedRecipientTitle(); /** * required bool SupportsPredefinedRecipientTitle = 7; + * @return The supportsPredefinedRecipientTitle. */ boolean getSupportsPredefinedRecipientTitle(); /** * required bool SupportsAmendmentRequest = 8; + * @return Whether the supportsAmendmentRequest field is set. */ boolean hasSupportsAmendmentRequest(); /** * required bool SupportsAmendmentRequest = 8; + * @return The supportsAmendmentRequest. */ boolean getSupportsAmendmentRequest(); @@ -2894,10 +3215,12 @@ Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 /** * required bool IsActual = 5; + * @return Whether the isActual field is set. */ boolean hasIsActual(); /** * required bool IsActual = 5; + * @return The isActual. */ boolean getIsActual(); @@ -2932,121 +3255,32 @@ public static final class DocumentVersionV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Types.DocumentVersionV2) DocumentVersionV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentVersionV2.class.getName()); + } // Use DocumentVersionV2.newBuilder() to construct. private DocumentVersionV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentVersionV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentVersionV2 defaultInstance; - public static DocumentVersionV2 getDefaultInstance() { - return defaultInstance; } - - public DocumentVersionV2 getDefaultInstanceForType() { - return defaultInstance; + private DocumentVersionV2() { + version_ = ""; + titles_ = java.util.Collections.emptyList(); + workflows_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentVersionV2( - 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; - version_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - supportsContentPatching_ = input.readBool(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - supportsEncrypting_ = input.readBool(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - titles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - titles_.add(input.readMessage(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2.PARSER, extensionRegistry)); - break; - } - case 40: { - bitField0_ |= 0x00000020; - isActual_ = input.readBool(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - workflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - workflows_.add(input.readMessage(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2.PARSER, extensionRegistry)); - break; - } - case 56: { - bitField0_ |= 0x00000008; - supportsPredefinedRecipientTitle_ = input.readBool(); - break; - } - case 64: { - bitField0_ |= 0x00000010; - supportsAmendmentRequest_ = input.readBool(); - 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_ & 0x00000020) == 0x00000020)) { - titles_ = java.util.Collections.unmodifiableList(titles_); - } - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - workflows_ = java.util.Collections.unmodifiableList(workflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentVersionV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentVersionV2_fieldAccessorTable @@ -3054,33 +3288,23 @@ private DocumentVersionV2( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2.class, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentVersionV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentVersionV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int VERSION_FIELD_NUMBER = 1; - private java.lang.Object version_; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * required string Version = 1; + * @return Whether the version field is set. */ + @java.lang.Override public boolean hasVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Version = 1; + * @return The version. */ + @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { @@ -3097,7 +3321,9 @@ public java.lang.String getVersion() { } /** * required string Version = 1; + * @return The bytes for version. */ + @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -3113,76 +3339,95 @@ public java.lang.String getVersion() { } public static final int SUPPORTSCONTENTPATCHING_FIELD_NUMBER = 2; - private boolean supportsContentPatching_; + private boolean supportsContentPatching_ = false; /** * required bool SupportsContentPatching = 2; + * @return Whether the supportsContentPatching field is set. */ + @java.lang.Override public boolean hasSupportsContentPatching() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool SupportsContentPatching = 2; + * @return The supportsContentPatching. */ + @java.lang.Override public boolean getSupportsContentPatching() { return supportsContentPatching_; } public static final int SUPPORTSENCRYPTING_FIELD_NUMBER = 3; - private boolean supportsEncrypting_; + private boolean supportsEncrypting_ = false; /** * required bool SupportsEncrypting = 3; + * @return Whether the supportsEncrypting field is set. */ + @java.lang.Override public boolean hasSupportsEncrypting() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required bool SupportsEncrypting = 3; + * @return The supportsEncrypting. */ + @java.lang.Override public boolean getSupportsEncrypting() { return supportsEncrypting_; } public static final int SUPPORTSPREDEFINEDRECIPIENTTITLE_FIELD_NUMBER = 7; - private boolean supportsPredefinedRecipientTitle_; + private boolean supportsPredefinedRecipientTitle_ = false; /** * required bool SupportsPredefinedRecipientTitle = 7; + * @return Whether the supportsPredefinedRecipientTitle field is set. */ + @java.lang.Override public boolean hasSupportsPredefinedRecipientTitle() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required bool SupportsPredefinedRecipientTitle = 7; + * @return The supportsPredefinedRecipientTitle. */ + @java.lang.Override public boolean getSupportsPredefinedRecipientTitle() { return supportsPredefinedRecipientTitle_; } public static final int SUPPORTSAMENDMENTREQUEST_FIELD_NUMBER = 8; - private boolean supportsAmendmentRequest_; + private boolean supportsAmendmentRequest_ = false; /** * required bool SupportsAmendmentRequest = 8; + * @return Whether the supportsAmendmentRequest field is set. */ + @java.lang.Override public boolean hasSupportsAmendmentRequest() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required bool SupportsAmendmentRequest = 8; + * @return The supportsAmendmentRequest. */ + @java.lang.Override public boolean getSupportsAmendmentRequest() { return supportsAmendmentRequest_; } public static final int TITLES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List titles_; /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentTitleV2 Titles = 4; */ + @java.lang.Override public java.util.List getTitlesList() { return titles_; } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentTitleV2 Titles = 4; */ + @java.lang.Override public java.util.List getTitlesOrBuilderList() { return titles_; @@ -3190,49 +3435,59 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Documents.Types.DocumentTitleV2 Titles = 4; */ + @java.lang.Override public int getTitlesCount() { return titles_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentTitleV2 Titles = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 getTitles(int index) { return titles_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentTitleV2 Titles = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2OrBuilder getTitlesOrBuilder( int index) { return titles_.get(index); } public static final int ISACTUAL_FIELD_NUMBER = 5; - private boolean isActual_; + private boolean isActual_ = false; /** * required bool IsActual = 5; + * @return Whether the isActual field is set. */ + @java.lang.Override public boolean hasIsActual() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required bool IsActual = 5; + * @return The isActual. */ + @java.lang.Override public boolean getIsActual() { return isActual_; } public static final int WORKFLOWS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private java.util.List workflows_; /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentWorkflowV2 Workflows = 6; */ + @java.lang.Override public java.util.List getWorkflowsList() { return workflows_; } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentWorkflowV2 Workflows = 6; */ + @java.lang.Override public java.util.List getWorkflowsOrBuilderList() { return workflows_; @@ -3240,34 +3495,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Documents.Types.DocumentWorkflowV2 Workflows = 6; */ + @java.lang.Override public int getWorkflowsCount() { return workflows_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentWorkflowV2 Workflows = 6; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 getWorkflows(int index) { return workflows_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentWorkflowV2 Workflows = 6; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2OrBuilder getWorkflowsOrBuilder( int index) { return workflows_.get(index); } - private void initFields() { - version_ = ""; - supportsContentPatching_ = false; - supportsEncrypting_ = false; - supportsPredefinedRecipientTitle_ = false; - supportsAmendmentRequest_ = false; - titles_ = java.util.Collections.emptyList(); - isActual_ = false; - workflows_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3313,51 +3562,50 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getVersionBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, version_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, supportsContentPatching_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, supportsEncrypting_); } for (int i = 0; i < titles_.size(); i++) { output.writeMessage(4, titles_.get(i)); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(5, isActual_); } for (int i = 0; i < workflows_.size(); i++) { output.writeMessage(6, workflows_.get(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(7, supportsPredefinedRecipientTitle_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(8, supportsAmendmentRequest_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getVersionBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, version_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, supportsContentPatching_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, supportsEncrypting_); } @@ -3365,7 +3613,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, titles_.get(i)); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isActual_); } @@ -3373,26 +3621,127 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, workflows_.get(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, supportsPredefinedRecipientTitle_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, supportsAmendmentRequest_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 other = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2) obj; + + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion() + .equals(other.getVersion())) return false; + } + if (hasSupportsContentPatching() != other.hasSupportsContentPatching()) return false; + if (hasSupportsContentPatching()) { + if (getSupportsContentPatching() + != other.getSupportsContentPatching()) return false; + } + if (hasSupportsEncrypting() != other.hasSupportsEncrypting()) return false; + if (hasSupportsEncrypting()) { + if (getSupportsEncrypting() + != other.getSupportsEncrypting()) return false; + } + if (hasSupportsPredefinedRecipientTitle() != other.hasSupportsPredefinedRecipientTitle()) return false; + if (hasSupportsPredefinedRecipientTitle()) { + if (getSupportsPredefinedRecipientTitle() + != other.getSupportsPredefinedRecipientTitle()) return false; + } + if (hasSupportsAmendmentRequest() != other.hasSupportsAmendmentRequest()) return false; + if (hasSupportsAmendmentRequest()) { + if (getSupportsAmendmentRequest() + != other.getSupportsAmendmentRequest()) return false; + } + if (!getTitlesList() + .equals(other.getTitlesList())) return false; + if (hasIsActual() != other.hasIsActual()) return false; + if (hasIsActual()) { + if (getIsActual() + != other.getIsActual()) return false; + } + if (!getWorkflowsList() + .equals(other.getWorkflowsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + if (hasSupportsContentPatching()) { + hash = (37 * hash) + SUPPORTSCONTENTPATCHING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportsContentPatching()); + } + if (hasSupportsEncrypting()) { + hash = (37 * hash) + SUPPORTSENCRYPTING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportsEncrypting()); + } + if (hasSupportsPredefinedRecipientTitle()) { + hash = (37 * hash) + SUPPORTSPREDEFINEDRECIPIENTTITLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportsPredefinedRecipientTitle()); + } + if (hasSupportsAmendmentRequest()) { + hash = (37 * hash) + SUPPORTSAMENDMENTREQUEST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportsAmendmentRequest()); + } + if (getTitlesCount() > 0) { + hash = (37 * hash) + TITLES_FIELD_NUMBER; + hash = (53 * hash) + getTitlesList().hashCode(); + } + if (hasIsActual()) { + hash = (37 * hash) + ISACTUAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsActual()); + } + if (getWorkflowsCount() > 0) { + hash = (37 * hash) + WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3416,42 +3765,57 @@ public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.D } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3471,6 +3835,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentVersionV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentVersionV2_fieldAccessorTable @@ -3480,66 +3845,53 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTitlesFieldBuilder(); - getWorkflowsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; version_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); supportsContentPatching_ = false; - bitField0_ = (bitField0_ & ~0x00000002); supportsEncrypting_ = false; - bitField0_ = (bitField0_ & ~0x00000004); supportsPredefinedRecipientTitle_ = false; - bitField0_ = (bitField0_ & ~0x00000008); supportsAmendmentRequest_ = false; - bitField0_ = (bitField0_ & ~0x00000010); if (titlesBuilder_ == null) { titles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); } else { + titles_ = null; titlesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000020); isActual_ = false; - bitField0_ = (bitField0_ & ~0x00000040); if (workflowsBuilder_ == null) { workflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); } else { + workflows_ = null; workflowsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentVersionV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 build() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 result = buildPartial(); if (!result.isInitialized()) { @@ -3548,32 +3900,18 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 buildPartial() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 result = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.version_ = version_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.supportsContentPatching_ = supportsContentPatching_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.supportsEncrypting_ = supportsEncrypting_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.supportsPredefinedRecipientTitle_ = supportsPredefinedRecipientTitle_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.supportsAmendmentRequest_ = supportsAmendmentRequest_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 result) { if (titlesBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { titles_ = java.util.Collections.unmodifiableList(titles_); bitField0_ = (bitField0_ & ~0x00000020); } @@ -3581,12 +3919,8 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document } else { result.titles_ = titlesBuilder_.build(); } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - result.isActual_ = isActual_; if (workflowsBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { workflows_ = java.util.Collections.unmodifiableList(workflows_); bitField0_ = (bitField0_ & ~0x00000080); } @@ -3594,11 +3928,39 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document } else { result.workflows_ = workflowsBuilder_.build(); } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.supportsContentPatching_ = supportsContentPatching_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.supportsEncrypting_ = supportsEncrypting_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.supportsPredefinedRecipientTitle_ = supportsPredefinedRecipientTitle_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.supportsAmendmentRequest_ = supportsAmendmentRequest_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isActual_ = isActual_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2) { return mergeFrom((Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2)other); @@ -3611,8 +3973,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 other) { if (other == Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2.getDefaultInstance()) return this; if (other.hasVersion()) { - bitField0_ |= 0x00000001; version_ = other.version_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSupportsContentPatching()) { @@ -3683,64 +4045,128 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptio } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasVersion()) { - return false; } if (!hasSupportsContentPatching()) { - return false; } if (!hasSupportsEncrypting()) { - return false; } if (!hasSupportsPredefinedRecipientTitle()) { - return false; } if (!hasSupportsAmendmentRequest()) { - return false; } if (!hasIsActual()) { - return false; } for (int i = 0; i < getTitlesCount(); i++) { if (!getTitles(i).isInitialized()) { - return false; } } for (int i = 0; i < getWorkflowsCount(); i++) { if (!getWorkflows(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + version_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + supportsContentPatching_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + supportsEncrypting_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 m = + input.readMessage( + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2.parser(), + extensionRegistry); + if (titlesBuilder_ == null) { + ensureTitlesIsMutable(); + titles_.add(m); + } else { + titlesBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: { + isActual_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 40 + case 50: { + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 m = + input.readMessage( + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2.parser(), + extensionRegistry); + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.add(m); + } else { + workflowsBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: { + supportsPredefinedRecipientTitle_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 56 + case 64: { + supportsAmendmentRequest_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 64 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3748,12 +4174,14 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** * required string Version = 1; + * @return Whether the version field is set. */ public boolean hasVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Version = 1; + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -3771,6 +4199,7 @@ public java.lang.String getVersion() { } /** * required string Version = 1; + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { @@ -3787,36 +4216,37 @@ public java.lang.String getVersion() { } /** * required string Version = 1; + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Version = 1; + * @return This builder for chaining. */ public Builder clearVersion() { - bitField0_ = (bitField0_ & ~0x00000001); version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Version = 1; + * @param value The bytes for version to set. + * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3824,27 +4254,35 @@ public Builder setVersionBytes( private boolean supportsContentPatching_ ; /** * required bool SupportsContentPatching = 2; + * @return Whether the supportsContentPatching field is set. */ + @java.lang.Override public boolean hasSupportsContentPatching() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool SupportsContentPatching = 2; + * @return The supportsContentPatching. */ + @java.lang.Override public boolean getSupportsContentPatching() { return supportsContentPatching_; } /** * required bool SupportsContentPatching = 2; + * @param value The supportsContentPatching to set. + * @return This builder for chaining. */ public Builder setSupportsContentPatching(boolean value) { - bitField0_ |= 0x00000002; + supportsContentPatching_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool SupportsContentPatching = 2; + * @return This builder for chaining. */ public Builder clearSupportsContentPatching() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3856,27 +4294,35 @@ public Builder clearSupportsContentPatching() { private boolean supportsEncrypting_ ; /** * required bool SupportsEncrypting = 3; + * @return Whether the supportsEncrypting field is set. */ + @java.lang.Override public boolean hasSupportsEncrypting() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required bool SupportsEncrypting = 3; + * @return The supportsEncrypting. */ + @java.lang.Override public boolean getSupportsEncrypting() { return supportsEncrypting_; } /** * required bool SupportsEncrypting = 3; + * @param value The supportsEncrypting to set. + * @return This builder for chaining. */ public Builder setSupportsEncrypting(boolean value) { - bitField0_ |= 0x00000004; + supportsEncrypting_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required bool SupportsEncrypting = 3; + * @return This builder for chaining. */ public Builder clearSupportsEncrypting() { bitField0_ = (bitField0_ & ~0x00000004); @@ -3888,27 +4334,35 @@ public Builder clearSupportsEncrypting() { private boolean supportsPredefinedRecipientTitle_ ; /** * required bool SupportsPredefinedRecipientTitle = 7; + * @return Whether the supportsPredefinedRecipientTitle field is set. */ + @java.lang.Override public boolean hasSupportsPredefinedRecipientTitle() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required bool SupportsPredefinedRecipientTitle = 7; + * @return The supportsPredefinedRecipientTitle. */ + @java.lang.Override public boolean getSupportsPredefinedRecipientTitle() { return supportsPredefinedRecipientTitle_; } /** * required bool SupportsPredefinedRecipientTitle = 7; + * @param value The supportsPredefinedRecipientTitle to set. + * @return This builder for chaining. */ public Builder setSupportsPredefinedRecipientTitle(boolean value) { - bitField0_ |= 0x00000008; + supportsPredefinedRecipientTitle_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required bool SupportsPredefinedRecipientTitle = 7; + * @return This builder for chaining. */ public Builder clearSupportsPredefinedRecipientTitle() { bitField0_ = (bitField0_ & ~0x00000008); @@ -3920,27 +4374,35 @@ public Builder clearSupportsPredefinedRecipientTitle() { private boolean supportsAmendmentRequest_ ; /** * required bool SupportsAmendmentRequest = 8; + * @return Whether the supportsAmendmentRequest field is set. */ + @java.lang.Override public boolean hasSupportsAmendmentRequest() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required bool SupportsAmendmentRequest = 8; + * @return The supportsAmendmentRequest. */ + @java.lang.Override public boolean getSupportsAmendmentRequest() { return supportsAmendmentRequest_; } /** * required bool SupportsAmendmentRequest = 8; + * @param value The supportsAmendmentRequest to set. + * @return This builder for chaining. */ public Builder setSupportsAmendmentRequest(boolean value) { - bitField0_ |= 0x00000010; + supportsAmendmentRequest_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * required bool SupportsAmendmentRequest = 8; + * @return This builder for chaining. */ public Builder clearSupportsAmendmentRequest() { bitField0_ = (bitField0_ & ~0x00000010); @@ -3952,7 +4414,7 @@ public Builder clearSupportsAmendmentRequest() { private java.util.List titles_ = java.util.Collections.emptyList(); private void ensureTitlesIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { + if (!((bitField0_ & 0x00000020) != 0)) { titles_ = new java.util.ArrayList(titles_); bitField0_ |= 0x00000020; } @@ -4181,7 +4643,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document titlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2.Builder, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2OrBuilder>( titles_, - ((bitField0_ & 0x00000020) == 0x00000020), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); titles_ = null; @@ -4192,27 +4654,35 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document private boolean isActual_ ; /** * required bool IsActual = 5; + * @return Whether the isActual field is set. */ + @java.lang.Override public boolean hasIsActual() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required bool IsActual = 5; + * @return The isActual. */ + @java.lang.Override public boolean getIsActual() { return isActual_; } /** * required bool IsActual = 5; + * @param value The isActual to set. + * @return This builder for chaining. */ public Builder setIsActual(boolean value) { - bitField0_ |= 0x00000040; + isActual_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * required bool IsActual = 5; + * @return This builder for chaining. */ public Builder clearIsActual() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4224,7 +4694,7 @@ public Builder clearIsActual() { private java.util.List workflows_ = java.util.Collections.emptyList(); private void ensureWorkflowsIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { + if (!((bitField0_ & 0x00000080) != 0)) { workflows_ = new java.util.ArrayList(workflows_); bitField0_ |= 0x00000080; } @@ -4453,7 +4923,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2.Builder, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2OrBuilder>( workflows_, - ((bitField0_ & 0x00000080) == 0x00000080), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); workflows_ = null; @@ -4464,12 +4934,52 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Types.DocumentVersionV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentVersionV2) + private static final Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 DEFAULT_INSTANCE; static { - defaultInstance = new DocumentVersionV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2(); + } + + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentVersionV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentVersionV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentVersionV2) } public interface DocumentWorkflowV2OrBuilder extends @@ -4478,19 +4988,23 @@ public interface DocumentWorkflowV2OrBuilder extends /** * required int32 Id = 1; + * @return Whether the id field is set. */ boolean hasId(); /** * required int32 Id = 1; + * @return The id. */ int getId(); /** * required bool IsDefault = 2; + * @return Whether the isDefault field is set. */ boolean hasIsDefault(); /** * required bool IsDefault = 2; + * @return The isDefault. */ boolean getIsDefault(); } @@ -4501,78 +5015,29 @@ public static final class DocumentWorkflowV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Types.DocumentWorkflowV2) DocumentWorkflowV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentWorkflowV2.class.getName()); + } // Use DocumentWorkflowV2.newBuilder() to construct. private DocumentWorkflowV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentWorkflowV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentWorkflowV2 defaultInstance; - public static DocumentWorkflowV2 getDefaultInstance() { - return defaultInstance; } - - public DocumentWorkflowV2 getDefaultInstanceForType() { - return defaultInstance; + private DocumentWorkflowV2() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentWorkflowV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - id_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - isDefault_ = input.readBool(); - 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.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentWorkflowV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentWorkflowV2_fieldAccessorTable @@ -4580,57 +5045,47 @@ private DocumentWorkflowV2( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2.class, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentWorkflowV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentWorkflowV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ID_FIELD_NUMBER = 1; - private int id_; + private int id_ = 0; /** * required int32 Id = 1; + * @return Whether the id field is set. */ + @java.lang.Override public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 Id = 1; + * @return The id. */ + @java.lang.Override public int getId() { return id_; } public static final int ISDEFAULT_FIELD_NUMBER = 2; - private boolean isDefault_; + private boolean isDefault_ = false; /** * required bool IsDefault = 2; + * @return Whether the isDefault field is set. */ + @java.lang.Override public boolean hasIsDefault() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsDefault = 2; + * @return The isDefault. */ + @java.lang.Override public boolean getIsDefault() { return isDefault_; } - private void initFields() { - id_ = 0; - isDefault_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4648,44 +5103,93 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, id_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, isDefault_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, id_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isDefault_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 other = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (getId() + != other.getId()) return false; + } + if (hasIsDefault() != other.hasIsDefault()) return false; + if (hasIsDefault()) { + if (getIsDefault() + != other.getIsDefault()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId(); + } + if (hasIsDefault()) { + hash = (37 * hash) + ISDEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDefault()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4709,42 +5213,57 @@ public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.D } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4764,6 +5283,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentWorkflowV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentWorkflowV2_fieldAccessorTable @@ -4773,44 +5293,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); isDefault_ = false; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentWorkflowV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 build() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 result = buildPartial(); if (!result.isInitialized()) { @@ -4819,23 +5330,29 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 buildPartial() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 result = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; to_bitField0_ |= 0x00000001; } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isDefault_ = isDefault_; to_bitField0_ |= 0x00000002; } - result.isDefault_ = isDefault_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2) { return mergeFrom((Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2)other); @@ -4854,36 +5371,60 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptio setIsDefault(other.getIsDefault()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasId()) { - return false; } if (!hasIsDefault()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + id_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + isDefault_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -4891,27 +5432,35 @@ public Builder mergeFrom( private int id_ ; /** * required int32 Id = 1; + * @return Whether the id field is set. */ + @java.lang.Override public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 Id = 1; + * @return The id. */ + @java.lang.Override public int getId() { return id_; } /** * required int32 Id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId(int value) { - bitField0_ |= 0x00000001; + id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int32 Id = 1; + * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); @@ -4923,27 +5472,35 @@ public Builder clearId() { private boolean isDefault_ ; /** * required bool IsDefault = 2; + * @return Whether the isDefault field is set. */ + @java.lang.Override public boolean hasIsDefault() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsDefault = 2; + * @return The isDefault. */ + @java.lang.Override public boolean getIsDefault() { return isDefault_; } /** * required bool IsDefault = 2; + * @param value The isDefault to set. + * @return This builder for chaining. */ public Builder setIsDefault(boolean value) { - bitField0_ |= 0x00000002; + isDefault_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool IsDefault = 2; + * @return This builder for chaining. */ public Builder clearIsDefault() { bitField0_ = (bitField0_ & ~0x00000002); @@ -4955,70 +5512,122 @@ public Builder clearIsDefault() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Types.DocumentWorkflowV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentWorkflowV2) + private static final Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 DEFAULT_INSTANCE; static { - defaultInstance = new DocumentWorkflowV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2(); } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentWorkflowV2) - } - - public interface DocumentTitleV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.Types.DocumentTitleV2) - com.google.protobuf.MessageOrBuilder { + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentWorkflowV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentWorkflowV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DocumentTitleV2OrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Documents.Types.DocumentTitleV2) + com.google.protobuf.MessageOrBuilder { /** * required int32 Index = 7; + * @return Whether the index field is set. */ boolean hasIndex(); /** * required int32 Index = 7; + * @return The index. */ int getIndex(); /** * required bool IsFormal = 1; + * @return Whether the isFormal field is set. */ boolean hasIsFormal(); /** * required bool IsFormal = 1; + * @return The isFormal. */ boolean getIsFormal(); /** * optional string XsdUrl = 2; + * @return Whether the xsdUrl field is set. */ boolean hasXsdUrl(); /** * optional string XsdUrl = 2; + * @return The xsdUrl. */ java.lang.String getXsdUrl(); /** * optional string XsdUrl = 2; + * @return The bytes for xsdUrl. */ com.google.protobuf.ByteString getXsdUrlBytes(); /** * optional string UserDataXsdUrl = 5; + * @return Whether the userDataXsdUrl field is set. */ boolean hasUserDataXsdUrl(); /** * optional string UserDataXsdUrl = 5; + * @return The userDataXsdUrl. */ java.lang.String getUserDataXsdUrl(); /** * optional string UserDataXsdUrl = 5; + * @return The bytes for userDataXsdUrl. */ com.google.protobuf.ByteString getUserDataXsdUrlBytes(); /** * required .Diadoc.Api.Proto.Documents.Types.SignerInfoV2 SignerInfo = 6; + * @return Whether the signerInfo field is set. */ boolean hasSignerInfo(); /** * required .Diadoc.Api.Proto.Documents.Types.SignerInfoV2 SignerInfo = 6; + * @return The signerInfo. */ Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 getSignerInfo(); /** @@ -5081,125 +5690,33 @@ public static final class DocumentTitleV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Types.DocumentTitleV2) DocumentTitleV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentTitleV2.class.getName()); + } // Use DocumentTitleV2.newBuilder() to construct. private DocumentTitleV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentTitleV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentTitleV2 defaultInstance; - public static DocumentTitleV2 getDefaultInstance() { - return defaultInstance; } - - public DocumentTitleV2 getDefaultInstanceForType() { - return defaultInstance; + private DocumentTitleV2() { + xsdUrl_ = ""; + userDataXsdUrl_ = ""; + metadataItems_ = java.util.Collections.emptyList(); + encryptedMetadataItems_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentTitleV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000002; - isFormal_ = input.readBool(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - xsdUrl_ = bs; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - metadataItems_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - metadataItems_.add(input.readMessage(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.PARSER, extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - encryptedMetadataItems_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - encryptedMetadataItems_.add(input.readMessage(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.PARSER, extensionRegistry)); - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - userDataXsdUrl_ = bs; - break; - } - case 50: { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = signerInfo_.toBuilder(); - } - signerInfo_ = input.readMessage(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signerInfo_); - signerInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 56: { - bitField0_ |= 0x00000001; - index_ = input.readInt32(); - 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_ & 0x00000020) == 0x00000020)) { - metadataItems_ = java.util.Collections.unmodifiableList(metadataItems_); - } - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - encryptedMetadataItems_ = java.util.Collections.unmodifiableList(encryptedMetadataItems_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTitleV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTitleV2_fieldAccessorTable @@ -5207,63 +5724,61 @@ private DocumentTitleV2( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2.class, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentTitleV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentTitleV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int INDEX_FIELD_NUMBER = 7; - private int index_; + private int index_ = 0; /** * required int32 Index = 7; + * @return Whether the index field is set. */ + @java.lang.Override public boolean hasIndex() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 Index = 7; + * @return The index. */ + @java.lang.Override public int getIndex() { return index_; } public static final int ISFORMAL_FIELD_NUMBER = 1; - private boolean isFormal_; + private boolean isFormal_ = false; /** * required bool IsFormal = 1; + * @return Whether the isFormal field is set. */ + @java.lang.Override public boolean hasIsFormal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsFormal = 1; + * @return The isFormal. */ + @java.lang.Override public boolean getIsFormal() { return isFormal_; } public static final int XSDURL_FIELD_NUMBER = 2; - private java.lang.Object xsdUrl_; + @SuppressWarnings("serial") + private volatile java.lang.Object xsdUrl_ = ""; /** * optional string XsdUrl = 2; + * @return Whether the xsdUrl field is set. */ + @java.lang.Override public boolean hasXsdUrl() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string XsdUrl = 2; + * @return The xsdUrl. */ + @java.lang.Override public java.lang.String getXsdUrl() { java.lang.Object ref = xsdUrl_; if (ref instanceof java.lang.String) { @@ -5280,7 +5795,9 @@ public java.lang.String getXsdUrl() { } /** * optional string XsdUrl = 2; + * @return The bytes for xsdUrl. */ + @java.lang.Override public com.google.protobuf.ByteString getXsdUrlBytes() { java.lang.Object ref = xsdUrl_; @@ -5296,16 +5813,21 @@ public java.lang.String getXsdUrl() { } public static final int USERDATAXSDURL_FIELD_NUMBER = 5; - private java.lang.Object userDataXsdUrl_; + @SuppressWarnings("serial") + private volatile java.lang.Object userDataXsdUrl_ = ""; /** * optional string UserDataXsdUrl = 5; + * @return Whether the userDataXsdUrl field is set. */ + @java.lang.Override public boolean hasUserDataXsdUrl() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string UserDataXsdUrl = 5; + * @return The userDataXsdUrl. */ + @java.lang.Override public java.lang.String getUserDataXsdUrl() { java.lang.Object ref = userDataXsdUrl_; if (ref instanceof java.lang.String) { @@ -5322,7 +5844,9 @@ public java.lang.String getUserDataXsdUrl() { } /** * optional string UserDataXsdUrl = 5; + * @return The bytes for userDataXsdUrl. */ + @java.lang.Override public com.google.protobuf.ByteString getUserDataXsdUrlBytes() { java.lang.Object ref = userDataXsdUrl_; @@ -5341,34 +5865,42 @@ public java.lang.String getUserDataXsdUrl() { private Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 signerInfo_; /** * required .Diadoc.Api.Proto.Documents.Types.SignerInfoV2 SignerInfo = 6; + * @return Whether the signerInfo field is set. */ + @java.lang.Override public boolean hasSignerInfo() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required .Diadoc.Api.Proto.Documents.Types.SignerInfoV2 SignerInfo = 6; + * @return The signerInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 getSignerInfo() { - return signerInfo_; + return signerInfo_ == null ? Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance() : signerInfo_; } /** * required .Diadoc.Api.Proto.Documents.Types.SignerInfoV2 SignerInfo = 6; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2OrBuilder getSignerInfoOrBuilder() { - return signerInfo_; + return signerInfo_ == null ? Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance() : signerInfo_; } public static final int METADATAITEMS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List metadataItems_; /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2 MetadataItems = 3; */ + @java.lang.Override public java.util.List getMetadataItemsList() { return metadataItems_; } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2 MetadataItems = 3; */ + @java.lang.Override public java.util.List getMetadataItemsOrBuilderList() { return metadataItems_; @@ -5376,34 +5908,40 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2 MetadataItems = 3; */ + @java.lang.Override public int getMetadataItemsCount() { return metadataItems_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2 MetadataItems = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 getMetadataItems(int index) { return metadataItems_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2 MetadataItems = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2OrBuilder getMetadataItemsOrBuilder( int index) { return metadataItems_.get(index); } public static final int ENCRYPTEDMETADATAITEMS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List encryptedMetadataItems_; /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2 EncryptedMetadataItems = 4; */ + @java.lang.Override public java.util.List getEncryptedMetadataItemsList() { return encryptedMetadataItems_; } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2 EncryptedMetadataItems = 4; */ + @java.lang.Override public java.util.List getEncryptedMetadataItemsOrBuilderList() { return encryptedMetadataItems_; @@ -5411,33 +5949,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2 EncryptedMetadataItems = 4; */ + @java.lang.Override public int getEncryptedMetadataItemsCount() { return encryptedMetadataItems_.size(); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2 EncryptedMetadataItems = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 getEncryptedMetadataItems(int index) { return encryptedMetadataItems_.get(index); } /** * repeated .Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2 EncryptedMetadataItems = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2OrBuilder getEncryptedMetadataItemsOrBuilder( int index) { return encryptedMetadataItems_.get(index); } - private void initFields() { - index_ = 0; - isFormal_ = false; - xsdUrl_ = ""; - userDataXsdUrl_ = ""; - signerInfo_ = Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance(); - metadataItems_ = java.util.Collections.emptyList(); - encryptedMetadataItems_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5475,14 +6008,14 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(1, isFormal_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(2, getXsdUrlBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, xsdUrl_); } for (int i = 0; i < metadataItems_.size(); i++) { output.writeMessage(3, metadataItems_.get(i)); @@ -5490,31 +6023,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < encryptedMetadataItems_.size(); i++) { output.writeMessage(4, encryptedMetadataItems_.get(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(5, getUserDataXsdUrlBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, userDataXsdUrl_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(6, signerInfo_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getSignerInfo()); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(7, index_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isFormal_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getXsdUrlBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, xsdUrl_); } for (int i = 0; i < metadataItems_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -5524,30 +6056,117 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, encryptedMetadataItems_.get(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getUserDataXsdUrlBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, userDataXsdUrl_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, signerInfo_); + .computeMessageSize(6, getSignerInfo()); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, index_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 other = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2) obj; + + if (hasIndex() != other.hasIndex()) return false; + if (hasIndex()) { + if (getIndex() + != other.getIndex()) return false; + } + if (hasIsFormal() != other.hasIsFormal()) return false; + if (hasIsFormal()) { + if (getIsFormal() + != other.getIsFormal()) return false; + } + if (hasXsdUrl() != other.hasXsdUrl()) return false; + if (hasXsdUrl()) { + if (!getXsdUrl() + .equals(other.getXsdUrl())) return false; + } + if (hasUserDataXsdUrl() != other.hasUserDataXsdUrl()) return false; + if (hasUserDataXsdUrl()) { + if (!getUserDataXsdUrl() + .equals(other.getUserDataXsdUrl())) return false; + } + if (hasSignerInfo() != other.hasSignerInfo()) return false; + if (hasSignerInfo()) { + if (!getSignerInfo() + .equals(other.getSignerInfo())) return false; + } + if (!getMetadataItemsList() + .equals(other.getMetadataItemsList())) return false; + if (!getEncryptedMetadataItemsList() + .equals(other.getEncryptedMetadataItemsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + } + if (hasIsFormal()) { + hash = (37 * hash) + ISFORMAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFormal()); + } + if (hasXsdUrl()) { + hash = (37 * hash) + XSDURL_FIELD_NUMBER; + hash = (53 * hash) + getXsdUrl().hashCode(); + } + if (hasUserDataXsdUrl()) { + hash = (37 * hash) + USERDATAXSDURL_FIELD_NUMBER; + hash = (53 * hash) + getUserDataXsdUrl().hashCode(); + } + if (hasSignerInfo()) { + hash = (37 * hash) + SIGNERINFO_FIELD_NUMBER; + hash = (53 * hash) + getSignerInfo().hashCode(); + } + if (getMetadataItemsCount() > 0) { + hash = (37 * hash) + METADATAITEMS_FIELD_NUMBER; + hash = (53 * hash) + getMetadataItemsList().hashCode(); + } + if (getEncryptedMetadataItemsCount() > 0) { + hash = (37 * hash) + ENCRYPTEDMETADATAITEMS_FIELD_NUMBER; + hash = (53 * hash) + getEncryptedMetadataItemsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5571,42 +6190,57 @@ public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.D } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5626,6 +6260,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTitleV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTitleV2_fieldAccessorTable @@ -5644,60 +6279,55 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getSignerInfoFieldBuilder(); getMetadataItemsFieldBuilder(); getEncryptedMetadataItemsFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; index_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); isFormal_ = false; - bitField0_ = (bitField0_ & ~0x00000002); xsdUrl_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); userDataXsdUrl_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (signerInfoBuilder_ == null) { - signerInfo_ = Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance(); - } else { - signerInfoBuilder_.clear(); + signerInfo_ = null; + if (signerInfoBuilder_ != null) { + signerInfoBuilder_.dispose(); + signerInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); if (metadataItemsBuilder_ == null) { metadataItems_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); } else { + metadataItems_ = null; metadataItemsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000020); if (encryptedMetadataItemsBuilder_ == null) { encryptedMetadataItems_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); } else { + encryptedMetadataItems_ = null; encryptedMetadataItemsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000040); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTitleV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 build() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 result = buildPartial(); if (!result.isInitialized()) { @@ -5706,36 +6336,18 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 buildPartial() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 result = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.index_ = index_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.isFormal_ = isFormal_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.xsdUrl_ = xsdUrl_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.userDataXsdUrl_ = userDataXsdUrl_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (signerInfoBuilder_ == null) { - result.signerInfo_ = signerInfo_; - } else { - result.signerInfo_ = signerInfoBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 result) { if (metadataItemsBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { metadataItems_ = java.util.Collections.unmodifiableList(metadataItems_); bitField0_ = (bitField0_ & ~0x00000020); } @@ -5744,7 +6356,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document result.metadataItems_ = metadataItemsBuilder_.build(); } if (encryptedMetadataItemsBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { encryptedMetadataItems_ = java.util.Collections.unmodifiableList(encryptedMetadataItems_); bitField0_ = (bitField0_ & ~0x00000040); } @@ -5752,11 +6364,37 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document } else { result.encryptedMetadataItems_ = encryptedMetadataItemsBuilder_.build(); } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isFormal_ = isFormal_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.xsdUrl_ = xsdUrl_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.userDataXsdUrl_ = userDataXsdUrl_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.signerInfo_ = signerInfoBuilder_ == null + ? signerInfo_ + : signerInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2) { return mergeFrom((Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2)other); @@ -5775,13 +6413,13 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptio setIsFormal(other.getIsFormal()); } if (other.hasXsdUrl()) { - bitField0_ |= 0x00000004; xsdUrl_ = other.xsdUrl_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasUserDataXsdUrl()) { - bitField0_ |= 0x00000008; userDataXsdUrl_ = other.userDataXsdUrl_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasSignerInfo()) { @@ -5840,56 +6478,119 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptio } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIndex()) { - return false; } if (!hasIsFormal()) { - return false; } if (!hasSignerInfo()) { - return false; } if (!getSignerInfo().isInitialized()) { - return false; } for (int i = 0; i < getMetadataItemsCount(); i++) { if (!getMetadataItems(i).isInitialized()) { - return false; } } for (int i = 0; i < getEncryptedMetadataItemsCount(); i++) { if (!getEncryptedMetadataItems(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isFormal_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: { + xsdUrl_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 m = + input.readMessage( + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.parser(), + extensionRegistry); + if (metadataItemsBuilder_ == null) { + ensureMetadataItemsIsMutable(); + metadataItems_.add(m); + } else { + metadataItemsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 m = + input.readMessage( + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.parser(), + extensionRegistry); + if (encryptedMetadataItemsBuilder_ == null) { + ensureEncryptedMetadataItemsIsMutable(); + encryptedMetadataItems_.add(m); + } else { + encryptedMetadataItemsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + userDataXsdUrl_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + input.readMessage( + getSignerInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: { + index_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -5897,27 +6598,35 @@ public Builder mergeFrom( private int index_ ; /** * required int32 Index = 7; + * @return Whether the index field is set. */ + @java.lang.Override public boolean hasIndex() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 Index = 7; + * @return The index. */ + @java.lang.Override public int getIndex() { return index_; } /** * required int32 Index = 7; + * @param value The index to set. + * @return This builder for chaining. */ public Builder setIndex(int value) { - bitField0_ |= 0x00000001; + index_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int32 Index = 7; + * @return This builder for chaining. */ public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000001); @@ -5929,27 +6638,35 @@ public Builder clearIndex() { private boolean isFormal_ ; /** * required bool IsFormal = 1; + * @return Whether the isFormal field is set. */ + @java.lang.Override public boolean hasIsFormal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsFormal = 1; + * @return The isFormal. */ + @java.lang.Override public boolean getIsFormal() { return isFormal_; } /** * required bool IsFormal = 1; + * @param value The isFormal to set. + * @return This builder for chaining. */ public Builder setIsFormal(boolean value) { - bitField0_ |= 0x00000002; + isFormal_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool IsFormal = 1; + * @return This builder for chaining. */ public Builder clearIsFormal() { bitField0_ = (bitField0_ & ~0x00000002); @@ -5961,12 +6678,14 @@ public Builder clearIsFormal() { private java.lang.Object xsdUrl_ = ""; /** * optional string XsdUrl = 2; + * @return Whether the xsdUrl field is set. */ public boolean hasXsdUrl() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string XsdUrl = 2; + * @return The xsdUrl. */ public java.lang.String getXsdUrl() { java.lang.Object ref = xsdUrl_; @@ -5984,6 +6703,7 @@ public java.lang.String getXsdUrl() { } /** * optional string XsdUrl = 2; + * @return The bytes for xsdUrl. */ public com.google.protobuf.ByteString getXsdUrlBytes() { @@ -6000,36 +6720,37 @@ public java.lang.String getXsdUrl() { } /** * optional string XsdUrl = 2; + * @param value The xsdUrl to set. + * @return This builder for chaining. */ public Builder setXsdUrl( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } xsdUrl_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string XsdUrl = 2; + * @return This builder for chaining. */ public Builder clearXsdUrl() { - bitField0_ = (bitField0_ & ~0x00000004); xsdUrl_ = getDefaultInstance().getXsdUrl(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string XsdUrl = 2; + * @param value The bytes for xsdUrl to set. + * @return This builder for chaining. */ public Builder setXsdUrlBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } xsdUrl_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6037,12 +6758,14 @@ public Builder setXsdUrlBytes( private java.lang.Object userDataXsdUrl_ = ""; /** * optional string UserDataXsdUrl = 5; + * @return Whether the userDataXsdUrl field is set. */ public boolean hasUserDataXsdUrl() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string UserDataXsdUrl = 5; + * @return The userDataXsdUrl. */ public java.lang.String getUserDataXsdUrl() { java.lang.Object ref = userDataXsdUrl_; @@ -6060,6 +6783,7 @@ public java.lang.String getUserDataXsdUrl() { } /** * optional string UserDataXsdUrl = 5; + * @return The bytes for userDataXsdUrl. */ public com.google.protobuf.ByteString getUserDataXsdUrlBytes() { @@ -6076,55 +6800,58 @@ public java.lang.String getUserDataXsdUrl() { } /** * optional string UserDataXsdUrl = 5; + * @param value The userDataXsdUrl to set. + * @return This builder for chaining. */ public Builder setUserDataXsdUrl( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } userDataXsdUrl_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string UserDataXsdUrl = 5; + * @return This builder for chaining. */ public Builder clearUserDataXsdUrl() { - bitField0_ = (bitField0_ & ~0x00000008); userDataXsdUrl_ = getDefaultInstance().getUserDataXsdUrl(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string UserDataXsdUrl = 5; + * @param value The bytes for userDataXsdUrl to set. + * @return This builder for chaining. */ public Builder setUserDataXsdUrlBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } userDataXsdUrl_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 signerInfo_ = Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance(); + private Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 signerInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.Builder, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2OrBuilder> signerInfoBuilder_; /** * required .Diadoc.Api.Proto.Documents.Types.SignerInfoV2 SignerInfo = 6; + * @return Whether the signerInfo field is set. */ public boolean hasSignerInfo() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required .Diadoc.Api.Proto.Documents.Types.SignerInfoV2 SignerInfo = 6; + * @return The signerInfo. */ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 getSignerInfo() { if (signerInfoBuilder_ == null) { - return signerInfo_; + return signerInfo_ == null ? Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance() : signerInfo_; } else { return signerInfoBuilder_.getMessage(); } @@ -6138,11 +6865,11 @@ public Builder setSignerInfo(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescri throw new NullPointerException(); } signerInfo_ = value; - onChanged(); } else { signerInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -6152,11 +6879,11 @@ public Builder setSignerInfo( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.Builder builderForValue) { if (signerInfoBuilder_ == null) { signerInfo_ = builderForValue.build(); - onChanged(); } else { signerInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -6164,31 +6891,33 @@ public Builder setSignerInfo( */ public Builder mergeSignerInfo(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 value) { if (signerInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - signerInfo_ != Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance()) { - signerInfo_ = - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.newBuilder(signerInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + signerInfo_ != null && + signerInfo_ != Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance()) { + getSignerInfoBuilder().mergeFrom(value); } else { signerInfo_ = value; } - onChanged(); } else { signerInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (signerInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Documents.Types.SignerInfoV2 SignerInfo = 6; */ public Builder clearSignerInfo() { - if (signerInfoBuilder_ == null) { - signerInfo_ = Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance(); - onChanged(); - } else { - signerInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + signerInfo_ = null; + if (signerInfoBuilder_ != null) { + signerInfoBuilder_.dispose(); + signerInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -6206,7 +6935,8 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerIn if (signerInfoBuilder_ != null) { return signerInfoBuilder_.getMessageOrBuilder(); } else { - return signerInfo_; + return signerInfo_ == null ? + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance() : signerInfo_; } } /** @@ -6229,7 +6959,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerIn private java.util.List metadataItems_ = java.util.Collections.emptyList(); private void ensureMetadataItemsIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { + if (!((bitField0_ & 0x00000020) != 0)) { metadataItems_ = new java.util.ArrayList(metadataItems_); bitField0_ |= 0x00000020; } @@ -6458,7 +7188,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document metadataItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.Builder, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2OrBuilder>( metadataItems_, - ((bitField0_ & 0x00000020) == 0x00000020), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); metadataItems_ = null; @@ -6469,7 +7199,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document private java.util.List encryptedMetadataItems_ = java.util.Collections.emptyList(); private void ensureEncryptedMetadataItemsIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { + if (!((bitField0_ & 0x00000040) != 0)) { encryptedMetadataItems_ = new java.util.ArrayList(encryptedMetadataItems_); bitField0_ |= 0x00000040; } @@ -6698,7 +7428,7 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document encryptedMetadataItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.Builder, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2OrBuilder>( encryptedMetadataItems_, - ((bitField0_ & 0x00000040) == 0x00000040), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); encryptedMetadataItems_ = null; @@ -6709,12 +7439,52 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Types.DocumentTitleV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentTitleV2) + private static final Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 DEFAULT_INSTANCE; static { - defaultInstance = new DocumentTitleV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2(); + } + + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTitleV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentTitleV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentTitleV2) } public interface SignerInfoV2OrBuilder extends @@ -6723,32 +7493,39 @@ public interface SignerInfoV2OrBuilder extends /** * required int32 SignerType = 1; + * @return Whether the signerType field is set. */ boolean hasSignerType(); /** * required int32 SignerType = 1; + * @return The signerType. */ int getSignerType(); /** * required int32 ExtendedDocumentTitleType = 2 [default = -1]; + * @return Whether the extendedDocumentTitleType field is set. */ boolean hasExtendedDocumentTitleType(); /** * required int32 ExtendedDocumentTitleType = 2 [default = -1]; + * @return The extendedDocumentTitleType. */ int getExtendedDocumentTitleType(); /** * optional string SignerUserDataXsdUrl = 3; + * @return Whether the signerUserDataXsdUrl field is set. */ boolean hasSignerUserDataXsdUrl(); /** * optional string SignerUserDataXsdUrl = 3; + * @return The signerUserDataXsdUrl. */ java.lang.String getSignerUserDataXsdUrl(); /** * optional string SignerUserDataXsdUrl = 3; + * @return The bytes for signerUserDataXsdUrl. */ com.google.protobuf.ByteString getSignerUserDataXsdUrlBytes(); @@ -6760,84 +7537,31 @@ public static final class SignerInfoV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Types.SignerInfoV2) SignerInfoV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SignerInfoV2.class.getName()); + } // Use SignerInfoV2.newBuilder() to construct. private SignerInfoV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private SignerInfoV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SignerInfoV2 defaultInstance; - public static SignerInfoV2 getDefaultInstance() { - return defaultInstance; + private SignerInfoV2() { + extendedDocumentTitleType_ = -1; + signerUserDataXsdUrl_ = ""; } - public SignerInfoV2 getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignerInfoV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - signerType_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - extendedDocumentTitleType_ = input.readInt32(); - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - signerUserDataXsdUrl_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_SignerInfoV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_SignerInfoV2_fieldAccessorTable @@ -6845,63 +7569,61 @@ private SignerInfoV2( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.class, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SignerInfoV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignerInfoV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int SIGNERTYPE_FIELD_NUMBER = 1; - private int signerType_; + private int signerType_ = 0; /** * required int32 SignerType = 1; + * @return Whether the signerType field is set. */ + @java.lang.Override public boolean hasSignerType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 SignerType = 1; + * @return The signerType. */ + @java.lang.Override public int getSignerType() { return signerType_; } public static final int EXTENDEDDOCUMENTTITLETYPE_FIELD_NUMBER = 2; - private int extendedDocumentTitleType_; + private int extendedDocumentTitleType_ = -1; /** * required int32 ExtendedDocumentTitleType = 2 [default = -1]; + * @return Whether the extendedDocumentTitleType field is set. */ + @java.lang.Override public boolean hasExtendedDocumentTitleType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required int32 ExtendedDocumentTitleType = 2 [default = -1]; + * @return The extendedDocumentTitleType. */ + @java.lang.Override public int getExtendedDocumentTitleType() { return extendedDocumentTitleType_; } public static final int SIGNERUSERDATAXSDURL_FIELD_NUMBER = 3; - private java.lang.Object signerUserDataXsdUrl_; + @SuppressWarnings("serial") + private volatile java.lang.Object signerUserDataXsdUrl_ = ""; /** * optional string SignerUserDataXsdUrl = 3; + * @return Whether the signerUserDataXsdUrl field is set. */ + @java.lang.Override public boolean hasSignerUserDataXsdUrl() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string SignerUserDataXsdUrl = 3; + * @return The signerUserDataXsdUrl. */ + @java.lang.Override public java.lang.String getSignerUserDataXsdUrl() { java.lang.Object ref = signerUserDataXsdUrl_; if (ref instanceof java.lang.String) { @@ -6918,7 +7640,9 @@ public java.lang.String getSignerUserDataXsdUrl() { } /** * optional string SignerUserDataXsdUrl = 3; + * @return The bytes for signerUserDataXsdUrl. */ + @java.lang.Override public com.google.protobuf.ByteString getSignerUserDataXsdUrlBytes() { java.lang.Object ref = signerUserDataXsdUrl_; @@ -6933,12 +7657,8 @@ public java.lang.String getSignerUserDataXsdUrl() { } } - private void initFields() { - signerType_ = 0; - extendedDocumentTitleType_ = -1; - signerUserDataXsdUrl_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -6956,51 +7676,107 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, signerType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, extendedDocumentTitleType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getSignerUserDataXsdUrlBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, signerUserDataXsdUrl_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, signerType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, extendedDocumentTitleType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getSignerUserDataXsdUrlBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, signerUserDataXsdUrl_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 other = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2) obj; + + if (hasSignerType() != other.hasSignerType()) return false; + if (hasSignerType()) { + if (getSignerType() + != other.getSignerType()) return false; + } + if (hasExtendedDocumentTitleType() != other.hasExtendedDocumentTitleType()) return false; + if (hasExtendedDocumentTitleType()) { + if (getExtendedDocumentTitleType() + != other.getExtendedDocumentTitleType()) return false; + } + if (hasSignerUserDataXsdUrl() != other.hasSignerUserDataXsdUrl()) return false; + if (hasSignerUserDataXsdUrl()) { + if (!getSignerUserDataXsdUrl() + .equals(other.getSignerUserDataXsdUrl())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSignerType()) { + hash = (37 * hash) + SIGNERTYPE_FIELD_NUMBER; + hash = (53 * hash) + getSignerType(); + } + if (hasExtendedDocumentTitleType()) { + hash = (37 * hash) + EXTENDEDDOCUMENTTITLETYPE_FIELD_NUMBER; + hash = (53 * hash) + getExtendedDocumentTitleType(); + } + if (hasSignerUserDataXsdUrl()) { + hash = (37 * hash) + SIGNERUSERDATAXSDURL_FIELD_NUMBER; + hash = (53 * hash) + getSignerUserDataXsdUrl().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7024,42 +7800,57 @@ public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.S } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -7079,6 +7870,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_SignerInfoV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_SignerInfoV2_fieldAccessorTable @@ -7088,46 +7880,36 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; signerType_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); extendedDocumentTitleType_ = -1; - bitField0_ = (bitField0_ & ~0x00000002); signerUserDataXsdUrl_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_SignerInfoV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 build() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 result = buildPartial(); if (!result.isInitialized()) { @@ -7136,27 +7918,33 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerIn return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 buildPartial() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 result = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.signerType_ = signerType_; to_bitField0_ |= 0x00000001; } - result.signerType_ = signerType_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.extendedDocumentTitleType_ = extendedDocumentTitleType_; to_bitField0_ |= 0x00000002; } - result.extendedDocumentTitleType_ = extendedDocumentTitleType_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.signerUserDataXsdUrl_ = signerUserDataXsdUrl_; to_bitField0_ |= 0x00000004; } - result.signerUserDataXsdUrl_ = signerUserDataXsdUrl_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2) { return mergeFrom((Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2)other); @@ -7175,41 +7963,70 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptio setExtendedDocumentTitleType(other.getExtendedDocumentTitleType()); } if (other.hasSignerUserDataXsdUrl()) { - bitField0_ |= 0x00000004; signerUserDataXsdUrl_ = other.signerUserDataXsdUrl_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasSignerType()) { - return false; } if (!hasExtendedDocumentTitleType()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + signerType_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + extendedDocumentTitleType_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + signerUserDataXsdUrl_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -7217,27 +8034,35 @@ public Builder mergeFrom( private int signerType_ ; /** * required int32 SignerType = 1; + * @return Whether the signerType field is set. */ + @java.lang.Override public boolean hasSignerType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 SignerType = 1; + * @return The signerType. */ + @java.lang.Override public int getSignerType() { return signerType_; } /** * required int32 SignerType = 1; + * @param value The signerType to set. + * @return This builder for chaining. */ public Builder setSignerType(int value) { - bitField0_ |= 0x00000001; + signerType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int32 SignerType = 1; + * @return This builder for chaining. */ public Builder clearSignerType() { bitField0_ = (bitField0_ & ~0x00000001); @@ -7249,27 +8074,35 @@ public Builder clearSignerType() { private int extendedDocumentTitleType_ = -1; /** * required int32 ExtendedDocumentTitleType = 2 [default = -1]; + * @return Whether the extendedDocumentTitleType field is set. */ + @java.lang.Override public boolean hasExtendedDocumentTitleType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required int32 ExtendedDocumentTitleType = 2 [default = -1]; + * @return The extendedDocumentTitleType. */ + @java.lang.Override public int getExtendedDocumentTitleType() { return extendedDocumentTitleType_; } /** * required int32 ExtendedDocumentTitleType = 2 [default = -1]; + * @param value The extendedDocumentTitleType to set. + * @return This builder for chaining. */ public Builder setExtendedDocumentTitleType(int value) { - bitField0_ |= 0x00000002; + extendedDocumentTitleType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int32 ExtendedDocumentTitleType = 2 [default = -1]; + * @return This builder for chaining. */ public Builder clearExtendedDocumentTitleType() { bitField0_ = (bitField0_ & ~0x00000002); @@ -7281,12 +8114,14 @@ public Builder clearExtendedDocumentTitleType() { private java.lang.Object signerUserDataXsdUrl_ = ""; /** * optional string SignerUserDataXsdUrl = 3; + * @return Whether the signerUserDataXsdUrl field is set. */ public boolean hasSignerUserDataXsdUrl() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string SignerUserDataXsdUrl = 3; + * @return The signerUserDataXsdUrl. */ public java.lang.String getSignerUserDataXsdUrl() { java.lang.Object ref = signerUserDataXsdUrl_; @@ -7304,6 +8139,7 @@ public java.lang.String getSignerUserDataXsdUrl() { } /** * optional string SignerUserDataXsdUrl = 3; + * @return The bytes for signerUserDataXsdUrl. */ public com.google.protobuf.ByteString getSignerUserDataXsdUrlBytes() { @@ -7320,36 +8156,37 @@ public java.lang.String getSignerUserDataXsdUrl() { } /** * optional string SignerUserDataXsdUrl = 3; + * @param value The signerUserDataXsdUrl to set. + * @return This builder for chaining. */ public Builder setSignerUserDataXsdUrl( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } signerUserDataXsdUrl_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string SignerUserDataXsdUrl = 3; + * @return This builder for chaining. */ public Builder clearSignerUserDataXsdUrl() { - bitField0_ = (bitField0_ & ~0x00000004); signerUserDataXsdUrl_ = getDefaultInstance().getSignerUserDataXsdUrl(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string SignerUserDataXsdUrl = 3; + * @param value The bytes for signerUserDataXsdUrl to set. + * @return This builder for chaining. */ public Builder setSignerUserDataXsdUrlBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } signerUserDataXsdUrl_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7357,12 +8194,52 @@ public Builder setSignerUserDataXsdUrlBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Types.SignerInfoV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.SignerInfoV2) + private static final Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 DEFAULT_INSTANCE; static { - defaultInstance = new SignerInfoV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2(); + } + + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignerInfoV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.SignerInfoV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.SignerInfoV2) } public interface DocumentMetadataItemV2OrBuilder extends @@ -7371,42 +8248,51 @@ public interface DocumentMetadataItemV2OrBuilder extends /** * required string Id = 1; + * @return Whether the id field is set. */ boolean hasId(); /** * required string Id = 1; + * @return The id. */ java.lang.String getId(); /** * required string Id = 1; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * required int32 Type = 2; + * @return Whether the type field is set. */ boolean hasType(); /** * required int32 Type = 2; + * @return The type. */ int getType(); /** * required bool IsRequired = 3; + * @return Whether the isRequired field is set. */ boolean hasIsRequired(); /** * required bool IsRequired = 3; + * @return The isRequired. */ boolean getIsRequired(); /** * required int32 Source = 4; + * @return Whether the source field is set. */ boolean hasSource(); /** * required int32 Source = 4; + * @return The source. */ int getSource(); } @@ -7417,89 +8303,30 @@ public static final class DocumentMetadataItemV2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2) DocumentMetadataItemV2OrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DocumentMetadataItemV2.class.getName()); + } // Use DocumentMetadataItemV2.newBuilder() to construct. private DocumentMetadataItemV2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DocumentMetadataItemV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DocumentMetadataItemV2 defaultInstance; - public static DocumentMetadataItemV2 getDefaultInstance() { - return defaultInstance; } - - public DocumentMetadataItemV2 getDefaultInstanceForType() { - return defaultInstance; + private DocumentMetadataItemV2() { + id_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DocumentMetadataItemV2( - 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; - id_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - type_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - isRequired_ = input.readBool(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - source_ = input.readInt32(); - 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.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentMetadataItemV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentMetadataItemV2_fieldAccessorTable @@ -7507,33 +8334,23 @@ private DocumentMetadataItemV2( Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.class, Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DocumentMetadataItemV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentMetadataItemV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * required string Id = 1; + * @return Whether the id field is set. */ + @java.lang.Override public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Id = 1; + * @return The id. */ + @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { @@ -7550,7 +8367,9 @@ public java.lang.String getId() { } /** * required string Id = 1; + * @return The bytes for id. */ + @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; @@ -7566,57 +8385,64 @@ public java.lang.String getId() { } public static final int TYPE_FIELD_NUMBER = 2; - private int type_; + private int type_ = 0; /** * required int32 Type = 2; + * @return Whether the type field is set. */ + @java.lang.Override public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required int32 Type = 2; + * @return The type. */ + @java.lang.Override public int getType() { return type_; } public static final int ISREQUIRED_FIELD_NUMBER = 3; - private boolean isRequired_; + private boolean isRequired_ = false; /** * required bool IsRequired = 3; + * @return Whether the isRequired field is set. */ + @java.lang.Override public boolean hasIsRequired() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required bool IsRequired = 3; + * @return The isRequired. */ + @java.lang.Override public boolean getIsRequired() { return isRequired_; } public static final int SOURCE_FIELD_NUMBER = 4; - private int source_; + private int source_ = 0; /** * required int32 Source = 4; + * @return Whether the source field is set. */ + @java.lang.Override public boolean hasSource() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required int32 Source = 4; + * @return The source. */ + @java.lang.Override public int getSource() { return source_; } - private void initFields() { - id_ = ""; - type_ = 0; - isRequired_ = false; - source_ = 0; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -7642,58 +8468,124 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, type_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, isRequired_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, source_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, type_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isRequired_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, source_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 other = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (getType() + != other.getType()) return false; + } + if (hasIsRequired() != other.hasIsRequired()) return false; + if (hasIsRequired()) { + if (getIsRequired() + != other.getIsRequired()) return false; + } + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (getSource() + != other.getSource()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType(); + } + if (hasIsRequired()) { + hash = (37 * hash) + ISREQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRequired()); + } + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7717,42 +8609,57 @@ public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.D } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -7772,6 +8679,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentMetadataItemV2_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentMetadataItemV2_fieldAccessorTable @@ -7781,48 +8689,37 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); isRequired_ = false; - bitField0_ = (bitField0_ & ~0x00000004); source_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.internal_static_Diadoc_Api_Proto_Documents_Types_DocumentMetadataItemV2_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 build() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 result = buildPartial(); if (!result.isInitialized()) { @@ -7831,31 +8728,37 @@ public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.Document return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 buildPartial() { Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 result = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; to_bitField0_ |= 0x00000001; } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; to_bitField0_ |= 0x00000002; } - result.type_ = type_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isRequired_ = isRequired_; to_bitField0_ |= 0x00000004; } - result.isRequired_ = isRequired_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.source_ = source_; to_bitField0_ |= 0x00000008; } - result.source_ = source_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2) { return mergeFrom((Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2)other); @@ -7868,8 +8771,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 other) { if (other == Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2.getDefaultInstance()) return this; if (other.hasId()) { - bitField0_ |= 0x00000001; id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasType()) { @@ -7882,44 +8785,76 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptio setSource(other.getSource()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasId()) { - return false; } if (!hasType()) { - return false; } if (!hasIsRequired()) { - return false; } if (!hasSource()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + isRequired_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + source_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -7927,12 +8862,14 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** * required string Id = 1; + * @return Whether the id field is set. */ public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Id = 1; + * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -7950,6 +8887,7 @@ public java.lang.String getId() { } /** * required string Id = 1; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -7966,36 +8904,37 @@ public java.lang.String getId() { } /** * required string Id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Id = 1; + * @return This builder for chaining. */ public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8003,27 +8942,35 @@ public Builder setIdBytes( private int type_ ; /** * required int32 Type = 2; + * @return Whether the type field is set. */ + @java.lang.Override public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required int32 Type = 2; + * @return The type. */ + @java.lang.Override public int getType() { return type_; } /** * required int32 Type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType(int value) { - bitField0_ |= 0x00000002; + type_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int32 Type = 2; + * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); @@ -8035,27 +8982,35 @@ public Builder clearType() { private boolean isRequired_ ; /** * required bool IsRequired = 3; + * @return Whether the isRequired field is set. */ + @java.lang.Override public boolean hasIsRequired() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required bool IsRequired = 3; + * @return The isRequired. */ + @java.lang.Override public boolean getIsRequired() { return isRequired_; } /** * required bool IsRequired = 3; + * @param value The isRequired to set. + * @return This builder for chaining. */ public Builder setIsRequired(boolean value) { - bitField0_ |= 0x00000004; + isRequired_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required bool IsRequired = 3; + * @return This builder for chaining. */ public Builder clearIsRequired() { bitField0_ = (bitField0_ & ~0x00000004); @@ -8067,27 +9022,35 @@ public Builder clearIsRequired() { private int source_ ; /** * required int32 Source = 4; + * @return Whether the source field is set. */ + @java.lang.Override public boolean hasSource() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required int32 Source = 4; + * @return The source. */ + @java.lang.Override public int getSource() { return source_; } /** * required int32 Source = 4; + * @param value The source to set. + * @return This builder for chaining. */ public Builder setSource(int value) { - bitField0_ |= 0x00000008; + source_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required int32 Source = 4; + * @return This builder for chaining. */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000008); @@ -8099,52 +9062,92 @@ public Builder clearSource() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2) + private static final Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 DEFAULT_INSTANCE; static { - defaultInstance = new DocumentMetadataItemV2(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2(); + } + + public static Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentMetadataItemV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.Types.DocumentTypeDescriptionV2Protos.DocumentMetadataItemV2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.Types.DocumentMetadataItemV2) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTypeDescriptionV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTypeDescriptionV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Types_GetDocumentTypesResponseV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Types_GetDocumentTypesResponseV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Types_DocumentFunctionV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Types_DocumentFunctionV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Types_DocumentVersionV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Types_DocumentVersionV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Types_DocumentWorkflowV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Types_DocumentWorkflowV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTitleV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTitleV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Types_SignerInfoV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Types_SignerInfoV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_Types_DocumentMetadataItemV2_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_Types_DocumentMetadataItemV2_fieldAccessorTable; @@ -8152,7 +9155,7 @@ public Builder clearSource() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -8165,7 +9168,7 @@ public Builder clearSource() { ".Documents.Types.DocumentFunctionV2\"p\n\032G" + "etDocumentTypesResponseV2\022R\n\rDocumentTyp" + "es\030\001 \003(\0132;.Diadoc.Api.Proto.Documents.Ty" + - "pes.DocumentTypeDescriptionV2\"i\n\022Documen", + "pes.DocumentTypeDescriptionV2\"i\n\022Documen" + "tFunctionV2\022\014\n\004Name\030\001 \002(\t\022E\n\010Versions\030\002 " + "\003(\01323.Diadoc.Api.Proto.Documents.Types.D" + "ocumentVersionV2\"\313\002\n\021DocumentVersionV2\022\017" + @@ -8175,7 +9178,7 @@ public Builder clearSource() { "\n\030SupportsAmendmentRequest\030\010 \002(\010\022A\n\006Titl" + "es\030\004 \003(\01321.Diadoc.Api.Proto.Documents.Ty" + "pes.DocumentTitleV2\022\020\n\010IsActual\030\005 \002(\010\022G\n" + - "\tWorkflows\030\006 \003(\01324.Diadoc.Api.Proto.Docu", + "\tWorkflows\030\006 \003(\01324.Diadoc.Api.Proto.Docu" + "ments.Types.DocumentWorkflowV2\"3\n\022Docume" + "ntWorkflowV2\022\n\n\002Id\030\001 \002(\005\022\021\n\tIsDefault\030\002 " + "\002(\010\"\311\002\n\017DocumentTitleV2\022\r\n\005Index\030\007 \002(\005\022\020" + @@ -8185,7 +9188,7 @@ public Builder clearSource() { "foV2\022O\n\rMetadataItems\030\003 \003(\01328.Diadoc.Api" + ".Proto.Documents.Types.DocumentMetadataI" + "temV2\022X\n\026EncryptedMetadataItems\030\004 \003(\01328." + - "Diadoc.Api.Proto.Documents.Types.Documen", + "Diadoc.Api.Proto.Documents.Types.Documen" + "tMetadataItemV2\"g\n\014SignerInfoV2\022\022\n\nSigne" + "rType\030\001 \002(\005\022%\n\031ExtendedDocumentTitleType" + "\030\002 \002(\005:\002-1\022\034\n\024SignerUserDataXsdUrl\030\003 \001(\t" + @@ -8194,18 +9197,10 @@ public Builder clearSource() { "ce\030\004 \002(\005B!B\037DocumentTypeDescriptionV2Pro" + "tos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTypeDescriptionV2_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_Types_DocumentTypeDescriptionV2_fieldAccessorTable = new @@ -8254,6 +9249,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_Types_DocumentMetadataItemV2_descriptor, new java.lang.String[] { "Id", "Type", "IsRequired", "Source", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Documents/UnilateralDocument/UnilateralDocumentProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/UnilateralDocument/UnilateralDocumentProtos.java index 36aabb09..f3903341 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/UnilateralDocument/UnilateralDocumentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/UnilateralDocument/UnilateralDocumentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/UnilateralDocument.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents.UnilateralDocument; public final class UnilateralDocumentProtos { private UnilateralDocumentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UnilateralDocumentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus} @@ -14,49 +31,58 @@ public static void registerAllExtensions( public enum UnilateralDocumentStatus implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownUnilateralDocumentStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownUnilateralDocumentStatus = 0; */ - UnknownUnilateralDocumentStatus(0, 0), + UnknownUnilateralDocumentStatus(0), /** * Outbound = 1; */ - Outbound(1, 1), + Outbound(1), /** * OutboundWaitingForSenderSignature = 4; */ - OutboundWaitingForSenderSignature(2, 4), + OutboundWaitingForSenderSignature(4), /** * OutboundInvalidSenderSignature = 5; */ - OutboundInvalidSenderSignature(3, 5), + OutboundInvalidSenderSignature(5), /** * Inbound = 2; */ - Inbound(4, 2), + Inbound(2), /** * Internal = 3; */ - Internal(5, 3), + Internal(3), /** * InternalWaitingForSenderSignature = 6; */ - InternalWaitingForSenderSignature(6, 6), + InternalWaitingForSenderSignature(6), /** * InternalInvalidSenderSignature = 7; */ - InternalInvalidSenderSignature(7, 7), + InternalInvalidSenderSignature(7), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UnilateralDocumentStatus.class.getName()); + } /** - * UnknownUnilateralDocumentStatus = 0; - * *
      * Reserved status to report to legacy clients for newly introduced statuses
      * 
+ * + * UnknownUnilateralDocumentStatus = 0; */ public static final int UnknownUnilateralDocumentStatus_VALUE = 0; /** @@ -89,9 +115,25 @@ public enum UnilateralDocumentStatus public static final int InternalInvalidSenderSignature_VALUE = 7; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static UnilateralDocumentStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static UnilateralDocumentStatus forNumber(int value) { switch (value) { case 0: return UnknownUnilateralDocumentStatus; case 1: return Outbound; @@ -109,17 +151,17 @@ public static UnilateralDocumentStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + UnilateralDocumentStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public UnilateralDocumentStatus findValueByNumber(int number) { - return UnilateralDocumentStatus.valueOf(number); + return UnilateralDocumentStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -141,11 +183,9 @@ public static UnilateralDocumentStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private UnilateralDocumentStatus(int index, int value) { - this.index = index; + private UnilateralDocumentStatus(int value) { this.value = value; } @@ -158,61 +198,74 @@ public interface ProformaInvoiceMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus getDocumentStatus(); /** * required string Total = 2; + * @return Whether the total field is set. */ boolean hasTotal(); /** * required string Total = 2; + * @return The total. */ java.lang.String getTotal(); /** * required string Total = 2; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** * optional string Vat = 3; + * @return Whether the vat field is set. */ boolean hasVat(); /** * optional string Vat = 3; + * @return The vat. */ java.lang.String getVat(); /** * optional string Vat = 3; + * @return The bytes for vat. */ com.google.protobuf.ByteString getVatBytes(); /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ boolean hasGrounds(); /** * optional string Grounds = 4; + * @return The grounds. */ java.lang.String getGrounds(); /** * optional string Grounds = 4; + * @return The bytes for grounds. */ com.google.protobuf.ByteString getGroundsBytes(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus(); } @@ -223,108 +276,34 @@ public static final class ProformaInvoiceMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata) ProformaInvoiceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ProformaInvoiceMetadata.class.getName()); + } // Use ProformaInvoiceMetadata.newBuilder() to construct. private ProformaInvoiceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private ProformaInvoiceMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ProformaInvoiceMetadata defaultInstance; - public static ProformaInvoiceMetadata getDefaultInstance() { - return defaultInstance; - } - - public ProformaInvoiceMetadata getDefaultInstanceForType() { - return defaultInstance; + private ProformaInvoiceMetadata() { + documentStatus_ = 0; + total_ = ""; + vat_ = ""; + grounds_ = ""; + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProformaInvoiceMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus value = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - total_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - vat_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - grounds_ = bs; - break; - } - case 40: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - receiptStatus_ = value; - } - 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.Documents.UnilateralDocument.UnilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ProformaInvoiceMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ProformaInvoiceMetadata_fieldAccessorTable @@ -332,48 +311,41 @@ private ProformaInvoiceMetadata( Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.class, Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ProformaInvoiceMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProformaInvoiceMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus result = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus : result; } public static final int TOTAL_FIELD_NUMBER = 2; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** * required string Total = 2; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Total = 2; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -390,7 +362,9 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -406,16 +380,21 @@ public java.lang.String getTotal() { } public static final int VAT_FIELD_NUMBER = 3; - private java.lang.Object vat_; + @SuppressWarnings("serial") + private volatile java.lang.Object vat_ = ""; /** * optional string Vat = 3; + * @return Whether the vat field is set. */ + @java.lang.Override public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Vat = 3; + * @return The vat. */ + @java.lang.Override public java.lang.String getVat() { java.lang.Object ref = vat_; if (ref instanceof java.lang.String) { @@ -432,7 +411,9 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @return The bytes for vat. */ + @java.lang.Override public com.google.protobuf.ByteString getVatBytes() { java.lang.Object ref = vat_; @@ -448,16 +429,21 @@ public java.lang.String getVat() { } public static final int GROUNDS_FIELD_NUMBER = 4; - private java.lang.Object grounds_; + @SuppressWarnings("serial") + private volatile java.lang.Object grounds_ = ""; /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ + @java.lang.Override public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Grounds = 4; + * @return The grounds. */ + @java.lang.Override public java.lang.String getGrounds() { java.lang.Object ref = grounds_; if (ref instanceof java.lang.String) { @@ -474,7 +460,9 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @return The bytes for grounds. */ + @java.lang.Override public com.google.protobuf.ByteString getGroundsBytes() { java.lang.Object ref = grounds_; @@ -490,28 +478,25 @@ public java.lang.String getGrounds() { } public static final int RECEIPTSTATUS_FIELD_NUMBER = 5; - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus; - total_ = ""; - vat_ = ""; - grounds_ = ""; - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -525,65 +510,135 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, receiptStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, receiptStatus_.getNumber()); + .computeEnumSize(5, receiptStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata other = (Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (hasVat() != other.hasVat()) return false; + if (hasVat()) { + if (!getVat() + .equals(other.getVat())) return false; + } + if (hasGrounds() != other.hasGrounds()) return false; + if (hasGrounds()) { + if (!getGrounds() + .equals(other.getGrounds())) return false; + } + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + if (hasVat()) { + hash = (37 * hash) + VAT_FIELD_NUMBER; + hash = (53 * hash) + getVat().hashCode(); + } + if (hasGrounds()) { + hash = (37 * hash) + GROUNDS_FIELD_NUMBER; + hash = (53 * hash) + getGrounds().hashCode(); + } + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -607,42 +662,57 @@ public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentPr } public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -662,6 +732,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ProformaInvoiceMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ProformaInvoiceMetadata_fieldAccessorTable @@ -671,50 +742,38 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentStatus_ = 0; total_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); vat_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); grounds_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - bitField0_ = (bitField0_ & ~0x00000010); + receiptStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ProformaInvoiceMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata build() { Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -723,35 +782,41 @@ public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.Pr return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata buildPartial() { Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata result = new Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000002; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vat_ = vat_; to_bitField0_ |= 0x00000004; } - result.vat_ = vat_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.grounds_ = grounds_; to_bitField0_ |= 0x00000008; } - result.grounds_ = grounds_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000010; } - result.receiptStatus_ = receiptStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata)other); @@ -767,85 +832,146 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.UnilateralDocument.Unilatera setDocumentStatus(other.getDocumentStatus()); } if (other.hasTotal()) { - bitField0_ |= 0x00000002; total_ = other.total_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasVat()) { - bitField0_ |= 0x00000004; vat_ = other.vat_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasGrounds()) { - bitField0_ |= 0x00000008; grounds_ = other.grounds_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReceiptStatus()) { setReceiptStatus(other.getReceiptStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotal()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + total_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + vat_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + grounds_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus result = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } @@ -853,12 +979,14 @@ public Builder clearDocumentStatus() { private java.lang.Object total_ = ""; /** * required string Total = 2; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string Total = 2; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -876,6 +1004,7 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -892,36 +1021,37 @@ public java.lang.String getTotal() { } /** * required string Total = 2; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string Total = 2; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000002); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string Total = 2; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -929,12 +1059,14 @@ public Builder setTotalBytes( private java.lang.Object vat_ = ""; /** * optional string Vat = 3; + * @return Whether the vat field is set. */ public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Vat = 3; + * @return The vat. */ public java.lang.String getVat() { java.lang.Object ref = vat_; @@ -952,6 +1084,7 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @return The bytes for vat. */ public com.google.protobuf.ByteString getVatBytes() { @@ -968,36 +1101,37 @@ public java.lang.String getVat() { } /** * optional string Vat = 3; + * @param value The vat to set. + * @return This builder for chaining. */ public Builder setVat( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string Vat = 3; + * @return This builder for chaining. */ public Builder clearVat() { - bitField0_ = (bitField0_ & ~0x00000004); vat_ = getDefaultInstance().getVat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string Vat = 3; + * @param value The bytes for vat to set. + * @return This builder for chaining. */ public Builder setVatBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1005,12 +1139,14 @@ public Builder setVatBytes( private java.lang.Object grounds_ = ""; /** * optional string Grounds = 4; + * @return Whether the grounds field is set. */ public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string Grounds = 4; + * @return The grounds. */ public java.lang.String getGrounds() { java.lang.Object ref = grounds_; @@ -1028,6 +1164,7 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @return The bytes for grounds. */ public com.google.protobuf.ByteString getGroundsBytes() { @@ -1044,71 +1181,79 @@ public java.lang.String getGrounds() { } /** * optional string Grounds = 4; + * @param value The grounds to set. + * @return This builder for chaining. */ public Builder setGrounds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string Grounds = 4; + * @return This builder for chaining. */ public Builder clearGrounds() { - bitField0_ = (bitField0_ & ~0x00000008); grounds_ = getDefaultInstance().getGrounds(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string Grounds = 4; + * @param value The bytes for grounds to set. + * @return This builder for chaining. */ public Builder setGroundsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + private int receiptStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 5 [default = UnknownReceiptStatus]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000010); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + receiptStatus_ = 0; onChanged(); return this; } @@ -1116,12 +1261,52 @@ public Builder clearReceiptStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata) + private static final Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata DEFAULT_INSTANCE; static { - defaultInstance = new ProformaInvoiceMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata(); + } + + public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProformaInvoiceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ProformaInvoiceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UnilateralDocument.ProformaInvoiceMetadata) } public interface ServiceDetailsMetadataOrBuilder extends @@ -1130,19 +1315,23 @@ public interface ServiceDetailsMetadataOrBuilder extends /** * required .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * required .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus getDocumentStatus(); /** * required .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ boolean hasReceiptStatus(); /** * required .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus(); } @@ -1153,90 +1342,31 @@ public static final class ServiceDetailsMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata) ServiceDetailsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + ServiceDetailsMetadata.class.getName()); + } // Use ServiceDetailsMetadata.newBuilder() to construct. private ServiceDetailsMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private ServiceDetailsMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ServiceDetailsMetadata defaultInstance; - public static ServiceDetailsMetadata getDefaultInstance() { - return defaultInstance; - } - - public ServiceDetailsMetadata getDefaultInstanceForType() { - return defaultInstance; + private ServiceDetailsMetadata() { + documentStatus_ = 0; + receiptStatus_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ServiceDetailsMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus value = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 16: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - receiptStatus_ = value; - } - 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.Documents.UnilateralDocument.UnilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ServiceDetailsMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ServiceDetailsMetadata_fieldAccessorTable @@ -1244,57 +1374,45 @@ private ServiceDetailsMetadata( Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.class, Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ServiceDetailsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServiceDetailsMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus result = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus : result; } public static final int RECEIPTSTATUS_FIELD_NUMBER = 2; - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_; + private int receiptStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ - public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus; - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1312,44 +1430,90 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, receiptStatus_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, receiptStatus_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, receiptStatus_.getNumber()); + .computeEnumSize(2, receiptStatus_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata other = (Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasReceiptStatus() != other.hasReceiptStatus()) return false; + if (hasReceiptStatus()) { + if (receiptStatus_ != other.receiptStatus_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasReceiptStatus()) { + hash = (37 * hash) + RECEIPTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + receiptStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1373,42 +1537,57 @@ public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentPr } public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1428,6 +1607,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ServiceDetailsMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ServiceDetailsMetadata_fieldAccessorTable @@ -1437,44 +1617,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = 0; + documentStatus_ = 0; + receiptStatus_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ServiceDetailsMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata build() { Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -1483,23 +1654,29 @@ public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.Se return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata buildPartial() { Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata result = new Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receiptStatus_ = receiptStatus_; to_bitField0_ |= 0x00000002; } - result.receiptStatus_ = receiptStatus_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata)other); @@ -1518,106 +1695,158 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.UnilateralDocument.Unilatera setReceiptStatus(other.getReceiptStatus()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocumentStatus()) { - return false; } if (!hasReceiptStatus()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 16: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus tmpValue = + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + receiptStatus_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus; + private int documentStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus result = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus : result; } /** * required .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentStatus DocumentStatus = 1 [default = UnknownUnilateralDocumentStatus]; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.UnilateralDocumentStatus.UnknownUnilateralDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + private int receiptStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return Whether the receiptStatus field is set. */ - public boolean hasReceiptStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasReceiptStatus() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return The receiptStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus getReceiptStatus() { - return receiptStatus_; + Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus result = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.forNumber(receiptStatus_); + return result == null ? Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus : result; } /** * required .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @param value The receiptStatus to set. + * @return This builder for chaining. */ public Builder setReceiptStatus(Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - receiptStatus_ = value; + receiptStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.ReceiptStatus ReceiptStatus = 2 [default = UnknownReceiptStatus]; + * @return This builder for chaining. */ public Builder clearReceiptStatus() { bitField0_ = (bitField0_ & ~0x00000002); - receiptStatus_ = Diadoc.Api.Proto.Documents.ReceiptStatusProtos.ReceiptStatus.UnknownReceiptStatus; + receiptStatus_ = 0; onChanged(); return this; } @@ -1625,22 +1854,62 @@ public Builder clearReceiptStatus() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata) + private static final Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata DEFAULT_INSTANCE; static { - defaultInstance = new ServiceDetailsMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata(); + } + + public static Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceDetailsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.UnilateralDocument.UnilateralDocumentProtos.ServiceDetailsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UnilateralDocument.ServiceDetailsMetadata) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ProformaInvoiceMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ProformaInvoiceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ServiceDetailsMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ServiceDetailsMetadata_fieldAccessorTable; @@ -1648,7 +1917,7 @@ public Builder clearReceiptStatus() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1661,7 +1930,7 @@ public Builder clearReceiptStatus() { ":\037UnknownUnilateralDocumentStatus\022\r\n\005Tot" + "al\030\002 \002(\t\022\013\n\003Vat\030\003 \001(\t\022\017\n\007Grounds\030\004 \001(\t\022V" + "\n\rReceiptStatus\030\005 \001(\0162).Diadoc.Api.Proto" + - ".Documents.ReceiptStatus:\024UnknownReceipt", + ".Documents.ReceiptStatus:\024UnknownReceipt" + "Status\"\363\001\n\026ServiceDetailsMetadata\022\200\001\n\016Do" + "cumentStatus\030\001 \002(\0162G.Diadoc.Api.Proto.Do" + "cuments.UnilateralDocument.UnilateralDoc" + @@ -1671,25 +1940,17 @@ public Builder clearReceiptStatus() { "eceiptStatus*\376\001\n\030UnilateralDocumentStatu" + "s\022#\n\037UnknownUnilateralDocumentStatus\020\000\022\014" + "\n\010Outbound\020\001\022%\n!OutboundWaitingForSender" + - "Signature\020\004\022\"\n\036OutboundInvalidSenderSign", + "Signature\020\004\022\"\n\036OutboundInvalidSenderSign" + "ature\020\005\022\013\n\007Inbound\020\002\022\014\n\010Internal\020\003\022%\n!In" + "ternalWaitingForSenderSignature\020\006\022\"\n\036Int" + "ernalInvalidSenderSignature\020\007B\032B\030Unilate" + "ralDocumentProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Documents.ReceiptStatusProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ProformaInvoiceMetadata_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ProformaInvoiceMetadata_fieldAccessorTable = new @@ -1702,6 +1963,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_UnilateralDocument_ServiceDetailsMetadata_descriptor, new java.lang.String[] { "DocumentStatus", "ReceiptStatus", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Documents.ReceiptStatusProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Documents/UniversalTransferDocument/UniversalTransferDocumentProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/UniversalTransferDocument/UniversalTransferDocumentProtos.java index 01a8d969..1e9c33b5 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/UniversalTransferDocument/UniversalTransferDocumentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/UniversalTransferDocument/UniversalTransferDocumentProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Documents/UniversalTransferDocument.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Documents.UniversalTransferDocument; public final class UniversalTransferDocumentProtos { private UniversalTransferDocumentProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UniversalTransferDocumentProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus} @@ -14,81 +31,90 @@ public static void registerAllExtensions( public enum UniversalTransferDocumentStatus implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownDocumentStatus = 0; - * *
      * This type will be reported to legacy client when it receives unknown status from server
      * 
+ * + * UnknownDocumentStatus = 0; */ - UnknownDocumentStatus(0, 0), + UnknownDocumentStatus(0), /** * OutboundWaitingForSenderSignature = 1; */ - OutboundWaitingForSenderSignature(1, 1), + OutboundWaitingForSenderSignature(1), /** * OutboundWaitingForInvoiceReceiptAndRecipientSignature = 2; */ - OutboundWaitingForInvoiceReceiptAndRecipientSignature(2, 2), + OutboundWaitingForInvoiceReceiptAndRecipientSignature(2), /** * OutboundWaitingForInvoiceReceipt = 3; */ - OutboundWaitingForInvoiceReceipt(3, 3), + OutboundWaitingForInvoiceReceipt(3), /** * OutboundWaitingForRecipientSignature = 4; */ - OutboundWaitingForRecipientSignature(4, 4), + OutboundWaitingForRecipientSignature(4), /** * OutboundWithRecipientSignature = 5; */ - OutboundWithRecipientSignature(5, 5), + OutboundWithRecipientSignature(5), /** * OutboundRecipientSignatureRequestRejected = 6; */ - OutboundRecipientSignatureRequestRejected(6, 6), + OutboundRecipientSignatureRequestRejected(6), /** * OutboundInvalidSenderSignature = 7; */ - OutboundInvalidSenderSignature(7, 7), + OutboundInvalidSenderSignature(7), /** * OutboundNotFinished = 8; */ - OutboundNotFinished(8, 8), + OutboundNotFinished(8), /** * OutboundFinished = 9; */ - OutboundFinished(9, 9), + OutboundFinished(9), /** * InboundWaitingForRecipientSignature = 16; */ - InboundWaitingForRecipientSignature(10, 16), + InboundWaitingForRecipientSignature(16), /** * InboundWithRecipientSignature = 17; */ - InboundWithRecipientSignature(11, 17), + InboundWithRecipientSignature(17), /** * InboundRecipientSignatureRequestRejected = 18; */ - InboundRecipientSignatureRequestRejected(12, 18), + InboundRecipientSignatureRequestRejected(18), /** * InboundInvalidRecipientSignature = 19; */ - InboundInvalidRecipientSignature(13, 19), + InboundInvalidRecipientSignature(19), /** * InboundNotFinished = 20; */ - InboundNotFinished(14, 20), + InboundNotFinished(20), /** * InboundFinished = 21; */ - InboundFinished(15, 21), + InboundFinished(21), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UniversalTransferDocumentStatus.class.getName()); + } /** - * UnknownDocumentStatus = 0; - * *
      * This type will be reported to legacy client when it receives unknown status from server
      * 
+ * + * UnknownDocumentStatus = 0; */ public static final int UnknownDocumentStatus_VALUE = 0; /** @@ -153,9 +179,25 @@ public enum UniversalTransferDocumentStatus public static final int InboundFinished_VALUE = 21; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static UniversalTransferDocumentStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static UniversalTransferDocumentStatus forNumber(int value) { switch (value) { case 0: return UnknownDocumentStatus; case 1: return OutboundWaitingForSenderSignature; @@ -181,17 +223,17 @@ public static UniversalTransferDocumentStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + UniversalTransferDocumentStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public UniversalTransferDocumentStatus findValueByNumber(int number) { - return UniversalTransferDocumentStatus.valueOf(number); + return UniversalTransferDocumentStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -213,11 +255,9 @@ public static UniversalTransferDocumentStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private UniversalTransferDocumentStatus(int index, int value) { - this.index = index; + private UniversalTransferDocumentStatus(int value) { this.value = value; } @@ -230,129 +270,149 @@ public interface UniversalTransferDocumentMetadataOrBuilder extends /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1 [default = UnknownDocumentStatus]; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1 [default = UnknownDocumentStatus]; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus(); /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return Whether the total field is set. */ boolean hasTotal(); /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return The total. */ java.lang.String getTotal(); /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return Whether the vat field is set. */ boolean hasVat(); /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return The vat. */ java.lang.String getVat(); /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return The bytes for vat. */ com.google.protobuf.ByteString getVatBytes(); /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return Whether the grounds field is set. */ boolean hasGrounds(); /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return The grounds. */ java.lang.String getGrounds(); /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return The bytes for grounds. */ com.google.protobuf.ByteString getGroundsBytes(); /** * required string DocumentFunction = 5; + * @return Whether the documentFunction field is set. */ boolean hasDocumentFunction(); /** * required string DocumentFunction = 5; + * @return The documentFunction. */ java.lang.String getDocumentFunction(); /** * required string DocumentFunction = 5; + * @return The bytes for documentFunction. */ com.google.protobuf.ByteString getDocumentFunctionBytes(); /** * required int32 Currency = 6; + * @return Whether the currency field is set. */ boolean hasCurrency(); /** * required int32 Currency = 6; + * @return The currency. */ int getCurrency(); /** * optional sfixed64 ConfirmationDateTimeTicks = 8; + * @return Whether the confirmationDateTimeTicks field is set. */ boolean hasConfirmationDateTimeTicks(); /** * optional sfixed64 ConfirmationDateTimeTicks = 8; + * @return The confirmationDateTimeTicks. */ long getConfirmationDateTimeTicks(); /** * optional int32 InvoiceAmendmentFlags = 9; + * @return Whether the invoiceAmendmentFlags field is set. */ boolean hasInvoiceAmendmentFlags(); /** * optional int32 InvoiceAmendmentFlags = 9; + * @return The invoiceAmendmentFlags. */ int getInvoiceAmendmentFlags(); } @@ -363,118 +423,34 @@ public static final class UniversalTransferDocumentMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata) UniversalTransferDocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UniversalTransferDocumentMetadata.class.getName()); + } // Use UniversalTransferDocumentMetadata.newBuilder() to construct. private UniversalTransferDocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private UniversalTransferDocumentMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final UniversalTransferDocumentMetadata defaultInstance; - public static UniversalTransferDocumentMetadata getDefaultInstance() { - return defaultInstance; } - - public UniversalTransferDocumentMetadata getDefaultInstanceForType() { - return defaultInstance; + private UniversalTransferDocumentMetadata() { + documentStatus_ = 0; + total_ = ""; + vat_ = ""; + grounds_ = ""; + documentFunction_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UniversalTransferDocumentMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus value = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - total_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - vat_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - grounds_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - documentFunction_ = bs; - break; - } - case 48: { - bitField0_ |= 0x00000020; - currency_ = input.readInt32(); - break; - } - case 65: { - bitField0_ |= 0x00000040; - confirmationDateTimeTicks_ = input.readSFixed64(); - break; - } - case 72: { - bitField0_ |= 0x00000080; - invoiceAmendmentFlags_ = input.readInt32(); - 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.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentMetadata_fieldAccessorTable @@ -482,56 +458,49 @@ private UniversalTransferDocumentMetadata( Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.class, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UniversalTransferDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UniversalTransferDocumentMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1 [default = UnknownDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1 [default = UnknownDocumentStatus]; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus result = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus : result; } public static final int TOTAL_FIELD_NUMBER = 2; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -547,12 +516,14 @@ public java.lang.String getTotal() { } } /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -568,24 +539,29 @@ public java.lang.String getTotal() { } public static final int VAT_FIELD_NUMBER = 3; - private java.lang.Object vat_; + @SuppressWarnings("serial") + private volatile java.lang.Object vat_ = ""; /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return Whether the vat field is set. */ + @java.lang.Override public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return The vat. */ + @java.lang.Override public java.lang.String getVat() { java.lang.Object ref = vat_; if (ref instanceof java.lang.String) { @@ -601,12 +577,14 @@ public java.lang.String getVat() { } } /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return The bytes for vat. */ + @java.lang.Override public com.google.protobuf.ByteString getVatBytes() { java.lang.Object ref = vat_; @@ -622,24 +600,29 @@ public java.lang.String getVat() { } public static final int GROUNDS_FIELD_NUMBER = 4; - private java.lang.Object grounds_; + @SuppressWarnings("serial") + private volatile java.lang.Object grounds_ = ""; /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return Whether the grounds field is set. */ + @java.lang.Override public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return The grounds. */ + @java.lang.Override public java.lang.String getGrounds() { java.lang.Object ref = grounds_; if (ref instanceof java.lang.String) { @@ -655,12 +638,14 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return The bytes for grounds. */ + @java.lang.Override public com.google.protobuf.ByteString getGroundsBytes() { java.lang.Object ref = grounds_; @@ -676,16 +661,21 @@ public java.lang.String getGrounds() { } public static final int DOCUMENTFUNCTION_FIELD_NUMBER = 5; - private java.lang.Object documentFunction_; + @SuppressWarnings("serial") + private volatile java.lang.Object documentFunction_ = ""; /** * required string DocumentFunction = 5; + * @return Whether the documentFunction field is set. */ + @java.lang.Override public boolean hasDocumentFunction() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string DocumentFunction = 5; + * @return The documentFunction. */ + @java.lang.Override public java.lang.String getDocumentFunction() { java.lang.Object ref = documentFunction_; if (ref instanceof java.lang.String) { @@ -702,7 +692,9 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 5; + * @return The bytes for documentFunction. */ + @java.lang.Override public com.google.protobuf.ByteString getDocumentFunctionBytes() { java.lang.Object ref = documentFunction_; @@ -718,61 +710,64 @@ public java.lang.String getDocumentFunction() { } public static final int CURRENCY_FIELD_NUMBER = 6; - private int currency_; + private int currency_ = 0; /** * required int32 Currency = 6; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required int32 Currency = 6; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } public static final int CONFIRMATIONDATETIMETICKS_FIELD_NUMBER = 8; - private long confirmationDateTimeTicks_; + private long confirmationDateTimeTicks_ = 0L; /** * optional sfixed64 ConfirmationDateTimeTicks = 8; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional sfixed64 ConfirmationDateTimeTicks = 8; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } public static final int INVOICEAMENDMENTFLAGS_FIELD_NUMBER = 9; - private int invoiceAmendmentFlags_; + private int invoiceAmendmentFlags_ = 0; /** * optional int32 InvoiceAmendmentFlags = 9; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional int32 InvoiceAmendmentFlags = 9; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; - total_ = ""; - vat_ = ""; - grounds_ = ""; - documentFunction_ = ""; - currency_ = 0; - confirmationDateTimeTicks_ = 0L; - invoiceAmendmentFlags_ = 0; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -794,86 +789,184 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getDocumentFunctionBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, documentFunction_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(6, currency_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeSFixed64(8, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeInt32(9, invoiceAmendmentFlags_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getDocumentFunctionBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, documentFunction_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, currency_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(8, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, invoiceAmendmentFlags_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata other = (Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (hasVat() != other.hasVat()) return false; + if (hasVat()) { + if (!getVat() + .equals(other.getVat())) return false; + } + if (hasGrounds() != other.hasGrounds()) return false; + if (hasGrounds()) { + if (!getGrounds() + .equals(other.getGrounds())) return false; + } + if (hasDocumentFunction() != other.hasDocumentFunction()) return false; + if (hasDocumentFunction()) { + if (!getDocumentFunction() + .equals(other.getDocumentFunction())) return false; + } + if (hasCurrency() != other.hasCurrency()) return false; + if (hasCurrency()) { + if (getCurrency() + != other.getCurrency()) return false; + } + if (hasConfirmationDateTimeTicks() != other.hasConfirmationDateTimeTicks()) return false; + if (hasConfirmationDateTimeTicks()) { + if (getConfirmationDateTimeTicks() + != other.getConfirmationDateTimeTicks()) return false; + } + if (hasInvoiceAmendmentFlags() != other.hasInvoiceAmendmentFlags()) return false; + if (hasInvoiceAmendmentFlags()) { + if (getInvoiceAmendmentFlags() + != other.getInvoiceAmendmentFlags()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + if (hasVat()) { + hash = (37 * hash) + VAT_FIELD_NUMBER; + hash = (53 * hash) + getVat().hashCode(); + } + if (hasGrounds()) { + hash = (37 * hash) + GROUNDS_FIELD_NUMBER; + hash = (53 * hash) + getGrounds().hashCode(); + } + if (hasDocumentFunction()) { + hash = (37 * hash) + DOCUMENTFUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getDocumentFunction().hashCode(); + } + if (hasCurrency()) { + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency(); + } + if (hasConfirmationDateTimeTicks()) { + hash = (37 * hash) + CONFIRMATIONDATETIMETICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConfirmationDateTimeTicks()); + } + if (hasInvoiceAmendmentFlags()) { + hash = (37 * hash) + INVOICEAMENDMENTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceAmendmentFlags(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -897,42 +990,57 @@ public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTran } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -952,6 +1060,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentMetadata_fieldAccessorTable @@ -961,56 +1070,41 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentStatus_ = 0; total_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); vat_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); grounds_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); documentFunction_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); currency_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); confirmationDateTimeTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000040); invoiceAmendmentFlags_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata build() { Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -1019,47 +1113,53 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata buildPartial() { Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata result = new Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000002; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vat_ = vat_; to_bitField0_ |= 0x00000004; } - result.vat_ = vat_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.grounds_ = grounds_; to_bitField0_ |= 0x00000008; } - result.grounds_ = grounds_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.documentFunction_ = documentFunction_; to_bitField0_ |= 0x00000010; } - result.documentFunction_ = documentFunction_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.currency_ = currency_; to_bitField0_ |= 0x00000020; } - result.currency_ = currency_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; to_bitField0_ |= 0x00000040; } - result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; to_bitField0_ |= 0x00000080; } - result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata)other); @@ -1075,23 +1175,23 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.UniversalTransferDocument.Un setDocumentStatus(other.getDocumentStatus()); } if (other.hasTotal()) { - bitField0_ |= 0x00000002; total_ = other.total_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasVat()) { - bitField0_ |= 0x00000004; vat_ = other.vat_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasGrounds()) { - bitField0_ |= 0x00000008; grounds_ = other.grounds_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasDocumentFunction()) { - bitField0_ |= 0x00000010; documentFunction_ = other.documentFunction_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasCurrency()) { @@ -1104,96 +1204,165 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.UniversalTransferDocument.Un setInvoiceAmendmentFlags(other.getInvoiceAmendmentFlags()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotal()) { - return false; } if (!hasDocumentFunction()) { - return false; } if (!hasCurrency()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + total_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + vat_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + grounds_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + documentFunction_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + currency_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 65: { + confirmationDateTimeTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000040; + break; + } // case 65 + case 72: { + invoiceAmendmentFlags_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; + private int documentStatus_ = 0; /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1 [default = UnknownDocumentStatus]; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1 [default = UnknownDocumentStatus]; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus result = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus : result; } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1 [default = UnknownDocumentStatus]; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1 [default = UnknownDocumentStatus]; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } private java.lang.Object total_ = ""; /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -1210,11 +1379,12 @@ public java.lang.String getTotal() { } } /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -1230,70 +1400,73 @@ public java.lang.String getTotal() { } } /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000002); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object vat_ = ""; /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @return Whether the vat field is set. */ public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @return The vat. */ public java.lang.String getVat() { java.lang.Object ref = vat_; @@ -1310,11 +1483,12 @@ public java.lang.String getVat() { } } /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @return The bytes for vat. */ public com.google.protobuf.ByteString getVatBytes() { @@ -1330,70 +1504,73 @@ public java.lang.String getVat() { } } /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @param value The vat to set. + * @return This builder for chaining. */ public Builder setVat( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @return This builder for chaining. */ public Builder clearVat() { - bitField0_ = (bitField0_ & ~0x00000004); vat_ = getDefaultInstance().getVat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @param value The bytes for vat to set. + * @return This builder for chaining. */ public Builder setVatBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object grounds_ = ""; /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @return Whether the grounds field is set. */ public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @return The grounds. */ public java.lang.String getGrounds() { java.lang.Object ref = grounds_; @@ -1410,11 +1587,12 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @return The bytes for grounds. */ public com.google.protobuf.ByteString getGroundsBytes() { @@ -1430,49 +1608,50 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @param value The grounds to set. + * @return This builder for chaining. */ public Builder setGrounds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @return This builder for chaining. */ public Builder clearGrounds() { - bitField0_ = (bitField0_ & ~0x00000008); grounds_ = getDefaultInstance().getGrounds(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @param value The bytes for grounds to set. + * @return This builder for chaining. */ public Builder setGroundsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1480,12 +1659,14 @@ public Builder setGroundsBytes( private java.lang.Object documentFunction_ = ""; /** * required string DocumentFunction = 5; + * @return Whether the documentFunction field is set. */ public boolean hasDocumentFunction() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string DocumentFunction = 5; + * @return The documentFunction. */ public java.lang.String getDocumentFunction() { java.lang.Object ref = documentFunction_; @@ -1503,6 +1684,7 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 5; + * @return The bytes for documentFunction. */ public com.google.protobuf.ByteString getDocumentFunctionBytes() { @@ -1519,36 +1701,37 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 5; + * @param value The documentFunction to set. + * @return This builder for chaining. */ public Builder setDocumentFunction( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } documentFunction_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * required string DocumentFunction = 5; + * @return This builder for chaining. */ public Builder clearDocumentFunction() { - bitField0_ = (bitField0_ & ~0x00000010); documentFunction_ = getDefaultInstance().getDocumentFunction(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * required string DocumentFunction = 5; + * @param value The bytes for documentFunction to set. + * @return This builder for chaining. */ public Builder setDocumentFunctionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } documentFunction_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1556,27 +1739,35 @@ public Builder setDocumentFunctionBytes( private int currency_ ; /** * required int32 Currency = 6; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required int32 Currency = 6; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } /** * required int32 Currency = 6; + * @param value The currency to set. + * @return This builder for chaining. */ public Builder setCurrency(int value) { - bitField0_ |= 0x00000020; + currency_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * required int32 Currency = 6; + * @return This builder for chaining. */ public Builder clearCurrency() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1588,27 +1779,35 @@ public Builder clearCurrency() { private long confirmationDateTimeTicks_ ; /** * optional sfixed64 ConfirmationDateTimeTicks = 8; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional sfixed64 ConfirmationDateTimeTicks = 8; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } /** * optional sfixed64 ConfirmationDateTimeTicks = 8; + * @param value The confirmationDateTimeTicks to set. + * @return This builder for chaining. */ public Builder setConfirmationDateTimeTicks(long value) { - bitField0_ |= 0x00000040; + confirmationDateTimeTicks_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional sfixed64 ConfirmationDateTimeTicks = 8; + * @return This builder for chaining. */ public Builder clearConfirmationDateTimeTicks() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1620,27 +1819,35 @@ public Builder clearConfirmationDateTimeTicks() { private int invoiceAmendmentFlags_ ; /** * optional int32 InvoiceAmendmentFlags = 9; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional int32 InvoiceAmendmentFlags = 9; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } /** * optional int32 InvoiceAmendmentFlags = 9; + * @param value The invoiceAmendmentFlags to set. + * @return This builder for chaining. */ public Builder setInvoiceAmendmentFlags(int value) { - bitField0_ |= 0x00000080; + invoiceAmendmentFlags_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional int32 InvoiceAmendmentFlags = 9; + * @return This builder for chaining. */ public Builder clearInvoiceAmendmentFlags() { bitField0_ = (bitField0_ & ~0x00000080); @@ -1652,12 +1859,52 @@ public Builder clearInvoiceAmendmentFlags() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata) + private static final Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata DEFAULT_INSTANCE; static { - defaultInstance = new UniversalTransferDocumentMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata(); + } + + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UniversalTransferDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentMetadata) } public interface UniversalTransferDocumentRevisionMetadataOrBuilder extends @@ -1666,156 +1913,182 @@ public interface UniversalTransferDocumentRevisionMetadataOrBuilder extends /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus(); /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return Whether the total field is set. */ boolean hasTotal(); /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return The total. */ java.lang.String getTotal(); /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return The bytes for total. */ com.google.protobuf.ByteString getTotalBytes(); /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return Whether the vat field is set. */ boolean hasVat(); /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return The vat. */ java.lang.String getVat(); /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return The bytes for vat. */ com.google.protobuf.ByteString getVatBytes(); /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return Whether the grounds field is set. */ boolean hasGrounds(); /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return The grounds. */ java.lang.String getGrounds(); /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return The bytes for grounds. */ com.google.protobuf.ByteString getGroundsBytes(); /** * required string DocumentFunction = 5; + * @return Whether the documentFunction field is set. */ boolean hasDocumentFunction(); /** * required string DocumentFunction = 5; + * @return The documentFunction. */ java.lang.String getDocumentFunction(); /** * required string DocumentFunction = 5; + * @return The bytes for documentFunction. */ com.google.protobuf.ByteString getDocumentFunctionBytes(); /** * required int32 Currency = 6; + * @return Whether the currency field is set. */ boolean hasCurrency(); /** * required int32 Currency = 6; + * @return The currency. */ int getCurrency(); /** * optional sfixed64 ConfirmationDateTimeTicks = 7; + * @return Whether the confirmationDateTimeTicks field is set. */ boolean hasConfirmationDateTimeTicks(); /** * optional sfixed64 ConfirmationDateTimeTicks = 7; + * @return The confirmationDateTimeTicks. */ long getConfirmationDateTimeTicks(); /** * required int32 InvoiceAmendmentFlags = 8; + * @return Whether the invoiceAmendmentFlags field is set. */ boolean hasInvoiceAmendmentFlags(); /** * required int32 InvoiceAmendmentFlags = 8; + * @return The invoiceAmendmentFlags. */ int getInvoiceAmendmentFlags(); /** * required string OriginalInvoiceNumber = 9; + * @return Whether the originalInvoiceNumber field is set. */ boolean hasOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 9; + * @return The originalInvoiceNumber. */ java.lang.String getOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 9; + * @return The bytes for originalInvoiceNumber. */ com.google.protobuf.ByteString getOriginalInvoiceNumberBytes(); /** * required string OriginalInvoiceDate = 10; + * @return Whether the originalInvoiceDate field is set. */ boolean hasOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 10; + * @return The originalInvoiceDate. */ java.lang.String getOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 10; + * @return The bytes for originalInvoiceDate. */ com.google.protobuf.ByteString getOriginalInvoiceDateBytes(); @@ -1827,130 +2100,36 @@ public static final class UniversalTransferDocumentRevisionMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata) UniversalTransferDocumentRevisionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UniversalTransferDocumentRevisionMetadata.class.getName()); + } // Use UniversalTransferDocumentRevisionMetadata.newBuilder() to construct. private UniversalTransferDocumentRevisionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private UniversalTransferDocumentRevisionMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final UniversalTransferDocumentRevisionMetadata defaultInstance; - public static UniversalTransferDocumentRevisionMetadata getDefaultInstance() { - return defaultInstance; } - - public UniversalTransferDocumentRevisionMetadata getDefaultInstanceForType() { - return defaultInstance; + private UniversalTransferDocumentRevisionMetadata() { + documentStatus_ = 0; + total_ = ""; + vat_ = ""; + grounds_ = ""; + documentFunction_ = ""; + originalInvoiceNumber_ = ""; + originalInvoiceDate_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UniversalTransferDocumentRevisionMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus value = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - total_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - vat_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - grounds_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - documentFunction_ = bs; - break; - } - case 48: { - bitField0_ |= 0x00000020; - currency_ = input.readInt32(); - break; - } - case 57: { - bitField0_ |= 0x00000040; - confirmationDateTimeTicks_ = input.readSFixed64(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - invoiceAmendmentFlags_ = input.readInt32(); - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - originalInvoiceNumber_ = bs; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - originalInvoiceDate_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentRevisionMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentRevisionMetadata_fieldAccessorTable @@ -1958,56 +2137,49 @@ private UniversalTransferDocumentRevisionMetadata( Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.class, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UniversalTransferDocumentRevisionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UniversalTransferDocumentRevisionMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus result = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus : result; } public static final int TOTAL_FIELD_NUMBER = 2; - private java.lang.Object total_; + @SuppressWarnings("serial") + private volatile java.lang.Object total_ = ""; /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return Whether the total field is set. */ + @java.lang.Override public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return The total. */ + @java.lang.Override public java.lang.String getTotal() { java.lang.Object ref = total_; if (ref instanceof java.lang.String) { @@ -2023,12 +2195,14 @@ public java.lang.String getTotal() { } } /** - * required string Total = 2; - * *
      * TotalSum;
      * 
+ * + * required string Total = 2; + * @return The bytes for total. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalBytes() { java.lang.Object ref = total_; @@ -2044,24 +2218,29 @@ public java.lang.String getTotal() { } public static final int VAT_FIELD_NUMBER = 3; - private java.lang.Object vat_; + @SuppressWarnings("serial") + private volatile java.lang.Object vat_ = ""; /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return Whether the vat field is set. */ + @java.lang.Override public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return The vat. */ + @java.lang.Override public java.lang.String getVat() { java.lang.Object ref = vat_; if (ref instanceof java.lang.String) { @@ -2077,12 +2256,14 @@ public java.lang.String getVat() { } } /** - * optional string Vat = 3; - * *
-     *TotalVat;
+     * TotalVat;
      * 
+ * + * optional string Vat = 3; + * @return The bytes for vat. */ + @java.lang.Override public com.google.protobuf.ByteString getVatBytes() { java.lang.Object ref = vat_; @@ -2098,24 +2279,29 @@ public java.lang.String getVat() { } public static final int GROUNDS_FIELD_NUMBER = 4; - private java.lang.Object grounds_; + @SuppressWarnings("serial") + private volatile java.lang.Object grounds_ = ""; /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return Whether the grounds field is set. */ + @java.lang.Override public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return The grounds. */ + @java.lang.Override public java.lang.String getGrounds() { java.lang.Object ref = grounds_; if (ref instanceof java.lang.String) { @@ -2131,12 +2317,14 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 4; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 4; + * @return The bytes for grounds. */ + @java.lang.Override public com.google.protobuf.ByteString getGroundsBytes() { java.lang.Object ref = grounds_; @@ -2152,16 +2340,21 @@ public java.lang.String getGrounds() { } public static final int DOCUMENTFUNCTION_FIELD_NUMBER = 5; - private java.lang.Object documentFunction_; + @SuppressWarnings("serial") + private volatile java.lang.Object documentFunction_ = ""; /** * required string DocumentFunction = 5; + * @return Whether the documentFunction field is set. */ + @java.lang.Override public boolean hasDocumentFunction() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string DocumentFunction = 5; + * @return The documentFunction. */ + @java.lang.Override public java.lang.String getDocumentFunction() { java.lang.Object ref = documentFunction_; if (ref instanceof java.lang.String) { @@ -2178,7 +2371,9 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 5; + * @return The bytes for documentFunction. */ + @java.lang.Override public com.google.protobuf.ByteString getDocumentFunctionBytes() { java.lang.Object ref = documentFunction_; @@ -2194,61 +2389,78 @@ public java.lang.String getDocumentFunction() { } public static final int CURRENCY_FIELD_NUMBER = 6; - private int currency_; + private int currency_ = 0; /** * required int32 Currency = 6; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required int32 Currency = 6; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } public static final int CONFIRMATIONDATETIMETICKS_FIELD_NUMBER = 7; - private long confirmationDateTimeTicks_; + private long confirmationDateTimeTicks_ = 0L; /** * optional sfixed64 ConfirmationDateTimeTicks = 7; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional sfixed64 ConfirmationDateTimeTicks = 7; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } public static final int INVOICEAMENDMENTFLAGS_FIELD_NUMBER = 8; - private int invoiceAmendmentFlags_; + private int invoiceAmendmentFlags_ = 0; /** * required int32 InvoiceAmendmentFlags = 8; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required int32 InvoiceAmendmentFlags = 8; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } public static final int ORIGINALINVOICENUMBER_FIELD_NUMBER = 9; - private java.lang.Object originalInvoiceNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 9; + * @return Whether the originalInvoiceNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required string OriginalInvoiceNumber = 9; + * @return The originalInvoiceNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; if (ref instanceof java.lang.String) { @@ -2265,7 +2477,9 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 9; + * @return The bytes for originalInvoiceNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { java.lang.Object ref = originalInvoiceNumber_; @@ -2281,16 +2495,21 @@ public java.lang.String getOriginalInvoiceNumber() { } public static final int ORIGINALINVOICEDATE_FIELD_NUMBER = 10; - private java.lang.Object originalInvoiceDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 10; + * @return Whether the originalInvoiceDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required string OriginalInvoiceDate = 10; + * @return The originalInvoiceDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; if (ref instanceof java.lang.String) { @@ -2307,7 +2526,9 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 10; + * @return The bytes for originalInvoiceDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { java.lang.Object ref = originalInvoiceDate_; @@ -2322,19 +2543,8 @@ public java.lang.String getOriginalInvoiceDate() { } } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; - total_ = ""; - vat_ = ""; - grounds_ = ""; - documentFunction_ = ""; - currency_ = 0; - confirmationDateTimeTicks_ = 0L; - invoiceAmendmentFlags_ = 0; - originalInvoiceNumber_ = ""; - originalInvoiceDate_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2372,100 +2582,214 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getDocumentFunctionBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, documentFunction_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(6, currency_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeSFixed64(7, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeInt32(8, invoiceAmendmentFlags_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(10, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, originalInvoiceDate_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, total_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getVatBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getGroundsBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, grounds_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getDocumentFunctionBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, documentFunction_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, currency_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(7, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, invoiceAmendmentFlags_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, originalInvoiceDate_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata other = (Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal() + .equals(other.getTotal())) return false; + } + if (hasVat() != other.hasVat()) return false; + if (hasVat()) { + if (!getVat() + .equals(other.getVat())) return false; + } + if (hasGrounds() != other.hasGrounds()) return false; + if (hasGrounds()) { + if (!getGrounds() + .equals(other.getGrounds())) return false; + } + if (hasDocumentFunction() != other.hasDocumentFunction()) return false; + if (hasDocumentFunction()) { + if (!getDocumentFunction() + .equals(other.getDocumentFunction())) return false; + } + if (hasCurrency() != other.hasCurrency()) return false; + if (hasCurrency()) { + if (getCurrency() + != other.getCurrency()) return false; + } + if (hasConfirmationDateTimeTicks() != other.hasConfirmationDateTimeTicks()) return false; + if (hasConfirmationDateTimeTicks()) { + if (getConfirmationDateTimeTicks() + != other.getConfirmationDateTimeTicks()) return false; + } + if (hasInvoiceAmendmentFlags() != other.hasInvoiceAmendmentFlags()) return false; + if (hasInvoiceAmendmentFlags()) { + if (getInvoiceAmendmentFlags() + != other.getInvoiceAmendmentFlags()) return false; + } + if (hasOriginalInvoiceNumber() != other.hasOriginalInvoiceNumber()) return false; + if (hasOriginalInvoiceNumber()) { + if (!getOriginalInvoiceNumber() + .equals(other.getOriginalInvoiceNumber())) return false; + } + if (hasOriginalInvoiceDate() != other.hasOriginalInvoiceDate()) return false; + if (hasOriginalInvoiceDate()) { + if (!getOriginalInvoiceDate() + .equals(other.getOriginalInvoiceDate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + if (hasVat()) { + hash = (37 * hash) + VAT_FIELD_NUMBER; + hash = (53 * hash) + getVat().hashCode(); + } + if (hasGrounds()) { + hash = (37 * hash) + GROUNDS_FIELD_NUMBER; + hash = (53 * hash) + getGrounds().hashCode(); + } + if (hasDocumentFunction()) { + hash = (37 * hash) + DOCUMENTFUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getDocumentFunction().hashCode(); + } + if (hasCurrency()) { + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency(); + } + if (hasConfirmationDateTimeTicks()) { + hash = (37 * hash) + CONFIRMATIONDATETIMETICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConfirmationDateTimeTicks()); + } + if (hasInvoiceAmendmentFlags()) { + hash = (37 * hash) + INVOICEAMENDMENTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceAmendmentFlags(); + } + if (hasOriginalInvoiceNumber()) { + hash = (37 * hash) + ORIGINALINVOICENUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceNumber().hashCode(); + } + if (hasOriginalInvoiceDate()) { + hash = (37 * hash) + ORIGINALINVOICEDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2489,42 +2813,57 @@ public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTran } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2544,6 +2883,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentRevisionMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentRevisionMetadata_fieldAccessorTable @@ -2553,60 +2893,43 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentStatus_ = 0; total_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); vat_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); grounds_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); documentFunction_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); currency_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); confirmationDateTimeTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000040); invoiceAmendmentFlags_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); originalInvoiceNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); originalInvoiceDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentRevisionMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata build() { Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -2615,55 +2938,61 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata buildPartial() { Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata result = new Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; to_bitField0_ |= 0x00000002; } - result.total_ = total_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vat_ = vat_; to_bitField0_ |= 0x00000004; } - result.vat_ = vat_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.grounds_ = grounds_; to_bitField0_ |= 0x00000008; } - result.grounds_ = grounds_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.documentFunction_ = documentFunction_; to_bitField0_ |= 0x00000010; } - result.documentFunction_ = documentFunction_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.currency_ = currency_; to_bitField0_ |= 0x00000020; } - result.currency_ = currency_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; to_bitField0_ |= 0x00000040; } - result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; to_bitField0_ |= 0x00000080; } - result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.originalInvoiceNumber_ = originalInvoiceNumber_; to_bitField0_ |= 0x00000100; } - result.originalInvoiceNumber_ = originalInvoiceNumber_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.originalInvoiceDate_ = originalInvoiceDate_; to_bitField0_ |= 0x00000200; } - result.originalInvoiceDate_ = originalInvoiceDate_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata)other); @@ -2679,23 +3008,23 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.UniversalTransferDocument.Un setDocumentStatus(other.getDocumentStatus()); } if (other.hasTotal()) { - bitField0_ |= 0x00000002; total_ = other.total_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasVat()) { - bitField0_ |= 0x00000004; vat_ = other.vat_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasGrounds()) { - bitField0_ |= 0x00000008; grounds_ = other.grounds_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasDocumentFunction()) { - bitField0_ |= 0x00000010; documentFunction_ = other.documentFunction_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasCurrency()) { @@ -2708,122 +3037,197 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.UniversalTransferDocument.Un setInvoiceAmendmentFlags(other.getInvoiceAmendmentFlags()); } if (other.hasOriginalInvoiceNumber()) { - bitField0_ |= 0x00000100; originalInvoiceNumber_ = other.originalInvoiceNumber_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasOriginalInvoiceDate()) { - bitField0_ |= 0x00000200; originalInvoiceDate_ = other.originalInvoiceDate_; + bitField0_ |= 0x00000200; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocumentStatus()) { - return false; } if (!hasTotal()) { - return false; } if (!hasDocumentFunction()) { - return false; } if (!hasCurrency()) { - return false; } if (!hasInvoiceAmendmentFlags()) { - return false; } if (!hasOriginalInvoiceNumber()) { - return false; } if (!hasOriginalInvoiceDate()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + total_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + vat_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + grounds_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + documentFunction_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + currency_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 57: { + confirmationDateTimeTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 64: { + invoiceAmendmentFlags_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: { + originalInvoiceNumber_ = input.readBytes(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + originalInvoiceDate_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; + private int documentStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus result = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus : result; } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } private java.lang.Object total_ = ""; /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @return Whether the total field is set. */ public boolean hasTotal() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @return The total. */ public java.lang.String getTotal() { java.lang.Object ref = total_; @@ -2840,11 +3244,12 @@ public java.lang.String getTotal() { } } /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @return The bytes for total. */ public com.google.protobuf.ByteString getTotalBytes() { @@ -2860,70 +3265,73 @@ public java.lang.String getTotal() { } } /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @param value The total to set. + * @return This builder for chaining. */ public Builder setTotal( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @return This builder for chaining. */ public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000002); total_ = getDefaultInstance().getTotal(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * required string Total = 2; - * *
        * TotalSum;
        * 
+ * + * required string Total = 2; + * @param value The bytes for total to set. + * @return This builder for chaining. */ public Builder setTotalBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object vat_ = ""; /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @return Whether the vat field is set. */ public boolean hasVat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @return The vat. */ public java.lang.String getVat() { java.lang.Object ref = vat_; @@ -2940,11 +3348,12 @@ public java.lang.String getVat() { } } /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @return The bytes for vat. */ public com.google.protobuf.ByteString getVatBytes() { @@ -2960,70 +3369,73 @@ public java.lang.String getVat() { } } /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @param value The vat to set. + * @return This builder for chaining. */ public Builder setVat( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @return This builder for chaining. */ public Builder clearVat() { - bitField0_ = (bitField0_ & ~0x00000004); vat_ = getDefaultInstance().getVat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * optional string Vat = 3; - * *
-       *TotalVat;
+       * TotalVat;
        * 
+ * + * optional string Vat = 3; + * @param value The bytes for vat to set. + * @return This builder for chaining. */ public Builder setVatBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } vat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object grounds_ = ""; /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @return Whether the grounds field is set. */ public boolean hasGrounds() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @return The grounds. */ public java.lang.String getGrounds() { java.lang.Object ref = grounds_; @@ -3040,11 +3452,12 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @return The bytes for grounds. */ public com.google.protobuf.ByteString getGroundsBytes() { @@ -3060,49 +3473,50 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @param value The grounds to set. + * @return This builder for chaining. */ public Builder setGrounds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @return This builder for chaining. */ public Builder clearGrounds() { - bitField0_ = (bitField0_ & ~0x00000008); grounds_ = getDefaultInstance().getGrounds(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** - * optional string Grounds = 4; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 4; + * @param value The bytes for grounds to set. + * @return This builder for chaining. */ public Builder setGroundsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3110,12 +3524,14 @@ public Builder setGroundsBytes( private java.lang.Object documentFunction_ = ""; /** * required string DocumentFunction = 5; + * @return Whether the documentFunction field is set. */ public boolean hasDocumentFunction() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string DocumentFunction = 5; + * @return The documentFunction. */ public java.lang.String getDocumentFunction() { java.lang.Object ref = documentFunction_; @@ -3133,6 +3549,7 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 5; + * @return The bytes for documentFunction. */ public com.google.protobuf.ByteString getDocumentFunctionBytes() { @@ -3149,36 +3566,37 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 5; + * @param value The documentFunction to set. + * @return This builder for chaining. */ public Builder setDocumentFunction( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } documentFunction_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * required string DocumentFunction = 5; + * @return This builder for chaining. */ public Builder clearDocumentFunction() { - bitField0_ = (bitField0_ & ~0x00000010); documentFunction_ = getDefaultInstance().getDocumentFunction(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * required string DocumentFunction = 5; + * @param value The bytes for documentFunction to set. + * @return This builder for chaining. */ public Builder setDocumentFunctionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } documentFunction_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3186,27 +3604,35 @@ public Builder setDocumentFunctionBytes( private int currency_ ; /** * required int32 Currency = 6; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required int32 Currency = 6; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } /** * required int32 Currency = 6; + * @param value The currency to set. + * @return This builder for chaining. */ public Builder setCurrency(int value) { - bitField0_ |= 0x00000020; + currency_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * required int32 Currency = 6; + * @return This builder for chaining. */ public Builder clearCurrency() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3218,27 +3644,35 @@ public Builder clearCurrency() { private long confirmationDateTimeTicks_ ; /** * optional sfixed64 ConfirmationDateTimeTicks = 7; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional sfixed64 ConfirmationDateTimeTicks = 7; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } /** * optional sfixed64 ConfirmationDateTimeTicks = 7; + * @param value The confirmationDateTimeTicks to set. + * @return This builder for chaining. */ public Builder setConfirmationDateTimeTicks(long value) { - bitField0_ |= 0x00000040; + confirmationDateTimeTicks_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional sfixed64 ConfirmationDateTimeTicks = 7; + * @return This builder for chaining. */ public Builder clearConfirmationDateTimeTicks() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3250,27 +3684,35 @@ public Builder clearConfirmationDateTimeTicks() { private int invoiceAmendmentFlags_ ; /** * required int32 InvoiceAmendmentFlags = 8; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required int32 InvoiceAmendmentFlags = 8; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } /** * required int32 InvoiceAmendmentFlags = 8; + * @param value The invoiceAmendmentFlags to set. + * @return This builder for chaining. */ public Builder setInvoiceAmendmentFlags(int value) { - bitField0_ |= 0x00000080; + invoiceAmendmentFlags_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * required int32 InvoiceAmendmentFlags = 8; + * @return This builder for chaining. */ public Builder clearInvoiceAmendmentFlags() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3282,12 +3724,14 @@ public Builder clearInvoiceAmendmentFlags() { private java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 9; + * @return Whether the originalInvoiceNumber field is set. */ public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required string OriginalInvoiceNumber = 9; + * @return The originalInvoiceNumber. */ public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; @@ -3305,6 +3749,7 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 9; + * @return The bytes for originalInvoiceNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { @@ -3321,36 +3766,37 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 9; + * @param value The originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * required string OriginalInvoiceNumber = 9; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceNumber() { - bitField0_ = (bitField0_ & ~0x00000100); originalInvoiceNumber_ = getDefaultInstance().getOriginalInvoiceNumber(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * required string OriginalInvoiceNumber = 9; + * @param value The bytes for originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3358,12 +3804,14 @@ public Builder setOriginalInvoiceNumberBytes( private java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 10; + * @return Whether the originalInvoiceDate field is set. */ public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required string OriginalInvoiceDate = 10; + * @return The originalInvoiceDate. */ public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; @@ -3381,6 +3829,7 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 10; + * @return The bytes for originalInvoiceDate. */ public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { @@ -3397,49 +3846,90 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 10; + * @param value The originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * required string OriginalInvoiceDate = 10; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceDate() { - bitField0_ = (bitField0_ & ~0x00000200); originalInvoiceDate_ = getDefaultInstance().getOriginalInvoiceDate(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * required string OriginalInvoiceDate = 10; + * @param value The bytes for originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata) + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata) + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata) + private static final Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata(); + } + + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UniversalTransferDocumentRevisionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - static { - defaultInstance = new UniversalTransferDocumentRevisionMetadata(true); - defaultInstance.initFields(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentRevisionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata) } public interface UniversalCorrectionDocumentMetadataOrBuilder extends @@ -3448,188 +3938,226 @@ public interface UniversalCorrectionDocumentMetadataOrBuilder extends /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus(); /** * required string TotalInc = 2; + * @return Whether the totalInc field is set. */ boolean hasTotalInc(); /** * required string TotalInc = 2; + * @return The totalInc. */ java.lang.String getTotalInc(); /** * required string TotalInc = 2; + * @return The bytes for totalInc. */ com.google.protobuf.ByteString getTotalIncBytes(); /** * required string TotalDec = 3; + * @return Whether the totalDec field is set. */ boolean hasTotalDec(); /** * required string TotalDec = 3; + * @return The totalDec. */ java.lang.String getTotalDec(); /** * required string TotalDec = 3; + * @return The bytes for totalDec. */ com.google.protobuf.ByteString getTotalDecBytes(); /** * required string VatInc = 4; + * @return Whether the vatInc field is set. */ boolean hasVatInc(); /** * required string VatInc = 4; + * @return The vatInc. */ java.lang.String getVatInc(); /** * required string VatInc = 4; + * @return The bytes for vatInc. */ com.google.protobuf.ByteString getVatIncBytes(); /** * required string VatDec = 5; + * @return Whether the vatDec field is set. */ boolean hasVatDec(); /** * required string VatDec = 5; + * @return The vatDec. */ java.lang.String getVatDec(); /** * required string VatDec = 5; + * @return The bytes for vatDec. */ com.google.protobuf.ByteString getVatDecBytes(); /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return Whether the grounds field is set. */ boolean hasGrounds(); /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return The grounds. */ java.lang.String getGrounds(); /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return The bytes for grounds. */ com.google.protobuf.ByteString getGroundsBytes(); /** * required string DocumentFunction = 7; + * @return Whether the documentFunction field is set. */ boolean hasDocumentFunction(); /** * required string DocumentFunction = 7; + * @return The documentFunction. */ java.lang.String getDocumentFunction(); /** * required string DocumentFunction = 7; + * @return The bytes for documentFunction. */ com.google.protobuf.ByteString getDocumentFunctionBytes(); /** * required int32 Currency = 8; + * @return Whether the currency field is set. */ boolean hasCurrency(); /** * required int32 Currency = 8; + * @return The currency. */ int getCurrency(); /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return Whether the confirmationDateTimeTicks field is set. */ boolean hasConfirmationDateTimeTicks(); /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return The confirmationDateTimeTicks. */ long getConfirmationDateTimeTicks(); /** * required int32 InvoiceAmendmentFlags = 10; + * @return Whether the invoiceAmendmentFlags field is set. */ boolean hasInvoiceAmendmentFlags(); /** * required int32 InvoiceAmendmentFlags = 10; + * @return The invoiceAmendmentFlags. */ int getInvoiceAmendmentFlags(); /** * required string OriginalInvoiceNumber = 11; + * @return Whether the originalInvoiceNumber field is set. */ boolean hasOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 11; + * @return The originalInvoiceNumber. */ java.lang.String getOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 11; + * @return The bytes for originalInvoiceNumber. */ com.google.protobuf.ByteString getOriginalInvoiceNumberBytes(); /** * required string OriginalInvoiceDate = 12; + * @return Whether the originalInvoiceDate field is set. */ boolean hasOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 12; + * @return The originalInvoiceDate. */ java.lang.String getOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 12; + * @return The bytes for originalInvoiceDate. */ com.google.protobuf.ByteString getOriginalInvoiceDateBytes(); /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return Whether the originalInvoiceRevisionNumber field is set. */ boolean hasOriginalInvoiceRevisionNumber(); /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The originalInvoiceRevisionNumber. */ java.lang.String getOriginalInvoiceRevisionNumber(); /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The bytes for originalInvoiceRevisionNumber. */ com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes(); /** * optional string OriginalInvoiceRevisionDate = 14; + * @return Whether the originalInvoiceRevisionDate field is set. */ boolean hasOriginalInvoiceRevisionDate(); /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The originalInvoiceRevisionDate. */ java.lang.String getOriginalInvoiceRevisionDate(); /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The bytes for originalInvoiceRevisionDate. */ com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes(); @@ -3641,154 +4169,40 @@ public static final class UniversalCorrectionDocumentMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata) UniversalCorrectionDocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UniversalCorrectionDocumentMetadata.class.getName()); + } // Use UniversalCorrectionDocumentMetadata.newBuilder() to construct. private UniversalCorrectionDocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private UniversalCorrectionDocumentMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final UniversalCorrectionDocumentMetadata defaultInstance; - public static UniversalCorrectionDocumentMetadata getDefaultInstance() { - return defaultInstance; } - - public UniversalCorrectionDocumentMetadata getDefaultInstanceForType() { - return defaultInstance; + private UniversalCorrectionDocumentMetadata() { + documentStatus_ = 0; + totalInc_ = ""; + totalDec_ = ""; + vatInc_ = ""; + vatDec_ = ""; + grounds_ = ""; + documentFunction_ = ""; + originalInvoiceNumber_ = ""; + originalInvoiceDate_ = ""; + originalInvoiceRevisionNumber_ = ""; + originalInvoiceRevisionDate_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UniversalCorrectionDocumentMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus value = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - totalInc_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - totalDec_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - vatInc_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - vatDec_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - grounds_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - documentFunction_ = bs; - break; - } - case 64: { - bitField0_ |= 0x00000080; - currency_ = input.readInt32(); - break; - } - case 73: { - bitField0_ |= 0x00000100; - confirmationDateTimeTicks_ = input.readSFixed64(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - invoiceAmendmentFlags_ = input.readInt32(); - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - originalInvoiceNumber_ = bs; - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000800; - originalInvoiceDate_ = bs; - break; - } - case 106: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00001000; - originalInvoiceRevisionNumber_ = bs; - break; - } - case 114: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00002000; - originalInvoiceRevisionDate_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentMetadata_fieldAccessorTable @@ -3796,48 +4210,41 @@ private UniversalCorrectionDocumentMetadata( Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.class, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UniversalCorrectionDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UniversalCorrectionDocumentMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus result = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus : result; } public static final int TOTALINC_FIELD_NUMBER = 2; - private java.lang.Object totalInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalInc_ = ""; /** * required string TotalInc = 2; + * @return Whether the totalInc field is set. */ + @java.lang.Override public boolean hasTotalInc() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string TotalInc = 2; + * @return The totalInc. */ + @java.lang.Override public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; if (ref instanceof java.lang.String) { @@ -3854,7 +4261,9 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 2; + * @return The bytes for totalInc. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalIncBytes() { java.lang.Object ref = totalInc_; @@ -3870,16 +4279,21 @@ public java.lang.String getTotalInc() { } public static final int TOTALDEC_FIELD_NUMBER = 3; - private java.lang.Object totalDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalDec_ = ""; /** * required string TotalDec = 3; + * @return Whether the totalDec field is set. */ + @java.lang.Override public boolean hasTotalDec() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string TotalDec = 3; + * @return The totalDec. */ + @java.lang.Override public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; if (ref instanceof java.lang.String) { @@ -3896,7 +4310,9 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 3; + * @return The bytes for totalDec. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalDecBytes() { java.lang.Object ref = totalDec_; @@ -3912,16 +4328,21 @@ public java.lang.String getTotalDec() { } public static final int VATINC_FIELD_NUMBER = 4; - private java.lang.Object vatInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatInc_ = ""; /** * required string VatInc = 4; + * @return Whether the vatInc field is set. */ + @java.lang.Override public boolean hasVatInc() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string VatInc = 4; + * @return The vatInc. */ + @java.lang.Override public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; if (ref instanceof java.lang.String) { @@ -3938,7 +4359,9 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 4; + * @return The bytes for vatInc. */ + @java.lang.Override public com.google.protobuf.ByteString getVatIncBytes() { java.lang.Object ref = vatInc_; @@ -3954,16 +4377,21 @@ public java.lang.String getVatInc() { } public static final int VATDEC_FIELD_NUMBER = 5; - private java.lang.Object vatDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatDec_ = ""; /** * required string VatDec = 5; + * @return Whether the vatDec field is set. */ + @java.lang.Override public boolean hasVatDec() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string VatDec = 5; + * @return The vatDec. */ + @java.lang.Override public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; if (ref instanceof java.lang.String) { @@ -3980,7 +4408,9 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 5; + * @return The bytes for vatDec. */ + @java.lang.Override public com.google.protobuf.ByteString getVatDecBytes() { java.lang.Object ref = vatDec_; @@ -3996,24 +4426,29 @@ public java.lang.String getVatDec() { } public static final int GROUNDS_FIELD_NUMBER = 6; - private java.lang.Object grounds_; + @SuppressWarnings("serial") + private volatile java.lang.Object grounds_ = ""; /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return Whether the grounds field is set. */ + @java.lang.Override public boolean hasGrounds() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return The grounds. */ + @java.lang.Override public java.lang.String getGrounds() { java.lang.Object ref = grounds_; if (ref instanceof java.lang.String) { @@ -4029,12 +4464,14 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return The bytes for grounds. */ + @java.lang.Override public com.google.protobuf.ByteString getGroundsBytes() { java.lang.Object ref = grounds_; @@ -4050,16 +4487,21 @@ public java.lang.String getGrounds() { } public static final int DOCUMENTFUNCTION_FIELD_NUMBER = 7; - private java.lang.Object documentFunction_; + @SuppressWarnings("serial") + private volatile java.lang.Object documentFunction_ = ""; /** * required string DocumentFunction = 7; + * @return Whether the documentFunction field is set. */ + @java.lang.Override public boolean hasDocumentFunction() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required string DocumentFunction = 7; + * @return The documentFunction. */ + @java.lang.Override public java.lang.String getDocumentFunction() { java.lang.Object ref = documentFunction_; if (ref instanceof java.lang.String) { @@ -4076,7 +4518,9 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 7; + * @return The bytes for documentFunction. */ + @java.lang.Override public com.google.protobuf.ByteString getDocumentFunctionBytes() { java.lang.Object ref = documentFunction_; @@ -4092,61 +4536,78 @@ public java.lang.String getDocumentFunction() { } public static final int CURRENCY_FIELD_NUMBER = 8; - private int currency_; + private int currency_ = 0; /** * required int32 Currency = 8; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required int32 Currency = 8; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } public static final int CONFIRMATIONDATETIMETICKS_FIELD_NUMBER = 9; - private long confirmationDateTimeTicks_; + private long confirmationDateTimeTicks_ = 0L; /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } public static final int INVOICEAMENDMENTFLAGS_FIELD_NUMBER = 10; - private int invoiceAmendmentFlags_; + private int invoiceAmendmentFlags_ = 0; /** * required int32 InvoiceAmendmentFlags = 10; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required int32 InvoiceAmendmentFlags = 10; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } public static final int ORIGINALINVOICENUMBER_FIELD_NUMBER = 11; - private java.lang.Object originalInvoiceNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 11; + * @return Whether the originalInvoiceNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required string OriginalInvoiceNumber = 11; + * @return The originalInvoiceNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; if (ref instanceof java.lang.String) { @@ -4163,7 +4624,9 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 11; + * @return The bytes for originalInvoiceNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { java.lang.Object ref = originalInvoiceNumber_; @@ -4179,16 +4642,21 @@ public java.lang.String getOriginalInvoiceNumber() { } public static final int ORIGINALINVOICEDATE_FIELD_NUMBER = 12; - private java.lang.Object originalInvoiceDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 12; + * @return Whether the originalInvoiceDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * required string OriginalInvoiceDate = 12; + * @return The originalInvoiceDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; if (ref instanceof java.lang.String) { @@ -4205,7 +4673,9 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 12; + * @return The bytes for originalInvoiceDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { java.lang.Object ref = originalInvoiceDate_; @@ -4221,16 +4691,21 @@ public java.lang.String getOriginalInvoiceDate() { } public static final int ORIGINALINVOICEREVISIONNUMBER_FIELD_NUMBER = 13; - private java.lang.Object originalInvoiceRevisionNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceRevisionNumber_ = ""; /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return Whether the originalInvoiceRevisionNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceRevisionNumber() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The originalInvoiceRevisionNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceRevisionNumber() { java.lang.Object ref = originalInvoiceRevisionNumber_; if (ref instanceof java.lang.String) { @@ -4247,7 +4722,9 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The bytes for originalInvoiceRevisionNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes() { java.lang.Object ref = originalInvoiceRevisionNumber_; @@ -4263,16 +4740,21 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } public static final int ORIGINALINVOICEREVISIONDATE_FIELD_NUMBER = 14; - private java.lang.Object originalInvoiceRevisionDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceRevisionDate_ = ""; /** * optional string OriginalInvoiceRevisionDate = 14; + * @return Whether the originalInvoiceRevisionDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceRevisionDate() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The originalInvoiceRevisionDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceRevisionDate() { java.lang.Object ref = originalInvoiceRevisionDate_; if (ref instanceof java.lang.String) { @@ -4289,7 +4771,9 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The bytes for originalInvoiceRevisionDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes() { java.lang.Object ref = originalInvoiceRevisionDate_; @@ -4304,23 +4788,8 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } } - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; - totalInc_ = ""; - totalDec_ = ""; - vatInc_ = ""; - vatDec_ = ""; - grounds_ = ""; - documentFunction_ = ""; - currency_ = 0; - confirmationDateTimeTicks_ = 0L; - invoiceAmendmentFlags_ = 0; - originalInvoiceNumber_ = ""; - originalInvoiceDate_ = ""; - originalInvoiceRevisionNumber_ = ""; - originalInvoiceRevisionDate_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4374,128 +4843,274 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalIncBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, totalInc_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getTotalDecBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, totalDec_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getVatIncBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, vatInc_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getVatDecBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, vatDec_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getGroundsBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, grounds_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getDocumentFunctionBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, documentFunction_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeInt32(8, currency_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeSFixed64(9, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeInt32(10, invoiceAmendmentFlags_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(12, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, originalInvoiceDate_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeBytes(13, getOriginalInvoiceRevisionNumberBytes()); + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, originalInvoiceRevisionNumber_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeBytes(14, getOriginalInvoiceRevisionDateBytes()); + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, originalInvoiceRevisionDate_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalIncBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, totalInc_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getTotalDecBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, totalDec_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getVatIncBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, vatInc_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getVatDecBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, vatDec_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getGroundsBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, grounds_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getDocumentFunctionBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, documentFunction_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, currency_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(9, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, invoiceAmendmentFlags_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, originalInvoiceDate_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, getOriginalInvoiceRevisionNumberBytes()); + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, originalInvoiceRevisionNumber_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, getOriginalInvoiceRevisionDateBytes()); + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, originalInvoiceRevisionDate_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata other = (Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasTotalInc() != other.hasTotalInc()) return false; + if (hasTotalInc()) { + if (!getTotalInc() + .equals(other.getTotalInc())) return false; + } + if (hasTotalDec() != other.hasTotalDec()) return false; + if (hasTotalDec()) { + if (!getTotalDec() + .equals(other.getTotalDec())) return false; + } + if (hasVatInc() != other.hasVatInc()) return false; + if (hasVatInc()) { + if (!getVatInc() + .equals(other.getVatInc())) return false; + } + if (hasVatDec() != other.hasVatDec()) return false; + if (hasVatDec()) { + if (!getVatDec() + .equals(other.getVatDec())) return false; + } + if (hasGrounds() != other.hasGrounds()) return false; + if (hasGrounds()) { + if (!getGrounds() + .equals(other.getGrounds())) return false; + } + if (hasDocumentFunction() != other.hasDocumentFunction()) return false; + if (hasDocumentFunction()) { + if (!getDocumentFunction() + .equals(other.getDocumentFunction())) return false; + } + if (hasCurrency() != other.hasCurrency()) return false; + if (hasCurrency()) { + if (getCurrency() + != other.getCurrency()) return false; + } + if (hasConfirmationDateTimeTicks() != other.hasConfirmationDateTimeTicks()) return false; + if (hasConfirmationDateTimeTicks()) { + if (getConfirmationDateTimeTicks() + != other.getConfirmationDateTimeTicks()) return false; + } + if (hasInvoiceAmendmentFlags() != other.hasInvoiceAmendmentFlags()) return false; + if (hasInvoiceAmendmentFlags()) { + if (getInvoiceAmendmentFlags() + != other.getInvoiceAmendmentFlags()) return false; + } + if (hasOriginalInvoiceNumber() != other.hasOriginalInvoiceNumber()) return false; + if (hasOriginalInvoiceNumber()) { + if (!getOriginalInvoiceNumber() + .equals(other.getOriginalInvoiceNumber())) return false; + } + if (hasOriginalInvoiceDate() != other.hasOriginalInvoiceDate()) return false; + if (hasOriginalInvoiceDate()) { + if (!getOriginalInvoiceDate() + .equals(other.getOriginalInvoiceDate())) return false; + } + if (hasOriginalInvoiceRevisionNumber() != other.hasOriginalInvoiceRevisionNumber()) return false; + if (hasOriginalInvoiceRevisionNumber()) { + if (!getOriginalInvoiceRevisionNumber() + .equals(other.getOriginalInvoiceRevisionNumber())) return false; + } + if (hasOriginalInvoiceRevisionDate() != other.hasOriginalInvoiceRevisionDate()) return false; + if (hasOriginalInvoiceRevisionDate()) { + if (!getOriginalInvoiceRevisionDate() + .equals(other.getOriginalInvoiceRevisionDate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasTotalInc()) { + hash = (37 * hash) + TOTALINC_FIELD_NUMBER; + hash = (53 * hash) + getTotalInc().hashCode(); + } + if (hasTotalDec()) { + hash = (37 * hash) + TOTALDEC_FIELD_NUMBER; + hash = (53 * hash) + getTotalDec().hashCode(); + } + if (hasVatInc()) { + hash = (37 * hash) + VATINC_FIELD_NUMBER; + hash = (53 * hash) + getVatInc().hashCode(); + } + if (hasVatDec()) { + hash = (37 * hash) + VATDEC_FIELD_NUMBER; + hash = (53 * hash) + getVatDec().hashCode(); + } + if (hasGrounds()) { + hash = (37 * hash) + GROUNDS_FIELD_NUMBER; + hash = (53 * hash) + getGrounds().hashCode(); + } + if (hasDocumentFunction()) { + hash = (37 * hash) + DOCUMENTFUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getDocumentFunction().hashCode(); + } + if (hasCurrency()) { + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency(); + } + if (hasConfirmationDateTimeTicks()) { + hash = (37 * hash) + CONFIRMATIONDATETIMETICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConfirmationDateTimeTicks()); + } + if (hasInvoiceAmendmentFlags()) { + hash = (37 * hash) + INVOICEAMENDMENTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceAmendmentFlags(); + } + if (hasOriginalInvoiceNumber()) { + hash = (37 * hash) + ORIGINALINVOICENUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceNumber().hashCode(); + } + if (hasOriginalInvoiceDate()) { + hash = (37 * hash) + ORIGINALINVOICEDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceDate().hashCode(); + } + if (hasOriginalInvoiceRevisionNumber()) { + hash = (37 * hash) + ORIGINALINVOICEREVISIONNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceRevisionNumber().hashCode(); + } + if (hasOriginalInvoiceRevisionDate()) { + hash = (37 * hash) + ORIGINALINVOICEREVISIONDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceRevisionDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4519,42 +5134,57 @@ public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTran } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4574,6 +5204,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentMetadata_fieldAccessorTable @@ -4583,68 +5214,47 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentStatus_ = 0; totalInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); totalDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); vatInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); vatDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); grounds_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); documentFunction_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); currency_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); confirmationDateTimeTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000100); invoiceAmendmentFlags_ = 0; - bitField0_ = (bitField0_ & ~0x00000200); originalInvoiceNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); originalInvoiceDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); originalInvoiceRevisionNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00001000); originalInvoiceRevisionDate_ = ""; - bitField0_ = (bitField0_ & ~0x00002000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata build() { Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -4653,71 +5263,77 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata buildPartial() { Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata result = new Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalInc_ = totalInc_; to_bitField0_ |= 0x00000002; } - result.totalInc_ = totalInc_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalDec_ = totalDec_; to_bitField0_ |= 0x00000004; } - result.totalDec_ = totalDec_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vatInc_ = vatInc_; to_bitField0_ |= 0x00000008; } - result.vatInc_ = vatInc_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.vatDec_ = vatDec_; to_bitField0_ |= 0x00000010; } - result.vatDec_ = vatDec_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.grounds_ = grounds_; to_bitField0_ |= 0x00000020; } - result.grounds_ = grounds_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.documentFunction_ = documentFunction_; to_bitField0_ |= 0x00000040; } - result.documentFunction_ = documentFunction_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.currency_ = currency_; to_bitField0_ |= 0x00000080; } - result.currency_ = currency_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; to_bitField0_ |= 0x00000100; } - result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; to_bitField0_ |= 0x00000200; } - result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.originalInvoiceNumber_ = originalInvoiceNumber_; to_bitField0_ |= 0x00000400; } - result.originalInvoiceNumber_ = originalInvoiceNumber_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.originalInvoiceDate_ = originalInvoiceDate_; to_bitField0_ |= 0x00000800; } - result.originalInvoiceDate_ = originalInvoiceDate_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + if (((from_bitField0_ & 0x00001000) != 0)) { + result.originalInvoiceRevisionNumber_ = originalInvoiceRevisionNumber_; to_bitField0_ |= 0x00001000; } - result.originalInvoiceRevisionNumber_ = originalInvoiceRevisionNumber_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.originalInvoiceRevisionDate_ = originalInvoiceRevisionDate_; to_bitField0_ |= 0x00002000; } - result.originalInvoiceRevisionDate_ = originalInvoiceRevisionDate_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata)other); @@ -4733,33 +5349,33 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.UniversalTransferDocument.Un setDocumentStatus(other.getDocumentStatus()); } if (other.hasTotalInc()) { - bitField0_ |= 0x00000002; totalInc_ = other.totalInc_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTotalDec()) { - bitField0_ |= 0x00000004; totalDec_ = other.totalDec_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasVatInc()) { - bitField0_ |= 0x00000008; vatInc_ = other.vatInc_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasVatDec()) { - bitField0_ |= 0x00000010; vatDec_ = other.vatDec_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasGrounds()) { - bitField0_ |= 0x00000020; grounds_ = other.grounds_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasDocumentFunction()) { - bitField0_ |= 0x00000040; documentFunction_ = other.documentFunction_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasCurrency()) { @@ -4772,127 +5388,216 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.UniversalTransferDocument.Un setInvoiceAmendmentFlags(other.getInvoiceAmendmentFlags()); } if (other.hasOriginalInvoiceNumber()) { - bitField0_ |= 0x00000400; originalInvoiceNumber_ = other.originalInvoiceNumber_; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasOriginalInvoiceDate()) { - bitField0_ |= 0x00000800; originalInvoiceDate_ = other.originalInvoiceDate_; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasOriginalInvoiceRevisionNumber()) { - bitField0_ |= 0x00001000; originalInvoiceRevisionNumber_ = other.originalInvoiceRevisionNumber_; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasOriginalInvoiceRevisionDate()) { - bitField0_ |= 0x00002000; originalInvoiceRevisionDate_ = other.originalInvoiceRevisionDate_; + bitField0_ |= 0x00002000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocumentStatus()) { - return false; } if (!hasTotalInc()) { - return false; } if (!hasTotalDec()) { - return false; } if (!hasVatInc()) { - return false; } if (!hasVatDec()) { - return false; } if (!hasDocumentFunction()) { - return false; } if (!hasCurrency()) { - return false; } if (!hasConfirmationDateTimeTicks()) { - return false; } if (!hasInvoiceAmendmentFlags()) { - return false; } if (!hasOriginalInvoiceNumber()) { - return false; } if (!hasOriginalInvoiceDate()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + totalInc_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + totalDec_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + vatInc_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + vatDec_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + grounds_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + documentFunction_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + currency_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 73: { + confirmationDateTimeTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000100; + break; + } // case 73 + case 80: { + invoiceAmendmentFlags_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + originalInvoiceNumber_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + originalInvoiceDate_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + originalInvoiceRevisionNumber_ = input.readBytes(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + originalInvoiceRevisionDate_ = input.readBytes(); + bitField0_ |= 0x00002000; + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; + private int documentStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus result = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus : result; } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } @@ -4900,12 +5605,14 @@ public Builder clearDocumentStatus() { private java.lang.Object totalInc_ = ""; /** * required string TotalInc = 2; + * @return Whether the totalInc field is set. */ public boolean hasTotalInc() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string TotalInc = 2; + * @return The totalInc. */ public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; @@ -4923,6 +5630,7 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 2; + * @return The bytes for totalInc. */ public com.google.protobuf.ByteString getTotalIncBytes() { @@ -4939,36 +5647,37 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 2; + * @param value The totalInc to set. + * @return This builder for chaining. */ public Builder setTotalInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string TotalInc = 2; + * @return This builder for chaining. */ public Builder clearTotalInc() { - bitField0_ = (bitField0_ & ~0x00000002); totalInc_ = getDefaultInstance().getTotalInc(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string TotalInc = 2; + * @param value The bytes for totalInc to set. + * @return This builder for chaining. */ public Builder setTotalIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4976,12 +5685,14 @@ public Builder setTotalIncBytes( private java.lang.Object totalDec_ = ""; /** * required string TotalDec = 3; + * @return Whether the totalDec field is set. */ public boolean hasTotalDec() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string TotalDec = 3; + * @return The totalDec. */ public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; @@ -4999,6 +5710,7 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 3; + * @return The bytes for totalDec. */ public com.google.protobuf.ByteString getTotalDecBytes() { @@ -5015,36 +5727,37 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 3; + * @param value The totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string TotalDec = 3; + * @return This builder for chaining. */ public Builder clearTotalDec() { - bitField0_ = (bitField0_ & ~0x00000004); totalDec_ = getDefaultInstance().getTotalDec(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string TotalDec = 3; + * @param value The bytes for totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -5052,12 +5765,14 @@ public Builder setTotalDecBytes( private java.lang.Object vatInc_ = ""; /** * required string VatInc = 4; + * @return Whether the vatInc field is set. */ public boolean hasVatInc() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string VatInc = 4; + * @return The vatInc. */ public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; @@ -5075,6 +5790,7 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 4; + * @return The bytes for vatInc. */ public com.google.protobuf.ByteString getVatIncBytes() { @@ -5091,36 +5807,37 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 4; + * @param value The vatInc to set. + * @return This builder for chaining. */ public Builder setVatInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required string VatInc = 4; + * @return This builder for chaining. */ public Builder clearVatInc() { - bitField0_ = (bitField0_ & ~0x00000008); vatInc_ = getDefaultInstance().getVatInc(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * required string VatInc = 4; + * @param value The bytes for vatInc to set. + * @return This builder for chaining. */ public Builder setVatIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5128,12 +5845,14 @@ public Builder setVatIncBytes( private java.lang.Object vatDec_ = ""; /** * required string VatDec = 5; + * @return Whether the vatDec field is set. */ public boolean hasVatDec() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string VatDec = 5; + * @return The vatDec. */ public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; @@ -5151,6 +5870,7 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 5; + * @return The bytes for vatDec. */ public com.google.protobuf.ByteString getVatDecBytes() { @@ -5167,57 +5887,60 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 5; + * @param value The vatDec to set. + * @return This builder for chaining. */ public Builder setVatDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * required string VatDec = 5; + * @return This builder for chaining. */ public Builder clearVatDec() { - bitField0_ = (bitField0_ & ~0x00000010); vatDec_ = getDefaultInstance().getVatDec(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * required string VatDec = 5; + * @param value The bytes for vatDec to set. + * @return This builder for chaining. */ public Builder setVatDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object grounds_ = ""; /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @return Whether the grounds field is set. */ public boolean hasGrounds() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @return The grounds. */ public java.lang.String getGrounds() { java.lang.Object ref = grounds_; @@ -5234,11 +5957,12 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @return The bytes for grounds. */ public com.google.protobuf.ByteString getGroundsBytes() { @@ -5254,49 +5978,50 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @param value The grounds to set. + * @return This builder for chaining. */ public Builder setGrounds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @return This builder for chaining. */ public Builder clearGrounds() { - bitField0_ = (bitField0_ & ~0x00000020); grounds_ = getDefaultInstance().getGrounds(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @param value The bytes for grounds to set. + * @return This builder for chaining. */ public Builder setGroundsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5304,12 +6029,14 @@ public Builder setGroundsBytes( private java.lang.Object documentFunction_ = ""; /** * required string DocumentFunction = 7; + * @return Whether the documentFunction field is set. */ public boolean hasDocumentFunction() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required string DocumentFunction = 7; + * @return The documentFunction. */ public java.lang.String getDocumentFunction() { java.lang.Object ref = documentFunction_; @@ -5327,6 +6054,7 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 7; + * @return The bytes for documentFunction. */ public com.google.protobuf.ByteString getDocumentFunctionBytes() { @@ -5343,36 +6071,37 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 7; + * @param value The documentFunction to set. + * @return This builder for chaining. */ public Builder setDocumentFunction( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } documentFunction_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * required string DocumentFunction = 7; + * @return This builder for chaining. */ public Builder clearDocumentFunction() { - bitField0_ = (bitField0_ & ~0x00000040); documentFunction_ = getDefaultInstance().getDocumentFunction(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * required string DocumentFunction = 7; + * @param value The bytes for documentFunction to set. + * @return This builder for chaining. */ public Builder setDocumentFunctionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } documentFunction_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5380,27 +6109,35 @@ public Builder setDocumentFunctionBytes( private int currency_ ; /** * required int32 Currency = 8; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required int32 Currency = 8; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } /** * required int32 Currency = 8; + * @param value The currency to set. + * @return This builder for chaining. */ public Builder setCurrency(int value) { - bitField0_ |= 0x00000080; + currency_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * required int32 Currency = 8; + * @return This builder for chaining. */ public Builder clearCurrency() { bitField0_ = (bitField0_ & ~0x00000080); @@ -5412,27 +6149,35 @@ public Builder clearCurrency() { private long confirmationDateTimeTicks_ ; /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @param value The confirmationDateTimeTicks to set. + * @return This builder for chaining. */ public Builder setConfirmationDateTimeTicks(long value) { - bitField0_ |= 0x00000100; + confirmationDateTimeTicks_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return This builder for chaining. */ public Builder clearConfirmationDateTimeTicks() { bitField0_ = (bitField0_ & ~0x00000100); @@ -5444,27 +6189,35 @@ public Builder clearConfirmationDateTimeTicks() { private int invoiceAmendmentFlags_ ; /** * required int32 InvoiceAmendmentFlags = 10; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required int32 InvoiceAmendmentFlags = 10; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } /** * required int32 InvoiceAmendmentFlags = 10; + * @param value The invoiceAmendmentFlags to set. + * @return This builder for chaining. */ public Builder setInvoiceAmendmentFlags(int value) { - bitField0_ |= 0x00000200; + invoiceAmendmentFlags_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * required int32 InvoiceAmendmentFlags = 10; + * @return This builder for chaining. */ public Builder clearInvoiceAmendmentFlags() { bitField0_ = (bitField0_ & ~0x00000200); @@ -5476,12 +6229,14 @@ public Builder clearInvoiceAmendmentFlags() { private java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 11; + * @return Whether the originalInvoiceNumber field is set. */ public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required string OriginalInvoiceNumber = 11; + * @return The originalInvoiceNumber. */ public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; @@ -5499,6 +6254,7 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 11; + * @return The bytes for originalInvoiceNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { @@ -5515,36 +6271,37 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 11; + * @param value The originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * required string OriginalInvoiceNumber = 11; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceNumber() { - bitField0_ = (bitField0_ & ~0x00000400); originalInvoiceNumber_ = getDefaultInstance().getOriginalInvoiceNumber(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * required string OriginalInvoiceNumber = 11; + * @param value The bytes for originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5552,12 +6309,14 @@ public Builder setOriginalInvoiceNumberBytes( private java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 12; + * @return Whether the originalInvoiceDate field is set. */ public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * required string OriginalInvoiceDate = 12; + * @return The originalInvoiceDate. */ public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; @@ -5575,6 +6334,7 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 12; + * @return The bytes for originalInvoiceDate. */ public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { @@ -5591,36 +6351,37 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 12; + * @param value The originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * required string OriginalInvoiceDate = 12; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceDate() { - bitField0_ = (bitField0_ & ~0x00000800); originalInvoiceDate_ = getDefaultInstance().getOriginalInvoiceDate(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * required string OriginalInvoiceDate = 12; + * @param value The bytes for originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5628,12 +6389,14 @@ public Builder setOriginalInvoiceDateBytes( private java.lang.Object originalInvoiceRevisionNumber_ = ""; /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return Whether the originalInvoiceRevisionNumber field is set. */ public boolean hasOriginalInvoiceRevisionNumber() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The originalInvoiceRevisionNumber. */ public java.lang.String getOriginalInvoiceRevisionNumber() { java.lang.Object ref = originalInvoiceRevisionNumber_; @@ -5651,6 +6414,7 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The bytes for originalInvoiceRevisionNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes() { @@ -5667,36 +6431,37 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @param value The originalInvoiceRevisionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionNumber_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceRevisionNumber() { - bitField0_ = (bitField0_ & ~0x00001000); originalInvoiceRevisionNumber_ = getDefaultInstance().getOriginalInvoiceRevisionNumber(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @param value The bytes for originalInvoiceRevisionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionNumber_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5704,12 +6469,14 @@ public Builder setOriginalInvoiceRevisionNumberBytes( private java.lang.Object originalInvoiceRevisionDate_ = ""; /** * optional string OriginalInvoiceRevisionDate = 14; + * @return Whether the originalInvoiceRevisionDate field is set. */ public boolean hasOriginalInvoiceRevisionDate() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The originalInvoiceRevisionDate. */ public java.lang.String getOriginalInvoiceRevisionDate() { java.lang.Object ref = originalInvoiceRevisionDate_; @@ -5727,6 +6494,7 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The bytes for originalInvoiceRevisionDate. */ public com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes() { @@ -5743,36 +6511,37 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 14; + * @param value The originalInvoiceRevisionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionDate_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } /** * optional string OriginalInvoiceRevisionDate = 14; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceRevisionDate() { - bitField0_ = (bitField0_ & ~0x00002000); originalInvoiceRevisionDate_ = getDefaultInstance().getOriginalInvoiceRevisionDate(); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** * optional string OriginalInvoiceRevisionDate = 14; + * @param value The bytes for originalInvoiceRevisionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionDate_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5780,12 +6549,52 @@ public Builder setOriginalInvoiceRevisionDateBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata) + private static final Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata DEFAULT_INSTANCE; static { - defaultInstance = new UniversalCorrectionDocumentMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata(); + } + + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UniversalCorrectionDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentMetadata) } public interface UniversalCorrectionDocumentRevisionMetadataOrBuilder extends @@ -5794,216 +6603,260 @@ public interface UniversalCorrectionDocumentRevisionMetadataOrBuilder extends /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return Whether the documentStatus field is set. */ boolean hasDocumentStatus(); /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return The documentStatus. */ Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus(); /** * required string TotalInc = 2; + * @return Whether the totalInc field is set. */ boolean hasTotalInc(); /** * required string TotalInc = 2; + * @return The totalInc. */ java.lang.String getTotalInc(); /** * required string TotalInc = 2; + * @return The bytes for totalInc. */ com.google.protobuf.ByteString getTotalIncBytes(); /** * required string TotalDec = 3; + * @return Whether the totalDec field is set. */ boolean hasTotalDec(); /** * required string TotalDec = 3; + * @return The totalDec. */ java.lang.String getTotalDec(); /** * required string TotalDec = 3; + * @return The bytes for totalDec. */ com.google.protobuf.ByteString getTotalDecBytes(); /** * required string VatInc = 4; + * @return Whether the vatInc field is set. */ boolean hasVatInc(); /** * required string VatInc = 4; + * @return The vatInc. */ java.lang.String getVatInc(); /** * required string VatInc = 4; + * @return The bytes for vatInc. */ com.google.protobuf.ByteString getVatIncBytes(); /** * required string VatDec = 5; + * @return Whether the vatDec field is set. */ boolean hasVatDec(); /** * required string VatDec = 5; + * @return The vatDec. */ java.lang.String getVatDec(); /** * required string VatDec = 5; + * @return The bytes for vatDec. */ com.google.protobuf.ByteString getVatDecBytes(); /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return Whether the grounds field is set. */ boolean hasGrounds(); /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return The grounds. */ java.lang.String getGrounds(); /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return The bytes for grounds. */ com.google.protobuf.ByteString getGroundsBytes(); /** * required string DocumentFunction = 7; + * @return Whether the documentFunction field is set. */ boolean hasDocumentFunction(); /** * required string DocumentFunction = 7; + * @return The documentFunction. */ java.lang.String getDocumentFunction(); /** * required string DocumentFunction = 7; + * @return The bytes for documentFunction. */ com.google.protobuf.ByteString getDocumentFunctionBytes(); /** * required int32 Currency = 8; + * @return Whether the currency field is set. */ boolean hasCurrency(); /** * required int32 Currency = 8; + * @return The currency. */ int getCurrency(); /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return Whether the confirmationDateTimeTicks field is set. */ boolean hasConfirmationDateTimeTicks(); /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return The confirmationDateTimeTicks. */ long getConfirmationDateTimeTicks(); /** * required int32 InvoiceAmendmentFlags = 10; + * @return Whether the invoiceAmendmentFlags field is set. */ boolean hasInvoiceAmendmentFlags(); /** * required int32 InvoiceAmendmentFlags = 10; + * @return The invoiceAmendmentFlags. */ int getInvoiceAmendmentFlags(); /** * required string OriginalInvoiceNumber = 11; + * @return Whether the originalInvoiceNumber field is set. */ boolean hasOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 11; + * @return The originalInvoiceNumber. */ java.lang.String getOriginalInvoiceNumber(); /** * required string OriginalInvoiceNumber = 11; + * @return The bytes for originalInvoiceNumber. */ com.google.protobuf.ByteString getOriginalInvoiceNumberBytes(); /** * required string OriginalInvoiceDate = 12; + * @return Whether the originalInvoiceDate field is set. */ boolean hasOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 12; + * @return The originalInvoiceDate. */ java.lang.String getOriginalInvoiceDate(); /** * required string OriginalInvoiceDate = 12; + * @return The bytes for originalInvoiceDate. */ com.google.protobuf.ByteString getOriginalInvoiceDateBytes(); /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return Whether the originalInvoiceRevisionNumber field is set. */ boolean hasOriginalInvoiceRevisionNumber(); /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The originalInvoiceRevisionNumber. */ java.lang.String getOriginalInvoiceRevisionNumber(); /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The bytes for originalInvoiceRevisionNumber. */ com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes(); /** * optional string OriginalInvoiceRevisionDate = 14; + * @return Whether the originalInvoiceRevisionDate field is set. */ boolean hasOriginalInvoiceRevisionDate(); /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The originalInvoiceRevisionDate. */ java.lang.String getOriginalInvoiceRevisionDate(); /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The bytes for originalInvoiceRevisionDate. */ com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes(); /** * required string OriginalInvoiceCorrectionNumber = 15; + * @return Whether the originalInvoiceCorrectionNumber field is set. */ boolean hasOriginalInvoiceCorrectionNumber(); /** * required string OriginalInvoiceCorrectionNumber = 15; + * @return The originalInvoiceCorrectionNumber. */ java.lang.String getOriginalInvoiceCorrectionNumber(); /** * required string OriginalInvoiceCorrectionNumber = 15; + * @return The bytes for originalInvoiceCorrectionNumber. */ com.google.protobuf.ByteString getOriginalInvoiceCorrectionNumberBytes(); /** * required string OriginalInvoiceCorrectionDate = 16; + * @return Whether the originalInvoiceCorrectionDate field is set. */ boolean hasOriginalInvoiceCorrectionDate(); /** * required string OriginalInvoiceCorrectionDate = 16; + * @return The originalInvoiceCorrectionDate. */ java.lang.String getOriginalInvoiceCorrectionDate(); /** * required string OriginalInvoiceCorrectionDate = 16; + * @return The bytes for originalInvoiceCorrectionDate. */ com.google.protobuf.ByteString getOriginalInvoiceCorrectionDateBytes(); @@ -6015,166 +6868,42 @@ public static final class UniversalCorrectionDocumentRevisionMetadata extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata) UniversalCorrectionDocumentRevisionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + UniversalCorrectionDocumentRevisionMetadata.class.getName()); + } // Use UniversalCorrectionDocumentRevisionMetadata.newBuilder() to construct. private UniversalCorrectionDocumentRevisionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private UniversalCorrectionDocumentRevisionMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final UniversalCorrectionDocumentRevisionMetadata defaultInstance; - public static UniversalCorrectionDocumentRevisionMetadata getDefaultInstance() { - return defaultInstance; - } - - public UniversalCorrectionDocumentRevisionMetadata getDefaultInstanceForType() { - return defaultInstance; + private UniversalCorrectionDocumentRevisionMetadata() { + documentStatus_ = 0; + totalInc_ = ""; + totalDec_ = ""; + vatInc_ = ""; + vatDec_ = ""; + grounds_ = ""; + documentFunction_ = ""; + originalInvoiceNumber_ = ""; + originalInvoiceDate_ = ""; + originalInvoiceRevisionNumber_ = ""; + originalInvoiceRevisionDate_ = ""; + originalInvoiceCorrectionNumber_ = ""; + originalInvoiceCorrectionDate_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UniversalCorrectionDocumentRevisionMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus value = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentStatus_ = value; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - totalInc_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - totalDec_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - vatInc_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - vatDec_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - grounds_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - documentFunction_ = bs; - break; - } - case 64: { - bitField0_ |= 0x00000080; - currency_ = input.readInt32(); - break; - } - case 73: { - bitField0_ |= 0x00000100; - confirmationDateTimeTicks_ = input.readSFixed64(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - invoiceAmendmentFlags_ = input.readInt32(); - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - originalInvoiceNumber_ = bs; - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000800; - originalInvoiceDate_ = bs; - break; - } - case 106: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00001000; - originalInvoiceRevisionNumber_ = bs; - break; - } - case 114: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00002000; - originalInvoiceRevisionDate_ = bs; - break; - } - case 122: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00004000; - originalInvoiceCorrectionNumber_ = bs; - break; - } - case 130: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00008000; - originalInvoiceCorrectionDate_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentRevisionMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentRevisionMetadata_fieldAccessorTable @@ -6182,48 +6911,41 @@ private UniversalCorrectionDocumentRevisionMetadata( Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.class, Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UniversalCorrectionDocumentRevisionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UniversalCorrectionDocumentRevisionMetadata(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus documentStatus_; + private int documentStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return The documentStatus. */ - public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { - return documentStatus_; + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus result = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus : result; } public static final int TOTALINC_FIELD_NUMBER = 2; - private java.lang.Object totalInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalInc_ = ""; /** * required string TotalInc = 2; + * @return Whether the totalInc field is set. */ + @java.lang.Override public boolean hasTotalInc() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string TotalInc = 2; + * @return The totalInc. */ + @java.lang.Override public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; if (ref instanceof java.lang.String) { @@ -6240,7 +6962,9 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 2; + * @return The bytes for totalInc. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalIncBytes() { java.lang.Object ref = totalInc_; @@ -6256,16 +6980,21 @@ public java.lang.String getTotalInc() { } public static final int TOTALDEC_FIELD_NUMBER = 3; - private java.lang.Object totalDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object totalDec_ = ""; /** * required string TotalDec = 3; + * @return Whether the totalDec field is set. */ + @java.lang.Override public boolean hasTotalDec() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string TotalDec = 3; + * @return The totalDec. */ + @java.lang.Override public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; if (ref instanceof java.lang.String) { @@ -6282,7 +7011,9 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 3; + * @return The bytes for totalDec. */ + @java.lang.Override public com.google.protobuf.ByteString getTotalDecBytes() { java.lang.Object ref = totalDec_; @@ -6298,16 +7029,21 @@ public java.lang.String getTotalDec() { } public static final int VATINC_FIELD_NUMBER = 4; - private java.lang.Object vatInc_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatInc_ = ""; /** * required string VatInc = 4; + * @return Whether the vatInc field is set. */ + @java.lang.Override public boolean hasVatInc() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string VatInc = 4; + * @return The vatInc. */ + @java.lang.Override public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; if (ref instanceof java.lang.String) { @@ -6324,7 +7060,9 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 4; + * @return The bytes for vatInc. */ + @java.lang.Override public com.google.protobuf.ByteString getVatIncBytes() { java.lang.Object ref = vatInc_; @@ -6340,16 +7078,21 @@ public java.lang.String getVatInc() { } public static final int VATDEC_FIELD_NUMBER = 5; - private java.lang.Object vatDec_; + @SuppressWarnings("serial") + private volatile java.lang.Object vatDec_ = ""; /** * required string VatDec = 5; + * @return Whether the vatDec field is set. */ + @java.lang.Override public boolean hasVatDec() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string VatDec = 5; + * @return The vatDec. */ + @java.lang.Override public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; if (ref instanceof java.lang.String) { @@ -6366,7 +7109,9 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 5; + * @return The bytes for vatDec. */ + @java.lang.Override public com.google.protobuf.ByteString getVatDecBytes() { java.lang.Object ref = vatDec_; @@ -6382,24 +7127,29 @@ public java.lang.String getVatDec() { } public static final int GROUNDS_FIELD_NUMBER = 6; - private java.lang.Object grounds_; + @SuppressWarnings("serial") + private volatile java.lang.Object grounds_ = ""; /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return Whether the grounds field is set. */ + @java.lang.Override public boolean hasGrounds() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return The grounds. */ + @java.lang.Override public java.lang.String getGrounds() { java.lang.Object ref = grounds_; if (ref instanceof java.lang.String) { @@ -6415,12 +7165,14 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 6; - * *
      * DocumentGrounds
      * 
+ * + * optional string Grounds = 6; + * @return The bytes for grounds. */ + @java.lang.Override public com.google.protobuf.ByteString getGroundsBytes() { java.lang.Object ref = grounds_; @@ -6436,16 +7188,21 @@ public java.lang.String getGrounds() { } public static final int DOCUMENTFUNCTION_FIELD_NUMBER = 7; - private java.lang.Object documentFunction_; + @SuppressWarnings("serial") + private volatile java.lang.Object documentFunction_ = ""; /** * required string DocumentFunction = 7; + * @return Whether the documentFunction field is set. */ + @java.lang.Override public boolean hasDocumentFunction() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required string DocumentFunction = 7; + * @return The documentFunction. */ + @java.lang.Override public java.lang.String getDocumentFunction() { java.lang.Object ref = documentFunction_; if (ref instanceof java.lang.String) { @@ -6462,7 +7219,9 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 7; + * @return The bytes for documentFunction. */ + @java.lang.Override public com.google.protobuf.ByteString getDocumentFunctionBytes() { java.lang.Object ref = documentFunction_; @@ -6478,61 +7237,78 @@ public java.lang.String getDocumentFunction() { } public static final int CURRENCY_FIELD_NUMBER = 8; - private int currency_; + private int currency_ = 0; /** * required int32 Currency = 8; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required int32 Currency = 8; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } public static final int CONFIRMATIONDATETIMETICKS_FIELD_NUMBER = 9; - private long confirmationDateTimeTicks_; + private long confirmationDateTimeTicks_ = 0L; /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } public static final int INVOICEAMENDMENTFLAGS_FIELD_NUMBER = 10; - private int invoiceAmendmentFlags_; + private int invoiceAmendmentFlags_ = 0; /** * required int32 InvoiceAmendmentFlags = 10; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required int32 InvoiceAmendmentFlags = 10; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } public static final int ORIGINALINVOICENUMBER_FIELD_NUMBER = 11; - private java.lang.Object originalInvoiceNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 11; + * @return Whether the originalInvoiceNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required string OriginalInvoiceNumber = 11; + * @return The originalInvoiceNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; if (ref instanceof java.lang.String) { @@ -6549,7 +7325,9 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 11; + * @return The bytes for originalInvoiceNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { java.lang.Object ref = originalInvoiceNumber_; @@ -6565,16 +7343,21 @@ public java.lang.String getOriginalInvoiceNumber() { } public static final int ORIGINALINVOICEDATE_FIELD_NUMBER = 12; - private java.lang.Object originalInvoiceDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 12; + * @return Whether the originalInvoiceDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * required string OriginalInvoiceDate = 12; + * @return The originalInvoiceDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; if (ref instanceof java.lang.String) { @@ -6591,7 +7374,9 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 12; + * @return The bytes for originalInvoiceDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { java.lang.Object ref = originalInvoiceDate_; @@ -6607,16 +7392,21 @@ public java.lang.String getOriginalInvoiceDate() { } public static final int ORIGINALINVOICEREVISIONNUMBER_FIELD_NUMBER = 13; - private java.lang.Object originalInvoiceRevisionNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceRevisionNumber_ = ""; /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return Whether the originalInvoiceRevisionNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceRevisionNumber() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The originalInvoiceRevisionNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceRevisionNumber() { java.lang.Object ref = originalInvoiceRevisionNumber_; if (ref instanceof java.lang.String) { @@ -6633,7 +7423,9 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The bytes for originalInvoiceRevisionNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes() { java.lang.Object ref = originalInvoiceRevisionNumber_; @@ -6649,16 +7441,21 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } public static final int ORIGINALINVOICEREVISIONDATE_FIELD_NUMBER = 14; - private java.lang.Object originalInvoiceRevisionDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceRevisionDate_ = ""; /** * optional string OriginalInvoiceRevisionDate = 14; + * @return Whether the originalInvoiceRevisionDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceRevisionDate() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The originalInvoiceRevisionDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceRevisionDate() { java.lang.Object ref = originalInvoiceRevisionDate_; if (ref instanceof java.lang.String) { @@ -6675,7 +7472,9 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The bytes for originalInvoiceRevisionDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes() { java.lang.Object ref = originalInvoiceRevisionDate_; @@ -6691,16 +7490,21 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } public static final int ORIGINALINVOICECORRECTIONNUMBER_FIELD_NUMBER = 15; - private java.lang.Object originalInvoiceCorrectionNumber_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceCorrectionNumber_ = ""; /** * required string OriginalInvoiceCorrectionNumber = 15; + * @return Whether the originalInvoiceCorrectionNumber field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceCorrectionNumber() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * required string OriginalInvoiceCorrectionNumber = 15; + * @return The originalInvoiceCorrectionNumber. */ + @java.lang.Override public java.lang.String getOriginalInvoiceCorrectionNumber() { java.lang.Object ref = originalInvoiceCorrectionNumber_; if (ref instanceof java.lang.String) { @@ -6717,7 +7521,9 @@ public java.lang.String getOriginalInvoiceCorrectionNumber() { } /** * required string OriginalInvoiceCorrectionNumber = 15; + * @return The bytes for originalInvoiceCorrectionNumber. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceCorrectionNumberBytes() { java.lang.Object ref = originalInvoiceCorrectionNumber_; @@ -6733,16 +7539,21 @@ public java.lang.String getOriginalInvoiceCorrectionNumber() { } public static final int ORIGINALINVOICECORRECTIONDATE_FIELD_NUMBER = 16; - private java.lang.Object originalInvoiceCorrectionDate_; + @SuppressWarnings("serial") + private volatile java.lang.Object originalInvoiceCorrectionDate_ = ""; /** * required string OriginalInvoiceCorrectionDate = 16; + * @return Whether the originalInvoiceCorrectionDate field is set. */ + @java.lang.Override public boolean hasOriginalInvoiceCorrectionDate() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * required string OriginalInvoiceCorrectionDate = 16; + * @return The originalInvoiceCorrectionDate. */ + @java.lang.Override public java.lang.String getOriginalInvoiceCorrectionDate() { java.lang.Object ref = originalInvoiceCorrectionDate_; if (ref instanceof java.lang.String) { @@ -6759,40 +7570,25 @@ public java.lang.String getOriginalInvoiceCorrectionDate() { } /** * required string OriginalInvoiceCorrectionDate = 16; + * @return The bytes for originalInvoiceCorrectionDate. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalInvoiceCorrectionDateBytes() { java.lang.Object ref = originalInvoiceCorrectionDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - originalInvoiceCorrectionDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; - totalInc_ = ""; - totalDec_ = ""; - vatInc_ = ""; - vatDec_ = ""; - grounds_ = ""; - documentFunction_ = ""; - currency_ = 0; - confirmationDateTimeTicks_ = 0L; - invoiceAmendmentFlags_ = 0; - originalInvoiceNumber_ = ""; - originalInvoiceDate_ = ""; - originalInvoiceRevisionNumber_ = ""; - originalInvoiceRevisionDate_ = ""; - originalInvoiceCorrectionNumber_ = ""; - originalInvoiceCorrectionDate_ = ""; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + originalInvoiceCorrectionDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -6854,142 +7650,304 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTotalIncBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, totalInc_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getTotalDecBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, totalDec_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getVatIncBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, vatInc_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getVatDecBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, vatDec_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getGroundsBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, grounds_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getDocumentFunctionBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, documentFunction_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeInt32(8, currency_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeSFixed64(9, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeInt32(10, invoiceAmendmentFlags_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(12, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, originalInvoiceDate_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeBytes(13, getOriginalInvoiceRevisionNumberBytes()); + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, originalInvoiceRevisionNumber_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeBytes(14, getOriginalInvoiceRevisionDateBytes()); + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, originalInvoiceRevisionDate_); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeBytes(15, getOriginalInvoiceCorrectionNumberBytes()); + if (((bitField0_ & 0x00004000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, originalInvoiceCorrectionNumber_); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeBytes(16, getOriginalInvoiceCorrectionDateBytes()); + if (((bitField0_ & 0x00008000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 16, originalInvoiceCorrectionDate_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentStatus_.getNumber()); + .computeEnumSize(1, documentStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTotalIncBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, totalInc_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getTotalDecBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, totalDec_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getVatIncBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, vatInc_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getVatDecBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, vatDec_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getGroundsBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, grounds_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getDocumentFunctionBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, documentFunction_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, currency_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(9, confirmationDateTimeTicks_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, invoiceAmendmentFlags_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getOriginalInvoiceNumberBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, originalInvoiceNumber_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getOriginalInvoiceDateBytes()); + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, originalInvoiceDate_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, getOriginalInvoiceRevisionNumberBytes()); + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, originalInvoiceRevisionNumber_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, getOriginalInvoiceRevisionDateBytes()); + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, originalInvoiceRevisionDate_); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, getOriginalInvoiceCorrectionNumberBytes()); + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, originalInvoiceCorrectionNumber_); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, getOriginalInvoiceCorrectionDateBytes()); + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(16, originalInvoiceCorrectionDate_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata other = (Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata) obj; + + if (hasDocumentStatus() != other.hasDocumentStatus()) return false; + if (hasDocumentStatus()) { + if (documentStatus_ != other.documentStatus_) return false; + } + if (hasTotalInc() != other.hasTotalInc()) return false; + if (hasTotalInc()) { + if (!getTotalInc() + .equals(other.getTotalInc())) return false; + } + if (hasTotalDec() != other.hasTotalDec()) return false; + if (hasTotalDec()) { + if (!getTotalDec() + .equals(other.getTotalDec())) return false; + } + if (hasVatInc() != other.hasVatInc()) return false; + if (hasVatInc()) { + if (!getVatInc() + .equals(other.getVatInc())) return false; + } + if (hasVatDec() != other.hasVatDec()) return false; + if (hasVatDec()) { + if (!getVatDec() + .equals(other.getVatDec())) return false; + } + if (hasGrounds() != other.hasGrounds()) return false; + if (hasGrounds()) { + if (!getGrounds() + .equals(other.getGrounds())) return false; + } + if (hasDocumentFunction() != other.hasDocumentFunction()) return false; + if (hasDocumentFunction()) { + if (!getDocumentFunction() + .equals(other.getDocumentFunction())) return false; + } + if (hasCurrency() != other.hasCurrency()) return false; + if (hasCurrency()) { + if (getCurrency() + != other.getCurrency()) return false; + } + if (hasConfirmationDateTimeTicks() != other.hasConfirmationDateTimeTicks()) return false; + if (hasConfirmationDateTimeTicks()) { + if (getConfirmationDateTimeTicks() + != other.getConfirmationDateTimeTicks()) return false; + } + if (hasInvoiceAmendmentFlags() != other.hasInvoiceAmendmentFlags()) return false; + if (hasInvoiceAmendmentFlags()) { + if (getInvoiceAmendmentFlags() + != other.getInvoiceAmendmentFlags()) return false; + } + if (hasOriginalInvoiceNumber() != other.hasOriginalInvoiceNumber()) return false; + if (hasOriginalInvoiceNumber()) { + if (!getOriginalInvoiceNumber() + .equals(other.getOriginalInvoiceNumber())) return false; + } + if (hasOriginalInvoiceDate() != other.hasOriginalInvoiceDate()) return false; + if (hasOriginalInvoiceDate()) { + if (!getOriginalInvoiceDate() + .equals(other.getOriginalInvoiceDate())) return false; + } + if (hasOriginalInvoiceRevisionNumber() != other.hasOriginalInvoiceRevisionNumber()) return false; + if (hasOriginalInvoiceRevisionNumber()) { + if (!getOriginalInvoiceRevisionNumber() + .equals(other.getOriginalInvoiceRevisionNumber())) return false; + } + if (hasOriginalInvoiceRevisionDate() != other.hasOriginalInvoiceRevisionDate()) return false; + if (hasOriginalInvoiceRevisionDate()) { + if (!getOriginalInvoiceRevisionDate() + .equals(other.getOriginalInvoiceRevisionDate())) return false; + } + if (hasOriginalInvoiceCorrectionNumber() != other.hasOriginalInvoiceCorrectionNumber()) return false; + if (hasOriginalInvoiceCorrectionNumber()) { + if (!getOriginalInvoiceCorrectionNumber() + .equals(other.getOriginalInvoiceCorrectionNumber())) return false; + } + if (hasOriginalInvoiceCorrectionDate() != other.hasOriginalInvoiceCorrectionDate()) return false; + if (hasOriginalInvoiceCorrectionDate()) { + if (!getOriginalInvoiceCorrectionDate() + .equals(other.getOriginalInvoiceCorrectionDate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentStatus()) { + hash = (37 * hash) + DOCUMENTSTATUS_FIELD_NUMBER; + hash = (53 * hash) + documentStatus_; + } + if (hasTotalInc()) { + hash = (37 * hash) + TOTALINC_FIELD_NUMBER; + hash = (53 * hash) + getTotalInc().hashCode(); + } + if (hasTotalDec()) { + hash = (37 * hash) + TOTALDEC_FIELD_NUMBER; + hash = (53 * hash) + getTotalDec().hashCode(); + } + if (hasVatInc()) { + hash = (37 * hash) + VATINC_FIELD_NUMBER; + hash = (53 * hash) + getVatInc().hashCode(); + } + if (hasVatDec()) { + hash = (37 * hash) + VATDEC_FIELD_NUMBER; + hash = (53 * hash) + getVatDec().hashCode(); + } + if (hasGrounds()) { + hash = (37 * hash) + GROUNDS_FIELD_NUMBER; + hash = (53 * hash) + getGrounds().hashCode(); + } + if (hasDocumentFunction()) { + hash = (37 * hash) + DOCUMENTFUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getDocumentFunction().hashCode(); + } + if (hasCurrency()) { + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency(); + } + if (hasConfirmationDateTimeTicks()) { + hash = (37 * hash) + CONFIRMATIONDATETIMETICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConfirmationDateTimeTicks()); + } + if (hasInvoiceAmendmentFlags()) { + hash = (37 * hash) + INVOICEAMENDMENTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getInvoiceAmendmentFlags(); + } + if (hasOriginalInvoiceNumber()) { + hash = (37 * hash) + ORIGINALINVOICENUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceNumber().hashCode(); + } + if (hasOriginalInvoiceDate()) { + hash = (37 * hash) + ORIGINALINVOICEDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceDate().hashCode(); + } + if (hasOriginalInvoiceRevisionNumber()) { + hash = (37 * hash) + ORIGINALINVOICEREVISIONNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceRevisionNumber().hashCode(); + } + if (hasOriginalInvoiceRevisionDate()) { + hash = (37 * hash) + ORIGINALINVOICEREVISIONDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceRevisionDate().hashCode(); + } + if (hasOriginalInvoiceCorrectionNumber()) { + hash = (37 * hash) + ORIGINALINVOICECORRECTIONNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceCorrectionNumber().hashCode(); + } + if (hasOriginalInvoiceCorrectionDate()) { + hash = (37 * hash) + ORIGINALINVOICECORRECTIONDATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalInvoiceCorrectionDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7013,42 +7971,57 @@ public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTran } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -7068,6 +8041,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentRevisionMetadata_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentRevisionMetadata_fieldAccessorTable @@ -7077,72 +8051,49 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentStatus_ = 0; totalInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); totalDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); vatInc_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); vatDec_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); grounds_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); documentFunction_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); currency_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); confirmationDateTimeTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000100); invoiceAmendmentFlags_ = 0; - bitField0_ = (bitField0_ & ~0x00000200); originalInvoiceNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); originalInvoiceDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); originalInvoiceRevisionNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00001000); originalInvoiceRevisionDate_ = ""; - bitField0_ = (bitField0_ & ~0x00002000); originalInvoiceCorrectionNumber_ = ""; - bitField0_ = (bitField0_ & ~0x00004000); originalInvoiceCorrectionDate_ = ""; - bitField0_ = (bitField0_ & ~0x00008000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentRevisionMetadata_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata getDefaultInstanceForType() { return Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata build() { Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -7151,79 +8102,85 @@ public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDoc return result; } + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata buildPartial() { Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata result = new Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentStatus_ = documentStatus_; to_bitField0_ |= 0x00000001; } - result.documentStatus_ = documentStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalInc_ = totalInc_; to_bitField0_ |= 0x00000002; } - result.totalInc_ = totalInc_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalDec_ = totalDec_; to_bitField0_ |= 0x00000004; } - result.totalDec_ = totalDec_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vatInc_ = vatInc_; to_bitField0_ |= 0x00000008; } - result.vatInc_ = vatInc_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.vatDec_ = vatDec_; to_bitField0_ |= 0x00000010; } - result.vatDec_ = vatDec_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.grounds_ = grounds_; to_bitField0_ |= 0x00000020; } - result.grounds_ = grounds_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.documentFunction_ = documentFunction_; to_bitField0_ |= 0x00000040; } - result.documentFunction_ = documentFunction_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.currency_ = currency_; to_bitField0_ |= 0x00000080; } - result.currency_ = currency_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; to_bitField0_ |= 0x00000100; } - result.confirmationDateTimeTicks_ = confirmationDateTimeTicks_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; to_bitField0_ |= 0x00000200; } - result.invoiceAmendmentFlags_ = invoiceAmendmentFlags_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.originalInvoiceNumber_ = originalInvoiceNumber_; to_bitField0_ |= 0x00000400; } - result.originalInvoiceNumber_ = originalInvoiceNumber_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.originalInvoiceDate_ = originalInvoiceDate_; to_bitField0_ |= 0x00000800; } - result.originalInvoiceDate_ = originalInvoiceDate_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + if (((from_bitField0_ & 0x00001000) != 0)) { + result.originalInvoiceRevisionNumber_ = originalInvoiceRevisionNumber_; to_bitField0_ |= 0x00001000; } - result.originalInvoiceRevisionNumber_ = originalInvoiceRevisionNumber_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.originalInvoiceRevisionDate_ = originalInvoiceRevisionDate_; to_bitField0_ |= 0x00002000; } - result.originalInvoiceRevisionDate_ = originalInvoiceRevisionDate_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + if (((from_bitField0_ & 0x00004000) != 0)) { + result.originalInvoiceCorrectionNumber_ = originalInvoiceCorrectionNumber_; to_bitField0_ |= 0x00004000; } - result.originalInvoiceCorrectionNumber_ = originalInvoiceCorrectionNumber_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00008000) != 0)) { + result.originalInvoiceCorrectionDate_ = originalInvoiceCorrectionDate_; to_bitField0_ |= 0x00008000; } - result.originalInvoiceCorrectionDate_ = originalInvoiceCorrectionDate_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata) { return mergeFrom((Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata)other); @@ -7239,33 +8196,33 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.UniversalTransferDocument.Un setDocumentStatus(other.getDocumentStatus()); } if (other.hasTotalInc()) { - bitField0_ |= 0x00000002; totalInc_ = other.totalInc_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTotalDec()) { - bitField0_ |= 0x00000004; totalDec_ = other.totalDec_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasVatInc()) { - bitField0_ |= 0x00000008; vatInc_ = other.vatInc_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasVatDec()) { - bitField0_ |= 0x00000010; vatDec_ = other.vatDec_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasGrounds()) { - bitField0_ |= 0x00000020; grounds_ = other.grounds_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasDocumentFunction()) { - bitField0_ |= 0x00000040; documentFunction_ = other.documentFunction_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasCurrency()) { @@ -7278,145 +8235,242 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.UniversalTransferDocument.Un setInvoiceAmendmentFlags(other.getInvoiceAmendmentFlags()); } if (other.hasOriginalInvoiceNumber()) { - bitField0_ |= 0x00000400; originalInvoiceNumber_ = other.originalInvoiceNumber_; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasOriginalInvoiceDate()) { - bitField0_ |= 0x00000800; originalInvoiceDate_ = other.originalInvoiceDate_; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasOriginalInvoiceRevisionNumber()) { - bitField0_ |= 0x00001000; originalInvoiceRevisionNumber_ = other.originalInvoiceRevisionNumber_; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasOriginalInvoiceRevisionDate()) { - bitField0_ |= 0x00002000; originalInvoiceRevisionDate_ = other.originalInvoiceRevisionDate_; + bitField0_ |= 0x00002000; onChanged(); } if (other.hasOriginalInvoiceCorrectionNumber()) { - bitField0_ |= 0x00004000; originalInvoiceCorrectionNumber_ = other.originalInvoiceCorrectionNumber_; + bitField0_ |= 0x00004000; onChanged(); } if (other.hasOriginalInvoiceCorrectionDate()) { - bitField0_ |= 0x00008000; originalInvoiceCorrectionDate_ = other.originalInvoiceCorrectionDate_; + bitField0_ |= 0x00008000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocumentStatus()) { - return false; } if (!hasTotalInc()) { - return false; } if (!hasTotalDec()) { - return false; } if (!hasVatInc()) { - return false; } if (!hasVatDec()) { - return false; } if (!hasDocumentFunction()) { - return false; } if (!hasCurrency()) { - return false; } if (!hasConfirmationDateTimeTicks()) { - return false; } if (!hasInvoiceAmendmentFlags()) { - return false; } if (!hasOriginalInvoiceNumber()) { - return false; } if (!hasOriginalInvoiceDate()) { - return false; } if (!hasOriginalInvoiceCorrectionNumber()) { - return false; } if (!hasOriginalInvoiceCorrectionDate()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus tmpValue = + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + totalInc_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + totalDec_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + vatInc_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + vatDec_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + grounds_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + documentFunction_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + currency_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 73: { + confirmationDateTimeTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000100; + break; + } // case 73 + case 80: { + invoiceAmendmentFlags_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + originalInvoiceNumber_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + originalInvoiceDate_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + originalInvoiceRevisionNumber_ = input.readBytes(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + originalInvoiceRevisionDate_ = input.readBytes(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + originalInvoiceCorrectionNumber_ = input.readBytes(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + originalInvoiceCorrectionDate_ = input.readBytes(); + bitField0_ |= 0x00008000; + break; + } // case 130 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; + private int documentStatus_ = 0; /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return Whether the documentStatus field is set. */ - public boolean hasDocumentStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return The documentStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus getDocumentStatus() { - return documentStatus_; + Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus result = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.forNumber(documentStatus_); + return result == null ? Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus : result; } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @param value The documentStatus to set. + * @return This builder for chaining. */ public Builder setDocumentStatus(Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentStatus_ = value; + documentStatus_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentStatus DocumentStatus = 1; + * @return This builder for chaining. */ public Builder clearDocumentStatus() { bitField0_ = (bitField0_ & ~0x00000001); - documentStatus_ = Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalTransferDocumentStatus.UnknownDocumentStatus; + documentStatus_ = 0; onChanged(); return this; } @@ -7424,12 +8478,14 @@ public Builder clearDocumentStatus() { private java.lang.Object totalInc_ = ""; /** * required string TotalInc = 2; + * @return Whether the totalInc field is set. */ public boolean hasTotalInc() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required string TotalInc = 2; + * @return The totalInc. */ public java.lang.String getTotalInc() { java.lang.Object ref = totalInc_; @@ -7447,6 +8503,7 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 2; + * @return The bytes for totalInc. */ public com.google.protobuf.ByteString getTotalIncBytes() { @@ -7463,36 +8520,37 @@ public java.lang.String getTotalInc() { } /** * required string TotalInc = 2; + * @param value The totalInc to set. + * @return This builder for chaining. */ public Builder setTotalInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required string TotalInc = 2; + * @return This builder for chaining. */ public Builder clearTotalInc() { - bitField0_ = (bitField0_ & ~0x00000002); totalInc_ = getDefaultInstance().getTotalInc(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * required string TotalInc = 2; + * @param value The bytes for totalInc to set. + * @return This builder for chaining. */ public Builder setTotalIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } totalInc_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -7500,12 +8558,14 @@ public Builder setTotalIncBytes( private java.lang.Object totalDec_ = ""; /** * required string TotalDec = 3; + * @return Whether the totalDec field is set. */ public boolean hasTotalDec() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string TotalDec = 3; + * @return The totalDec. */ public java.lang.String getTotalDec() { java.lang.Object ref = totalDec_; @@ -7523,6 +8583,7 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 3; + * @return The bytes for totalDec. */ public com.google.protobuf.ByteString getTotalDecBytes() { @@ -7539,36 +8600,37 @@ public java.lang.String getTotalDec() { } /** * required string TotalDec = 3; + * @param value The totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string TotalDec = 3; + * @return This builder for chaining. */ public Builder clearTotalDec() { - bitField0_ = (bitField0_ & ~0x00000004); totalDec_ = getDefaultInstance().getTotalDec(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string TotalDec = 3; + * @param value The bytes for totalDec to set. + * @return This builder for chaining. */ public Builder setTotalDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } totalDec_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7576,12 +8638,14 @@ public Builder setTotalDecBytes( private java.lang.Object vatInc_ = ""; /** * required string VatInc = 4; + * @return Whether the vatInc field is set. */ public boolean hasVatInc() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string VatInc = 4; + * @return The vatInc. */ public java.lang.String getVatInc() { java.lang.Object ref = vatInc_; @@ -7599,6 +8663,7 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 4; + * @return The bytes for vatInc. */ public com.google.protobuf.ByteString getVatIncBytes() { @@ -7615,36 +8680,37 @@ public java.lang.String getVatInc() { } /** * required string VatInc = 4; + * @param value The vatInc to set. + * @return This builder for chaining. */ public Builder setVatInc( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required string VatInc = 4; + * @return This builder for chaining. */ public Builder clearVatInc() { - bitField0_ = (bitField0_ & ~0x00000008); vatInc_ = getDefaultInstance().getVatInc(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * required string VatInc = 4; + * @param value The bytes for vatInc to set. + * @return This builder for chaining. */ public Builder setVatIncBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } vatInc_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7652,12 +8718,14 @@ public Builder setVatIncBytes( private java.lang.Object vatDec_ = ""; /** * required string VatDec = 5; + * @return Whether the vatDec field is set. */ public boolean hasVatDec() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string VatDec = 5; + * @return The vatDec. */ public java.lang.String getVatDec() { java.lang.Object ref = vatDec_; @@ -7675,6 +8743,7 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 5; + * @return The bytes for vatDec. */ public com.google.protobuf.ByteString getVatDecBytes() { @@ -7691,57 +8760,60 @@ public java.lang.String getVatDec() { } /** * required string VatDec = 5; + * @param value The vatDec to set. + * @return This builder for chaining. */ public Builder setVatDec( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * required string VatDec = 5; + * @return This builder for chaining. */ public Builder clearVatDec() { - bitField0_ = (bitField0_ & ~0x00000010); vatDec_ = getDefaultInstance().getVatDec(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * required string VatDec = 5; + * @param value The bytes for vatDec to set. + * @return This builder for chaining. */ public Builder setVatDecBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } vatDec_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object grounds_ = ""; /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @return Whether the grounds field is set. */ public boolean hasGrounds() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @return The grounds. */ public java.lang.String getGrounds() { java.lang.Object ref = grounds_; @@ -7758,11 +8830,12 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @return The bytes for grounds. */ public com.google.protobuf.ByteString getGroundsBytes() { @@ -7778,49 +8851,50 @@ public java.lang.String getGrounds() { } } /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @param value The grounds to set. + * @return This builder for chaining. */ public Builder setGrounds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @return This builder for chaining. */ public Builder clearGrounds() { - bitField0_ = (bitField0_ & ~0x00000020); grounds_ = getDefaultInstance().getGrounds(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** - * optional string Grounds = 6; - * *
        * DocumentGrounds
        * 
+ * + * optional string Grounds = 6; + * @param value The bytes for grounds to set. + * @return This builder for chaining. */ public Builder setGroundsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } grounds_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7828,12 +8902,14 @@ public Builder setGroundsBytes( private java.lang.Object documentFunction_ = ""; /** * required string DocumentFunction = 7; + * @return Whether the documentFunction field is set. */ public boolean hasDocumentFunction() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required string DocumentFunction = 7; + * @return The documentFunction. */ public java.lang.String getDocumentFunction() { java.lang.Object ref = documentFunction_; @@ -7851,6 +8927,7 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 7; + * @return The bytes for documentFunction. */ public com.google.protobuf.ByteString getDocumentFunctionBytes() { @@ -7867,36 +8944,37 @@ public java.lang.String getDocumentFunction() { } /** * required string DocumentFunction = 7; + * @param value The documentFunction to set. + * @return This builder for chaining. */ public Builder setDocumentFunction( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } documentFunction_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * required string DocumentFunction = 7; + * @return This builder for chaining. */ public Builder clearDocumentFunction() { - bitField0_ = (bitField0_ & ~0x00000040); documentFunction_ = getDefaultInstance().getDocumentFunction(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * required string DocumentFunction = 7; + * @param value The bytes for documentFunction to set. + * @return This builder for chaining. */ public Builder setDocumentFunctionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } documentFunction_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -7904,27 +8982,35 @@ public Builder setDocumentFunctionBytes( private int currency_ ; /** * required int32 Currency = 8; + * @return Whether the currency field is set. */ + @java.lang.Override public boolean hasCurrency() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required int32 Currency = 8; + * @return The currency. */ + @java.lang.Override public int getCurrency() { return currency_; } /** * required int32 Currency = 8; + * @param value The currency to set. + * @return This builder for chaining. */ public Builder setCurrency(int value) { - bitField0_ |= 0x00000080; + currency_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * required int32 Currency = 8; + * @return This builder for chaining. */ public Builder clearCurrency() { bitField0_ = (bitField0_ & ~0x00000080); @@ -7936,27 +9022,35 @@ public Builder clearCurrency() { private long confirmationDateTimeTicks_ ; /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return Whether the confirmationDateTimeTicks field is set. */ + @java.lang.Override public boolean hasConfirmationDateTimeTicks() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return The confirmationDateTimeTicks. */ + @java.lang.Override public long getConfirmationDateTimeTicks() { return confirmationDateTimeTicks_; } /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @param value The confirmationDateTimeTicks to set. + * @return This builder for chaining. */ public Builder setConfirmationDateTimeTicks(long value) { - bitField0_ |= 0x00000100; + confirmationDateTimeTicks_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * required sfixed64 ConfirmationDateTimeTicks = 9; + * @return This builder for chaining. */ public Builder clearConfirmationDateTimeTicks() { bitField0_ = (bitField0_ & ~0x00000100); @@ -7968,27 +9062,35 @@ public Builder clearConfirmationDateTimeTicks() { private int invoiceAmendmentFlags_ ; /** * required int32 InvoiceAmendmentFlags = 10; + * @return Whether the invoiceAmendmentFlags field is set. */ + @java.lang.Override public boolean hasInvoiceAmendmentFlags() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * required int32 InvoiceAmendmentFlags = 10; + * @return The invoiceAmendmentFlags. */ + @java.lang.Override public int getInvoiceAmendmentFlags() { return invoiceAmendmentFlags_; } /** * required int32 InvoiceAmendmentFlags = 10; + * @param value The invoiceAmendmentFlags to set. + * @return This builder for chaining. */ public Builder setInvoiceAmendmentFlags(int value) { - bitField0_ |= 0x00000200; + invoiceAmendmentFlags_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * required int32 InvoiceAmendmentFlags = 10; + * @return This builder for chaining. */ public Builder clearInvoiceAmendmentFlags() { bitField0_ = (bitField0_ & ~0x00000200); @@ -8000,12 +9102,14 @@ public Builder clearInvoiceAmendmentFlags() { private java.lang.Object originalInvoiceNumber_ = ""; /** * required string OriginalInvoiceNumber = 11; + * @return Whether the originalInvoiceNumber field is set. */ public boolean hasOriginalInvoiceNumber() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * required string OriginalInvoiceNumber = 11; + * @return The originalInvoiceNumber. */ public java.lang.String getOriginalInvoiceNumber() { java.lang.Object ref = originalInvoiceNumber_; @@ -8023,6 +9127,7 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 11; + * @return The bytes for originalInvoiceNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceNumberBytes() { @@ -8039,36 +9144,37 @@ public java.lang.String getOriginalInvoiceNumber() { } /** * required string OriginalInvoiceNumber = 11; + * @param value The originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * required string OriginalInvoiceNumber = 11; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceNumber() { - bitField0_ = (bitField0_ & ~0x00000400); originalInvoiceNumber_ = getDefaultInstance().getOriginalInvoiceNumber(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * required string OriginalInvoiceNumber = 11; + * @param value The bytes for originalInvoiceNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + if (value == null) { throw new NullPointerException(); } originalInvoiceNumber_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -8076,12 +9182,14 @@ public Builder setOriginalInvoiceNumberBytes( private java.lang.Object originalInvoiceDate_ = ""; /** * required string OriginalInvoiceDate = 12; + * @return Whether the originalInvoiceDate field is set. */ public boolean hasOriginalInvoiceDate() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * required string OriginalInvoiceDate = 12; + * @return The originalInvoiceDate. */ public java.lang.String getOriginalInvoiceDate() { java.lang.Object ref = originalInvoiceDate_; @@ -8099,6 +9207,7 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 12; + * @return The bytes for originalInvoiceDate. */ public com.google.protobuf.ByteString getOriginalInvoiceDateBytes() { @@ -8115,36 +9224,37 @@ public java.lang.String getOriginalInvoiceDate() { } /** * required string OriginalInvoiceDate = 12; + * @param value The originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * required string OriginalInvoiceDate = 12; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceDate() { - bitField0_ = (bitField0_ & ~0x00000800); originalInvoiceDate_ = getDefaultInstance().getOriginalInvoiceDate(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * required string OriginalInvoiceDate = 12; + * @param value The bytes for originalInvoiceDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } originalInvoiceDate_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -8152,12 +9262,14 @@ public Builder setOriginalInvoiceDateBytes( private java.lang.Object originalInvoiceRevisionNumber_ = ""; /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return Whether the originalInvoiceRevisionNumber field is set. */ public boolean hasOriginalInvoiceRevisionNumber() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The originalInvoiceRevisionNumber. */ public java.lang.String getOriginalInvoiceRevisionNumber() { java.lang.Object ref = originalInvoiceRevisionNumber_; @@ -8175,6 +9287,7 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return The bytes for originalInvoiceRevisionNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceRevisionNumberBytes() { @@ -8191,36 +9304,37 @@ public java.lang.String getOriginalInvoiceRevisionNumber() { } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @param value The originalInvoiceRevisionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionNumber_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceRevisionNumber() { - bitField0_ = (bitField0_ & ~0x00001000); originalInvoiceRevisionNumber_ = getDefaultInstance().getOriginalInvoiceRevisionNumber(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * optional string OriginalInvoiceRevisionNumber = 13; + * @param value The bytes for originalInvoiceRevisionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionNumber_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -8228,12 +9342,14 @@ public Builder setOriginalInvoiceRevisionNumberBytes( private java.lang.Object originalInvoiceRevisionDate_ = ""; /** * optional string OriginalInvoiceRevisionDate = 14; + * @return Whether the originalInvoiceRevisionDate field is set. */ public boolean hasOriginalInvoiceRevisionDate() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The originalInvoiceRevisionDate. */ public java.lang.String getOriginalInvoiceRevisionDate() { java.lang.Object ref = originalInvoiceRevisionDate_; @@ -8251,6 +9367,7 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 14; + * @return The bytes for originalInvoiceRevisionDate. */ public com.google.protobuf.ByteString getOriginalInvoiceRevisionDateBytes() { @@ -8267,36 +9384,37 @@ public java.lang.String getOriginalInvoiceRevisionDate() { } /** * optional string OriginalInvoiceRevisionDate = 14; + * @param value The originalInvoiceRevisionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionDate_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } /** * optional string OriginalInvoiceRevisionDate = 14; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceRevisionDate() { - bitField0_ = (bitField0_ & ~0x00002000); originalInvoiceRevisionDate_ = getDefaultInstance().getOriginalInvoiceRevisionDate(); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** * optional string OriginalInvoiceRevisionDate = 14; + * @param value The bytes for originalInvoiceRevisionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceRevisionDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; + if (value == null) { throw new NullPointerException(); } originalInvoiceRevisionDate_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -8304,12 +9422,14 @@ public Builder setOriginalInvoiceRevisionDateBytes( private java.lang.Object originalInvoiceCorrectionNumber_ = ""; /** * required string OriginalInvoiceCorrectionNumber = 15; + * @return Whether the originalInvoiceCorrectionNumber field is set. */ public boolean hasOriginalInvoiceCorrectionNumber() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * required string OriginalInvoiceCorrectionNumber = 15; + * @return The originalInvoiceCorrectionNumber. */ public java.lang.String getOriginalInvoiceCorrectionNumber() { java.lang.Object ref = originalInvoiceCorrectionNumber_; @@ -8327,6 +9447,7 @@ public java.lang.String getOriginalInvoiceCorrectionNumber() { } /** * required string OriginalInvoiceCorrectionNumber = 15; + * @return The bytes for originalInvoiceCorrectionNumber. */ public com.google.protobuf.ByteString getOriginalInvoiceCorrectionNumberBytes() { @@ -8343,36 +9464,37 @@ public java.lang.String getOriginalInvoiceCorrectionNumber() { } /** * required string OriginalInvoiceCorrectionNumber = 15; + * @param value The originalInvoiceCorrectionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceCorrectionNumber( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; + if (value == null) { throw new NullPointerException(); } originalInvoiceCorrectionNumber_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } /** * required string OriginalInvoiceCorrectionNumber = 15; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceCorrectionNumber() { - bitField0_ = (bitField0_ & ~0x00004000); originalInvoiceCorrectionNumber_ = getDefaultInstance().getOriginalInvoiceCorrectionNumber(); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** * required string OriginalInvoiceCorrectionNumber = 15; + * @param value The bytes for originalInvoiceCorrectionNumber to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceCorrectionNumberBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; + if (value == null) { throw new NullPointerException(); } originalInvoiceCorrectionNumber_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -8380,12 +9502,14 @@ public Builder setOriginalInvoiceCorrectionNumberBytes( private java.lang.Object originalInvoiceCorrectionDate_ = ""; /** * required string OriginalInvoiceCorrectionDate = 16; + * @return Whether the originalInvoiceCorrectionDate field is set. */ public boolean hasOriginalInvoiceCorrectionDate() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * required string OriginalInvoiceCorrectionDate = 16; + * @return The originalInvoiceCorrectionDate. */ public java.lang.String getOriginalInvoiceCorrectionDate() { java.lang.Object ref = originalInvoiceCorrectionDate_; @@ -8403,6 +9527,7 @@ public java.lang.String getOriginalInvoiceCorrectionDate() { } /** * required string OriginalInvoiceCorrectionDate = 16; + * @return The bytes for originalInvoiceCorrectionDate. */ public com.google.protobuf.ByteString getOriginalInvoiceCorrectionDateBytes() { @@ -8419,36 +9544,37 @@ public java.lang.String getOriginalInvoiceCorrectionDate() { } /** * required string OriginalInvoiceCorrectionDate = 16; + * @param value The originalInvoiceCorrectionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceCorrectionDate( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + if (value == null) { throw new NullPointerException(); } originalInvoiceCorrectionDate_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } /** * required string OriginalInvoiceCorrectionDate = 16; + * @return This builder for chaining. */ public Builder clearOriginalInvoiceCorrectionDate() { - bitField0_ = (bitField0_ & ~0x00008000); originalInvoiceCorrectionDate_ = getDefaultInstance().getOriginalInvoiceCorrectionDate(); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } /** * required string OriginalInvoiceCorrectionDate = 16; + * @param value The bytes for originalInvoiceCorrectionDate to set. + * @return This builder for chaining. */ public Builder setOriginalInvoiceCorrectionDateBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + if (value == null) { throw new NullPointerException(); } originalInvoiceCorrectionDate_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -8456,32 +9582,72 @@ public Builder setOriginalInvoiceCorrectionDateBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata) + private static final Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata DEFAULT_INSTANCE; static { - defaultInstance = new UniversalCorrectionDocumentRevisionMetadata(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata(); + } + + public static Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UniversalCorrectionDocumentRevisionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalTransferDocumentProtos.UniversalCorrectionDocumentRevisionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Documents.UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentRevisionMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentRevisionMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentRevisionMetadata_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentRevisionMetadata_fieldAccessorTable; @@ -8489,7 +9655,7 @@ public Builder setOriginalInvoiceCorrectionDateBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -8502,7 +9668,7 @@ public Builder setOriginalInvoiceCorrectionDateBytes( "tStatus:\025UnknownDocumentStatus\022\r\n\005Total\030" + "\002 \002(\t\022\013\n\003Vat\030\003 \001(\t\022\017\n\007Grounds\030\004 \001(\t\022\030\n\020D" + "ocumentFunction\030\005 \002(\t\022\020\n\010Currency\030\006 \002(\005\022" + - "!\n\031ConfirmationDateTimeTicks\030\010 \001(\020\022\035\n\025In", + "!\n\031ConfirmationDateTimeTicks\030\010 \001(\020\022\035\n\025In" + "voiceAmendmentFlags\030\t \001(\005\"\361\002\n)UniversalT" + "ransferDocumentRevisionMetadata\022m\n\016Docum" + "entStatus\030\001 \002(\0162U.Diadoc.Api.Proto.Docum" + @@ -8512,7 +9678,7 @@ public Builder setOriginalInvoiceCorrectionDateBytes( "unction\030\005 \002(\t\022\020\n\010Currency\030\006 \002(\005\022!\n\031Confi" + "rmationDateTimeTicks\030\007 \001(\020\022\035\n\025InvoiceAme" + "ndmentFlags\030\010 \002(\005\022\035\n\025OriginalInvoiceNumb" + - "er\030\t \002(\t\022\033\n\023OriginalInvoiceDate\030\n \002(\t\"\337\003", + "er\030\t \002(\t\022\033\n\023OriginalInvoiceDate\030\n \002(\t\"\337\003" + "\n#UniversalCorrectionDocumentMetadata\022m\n" + "\016DocumentStatus\030\001 \002(\0162U.Diadoc.Api.Proto" + ".Documents.UniversalTransferDocument.Uni" + @@ -8522,7 +9688,7 @@ public Builder setOriginalInvoiceCorrectionDateBytes( "umentFunction\030\007 \002(\t\022\020\n\010Currency\030\010 \002(\005\022!\n" + "\031ConfirmationDateTimeTicks\030\t \002(\020\022\035\n\025Invo" + "iceAmendmentFlags\030\n \002(\005\022\035\n\025OriginalInvoi" + - "ceNumber\030\013 \002(\t\022\033\n\023OriginalInvoiceDate\030\014 ", + "ceNumber\030\013 \002(\t\022\033\n\023OriginalInvoiceDate\030\014 " + "\002(\t\022%\n\035OriginalInvoiceRevisionNumber\030\r \001" + "(\t\022#\n\033OriginalInvoiceRevisionDate\030\016 \001(\t\"" + "\267\004\n+UniversalCorrectionDocumentRevisionM" + @@ -8532,7 +9698,7 @@ public Builder setOriginalInvoiceCorrectionDateBytes( "\n\010TotalInc\030\002 \002(\t\022\020\n\010TotalDec\030\003 \002(\t\022\016\n\006Va" + "tInc\030\004 \002(\t\022\016\n\006VatDec\030\005 \002(\t\022\017\n\007Grounds\030\006 " + "\001(\t\022\030\n\020DocumentFunction\030\007 \002(\t\022\020\n\010Currenc" + - "y\030\010 \002(\005\022!\n\031ConfirmationDateTimeTicks\030\t \002", + "y\030\010 \002(\005\022!\n\031ConfirmationDateTimeTicks\030\t \002" + "(\020\022\035\n\025InvoiceAmendmentFlags\030\n \002(\005\022\035\n\025Ori" + "ginalInvoiceNumber\030\013 \002(\t\022\033\n\023OriginalInvo" + "iceDate\030\014 \002(\t\022%\n\035OriginalInvoiceRevision" + @@ -8542,7 +9708,7 @@ public Builder setOriginalInvoiceCorrectionDateBytes( "ate\030\020 \002(\t*\341\004\n\037UniversalTransferDocumentS" + "tatus\022\031\n\025UnknownDocumentStatus\020\000\022%\n!Outb" + "oundWaitingForSenderSignature\020\001\0229\n5Outbo" + - "undWaitingForInvoiceReceiptAndRecipientS", + "undWaitingForInvoiceReceiptAndRecipientS" + "ignature\020\002\022$\n OutboundWaitingForInvoiceR" + "eceipt\020\003\022(\n$OutboundWaitingForRecipientS" + "ignature\020\004\022\"\n\036OutboundWithRecipientSigna" + @@ -8552,23 +9718,15 @@ public Builder setOriginalInvoiceCorrectionDateBytes( "tboundFinished\020\t\022\'\n#InboundWaitingForRec" + "ipientSignature\020\020\022!\n\035InboundWithRecipien" + "tSignature\020\021\022,\n(InboundRecipientSignatur" + - "eRequestRejected\020\022\022$\n InboundInvalidReci", + "eRequestRejected\020\022\022$\n InboundInvalidReci" + "pientSignature\020\023\022\026\n\022InboundNotFinished\020\024" + "\022\023\n\017InboundFinished\020\025B!B\037UniversalTransf" + "erDocumentProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentMetadata_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalTransferDocumentMetadata_fieldAccessorTable = new @@ -8593,6 +9751,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_UniversalTransferDocument_UniversalCorrectionDocumentRevisionMetadata_descriptor, new java.lang.String[] { "DocumentStatus", "TotalInc", "TotalDec", "VatInc", "VatDec", "Grounds", "DocumentFunction", "Currency", "ConfirmationDateTimeTicks", "InvoiceAmendmentFlags", "OriginalInvoiceNumber", "OriginalInvoiceDate", "OriginalInvoiceRevisionNumber", "OriginalInvoiceRevisionDate", "OriginalInvoiceCorrectionNumber", "OriginalInvoiceCorrectionDate", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Dss/DssSignProtos.java b/src/main/java/Diadoc/Api/Proto/Dss/DssSignProtos.java index d0b25042..7e810540 100644 --- a/src/main/java/Diadoc/Api/Proto/Dss/DssSignProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Dss/DssSignProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Dss/DssSign.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Dss; public final class DssSignProtos { private DssSignProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssSignProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Dss.DssConfirmType} @@ -16,29 +33,38 @@ public enum DssConfirmType /** * ConfirmTypeUnknown = -1; */ - ConfirmTypeUnknown(0, -1), + ConfirmTypeUnknown(-1), /** * None = 0; */ - None(1, 0), + None(0), /** * Sms = 1; */ - Sms(2, 1), + Sms(1), /** * MyDss = 2; */ - MyDss(3, 2), + MyDss(2), /** * Applet = 3; */ - Applet(4, 3), + Applet(3), /** * MobileSdk = 4; */ - MobileSdk(5, 4), + MobileSdk(4), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssConfirmType.class.getName()); + } /** * ConfirmTypeUnknown = -1; */ @@ -65,9 +91,25 @@ public enum DssConfirmType public static final int MobileSdk_VALUE = 4; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static DssConfirmType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DssConfirmType forNumber(int value) { switch (value) { case -1: return ConfirmTypeUnknown; case 0: return None; @@ -83,17 +125,17 @@ public static DssConfirmType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + DssConfirmType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DssConfirmType findValueByNumber(int number) { - return DssConfirmType.valueOf(number); + return DssConfirmType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -115,11 +157,9 @@ public static DssConfirmType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private DssConfirmType(int index, int value) { - this.index = index; + private DssConfirmType(int value) { this.value = value; } @@ -134,17 +174,26 @@ public enum DssOperator /** * OperatorUnknown = 0; */ - OperatorUnknown(0, 0), + OperatorUnknown(0), /** * Megafon = 1; */ - Megafon(1, 1), + Megafon(1), /** * Kontur = 2; */ - Kontur(2, 2), + Kontur(2), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssOperator.class.getName()); + } /** * OperatorUnknown = 0; */ @@ -159,9 +208,25 @@ public enum DssOperator public static final int Kontur_VALUE = 2; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static DssOperator valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DssOperator forNumber(int value) { switch (value) { case 0: return OperatorUnknown; case 1: return Megafon; @@ -174,17 +239,17 @@ public static DssOperator valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + DssOperator> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DssOperator findValueByNumber(int number) { - return DssOperator.valueOf(number); + return DssOperator.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -206,11 +271,9 @@ public static DssOperator valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private DssOperator(int index, int value) { - this.index = index; + private DssOperator(int value) { this.value = value; } @@ -225,17 +288,26 @@ public enum DssFileSigningStatus /** * UnknownSigningStatus = 0; */ - UnknownSigningStatus(0, 0), + UnknownSigningStatus(0), /** * SigningCompleted = 1; */ - SigningCompleted(1, 1), + SigningCompleted(1), /** * SigningError = 2; */ - SigningError(2, 2), + SigningError(2), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssFileSigningStatus.class.getName()); + } /** * UnknownSigningStatus = 0; */ @@ -250,9 +322,25 @@ public enum DssFileSigningStatus public static final int SigningError_VALUE = 2; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static DssFileSigningStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DssFileSigningStatus forNumber(int value) { switch (value) { case 0: return UnknownSigningStatus; case 1: return SigningCompleted; @@ -265,17 +353,17 @@ public static DssFileSigningStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + DssFileSigningStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DssFileSigningStatus findValueByNumber(int number) { - return DssFileSigningStatus.valueOf(number); + return DssFileSigningStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -297,11 +385,9 @@ public static DssFileSigningStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private DssFileSigningStatus(int index, int value) { - this.index = index; + private DssFileSigningStatus(int value) { this.value = value; } @@ -316,37 +402,46 @@ public enum DssOperationStatus /** * Unknown = 0; */ - Unknown(0, 0), + Unknown(0), /** * InProgress = 1; */ - InProgress(1, 1), + InProgress(1), /** * Completed = 2; */ - Completed(2, 2), + Completed(2), /** * CanceledByUser = 3; */ - CanceledByUser(3, 3), + CanceledByUser(3), /** * Timeout = 4; */ - Timeout(4, 4), + Timeout(4), /** * Crashed = 5; */ - Crashed(5, 5), + Crashed(5), /** * UserHasUnconfirmedOperation = 6; */ - UserHasUnconfirmedOperation(6, 6), + UserHasUnconfirmedOperation(6), /** * OperationRetryRequired = 7; */ - OperationRetryRequired(7, 7), + OperationRetryRequired(7), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssOperationStatus.class.getName()); + } /** * Unknown = 0; */ @@ -381,9 +476,25 @@ public enum DssOperationStatus public static final int OperationRetryRequired_VALUE = 7; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static DssOperationStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DssOperationStatus forNumber(int value) { switch (value) { case 0: return Unknown; case 1: return InProgress; @@ -401,17 +512,17 @@ public static DssOperationStatus valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + DssOperationStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DssOperationStatus findValueByNumber(int number) { - return DssOperationStatus.valueOf(number); + return DssOperationStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -433,11 +544,9 @@ public static DssOperationStatus valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private DssOperationStatus(int index, int value) { - this.index = index; + private DssOperationStatus(int value) { this.value = value; } @@ -479,79 +588,30 @@ public static final class DssSignRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Dss.DssSignRequest) DssSignRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssSignRequest.class.getName()); + } // Use DssSignRequest.newBuilder() to construct. private DssSignRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DssSignRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DssSignRequest defaultInstance; - public static DssSignRequest getDefaultInstance() { - return defaultInstance; } - - public DssSignRequest getDefaultInstanceForType() { - return defaultInstance; + private DssSignRequest() { + files_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DssSignRequest( - 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)) { - files_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - files_.add(input.readMessage(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile.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)) { - files_ = java.util.Collections.unmodifiableList(files_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignRequest_fieldAccessorTable @@ -559,32 +619,20 @@ private DssSignRequest( Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest.class, Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DssSignRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DssSignRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int FILES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List files_; /** * repeated .Diadoc.Api.Proto.Dss.DssSignFile Files = 1; */ + @java.lang.Override public java.util.List getFilesList() { return files_; } /** * repeated .Diadoc.Api.Proto.Dss.DssSignFile Files = 1; */ + @java.lang.Override public java.util.List getFilesOrBuilderList() { return files_; @@ -592,27 +640,28 @@ public java.util.List getFilesLi /** * repeated .Diadoc.Api.Proto.Dss.DssSignFile Files = 1; */ + @java.lang.Override public int getFilesCount() { return files_.size(); } /** * repeated .Diadoc.Api.Proto.Dss.DssSignFile Files = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile getFiles(int index) { return files_.get(index); } /** * repeated .Diadoc.Api.Proto.Dss.DssSignFile Files = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFileOrBuilder getFilesOrBuilder( int index) { return files_.get(index); } - private void initFields() { - files_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -628,18 +677,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < files_.size(); i++) { output.writeMessage(1, files_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -648,17 +697,53 @@ public int getSerializedSize() { .computeMessageSize(1, files_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest other = (Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest) obj; + + if (!getFilesList() + .equals(other.getFilesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -682,42 +767,57 @@ public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parseFrom( } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -737,6 +837,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignRequest_fieldAccessorTable @@ -746,47 +847,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getFilesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + files_ = null; filesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignRequest_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest getDefaultInstanceForType() { return Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest build() { Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest result = buildPartial(); if (!result.isInitialized()) { @@ -795,11 +889,18 @@ public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest buildPartial() { Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest result = new Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest result) { if (filesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { files_ = java.util.Collections.unmodifiableList(files_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -807,10 +908,13 @@ public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest buildPartial() { } else { result.files_ = filesBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest) { return mergeFrom((Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest)other); @@ -849,34 +953,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest other } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getFilesCount(); i++) { if (!getFiles(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile m = + input.readMessage( + Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile.parser(), + extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -884,7 +1016,7 @@ public Builder mergeFrom( private java.util.List files_ = java.util.Collections.emptyList(); private void ensureFilesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { files_ = new java.util.ArrayList(files_); bitField0_ |= 0x00000001; } @@ -1113,7 +1245,7 @@ public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile.Builder addFilesBuilder( filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile, Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile.Builder, Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFileOrBuilder>( files_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); files_ = null; @@ -1124,12 +1256,52 @@ public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile.Builder addFilesBuilder( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Dss.DssSignRequest) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Dss.DssSignRequest) + private static final Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest DEFAULT_INSTANCE; static { - defaultInstance = new DssSignRequest(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest(); + } + + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DssSignRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Dss.DssSignRequest) } public interface DssSignFileOrBuilder extends @@ -1138,10 +1310,12 @@ public interface DssSignFileOrBuilder extends /** * required .Diadoc.Api.Proto.Content_v3 Content = 1; + * @return Whether the content field is set. */ boolean hasContent(); /** * required .Diadoc.Api.Proto.Content_v3 Content = 1; + * @return The content. */ Diadoc.Api.Proto.Content_v3Protos.Content_v3 getContent(); /** @@ -1151,14 +1325,17 @@ public interface DssSignFileOrBuilder extends /** * optional string FileName = 2; + * @return Whether the fileName field is set. */ boolean hasFileName(); /** * optional string FileName = 2; + * @return The fileName. */ java.lang.String getFileName(); /** * optional string FileName = 2; + * @return The bytes for fileName. */ com.google.protobuf.ByteString getFileNameBytes(); @@ -1170,87 +1347,30 @@ public static final class DssSignFile extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Dss.DssSignFile) DssSignFileOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssSignFile.class.getName()); + } // Use DssSignFile.newBuilder() to construct. private DssSignFile(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DssSignFile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DssSignFile defaultInstance; - public static DssSignFile getDefaultInstance() { - return defaultInstance; - } - - public DssSignFile getDefaultInstanceForType() { - return defaultInstance; + private DssSignFile() { + fileName_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DssSignFile( - 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: { - Diadoc.Api.Proto.Content_v3Protos.Content_v3.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = content_.toBuilder(); - } - content_ = input.readMessage(Diadoc.Api.Proto.Content_v3Protos.Content_v3.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(content_); - content_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - fileName_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignFile_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignFile_fieldAccessorTable @@ -1258,54 +1378,49 @@ private DssSignFile( Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile.class, Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DssSignFile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DssSignFile(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CONTENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Content_v3Protos.Content_v3 content_; /** * required .Diadoc.Api.Proto.Content_v3 Content = 1; + * @return Whether the content field is set. */ + @java.lang.Override public boolean hasContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Content_v3 Content = 1; + * @return The content. */ + @java.lang.Override public Diadoc.Api.Proto.Content_v3Protos.Content_v3 getContent() { - return content_; + return content_ == null ? Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance() : content_; } /** * required .Diadoc.Api.Proto.Content_v3 Content = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Content_v3Protos.Content_v3OrBuilder getContentOrBuilder() { - return content_; + return content_ == null ? Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance() : content_; } public static final int FILENAME_FIELD_NUMBER = 2; - private java.lang.Object fileName_; + @SuppressWarnings("serial") + private volatile java.lang.Object fileName_ = ""; /** * optional string FileName = 2; + * @return Whether the fileName field is set. */ + @java.lang.Override public boolean hasFileName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string FileName = 2; + * @return The fileName. */ + @java.lang.Override public java.lang.String getFileName() { java.lang.Object ref = fileName_; if (ref instanceof java.lang.String) { @@ -1322,7 +1437,9 @@ public java.lang.String getFileName() { } /** * optional string FileName = 2; + * @return The bytes for fileName. */ + @java.lang.Override public com.google.protobuf.ByteString getFileNameBytes() { java.lang.Object ref = fileName_; @@ -1337,11 +1454,8 @@ public java.lang.String getFileName() { } } - private void initFields() { - content_ = Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance(); - fileName_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1359,44 +1473,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, content_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getContent()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getFileNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, fileName_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, content_); + .computeMessageSize(1, getContent()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getFileNameBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, fileName_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile other = (Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile) obj; + + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent() + .equals(other.getContent())) return false; + } + if (hasFileName() != other.hasFileName()) return false; + if (hasFileName()) { + if (!getFileName() + .equals(other.getFileName())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasFileName()) { + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1420,42 +1581,57 @@ public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parseFrom( } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1475,6 +1651,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignFile_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignFile_fieldAccessorTable @@ -1493,40 +1670,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getContentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (contentBuilder_ == null) { - content_ = Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance(); - } else { - contentBuilder_.clear(); + bitField0_ = 0; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); fileName_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignFile_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile getDefaultInstanceForType() { return Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile build() { Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile result = buildPartial(); if (!result.isInitialized()) { @@ -1535,27 +1708,31 @@ public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile buildPartial() { Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile result = new Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = contentBuilder_ == null + ? content_ + : contentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (contentBuilder_ == null) { - result.content_ = content_; - } else { - result.content_ = contentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fileName_ = fileName_; to_bitField0_ |= 0x00000002; } - result.fileName_ = fileName_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile) { return mergeFrom((Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile)other); @@ -1571,60 +1748,88 @@ public Builder mergeFrom(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile other) { mergeContent(other.getContent()); } if (other.hasFileName()) { - bitField0_ |= 0x00000002; fileName_ = other.fileName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasContent()) { - return false; } if (!getContent().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile) e.getUnfinishedMessage(); - throw e; + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getContentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + fileName_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Content_v3Protos.Content_v3 content_ = Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance(); + private Diadoc.Api.Proto.Content_v3Protos.Content_v3 content_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Content_v3Protos.Content_v3, Diadoc.Api.Proto.Content_v3Protos.Content_v3.Builder, Diadoc.Api.Proto.Content_v3Protos.Content_v3OrBuilder> contentBuilder_; /** * required .Diadoc.Api.Proto.Content_v3 Content = 1; + * @return Whether the content field is set. */ public boolean hasContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Content_v3 Content = 1; + * @return The content. */ public Diadoc.Api.Proto.Content_v3Protos.Content_v3 getContent() { if (contentBuilder_ == null) { - return content_; + return content_ == null ? Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance() : content_; } else { return contentBuilder_.getMessage(); } @@ -1638,11 +1843,11 @@ public Builder setContent(Diadoc.Api.Proto.Content_v3Protos.Content_v3 value) { throw new NullPointerException(); } content_ = value; - onChanged(); } else { contentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1652,11 +1857,11 @@ public Builder setContent( Diadoc.Api.Proto.Content_v3Protos.Content_v3.Builder builderForValue) { if (contentBuilder_ == null) { content_ = builderForValue.build(); - onChanged(); } else { contentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1664,31 +1869,33 @@ public Builder setContent( */ public Builder mergeContent(Diadoc.Api.Proto.Content_v3Protos.Content_v3 value) { if (contentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - content_ != Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance()) { - content_ = - Diadoc.Api.Proto.Content_v3Protos.Content_v3.newBuilder(content_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + content_ != null && + content_ != Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); } else { content_ = value; } - onChanged(); } else { contentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (content_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Content_v3 Content = 1; */ public Builder clearContent() { - if (contentBuilder_ == null) { - content_ = Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance(); - onChanged(); - } else { - contentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); return this; } /** @@ -1706,7 +1913,8 @@ public Diadoc.Api.Proto.Content_v3Protos.Content_v3OrBuilder getContentOrBuilder if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilder(); } else { - return content_; + return content_ == null ? + Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance() : content_; } } /** @@ -1729,12 +1937,14 @@ public Diadoc.Api.Proto.Content_v3Protos.Content_v3OrBuilder getContentOrBuilder private java.lang.Object fileName_ = ""; /** * optional string FileName = 2; + * @return Whether the fileName field is set. */ public boolean hasFileName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string FileName = 2; + * @return The fileName. */ public java.lang.String getFileName() { java.lang.Object ref = fileName_; @@ -1752,6 +1962,7 @@ public java.lang.String getFileName() { } /** * optional string FileName = 2; + * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { @@ -1768,36 +1979,37 @@ public java.lang.String getFileName() { } /** * optional string FileName = 2; + * @param value The fileName to set. + * @return This builder for chaining. */ public Builder setFileName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } fileName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string FileName = 2; + * @return This builder for chaining. */ public Builder clearFileName() { - bitField0_ = (bitField0_ & ~0x00000002); fileName_ = getDefaultInstance().getFileName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string FileName = 2; + * @param value The bytes for fileName to set. + * @return This builder for chaining. */ public Builder setFileNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } fileName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1805,12 +2017,52 @@ public Builder setFileNameBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Dss.DssSignFile) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Dss.DssSignFile) + private static final Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile DEFAULT_INSTANCE; static { - defaultInstance = new DssSignFile(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile(); + } + + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DssSignFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignFile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Dss.DssSignFile) } public interface DssSignResultOrBuilder extends @@ -1819,10 +2071,12 @@ public interface DssSignResultOrBuilder extends /** * optional .Diadoc.Api.Proto.Dss.DssOperationStatus OperationStatus = 1 [default = Unknown]; + * @return Whether the operationStatus field is set. */ boolean hasOperationStatus(); /** * optional .Diadoc.Api.Proto.Dss.DssOperationStatus OperationStatus = 1 [default = Unknown]; + * @return The operationStatus. */ Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus getOperationStatus(); @@ -1852,32 +2106,39 @@ Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResultOrBuilder getFileSigningR /** * optional .Diadoc.Api.Proto.Dss.DssConfirmType ConfirmType = 3 [default = ConfirmTypeUnknown]; + * @return Whether the confirmType field is set. */ boolean hasConfirmType(); /** * optional .Diadoc.Api.Proto.Dss.DssConfirmType ConfirmType = 3 [default = ConfirmTypeUnknown]; + * @return The confirmType. */ Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType getConfirmType(); /** * optional .Diadoc.Api.Proto.Dss.DssOperator Operator = 4 [default = OperatorUnknown]; + * @return Whether the operator field is set. */ boolean hasOperator(); /** * optional .Diadoc.Api.Proto.Dss.DssOperator Operator = 4 [default = OperatorUnknown]; + * @return The operator. */ Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator getOperator(); /** * optional string PhoneLastNumbers = 5; + * @return Whether the phoneLastNumbers field is set. */ boolean hasPhoneLastNumbers(); /** * optional string PhoneLastNumbers = 5; + * @return The phoneLastNumbers. */ java.lang.String getPhoneLastNumbers(); /** * optional string PhoneLastNumbers = 5; + * @return The bytes for phoneLastNumbers. */ com.google.protobuf.ByteString getPhoneLastNumbersBytes(); @@ -1889,118 +2150,34 @@ public static final class DssSignResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Dss.DssSignResult) DssSignResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssSignResult.class.getName()); + } // Use DssSignResult.newBuilder() to construct. private DssSignResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DssSignResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DssSignResult defaultInstance; - public static DssSignResult getDefaultInstance() { - return defaultInstance; } - - public DssSignResult getDefaultInstanceForType() { - return defaultInstance; + private DssSignResult() { + operationStatus_ = 0; + fileSigningResults_ = java.util.Collections.emptyList(); + confirmType_ = -1; + operator_ = 0; + phoneLastNumbers_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DssSignResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus value = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - operationStatus_ = value; - } - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - fileSigningResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - fileSigningResults_.add(input.readMessage(Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult.PARSER, extensionRegistry)); - break; - } - case 24: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType value = Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000002; - confirmType_ = value; - } - break; - } - case 32: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator value = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000004; - operator_ = value; - } - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - phoneLastNumbers_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - fileSigningResults_ = java.util.Collections.unmodifiableList(fileSigningResults_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignResult_fieldAccessorTable @@ -2008,48 +2185,39 @@ private DssSignResult( Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult.class, Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DssSignResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DssSignResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int OPERATIONSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus operationStatus_; + private int operationStatus_ = 0; /** * optional .Diadoc.Api.Proto.Dss.DssOperationStatus OperationStatus = 1 [default = Unknown]; + * @return Whether the operationStatus field is set. */ - public boolean hasOperationStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasOperationStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Dss.DssOperationStatus OperationStatus = 1 [default = Unknown]; + * @return The operationStatus. */ - public Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus getOperationStatus() { - return operationStatus_; + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus getOperationStatus() { + Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus result = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus.forNumber(operationStatus_); + return result == null ? Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus.Unknown : result; } public static final int FILESIGNINGRESULTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List fileSigningResults_; /** * repeated .Diadoc.Api.Proto.Dss.DssFileSigningResult FileSigningResults = 2; */ + @java.lang.Override public java.util.List getFileSigningResultsList() { return fileSigningResults_; } /** * repeated .Diadoc.Api.Proto.Dss.DssFileSigningResult FileSigningResults = 2; */ + @java.lang.Override public java.util.List getFileSigningResultsOrBuilderList() { return fileSigningResults_; @@ -2057,64 +2225,78 @@ public java.util.List g /** * repeated .Diadoc.Api.Proto.Dss.DssFileSigningResult FileSigningResults = 2; */ + @java.lang.Override public int getFileSigningResultsCount() { return fileSigningResults_.size(); } /** * repeated .Diadoc.Api.Proto.Dss.DssFileSigningResult FileSigningResults = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult getFileSigningResults(int index) { return fileSigningResults_.get(index); } /** * repeated .Diadoc.Api.Proto.Dss.DssFileSigningResult FileSigningResults = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResultOrBuilder getFileSigningResultsOrBuilder( int index) { return fileSigningResults_.get(index); } public static final int CONFIRMTYPE_FIELD_NUMBER = 3; - private Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType confirmType_; + private int confirmType_ = -1; /** * optional .Diadoc.Api.Proto.Dss.DssConfirmType ConfirmType = 3 [default = ConfirmTypeUnknown]; + * @return Whether the confirmType field is set. */ - public boolean hasConfirmType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasConfirmType() { + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Dss.DssConfirmType ConfirmType = 3 [default = ConfirmTypeUnknown]; + * @return The confirmType. */ - public Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType getConfirmType() { - return confirmType_; + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType getConfirmType() { + Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType result = Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType.forNumber(confirmType_); + return result == null ? Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType.ConfirmTypeUnknown : result; } public static final int OPERATOR_FIELD_NUMBER = 4; - private Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator operator_; + private int operator_ = 0; /** * optional .Diadoc.Api.Proto.Dss.DssOperator Operator = 4 [default = OperatorUnknown]; + * @return Whether the operator field is set. */ - public boolean hasOperator() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasOperator() { + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Dss.DssOperator Operator = 4 [default = OperatorUnknown]; + * @return The operator. */ - public Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator getOperator() { - return operator_; + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator getOperator() { + Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator result = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator.forNumber(operator_); + return result == null ? Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator.OperatorUnknown : result; } public static final int PHONELASTNUMBERS_FIELD_NUMBER = 5; - private java.lang.Object phoneLastNumbers_; + @SuppressWarnings("serial") + private volatile java.lang.Object phoneLastNumbers_ = ""; /** * optional string PhoneLastNumbers = 5; + * @return Whether the phoneLastNumbers field is set. */ + @java.lang.Override public boolean hasPhoneLastNumbers() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string PhoneLastNumbers = 5; + * @return The phoneLastNumbers. */ + @java.lang.Override public java.lang.String getPhoneLastNumbers() { java.lang.Object ref = phoneLastNumbers_; if (ref instanceof java.lang.String) { @@ -2131,7 +2313,9 @@ public java.lang.String getPhoneLastNumbers() { } /** * optional string PhoneLastNumbers = 5; + * @return The bytes for phoneLastNumbers. */ + @java.lang.Override public com.google.protobuf.ByteString getPhoneLastNumbersBytes() { java.lang.Object ref = phoneLastNumbers_; @@ -2146,14 +2330,8 @@ public java.lang.String getPhoneLastNumbers() { } } - private void initFields() { - operationStatus_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus.Unknown; - fileSigningResults_ = java.util.Collections.emptyList(); - confirmType_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType.ConfirmTypeUnknown; - operator_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator.OperatorUnknown; - phoneLastNumbers_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2163,65 +2341,133 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, operationStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, operationStatus_); } for (int i = 0; i < fileSigningResults_.size(); i++) { output.writeMessage(2, fileSigningResults_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(3, confirmType_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, confirmType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(4, operator_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(4, operator_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(5, getPhoneLastNumbersBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, phoneLastNumbers_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, operationStatus_.getNumber()); + .computeEnumSize(1, operationStatus_); } for (int i = 0; i < fileSigningResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fileSigningResults_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, confirmType_.getNumber()); + .computeEnumSize(3, confirmType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, operator_.getNumber()); + .computeEnumSize(4, operator_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getPhoneLastNumbersBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, phoneLastNumbers_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult other = (Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult) obj; + + if (hasOperationStatus() != other.hasOperationStatus()) return false; + if (hasOperationStatus()) { + if (operationStatus_ != other.operationStatus_) return false; + } + if (!getFileSigningResultsList() + .equals(other.getFileSigningResultsList())) return false; + if (hasConfirmType() != other.hasConfirmType()) return false; + if (hasConfirmType()) { + if (confirmType_ != other.confirmType_) return false; + } + if (hasOperator() != other.hasOperator()) return false; + if (hasOperator()) { + if (operator_ != other.operator_) return false; + } + if (hasPhoneLastNumbers() != other.hasPhoneLastNumbers()) return false; + if (hasPhoneLastNumbers()) { + if (!getPhoneLastNumbers() + .equals(other.getPhoneLastNumbers())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOperationStatus()) { + hash = (37 * hash) + OPERATIONSTATUS_FIELD_NUMBER; + hash = (53 * hash) + operationStatus_; + } + if (getFileSigningResultsCount() > 0) { + hash = (37 * hash) + FILESIGNINGRESULTS_FIELD_NUMBER; + hash = (53 * hash) + getFileSigningResultsList().hashCode(); + } + if (hasConfirmType()) { + hash = (37 * hash) + CONFIRMTYPE_FIELD_NUMBER; + hash = (53 * hash) + confirmType_; + } + if (hasOperator()) { + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + } + if (hasPhoneLastNumbers()) { + hash = (37 * hash) + PHONELASTNUMBERS_FIELD_NUMBER; + hash = (53 * hash) + getPhoneLastNumbers().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2245,42 +2491,57 @@ public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parseFrom( } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2300,6 +2561,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignResult_fieldAccessorTable @@ -2309,55 +2571,44 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getFileSigningResultsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - operationStatus_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus.Unknown; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + operationStatus_ = 0; if (fileSigningResultsBuilder_ == null) { fileSigningResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + fileSigningResults_ = null; fileSigningResultsBuilder_.clear(); } - confirmType_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType.ConfirmTypeUnknown; - bitField0_ = (bitField0_ & ~0x00000004); - operator_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator.OperatorUnknown; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); + confirmType_ = -1; + operator_ = 0; phoneLastNumbers_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssSignResult_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult getDefaultInstanceForType() { return Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult build() { Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult result = buildPartial(); if (!result.isInitialized()) { @@ -2366,16 +2617,18 @@ public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult buildPartial() { Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult result = new Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.operationStatus_ = operationStatus_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult result) { if (fileSigningResultsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { fileSigningResults_ = java.util.Collections.unmodifiableList(fileSigningResults_); bitField0_ = (bitField0_ & ~0x00000002); } @@ -2383,23 +2636,31 @@ public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult buildPartial() { } else { result.fileSigningResults_ = fileSigningResultsBuilder_.build(); } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.operationStatus_ = operationStatus_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmType_ = confirmType_; to_bitField0_ |= 0x00000002; } - result.confirmType_ = confirmType_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.operator_ = operator_; to_bitField0_ |= 0x00000004; } - result.operator_ = operator_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.phoneLastNumbers_ = phoneLastNumbers_; to_bitField0_ |= 0x00000008; } - result.phoneLastNumbers_ = phoneLastNumbers_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult) { return mergeFrom((Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult)other); @@ -2447,68 +2708,145 @@ public Builder mergeFrom(Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult other) setOperator(other.getOperator()); } if (other.hasPhoneLastNumbers()) { - bitField0_ |= 0x00000010; phoneLastNumbers_ = other.phoneLastNumbers_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus tmpValue = + Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + operationStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult m = + input.readMessage( + Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult.parser(), + extensionRegistry); + if (fileSigningResultsBuilder_ == null) { + ensureFileSigningResultsIsMutable(); + fileSigningResults_.add(m); + } else { + fileSigningResultsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType tmpValue = + Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + confirmType_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + case 32: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator tmpValue = + Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(4, tmpRaw); + } else { + operator_ = tmpRaw; + bitField0_ |= 0x00000008; + } + break; + } // case 32 + case 42: { + phoneLastNumbers_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus operationStatus_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus.Unknown; + private int operationStatus_ = 0; /** * optional .Diadoc.Api.Proto.Dss.DssOperationStatus OperationStatus = 1 [default = Unknown]; + * @return Whether the operationStatus field is set. */ - public boolean hasOperationStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasOperationStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Dss.DssOperationStatus OperationStatus = 1 [default = Unknown]; + * @return The operationStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus getOperationStatus() { - return operationStatus_; + Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus result = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus.forNumber(operationStatus_); + return result == null ? Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus.Unknown : result; } /** * optional .Diadoc.Api.Proto.Dss.DssOperationStatus OperationStatus = 1 [default = Unknown]; + * @param value The operationStatus to set. + * @return This builder for chaining. */ public Builder setOperationStatus(Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - operationStatus_ = value; + operationStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Dss.DssOperationStatus OperationStatus = 1 [default = Unknown]; + * @return This builder for chaining. */ public Builder clearOperationStatus() { bitField0_ = (bitField0_ & ~0x00000001); - operationStatus_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperationStatus.Unknown; + operationStatus_ = 0; onChanged(); return this; } @@ -2516,7 +2854,7 @@ public Builder clearOperationStatus() { private java.util.List fileSigningResults_ = java.util.Collections.emptyList(); private void ensureFileSigningResultsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { fileSigningResults_ = new java.util.ArrayList(fileSigningResults_); bitField0_ |= 0x00000002; } @@ -2745,7 +3083,7 @@ public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult.Builder addFileSi fileSigningResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult, Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult.Builder, Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResultOrBuilder>( fileSigningResults_, - ((bitField0_ & 0x00000002) == 0x00000002), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); fileSigningResults_ = null; @@ -2753,72 +3091,86 @@ public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult.Builder addFileSi return fileSigningResultsBuilder_; } - private Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType confirmType_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType.ConfirmTypeUnknown; + private int confirmType_ = -1; /** * optional .Diadoc.Api.Proto.Dss.DssConfirmType ConfirmType = 3 [default = ConfirmTypeUnknown]; + * @return Whether the confirmType field is set. */ - public boolean hasConfirmType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasConfirmType() { + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Dss.DssConfirmType ConfirmType = 3 [default = ConfirmTypeUnknown]; + * @return The confirmType. */ + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType getConfirmType() { - return confirmType_; + Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType result = Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType.forNumber(confirmType_); + return result == null ? Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType.ConfirmTypeUnknown : result; } /** * optional .Diadoc.Api.Proto.Dss.DssConfirmType ConfirmType = 3 [default = ConfirmTypeUnknown]; + * @param value The confirmType to set. + * @return This builder for chaining. */ public Builder setConfirmType(Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - confirmType_ = value; + confirmType_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Dss.DssConfirmType ConfirmType = 3 [default = ConfirmTypeUnknown]; + * @return This builder for chaining. */ public Builder clearConfirmType() { bitField0_ = (bitField0_ & ~0x00000004); - confirmType_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssConfirmType.ConfirmTypeUnknown; + confirmType_ = -1; onChanged(); return this; } - private Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator operator_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator.OperatorUnknown; + private int operator_ = 0; /** * optional .Diadoc.Api.Proto.Dss.DssOperator Operator = 4 [default = OperatorUnknown]; + * @return Whether the operator field is set. */ - public boolean hasOperator() { - return ((bitField0_ & 0x00000008) == 0x00000008); + @java.lang.Override public boolean hasOperator() { + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Dss.DssOperator Operator = 4 [default = OperatorUnknown]; + * @return The operator. */ + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator getOperator() { - return operator_; + Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator result = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator.forNumber(operator_); + return result == null ? Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator.OperatorUnknown : result; } /** * optional .Diadoc.Api.Proto.Dss.DssOperator Operator = 4 [default = OperatorUnknown]; + * @param value The operator to set. + * @return This builder for chaining. */ public Builder setOperator(Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; - operator_ = value; + operator_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Dss.DssOperator Operator = 4 [default = OperatorUnknown]; + * @return This builder for chaining. */ public Builder clearOperator() { bitField0_ = (bitField0_ & ~0x00000008); - operator_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssOperator.OperatorUnknown; + operator_ = 0; onChanged(); return this; } @@ -2826,12 +3178,14 @@ public Builder clearOperator() { private java.lang.Object phoneLastNumbers_ = ""; /** * optional string PhoneLastNumbers = 5; + * @return Whether the phoneLastNumbers field is set. */ public boolean hasPhoneLastNumbers() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string PhoneLastNumbers = 5; + * @return The phoneLastNumbers. */ public java.lang.String getPhoneLastNumbers() { java.lang.Object ref = phoneLastNumbers_; @@ -2849,6 +3203,7 @@ public java.lang.String getPhoneLastNumbers() { } /** * optional string PhoneLastNumbers = 5; + * @return The bytes for phoneLastNumbers. */ public com.google.protobuf.ByteString getPhoneLastNumbersBytes() { @@ -2865,36 +3220,37 @@ public java.lang.String getPhoneLastNumbers() { } /** * optional string PhoneLastNumbers = 5; + * @param value The phoneLastNumbers to set. + * @return This builder for chaining. */ public Builder setPhoneLastNumbers( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } phoneLastNumbers_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string PhoneLastNumbers = 5; + * @return This builder for chaining. */ public Builder clearPhoneLastNumbers() { - bitField0_ = (bitField0_ & ~0x00000010); phoneLastNumbers_ = getDefaultInstance().getPhoneLastNumbers(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string PhoneLastNumbers = 5; + * @param value The bytes for phoneLastNumbers to set. + * @return This builder for chaining. */ public Builder setPhoneLastNumbersBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } phoneLastNumbers_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2902,12 +3258,52 @@ public Builder setPhoneLastNumbersBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Dss.DssSignResult) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Dss.DssSignResult) + private static final Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult DEFAULT_INSTANCE; static { - defaultInstance = new DssSignResult(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult(); + } + + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DssSignResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Dss.DssSignProtos.DssSignResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Dss.DssSignResult) } public interface DssFileSigningResultOrBuilder extends @@ -2916,19 +3312,23 @@ public interface DssFileSigningResultOrBuilder extends /** * optional .Diadoc.Api.Proto.Dss.DssFileSigningStatus FileSigningStatus = 1 [default = UnknownSigningStatus]; + * @return Whether the fileSigningStatus field is set. */ boolean hasFileSigningStatus(); /** * optional .Diadoc.Api.Proto.Dss.DssFileSigningStatus FileSigningStatus = 1 [default = UnknownSigningStatus]; + * @return The fileSigningStatus. */ Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus getFileSigningStatus(); /** * optional bytes Signature = 2; + * @return Whether the signature field is set. */ boolean hasSignature(); /** * optional bytes Signature = 2; + * @return The signature. */ com.google.protobuf.ByteString getSignature(); } @@ -2939,84 +3339,31 @@ public static final class DssFileSigningResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Dss.DssFileSigningResult) DssFileSigningResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DssFileSigningResult.class.getName()); + } // Use DssFileSigningResult.newBuilder() to construct. private DssFileSigningResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private DssFileSigningResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DssFileSigningResult defaultInstance; - public static DssFileSigningResult getDefaultInstance() { - return defaultInstance; - } - - public DssFileSigningResult getDefaultInstanceForType() { - return defaultInstance; + private DssFileSigningResult() { + fileSigningStatus_ = 0; + signature_ = com.google.protobuf.ByteString.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DssFileSigningResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus value = Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - fileSigningStatus_ = value; - } - break; - } - case 18: { - bitField0_ |= 0x00000002; - signature_ = input.readBytes(); - 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.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssFileSigningResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssFileSigningResult_fieldAccessorTable @@ -3024,57 +3371,46 @@ private DssFileSigningResult( Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult.class, Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DssFileSigningResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DssFileSigningResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int FILESIGNINGSTATUS_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus fileSigningStatus_; + private int fileSigningStatus_ = 0; /** * optional .Diadoc.Api.Proto.Dss.DssFileSigningStatus FileSigningStatus = 1 [default = UnknownSigningStatus]; + * @return Whether the fileSigningStatus field is set. */ - public boolean hasFileSigningStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasFileSigningStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Dss.DssFileSigningStatus FileSigningStatus = 1 [default = UnknownSigningStatus]; + * @return The fileSigningStatus. */ - public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus getFileSigningStatus() { - return fileSigningStatus_; + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus getFileSigningStatus() { + Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus result = Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus.forNumber(fileSigningStatus_); + return result == null ? Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus.UnknownSigningStatus : result; } public static final int SIGNATURE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString signature_; + private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes Signature = 2; + * @return Whether the signature field is set. */ + @java.lang.Override public boolean hasSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes Signature = 2; + * @return The signature. */ + @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } - private void initFields() { - fileSigningStatus_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus.UnknownSigningStatus; - signature_ = com.google.protobuf.ByteString.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3084,44 +3420,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, fileSigningStatus_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, fileSigningStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, signature_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, fileSigningStatus_.getNumber()); + .computeEnumSize(1, fileSigningStatus_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult other = (Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult) obj; + + if (hasFileSigningStatus() != other.hasFileSigningStatus()) return false; + if (hasFileSigningStatus()) { + if (fileSigningStatus_ != other.fileSigningStatus_) return false; + } + if (hasSignature() != other.hasSignature()) return false; + if (hasSignature()) { + if (!getSignature() + .equals(other.getSignature())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFileSigningStatus()) { + hash = (37 * hash) + FILESIGNINGSTATUS_FIELD_NUMBER; + hash = (53 * hash) + fileSigningStatus_; + } + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3145,42 +3528,57 @@ public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parseFrom( } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3200,6 +3598,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssFileSigningResult_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssFileSigningResult_fieldAccessorTable @@ -3209,44 +3608,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - fileSigningStatus_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus.UnknownSigningStatus; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + fileSigningStatus_ = 0; signature_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Dss.DssSignProtos.internal_static_Diadoc_Api_Proto_Dss_DssFileSigningResult_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult getDefaultInstanceForType() { return Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult build() { Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult result = buildPartial(); if (!result.isInitialized()) { @@ -3255,23 +3645,29 @@ public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult buildPartial() { Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult result = new Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fileSigningStatus_ = fileSigningStatus_; to_bitField0_ |= 0x00000001; } - result.fileSigningStatus_ = fileSigningStatus_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.signature_ = signature_; to_bitField0_ |= 0x00000002; } - result.signature_ = signature_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult) { return mergeFrom((Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult)other); @@ -3290,63 +3686,103 @@ public Builder mergeFrom(Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult setSignature(other.getSignature()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus tmpValue = + Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + fileSigningStatus_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18: { + signature_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus fileSigningStatus_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus.UnknownSigningStatus; + private int fileSigningStatus_ = 0; /** * optional .Diadoc.Api.Proto.Dss.DssFileSigningStatus FileSigningStatus = 1 [default = UnknownSigningStatus]; + * @return Whether the fileSigningStatus field is set. */ - public boolean hasFileSigningStatus() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasFileSigningStatus() { + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Dss.DssFileSigningStatus FileSigningStatus = 1 [default = UnknownSigningStatus]; + * @return The fileSigningStatus. */ + @java.lang.Override public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus getFileSigningStatus() { - return fileSigningStatus_; + Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus result = Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus.forNumber(fileSigningStatus_); + return result == null ? Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus.UnknownSigningStatus : result; } /** * optional .Diadoc.Api.Proto.Dss.DssFileSigningStatus FileSigningStatus = 1 [default = UnknownSigningStatus]; + * @param value The fileSigningStatus to set. + * @return This builder for chaining. */ public Builder setFileSigningStatus(Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - fileSigningStatus_ = value; + fileSigningStatus_ = value.getNumber(); onChanged(); return this; } /** * optional .Diadoc.Api.Proto.Dss.DssFileSigningStatus FileSigningStatus = 1 [default = UnknownSigningStatus]; + * @return This builder for chaining. */ public Builder clearFileSigningStatus() { bitField0_ = (bitField0_ & ~0x00000001); - fileSigningStatus_ = Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningStatus.UnknownSigningStatus; + fileSigningStatus_ = 0; onChanged(); return this; } @@ -3354,30 +3790,35 @@ public Builder clearFileSigningStatus() { private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes Signature = 2; + * @return Whether the signature field is set. */ + @java.lang.Override public boolean hasSignature() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes Signature = 2; + * @return The signature. */ + @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** * optional bytes Signature = 2; + * @param value The signature to set. + * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } signature_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional bytes Signature = 2; + * @return This builder for chaining. */ public Builder clearSignature() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3389,32 +3830,72 @@ public Builder clearSignature() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Dss.DssFileSigningResult) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Dss.DssFileSigningResult) + private static final Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult DEFAULT_INSTANCE; static { - defaultInstance = new DssFileSigningResult(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult(); + } + + public static Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DssFileSigningResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Dss.DssSignProtos.DssFileSigningResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Dss.DssFileSigningResult) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Dss_DssSignRequest_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Dss_DssSignRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Dss_DssSignFile_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Dss_DssSignFile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Dss_DssSignResult_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Dss_DssSignResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Dss_DssFileSigningResult_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Dss_DssFileSigningResult_fieldAccessorTable; @@ -3422,7 +3903,7 @@ public Builder clearSignature() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -3435,7 +3916,7 @@ public Builder clearSignature() { "atus\030\001 \001(\0162(.Diadoc.Api.Proto.Dss.DssOpe" + "rationStatus:\007Unknown\022F\n\022FileSigningResu" + "lts\030\002 \003(\0132*.Diadoc.Api.Proto.Dss.DssFile" + - "SigningResult\022M\n\013ConfirmType\030\003 \001(\0162$.Dia", + "SigningResult\022M\n\013ConfirmType\030\003 \001(\0162$.Dia" + "doc.Api.Proto.Dss.DssConfirmType:\022Confir" + "mTypeUnknown\022D\n\010Operator\030\004 \001(\0162!.Diadoc." + "Api.Proto.Dss.DssOperator:\017OperatorUnkno" + @@ -3445,7 +3926,7 @@ public Builder clearSignature() { "atus:\024UnknownSigningStatus\022\021\n\tSignature\030" + "\002 \001(\014*j\n\016DssConfirmType\022\037\n\022ConfirmTypeUn" + "known\020\377\377\377\377\377\377\377\377\377\001\022\010\n\004None\020\000\022\007\n\003Sms\020\001\022\t\n\005M" + - "yDss\020\002\022\n\n\006Applet\020\003\022\r\n\tMobileSdk\020\004*;\n\013Dss", + "yDss\020\002\022\n\n\006Applet\020\003\022\r\n\tMobileSdk\020\004*;\n\013Dss" + "Operator\022\023\n\017OperatorUnknown\020\000\022\013\n\007Megafon" + "\020\001\022\n\n\006Kontur\020\002*X\n\024DssFileSigningStatus\022\030" + "\n\024UnknownSigningStatus\020\000\022\024\n\020SigningCompl" + @@ -3456,19 +3937,11 @@ public Builder clearSignature() { "peration\020\006\022\032\n\026OperationRetryRequired\020\007B\017" + "B\rDssSignProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Content_v3Protos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Dss_DssSignRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Dss_DssSignRequest_fieldAccessorTable = new @@ -3493,6 +3966,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Dss_DssFileSigningResult_descriptor, new java.lang.String[] { "FileSigningStatus", "Signature", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Content_v3Protos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Employees/EmployeeProtos.java b/src/main/java/Diadoc/Api/Proto/Employees/EmployeeProtos.java index 3f47b61e..0a38003a 100644 --- a/src/main/java/Diadoc/Api/Proto/Employees/EmployeeProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Employees/EmployeeProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Employees/Employee.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Employees; public final class EmployeeProtos { private EmployeeProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface EmployeeOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Employees.Employee) @@ -14,10 +31,12 @@ public interface EmployeeOrBuilder extends /** * required .Diadoc.Api.Proto.UserV2 User = 1; + * @return Whether the user field is set. */ boolean hasUser(); /** * required .Diadoc.Api.Proto.UserV2 User = 1; + * @return The user. */ Diadoc.Api.Proto.UserProtos.UserV2 getUser(); /** @@ -27,10 +46,12 @@ public interface EmployeeOrBuilder extends /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 2; + * @return Whether the permissions field is set. */ boolean hasPermissions(); /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 2; + * @return The permissions. */ Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions getPermissions(); /** @@ -40,33 +61,40 @@ public interface EmployeeOrBuilder extends /** * required string Position = 3; + * @return Whether the position field is set. */ boolean hasPosition(); /** * required string Position = 3; + * @return The position. */ java.lang.String getPosition(); /** * required string Position = 3; + * @return The bytes for position. */ com.google.protobuf.ByteString getPositionBytes(); /** * required bool CanBeInvitedForChat = 4; + * @return Whether the canBeInvitedForChat field is set. */ boolean hasCanBeInvitedForChat(); /** * required bool CanBeInvitedForChat = 4; + * @return The canBeInvitedForChat. */ boolean getCanBeInvitedForChat(); /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 5; + * @return Whether the creationTimestamp field is set. */ boolean hasCreationTimestamp(); /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 5; + * @return The creationTimestamp. */ Diadoc.Api.Proto.TimestampProtos.Timestamp getCreationTimestamp(); /** @@ -81,118 +109,30 @@ public static final class Employee extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.Employee) EmployeeOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Employee.class.getName()); + } // Use Employee.newBuilder() to construct. private Employee(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private Employee(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Employee defaultInstance; - public static Employee getDefaultInstance() { - return defaultInstance; - } - - public Employee getDefaultInstanceForType() { - return defaultInstance; + private Employee() { + position_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Employee( - 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: { - Diadoc.Api.Proto.UserProtos.UserV2.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = user_.toBuilder(); - } - user_ = input.readMessage(Diadoc.Api.Proto.UserProtos.UserV2.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(user_); - user_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = permissions_.toBuilder(); - } - permissions_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permissions_); - permissions_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - position_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - canBeInvitedForChat_ = input.readBool(); - break; - } - case 42: { - Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = creationTimestamp_.toBuilder(); - } - creationTimestamp_ = input.readMessage(Diadoc.Api.Proto.TimestampProtos.Timestamp.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(creationTimestamp_); - creationTimestamp_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - 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.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_Employee_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_Employee_fieldAccessorTable @@ -200,75 +140,75 @@ private Employee( Diadoc.Api.Proto.Employees.EmployeeProtos.Employee.class, Diadoc.Api.Proto.Employees.EmployeeProtos.Employee.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Employee parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Employee(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int USER_FIELD_NUMBER = 1; private Diadoc.Api.Proto.UserProtos.UserV2 user_; /** * required .Diadoc.Api.Proto.UserV2 User = 1; + * @return Whether the user field is set. */ + @java.lang.Override public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.UserV2 User = 1; + * @return The user. */ + @java.lang.Override public Diadoc.Api.Proto.UserProtos.UserV2 getUser() { - return user_; + return user_ == null ? Diadoc.Api.Proto.UserProtos.UserV2.getDefaultInstance() : user_; } /** * required .Diadoc.Api.Proto.UserV2 User = 1; */ + @java.lang.Override public Diadoc.Api.Proto.UserProtos.UserV2OrBuilder getUserOrBuilder() { - return user_; + return user_ == null ? Diadoc.Api.Proto.UserProtos.UserV2.getDefaultInstance() : user_; } public static final int PERMISSIONS_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions permissions_; /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 2; + * @return Whether the permissions field is set. */ + @java.lang.Override public boolean hasPermissions() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 2; + * @return The permissions. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions getPermissions() { - return permissions_; + return permissions_ == null ? Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance() : permissions_; } /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissionsOrBuilder getPermissionsOrBuilder() { - return permissions_; + return permissions_ == null ? Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance() : permissions_; } public static final int POSITION_FIELD_NUMBER = 3; - private java.lang.Object position_; + @SuppressWarnings("serial") + private volatile java.lang.Object position_ = ""; /** * required string Position = 3; + * @return Whether the position field is set. */ + @java.lang.Override public boolean hasPosition() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Position = 3; + * @return The position. */ + @java.lang.Override public java.lang.String getPosition() { java.lang.Object ref = position_; if (ref instanceof java.lang.String) { @@ -285,7 +225,9 @@ public java.lang.String getPosition() { } /** * required string Position = 3; + * @return The bytes for position. */ + @java.lang.Override public com.google.protobuf.ByteString getPositionBytes() { java.lang.Object ref = position_; @@ -301,16 +243,20 @@ public java.lang.String getPosition() { } public static final int CANBEINVITEDFORCHAT_FIELD_NUMBER = 4; - private boolean canBeInvitedForChat_; + private boolean canBeInvitedForChat_ = false; /** * required bool CanBeInvitedForChat = 4; + * @return Whether the canBeInvitedForChat field is set. */ + @java.lang.Override public boolean hasCanBeInvitedForChat() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required bool CanBeInvitedForChat = 4; + * @return The canBeInvitedForChat. */ + @java.lang.Override public boolean getCanBeInvitedForChat() { return canBeInvitedForChat_; } @@ -319,31 +265,30 @@ public boolean getCanBeInvitedForChat() { private Diadoc.Api.Proto.TimestampProtos.Timestamp creationTimestamp_; /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 5; + * @return Whether the creationTimestamp field is set. */ + @java.lang.Override public boolean hasCreationTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 5; + * @return The creationTimestamp. */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.Timestamp getCreationTimestamp() { - return creationTimestamp_; + return creationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 5; */ + @java.lang.Override public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampOrBuilder() { - return creationTimestamp_; + return creationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } - private void initFields() { - user_ = Diadoc.Api.Proto.UserProtos.UserV2.getDefaultInstance(); - permissions_ = Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance(); - position_ = ""; - canBeInvitedForChat_ = false; - creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -383,65 +328,140 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, user_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUser()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, permissions_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPermissions()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getPositionBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, position_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, canBeInvitedForChat_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, creationTimestamp_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getCreationTimestamp()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, user_); + .computeMessageSize(1, getUser()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, permissions_); + .computeMessageSize(2, getPermissions()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getPositionBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, position_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, canBeInvitedForChat_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, creationTimestamp_); + .computeMessageSize(5, getCreationTimestamp()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeProtos.Employee)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeProtos.Employee other = (Diadoc.Api.Proto.Employees.EmployeeProtos.Employee) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (hasPermissions() != other.hasPermissions()) return false; + if (hasPermissions()) { + if (!getPermissions() + .equals(other.getPermissions())) return false; + } + if (hasPosition() != other.hasPosition()) return false; + if (hasPosition()) { + if (!getPosition() + .equals(other.getPosition())) return false; + } + if (hasCanBeInvitedForChat() != other.hasCanBeInvitedForChat()) return false; + if (hasCanBeInvitedForChat()) { + if (getCanBeInvitedForChat() + != other.getCanBeInvitedForChat()) return false; + } + if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; + if (hasCreationTimestamp()) { + if (!getCreationTimestamp() + .equals(other.getCreationTimestamp())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + if (hasPermissions()) { + hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getPermissions().hashCode(); + } + if (hasPosition()) { + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition().hashCode(); + } + if (hasCanBeInvitedForChat()) { + hash = (37 * hash) + CANBEINVITEDFORCHAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanBeInvitedForChat()); + } + if (hasCreationTimestamp()) { + hash = (37 * hash) + CREATIONTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getCreationTimestamp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -465,42 +485,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parseFrom( } public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeProtos.Employee prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -520,6 +555,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_Employee_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_Employee_fieldAccessorTable @@ -538,56 +574,49 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getUserFieldBuilder(); getPermissionsFieldBuilder(); getCreationTimestampFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (userBuilder_ == null) { - user_ = Diadoc.Api.Proto.UserProtos.UserV2.getDefaultInstance(); - } else { - userBuilder_.clear(); + bitField0_ = 0; + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (permissionsBuilder_ == null) { - permissions_ = Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance(); - } else { - permissionsBuilder_.clear(); + permissions_ = null; + if (permissionsBuilder_ != null) { + permissionsBuilder_.dispose(); + permissionsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); position_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); canBeInvitedForChat_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - if (creationTimestampBuilder_ == null) { - creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - } else { - creationTimestampBuilder_.clear(); + creationTimestamp_ = null; + if (creationTimestampBuilder_ != null) { + creationTimestampBuilder_.dispose(); + creationTimestampBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000010); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_Employee_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.Employee getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeProtos.Employee.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.Employee build() { Diadoc.Api.Proto.Employees.EmployeeProtos.Employee result = buildPartial(); if (!result.isInitialized()) { @@ -596,47 +625,47 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.Employee build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.Employee buildPartial() { Diadoc.Api.Proto.Employees.EmployeeProtos.Employee result = new Diadoc.Api.Proto.Employees.EmployeeProtos.Employee(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeProtos.Employee result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.user_ = userBuilder_ == null + ? user_ + : userBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (userBuilder_ == null) { - result.user_ = user_; - } else { - result.user_ = userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.permissions_ = permissionsBuilder_ == null + ? permissions_ + : permissionsBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (permissionsBuilder_ == null) { - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.position_ = position_; to_bitField0_ |= 0x00000004; } - result.position_ = position_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.canBeInvitedForChat_ = canBeInvitedForChat_; to_bitField0_ |= 0x00000008; } - result.canBeInvitedForChat_ = canBeInvitedForChat_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.creationTimestamp_ = creationTimestampBuilder_ == null + ? creationTimestamp_ + : creationTimestampBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (creationTimestampBuilder_ == null) { - result.creationTimestamp_ = creationTimestamp_; - } else { - result.creationTimestamp_ = creationTimestampBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeProtos.Employee) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeProtos.Employee)other); @@ -655,8 +684,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeProtos.Employee othe mergePermissions(other.getPermissions()); } if (other.hasPosition()) { - bitField0_ |= 0x00000004; position_ = other.position_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCanBeInvitedForChat()) { @@ -666,77 +695,119 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeProtos.Employee othe mergeCreationTimestamp(other.getCreationTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasUser()) { - return false; } if (!hasPermissions()) { - return false; } if (!hasPosition()) { - return false; } if (!hasCanBeInvitedForChat()) { - return false; } if (!getUser().isInitialized()) { - return false; } if (!getPermissions().isInitialized()) { - return false; } if (hasCreationTimestamp()) { if (!getCreationTimestamp().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeProtos.Employee parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUserFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPermissionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + position_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + canBeInvitedForChat_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getCreationTimestampFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeProtos.Employee) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.UserProtos.UserV2 user_ = Diadoc.Api.Proto.UserProtos.UserV2.getDefaultInstance(); + private Diadoc.Api.Proto.UserProtos.UserV2 user_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.UserProtos.UserV2, Diadoc.Api.Proto.UserProtos.UserV2.Builder, Diadoc.Api.Proto.UserProtos.UserV2OrBuilder> userBuilder_; /** * required .Diadoc.Api.Proto.UserV2 User = 1; + * @return Whether the user field is set. */ public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.UserV2 User = 1; + * @return The user. */ public Diadoc.Api.Proto.UserProtos.UserV2 getUser() { if (userBuilder_ == null) { - return user_; + return user_ == null ? Diadoc.Api.Proto.UserProtos.UserV2.getDefaultInstance() : user_; } else { return userBuilder_.getMessage(); } @@ -750,11 +821,11 @@ public Builder setUser(Diadoc.Api.Proto.UserProtos.UserV2 value) { throw new NullPointerException(); } user_ = value; - onChanged(); } else { userBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -764,11 +835,11 @@ public Builder setUser( Diadoc.Api.Proto.UserProtos.UserV2.Builder builderForValue) { if (userBuilder_ == null) { user_ = builderForValue.build(); - onChanged(); } else { userBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -776,31 +847,33 @@ public Builder setUser( */ public Builder mergeUser(Diadoc.Api.Proto.UserProtos.UserV2 value) { if (userBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - user_ != Diadoc.Api.Proto.UserProtos.UserV2.getDefaultInstance()) { - user_ = - Diadoc.Api.Proto.UserProtos.UserV2.newBuilder(user_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + user_ != null && + user_ != Diadoc.Api.Proto.UserProtos.UserV2.getDefaultInstance()) { + getUserBuilder().mergeFrom(value); } else { user_ = value; } - onChanged(); } else { userBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (user_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.UserV2 User = 1; */ public Builder clearUser() { - if (userBuilder_ == null) { - user_ = Diadoc.Api.Proto.UserProtos.UserV2.getDefaultInstance(); - onChanged(); - } else { - userBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + onChanged(); return this; } /** @@ -818,7 +891,8 @@ public Diadoc.Api.Proto.UserProtos.UserV2OrBuilder getUserOrBuilder() { if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { - return user_; + return user_ == null ? + Diadoc.Api.Proto.UserProtos.UserV2.getDefaultInstance() : user_; } } /** @@ -838,21 +912,23 @@ public Diadoc.Api.Proto.UserProtos.UserV2OrBuilder getUserOrBuilder() { return userBuilder_; } - private Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions permissions_ = Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions permissions_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.Builder, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissionsOrBuilder> permissionsBuilder_; /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 2; + * @return Whether the permissions field is set. */ public boolean hasPermissions() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 2; + * @return The permissions. */ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions getPermissions() { if (permissionsBuilder_ == null) { - return permissions_; + return permissions_ == null ? Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance() : permissions_; } else { return permissionsBuilder_.getMessage(); } @@ -866,11 +942,11 @@ public Builder setPermissions(Diadoc.Api.Proto.Employees.EmployeeProtos.Employee throw new NullPointerException(); } permissions_ = value; - onChanged(); } else { permissionsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -880,11 +956,11 @@ public Builder setPermissions( Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.Builder builderForValue) { if (permissionsBuilder_ == null) { permissions_ = builderForValue.build(); - onChanged(); } else { permissionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -892,31 +968,33 @@ public Builder setPermissions( */ public Builder mergePermissions(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions value) { if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - permissions_ != Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance()) { - permissions_ = - Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.newBuilder(permissions_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + permissions_ != null && + permissions_ != Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance()) { + getPermissionsBuilder().mergeFrom(value); } else { permissions_ = value; } - onChanged(); } else { permissionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (permissions_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 2; */ public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance(); - onChanged(); - } else { - permissionsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + permissions_ = null; + if (permissionsBuilder_ != null) { + permissionsBuilder_.dispose(); + permissionsBuilder_ = null; + } + onChanged(); return this; } /** @@ -934,7 +1012,8 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissionsOrBuilder ge if (permissionsBuilder_ != null) { return permissionsBuilder_.getMessageOrBuilder(); } else { - return permissions_; + return permissions_ == null ? + Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance() : permissions_; } } /** @@ -957,12 +1036,14 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissionsOrBuilder ge private java.lang.Object position_ = ""; /** * required string Position = 3; + * @return Whether the position field is set. */ public boolean hasPosition() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string Position = 3; + * @return The position. */ public java.lang.String getPosition() { java.lang.Object ref = position_; @@ -980,6 +1061,7 @@ public java.lang.String getPosition() { } /** * required string Position = 3; + * @return The bytes for position. */ public com.google.protobuf.ByteString getPositionBytes() { @@ -996,36 +1078,37 @@ public java.lang.String getPosition() { } /** * required string Position = 3; + * @param value The position to set. + * @return This builder for chaining. */ public Builder setPosition( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } position_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required string Position = 3; + * @return This builder for chaining. */ public Builder clearPosition() { - bitField0_ = (bitField0_ & ~0x00000004); position_ = getDefaultInstance().getPosition(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * required string Position = 3; + * @param value The bytes for position to set. + * @return This builder for chaining. */ public Builder setPositionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } position_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1033,27 +1116,35 @@ public Builder setPositionBytes( private boolean canBeInvitedForChat_ ; /** * required bool CanBeInvitedForChat = 4; + * @return Whether the canBeInvitedForChat field is set. */ + @java.lang.Override public boolean hasCanBeInvitedForChat() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required bool CanBeInvitedForChat = 4; + * @return The canBeInvitedForChat. */ + @java.lang.Override public boolean getCanBeInvitedForChat() { return canBeInvitedForChat_; } /** * required bool CanBeInvitedForChat = 4; + * @param value The canBeInvitedForChat to set. + * @return This builder for chaining. */ public Builder setCanBeInvitedForChat(boolean value) { - bitField0_ |= 0x00000008; + canBeInvitedForChat_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required bool CanBeInvitedForChat = 4; + * @return This builder for chaining. */ public Builder clearCanBeInvitedForChat() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1062,21 +1153,23 @@ public Builder clearCanBeInvitedForChat() { return this; } - private Diadoc.Api.Proto.TimestampProtos.Timestamp creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); + private Diadoc.Api.Proto.TimestampProtos.Timestamp creationTimestamp_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> creationTimestampBuilder_; /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 5; + * @return Whether the creationTimestamp field is set. */ public boolean hasCreationTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 5; + * @return The creationTimestamp. */ public Diadoc.Api.Proto.TimestampProtos.Timestamp getCreationTimestamp() { if (creationTimestampBuilder_ == null) { - return creationTimestamp_; + return creationTimestamp_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } else { return creationTimestampBuilder_.getMessage(); } @@ -1090,11 +1183,11 @@ public Builder setCreationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp v throw new NullPointerException(); } creationTimestamp_ = value; - onChanged(); } else { creationTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1104,11 +1197,11 @@ public Builder setCreationTimestamp( Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { if (creationTimestampBuilder_ == null) { creationTimestamp_ = builderForValue.build(); - onChanged(); } else { creationTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1116,31 +1209,33 @@ public Builder setCreationTimestamp( */ public Builder mergeCreationTimestamp(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { if (creationTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - creationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { - creationTimestamp_ = - Diadoc.Api.Proto.TimestampProtos.Timestamp.newBuilder(creationTimestamp_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) && + creationTimestamp_ != null && + creationTimestamp_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getCreationTimestampBuilder().mergeFrom(value); } else { creationTimestamp_ = value; } - onChanged(); } else { creationTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + if (creationTimestamp_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Timestamp CreationTimestamp = 5; */ public Builder clearCreationTimestamp() { - if (creationTimestampBuilder_ == null) { - creationTimestamp_ = Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance(); - onChanged(); - } else { - creationTimestampBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000010); + creationTimestamp_ = null; + if (creationTimestampBuilder_ != null) { + creationTimestampBuilder_.dispose(); + creationTimestampBuilder_ = null; + } + onChanged(); return this; } /** @@ -1158,7 +1253,8 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampO if (creationTimestampBuilder_ != null) { return creationTimestampBuilder_.getMessageOrBuilder(); } else { - return creationTimestamp_; + return creationTimestamp_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : creationTimestamp_; } } /** @@ -1181,12 +1277,52 @@ public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getCreationTimestampO // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.Employee) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.Employee) + private static final Diadoc.Api.Proto.Employees.EmployeeProtos.Employee DEFAULT_INSTANCE; static { - defaultInstance = new Employee(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeProtos.Employee(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeProtos.Employee getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Employee parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeProtos.Employee getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.Employee) } public interface EmployeePermissionsOrBuilder extends @@ -1195,51 +1331,64 @@ public interface EmployeePermissionsOrBuilder extends /** * required string UserDepartmentId = 1; + * @return Whether the userDepartmentId field is set. */ boolean hasUserDepartmentId(); /** * required string UserDepartmentId = 1; + * @return The userDepartmentId. */ java.lang.String getUserDepartmentId(); /** * required string UserDepartmentId = 1; + * @return The bytes for userDepartmentId. */ com.google.protobuf.ByteString getUserDepartmentIdBytes(); /** * required bool IsAdministrator = 2; + * @return Whether the isAdministrator field is set. */ boolean hasIsAdministrator(); /** * required bool IsAdministrator = 2; + * @return The isAdministrator. */ boolean getIsAdministrator(); /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 3 [default = UnknownDocumentAccessLevel]; + * @return Whether the documentAccessLevel field is set. */ boolean hasDocumentAccessLevel(); /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 3 [default = UnknownDocumentAccessLevel]; + * @return The documentAccessLevel. */ Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel getDocumentAccessLevel(); /** * repeated string SelectedDepartmentIds = 4; + * @return A list containing the selectedDepartmentIds. */ - com.google.protobuf.ProtocolStringList + java.util.List getSelectedDepartmentIdsList(); /** * repeated string SelectedDepartmentIds = 4; + * @return The count of selectedDepartmentIds. */ int getSelectedDepartmentIdsCount(); /** * repeated string SelectedDepartmentIds = 4; + * @param index The index of the element to return. + * @return The selectedDepartmentIds at the given index. */ java.lang.String getSelectedDepartmentIds(int index); /** * repeated string SelectedDepartmentIds = 4; + * @param index The index of the value to return. + * @return The bytes of the selectedDepartmentIds at the given index. */ com.google.protobuf.ByteString getSelectedDepartmentIdsBytes(int index); @@ -1270,10 +1419,12 @@ Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeActionOrBuilder getActionsOrBu /** * optional .Diadoc.Api.Proto.AuthorizationPermission AuthorizationPermission = 6; + * @return Whether the authorizationPermission field is set. */ boolean hasAuthorizationPermission(); /** * optional .Diadoc.Api.Proto.AuthorizationPermission AuthorizationPermission = 6; + * @return The authorizationPermission. */ Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission getAuthorizationPermission(); /** @@ -1288,126 +1439,34 @@ public static final class EmployeePermissions extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeePermissions) EmployeePermissionsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeePermissions.class.getName()); + } // Use EmployeePermissions.newBuilder() to construct. private EmployeePermissions(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private EmployeePermissions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeePermissions defaultInstance; - public static EmployeePermissions getDefaultInstance() { - return defaultInstance; - } - - public EmployeePermissions getDefaultInstanceForType() { - return defaultInstance; + private EmployeePermissions() { + userDepartmentId_ = ""; + documentAccessLevel_ = -1; + selectedDepartmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + actions_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeePermissions( - 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; - userDepartmentId_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - isAdministrator_ = input.readBool(); - break; - } - case 24: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel value = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - documentAccessLevel_ = value; - } - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - selectedDepartmentIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - selectedDepartmentIds_.add(bs); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - actions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - actions_.add(input.readMessage(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.PARSER, extensionRegistry)); - break; - } - case 50: { - Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = authorizationPermission_.toBuilder(); - } - authorizationPermission_ = input.readMessage(Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authorizationPermission_); - authorizationPermission_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - selectedDepartmentIds_ = selectedDepartmentIds_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - actions_ = java.util.Collections.unmodifiableList(actions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePermissions_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePermissions_fieldAccessorTable @@ -1415,33 +1474,23 @@ private EmployeePermissions( Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.class, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeePermissions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeePermissions(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int USERDEPARTMENTID_FIELD_NUMBER = 1; - private java.lang.Object userDepartmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object userDepartmentId_ = ""; /** * required string UserDepartmentId = 1; + * @return Whether the userDepartmentId field is set. */ + @java.lang.Override public boolean hasUserDepartmentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string UserDepartmentId = 1; + * @return The userDepartmentId. */ + @java.lang.Override public java.lang.String getUserDepartmentId() { java.lang.Object ref = userDepartmentId_; if (ref instanceof java.lang.String) { @@ -1458,7 +1507,9 @@ public java.lang.String getUserDepartmentId() { } /** * required string UserDepartmentId = 1; + * @return The bytes for userDepartmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getUserDepartmentIdBytes() { java.lang.Object ref = userDepartmentId_; @@ -1474,39 +1525,49 @@ public java.lang.String getUserDepartmentId() { } public static final int ISADMINISTRATOR_FIELD_NUMBER = 2; - private boolean isAdministrator_; + private boolean isAdministrator_ = false; /** * required bool IsAdministrator = 2; + * @return Whether the isAdministrator field is set. */ + @java.lang.Override public boolean hasIsAdministrator() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsAdministrator = 2; + * @return The isAdministrator. */ + @java.lang.Override public boolean getIsAdministrator() { return isAdministrator_; } public static final int DOCUMENTACCESSLEVEL_FIELD_NUMBER = 3; - private Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel documentAccessLevel_; + private int documentAccessLevel_ = -1; /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 3 [default = UnknownDocumentAccessLevel]; + * @return Whether the documentAccessLevel field is set. */ - public boolean hasDocumentAccessLevel() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasDocumentAccessLevel() { + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 3 [default = UnknownDocumentAccessLevel]; + * @return The documentAccessLevel. */ - public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel getDocumentAccessLevel() { - return documentAccessLevel_; + @java.lang.Override public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel getDocumentAccessLevel() { + Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel result = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.forNumber(documentAccessLevel_); + return result == null ? Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel : result; } public static final int SELECTEDDEPARTMENTIDS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList selectedDepartmentIds_; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList selectedDepartmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string SelectedDepartmentIds = 4; + * @return A list containing the selectedDepartmentIds. */ public com.google.protobuf.ProtocolStringList getSelectedDepartmentIdsList() { @@ -1514,18 +1575,23 @@ public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel ge } /** * repeated string SelectedDepartmentIds = 4; + * @return The count of selectedDepartmentIds. */ public int getSelectedDepartmentIdsCount() { return selectedDepartmentIds_.size(); } /** * repeated string SelectedDepartmentIds = 4; + * @param index The index of the element to return. + * @return The selectedDepartmentIds at the given index. */ public java.lang.String getSelectedDepartmentIds(int index) { return selectedDepartmentIds_.get(index); } /** * repeated string SelectedDepartmentIds = 4; + * @param index The index of the value to return. + * @return The bytes of the selectedDepartmentIds at the given index. */ public com.google.protobuf.ByteString getSelectedDepartmentIdsBytes(int index) { @@ -1533,16 +1599,19 @@ public java.lang.String getSelectedDepartmentIds(int index) { } public static final int ACTIONS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List actions_; /** * repeated .Diadoc.Api.Proto.Employees.EmployeeAction Actions = 5; */ + @java.lang.Override public java.util.List getActionsList() { return actions_; } /** * repeated .Diadoc.Api.Proto.Employees.EmployeeAction Actions = 5; */ + @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; @@ -1550,18 +1619,21 @@ public java.util.List /** * repeated .Diadoc.Api.Proto.Employees.EmployeeAction Actions = 5; */ + @java.lang.Override public int getActionsCount() { return actions_.size(); } /** * repeated .Diadoc.Api.Proto.Employees.EmployeeAction Actions = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction getActions(int index) { return actions_.get(index); } /** * repeated .Diadoc.Api.Proto.Employees.EmployeeAction Actions = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeActionOrBuilder getActionsOrBuilder( int index) { return actions_.get(index); @@ -1571,32 +1643,30 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeActionOrBuilder getActi private Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission authorizationPermission_; /** * optional .Diadoc.Api.Proto.AuthorizationPermission AuthorizationPermission = 6; + * @return Whether the authorizationPermission field is set. */ + @java.lang.Override public boolean hasAuthorizationPermission() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.AuthorizationPermission AuthorizationPermission = 6; + * @return The authorizationPermission. */ + @java.lang.Override public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission getAuthorizationPermission() { - return authorizationPermission_; + return authorizationPermission_ == null ? Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.getDefaultInstance() : authorizationPermission_; } /** * optional .Diadoc.Api.Proto.AuthorizationPermission AuthorizationPermission = 6; */ + @java.lang.Override public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermissionOrBuilder getAuthorizationPermissionOrBuilder() { - return authorizationPermission_; + return authorizationPermission_ == null ? Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.getDefaultInstance() : authorizationPermission_; } - private void initFields() { - userDepartmentId_ = ""; - isAdministrator_ = false; - documentAccessLevel_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel; - selectedDepartmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - actions_ = java.util.Collections.emptyList(); - authorizationPermission_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1630,53 +1700,51 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getUserDepartmentIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userDepartmentId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, isAdministrator_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, documentAccessLevel_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, documentAccessLevel_); } for (int i = 0; i < selectedDepartmentIds_.size(); i++) { - output.writeBytes(4, selectedDepartmentIds_.getByteString(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 4, selectedDepartmentIds_.getRaw(i)); } for (int i = 0; i < actions_.size(); i++) { output.writeMessage(5, actions_.get(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(6, authorizationPermission_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getAuthorizationPermission()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getUserDepartmentIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userDepartmentId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isAdministrator_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, documentAccessLevel_.getNumber()); + .computeEnumSize(3, documentAccessLevel_); } { int dataSize = 0; for (int i = 0; i < selectedDepartmentIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(selectedDepartmentIds_.getByteString(i)); + dataSize += computeStringSizeNoTag(selectedDepartmentIds_.getRaw(i)); } size += dataSize; size += 1 * getSelectedDepartmentIdsList().size(); @@ -1685,22 +1753,100 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, actions_.get(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, authorizationPermission_); + .computeMessageSize(6, getAuthorizationPermission()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions other = (Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions) obj; + + if (hasUserDepartmentId() != other.hasUserDepartmentId()) return false; + if (hasUserDepartmentId()) { + if (!getUserDepartmentId() + .equals(other.getUserDepartmentId())) return false; + } + if (hasIsAdministrator() != other.hasIsAdministrator()) return false; + if (hasIsAdministrator()) { + if (getIsAdministrator() + != other.getIsAdministrator()) return false; + } + if (hasDocumentAccessLevel() != other.hasDocumentAccessLevel()) return false; + if (hasDocumentAccessLevel()) { + if (documentAccessLevel_ != other.documentAccessLevel_) return false; + } + if (!getSelectedDepartmentIdsList() + .equals(other.getSelectedDepartmentIdsList())) return false; + if (!getActionsList() + .equals(other.getActionsList())) return false; + if (hasAuthorizationPermission() != other.hasAuthorizationPermission()) return false; + if (hasAuthorizationPermission()) { + if (!getAuthorizationPermission() + .equals(other.getAuthorizationPermission())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUserDepartmentId()) { + hash = (37 * hash) + USERDEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getUserDepartmentId().hashCode(); + } + if (hasIsAdministrator()) { + hash = (37 * hash) + ISADMINISTRATOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAdministrator()); + } + if (hasDocumentAccessLevel()) { + hash = (37 * hash) + DOCUMENTACCESSLEVEL_FIELD_NUMBER; + hash = (53 * hash) + documentAccessLevel_; + } + if (getSelectedDepartmentIdsCount() > 0) { + hash = (37 * hash) + SELECTEDDEPARTMENTIDS_FIELD_NUMBER; + hash = (53 * hash) + getSelectedDepartmentIdsList().hashCode(); + } + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + if (hasAuthorizationPermission()) { + hash = (37 * hash) + AUTHORIZATIONPERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizationPermission().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1724,42 +1870,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions pars } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1779,6 +1940,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePermissions_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePermissions_fieldAccessorTable @@ -1797,53 +1959,48 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getActionsFieldBuilder(); getAuthorizationPermissionFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; userDepartmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); isAdministrator_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - documentAccessLevel_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel; - bitField0_ = (bitField0_ & ~0x00000004); - selectedDepartmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + documentAccessLevel_ = -1; + selectedDepartmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + actions_ = null; actionsBuilder_.clear(); } - if (authorizationPermissionBuilder_ == null) { - authorizationPermission_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.getDefaultInstance(); - } else { - authorizationPermissionBuilder_.clear(); + bitField0_ = (bitField0_ & ~0x00000010); + authorizationPermission_ = null; + if (authorizationPermissionBuilder_ != null) { + authorizationPermissionBuilder_.dispose(); + authorizationPermissionBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePermissions_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions build() { Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions result = buildPartial(); if (!result.isInitialized()) { @@ -1852,49 +2009,56 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions buildPartial() { Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions result = new Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions result) { + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userDepartmentId_ = userDepartmentId_; to_bitField0_ |= 0x00000001; } - result.userDepartmentId_ = userDepartmentId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isAdministrator_ = isAdministrator_; to_bitField0_ |= 0x00000002; } - result.isAdministrator_ = isAdministrator_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.documentAccessLevel_ = documentAccessLevel_; to_bitField0_ |= 0x00000004; } - result.documentAccessLevel_ = documentAccessLevel_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - selectedDepartmentIds_ = selectedDepartmentIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.selectedDepartmentIds_ = selectedDepartmentIds_; - if (actionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - actions_ = java.util.Collections.unmodifiableList(actions_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.actions_ = actions_; - } else { - result.actions_ = actionsBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + selectedDepartmentIds_.makeImmutable(); + result.selectedDepartmentIds_ = selectedDepartmentIds_; } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.authorizationPermission_ = authorizationPermissionBuilder_ == null + ? authorizationPermission_ + : authorizationPermissionBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (authorizationPermissionBuilder_ == null) { - result.authorizationPermission_ = authorizationPermission_; - } else { - result.authorizationPermission_ = authorizationPermissionBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions)other); @@ -1907,8 +2071,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions other) { if (other == Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance()) return this; if (other.hasUserDepartmentId()) { - bitField0_ |= 0x00000001; userDepartmentId_ = other.userDepartmentId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasIsAdministrator()) { @@ -1920,7 +2084,7 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermi if (!other.selectedDepartmentIds_.isEmpty()) { if (selectedDepartmentIds_.isEmpty()) { selectedDepartmentIds_ = other.selectedDepartmentIds_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ |= 0x00000008; } else { ensureSelectedDepartmentIdsIsMutable(); selectedDepartmentIds_.addAll(other.selectedDepartmentIds_); @@ -1957,52 +2121,111 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermi mergeAuthorizationPermission(other.getAuthorizationPermission()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasUserDepartmentId()) { - return false; } if (!hasIsAdministrator()) { - return false; } if (!hasDocumentAccessLevel()) { - return false; } for (int i = 0; i < getActionsCount(); i++) { if (!getActions(i).isInitialized()) { - return false; } } if (hasAuthorizationPermission()) { if (!getAuthorizationPermission().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userDepartmentId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isAdministrator_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel tmpValue = + Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + documentAccessLevel_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureSelectedDepartmentIdsIsMutable(); + selectedDepartmentIds_.add(bs); + break; + } // case 34 + case 42: { + Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction m = + input.readMessage( + Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.parser(), + extensionRegistry); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(m); + } else { + actionsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + input.readMessage( + getAuthorizationPermissionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2010,12 +2233,14 @@ public Builder mergeFrom( private java.lang.Object userDepartmentId_ = ""; /** * required string UserDepartmentId = 1; + * @return Whether the userDepartmentId field is set. */ public boolean hasUserDepartmentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string UserDepartmentId = 1; + * @return The userDepartmentId. */ public java.lang.String getUserDepartmentId() { java.lang.Object ref = userDepartmentId_; @@ -2033,6 +2258,7 @@ public java.lang.String getUserDepartmentId() { } /** * required string UserDepartmentId = 1; + * @return The bytes for userDepartmentId. */ public com.google.protobuf.ByteString getUserDepartmentIdBytes() { @@ -2049,36 +2275,37 @@ public java.lang.String getUserDepartmentId() { } /** * required string UserDepartmentId = 1; + * @param value The userDepartmentId to set. + * @return This builder for chaining. */ public Builder setUserDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } userDepartmentId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string UserDepartmentId = 1; + * @return This builder for chaining. */ public Builder clearUserDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000001); userDepartmentId_ = getDefaultInstance().getUserDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string UserDepartmentId = 1; + * @param value The bytes for userDepartmentId to set. + * @return This builder for chaining. */ public Builder setUserDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } userDepartmentId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2086,27 +2313,35 @@ public Builder setUserDepartmentIdBytes( private boolean isAdministrator_ ; /** * required bool IsAdministrator = 2; + * @return Whether the isAdministrator field is set. */ + @java.lang.Override public boolean hasIsAdministrator() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsAdministrator = 2; + * @return The isAdministrator. */ + @java.lang.Override public boolean getIsAdministrator() { return isAdministrator_; } /** * required bool IsAdministrator = 2; + * @param value The isAdministrator to set. + * @return This builder for chaining. */ public Builder setIsAdministrator(boolean value) { - bitField0_ |= 0x00000002; + isAdministrator_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool IsAdministrator = 2; + * @return This builder for chaining. */ public Builder clearIsAdministrator() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2115,69 +2350,84 @@ public Builder clearIsAdministrator() { return this; } - private Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel documentAccessLevel_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel; + private int documentAccessLevel_ = -1; /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 3 [default = UnknownDocumentAccessLevel]; + * @return Whether the documentAccessLevel field is set. */ - public boolean hasDocumentAccessLevel() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasDocumentAccessLevel() { + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 3 [default = UnknownDocumentAccessLevel]; + * @return The documentAccessLevel. */ + @java.lang.Override public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel getDocumentAccessLevel() { - return documentAccessLevel_; + Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel result = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.forNumber(documentAccessLevel_); + return result == null ? Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel : result; } /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 3 [default = UnknownDocumentAccessLevel]; + * @param value The documentAccessLevel to set. + * @return This builder for chaining. */ public Builder setDocumentAccessLevel(Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - documentAccessLevel_ = value; + documentAccessLevel_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 3 [default = UnknownDocumentAccessLevel]; + * @return This builder for chaining. */ public Builder clearDocumentAccessLevel() { bitField0_ = (bitField0_ & ~0x00000004); - documentAccessLevel_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel; + documentAccessLevel_ = -1; onChanged(); return this; } - private com.google.protobuf.LazyStringList selectedDepartmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList selectedDepartmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSelectedDepartmentIdsIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { + if (!selectedDepartmentIds_.isModifiable()) { selectedDepartmentIds_ = new com.google.protobuf.LazyStringArrayList(selectedDepartmentIds_); - bitField0_ |= 0x00000008; - } + } + bitField0_ |= 0x00000008; } /** * repeated string SelectedDepartmentIds = 4; + * @return A list containing the selectedDepartmentIds. */ public com.google.protobuf.ProtocolStringList getSelectedDepartmentIdsList() { - return selectedDepartmentIds_.getUnmodifiableView(); + selectedDepartmentIds_.makeImmutable(); + return selectedDepartmentIds_; } /** * repeated string SelectedDepartmentIds = 4; + * @return The count of selectedDepartmentIds. */ public int getSelectedDepartmentIdsCount() { return selectedDepartmentIds_.size(); } /** * repeated string SelectedDepartmentIds = 4; + * @param index The index of the element to return. + * @return The selectedDepartmentIds at the given index. */ public java.lang.String getSelectedDepartmentIds(int index) { return selectedDepartmentIds_.get(index); } /** * repeated string SelectedDepartmentIds = 4; + * @param index The index of the value to return. + * @return The bytes of the selectedDepartmentIds at the given index. */ public com.google.protobuf.ByteString getSelectedDepartmentIdsBytes(int index) { @@ -2185,60 +2435,69 @@ public java.lang.String getSelectedDepartmentIds(int index) { } /** * repeated string SelectedDepartmentIds = 4; + * @param index The index to set the value at. + * @param value The selectedDepartmentIds to set. + * @return This builder for chaining. */ public Builder setSelectedDepartmentIds( int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectedDepartmentIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureSelectedDepartmentIdsIsMutable(); selectedDepartmentIds_.set(index, value); + bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string SelectedDepartmentIds = 4; + * @param value The selectedDepartmentIds to add. + * @return This builder for chaining. */ public Builder addSelectedDepartmentIds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectedDepartmentIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureSelectedDepartmentIdsIsMutable(); selectedDepartmentIds_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string SelectedDepartmentIds = 4; + * @param values The selectedDepartmentIds to add. + * @return This builder for chaining. */ public Builder addAllSelectedDepartmentIds( java.lang.Iterable values) { ensureSelectedDepartmentIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, selectedDepartmentIds_); + bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string SelectedDepartmentIds = 4; + * @return This builder for chaining. */ public Builder clearSelectedDepartmentIds() { - selectedDepartmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + selectedDepartmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** * repeated string SelectedDepartmentIds = 4; + * @param value The bytes of the selectedDepartmentIds to add. + * @return This builder for chaining. */ public Builder addSelectedDepartmentIdsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectedDepartmentIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureSelectedDepartmentIdsIsMutable(); selectedDepartmentIds_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2246,7 +2505,7 @@ public Builder addSelectedDepartmentIdsBytes( private java.util.List actions_ = java.util.Collections.emptyList(); private void ensureActionsIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { + if (!((bitField0_ & 0x00000010) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000010; } @@ -2475,7 +2734,7 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.Builder addActio actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.Builder, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeActionOrBuilder>( actions_, - ((bitField0_ & 0x00000010) == 0x00000010), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); actions_ = null; @@ -2483,21 +2742,23 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.Builder addActio return actionsBuilder_; } - private Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission authorizationPermission_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.getDefaultInstance(); + private Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission authorizationPermission_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission, Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.Builder, Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermissionOrBuilder> authorizationPermissionBuilder_; /** * optional .Diadoc.Api.Proto.AuthorizationPermission AuthorizationPermission = 6; + * @return Whether the authorizationPermission field is set. */ public boolean hasAuthorizationPermission() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.AuthorizationPermission AuthorizationPermission = 6; + * @return The authorizationPermission. */ public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission getAuthorizationPermission() { if (authorizationPermissionBuilder_ == null) { - return authorizationPermission_; + return authorizationPermission_ == null ? Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.getDefaultInstance() : authorizationPermission_; } else { return authorizationPermissionBuilder_.getMessage(); } @@ -2511,11 +2772,11 @@ public Builder setAuthorizationPermission(Diadoc.Api.Proto.OrganizationUserPermi throw new NullPointerException(); } authorizationPermission_ = value; - onChanged(); } else { authorizationPermissionBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2525,11 +2786,11 @@ public Builder setAuthorizationPermission( Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.Builder builderForValue) { if (authorizationPermissionBuilder_ == null) { authorizationPermission_ = builderForValue.build(); - onChanged(); } else { authorizationPermissionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2537,31 +2798,33 @@ public Builder setAuthorizationPermission( */ public Builder mergeAuthorizationPermission(Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission value) { if (authorizationPermissionBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - authorizationPermission_ != Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.getDefaultInstance()) { - authorizationPermission_ = - Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.newBuilder(authorizationPermission_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + authorizationPermission_ != null && + authorizationPermission_ != Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.getDefaultInstance()) { + getAuthorizationPermissionBuilder().mergeFrom(value); } else { authorizationPermission_ = value; } - onChanged(); } else { authorizationPermissionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (authorizationPermission_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.AuthorizationPermission AuthorizationPermission = 6; */ public Builder clearAuthorizationPermission() { - if (authorizationPermissionBuilder_ == null) { - authorizationPermission_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.getDefaultInstance(); - onChanged(); - } else { - authorizationPermissionBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + authorizationPermission_ = null; + if (authorizationPermissionBuilder_ != null) { + authorizationPermissionBuilder_.dispose(); + authorizationPermissionBuilder_ = null; + } + onChanged(); return this; } /** @@ -2579,7 +2842,8 @@ public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermissio if (authorizationPermissionBuilder_ != null) { return authorizationPermissionBuilder_.getMessageOrBuilder(); } else { - return authorizationPermission_; + return authorizationPermission_ == null ? + Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermission.getDefaultInstance() : authorizationPermission_; } } /** @@ -2602,12 +2866,52 @@ public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.AuthorizationPermissio // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeePermissions) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeePermissions) + private static final Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions DEFAULT_INSTANCE; static { - defaultInstance = new EmployeePermissions(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeePermissions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeePermissions) } public interface EmployeeActionOrBuilder extends @@ -2616,24 +2920,29 @@ public interface EmployeeActionOrBuilder extends /** * required string Name = 1; + * @return Whether the name field is set. */ boolean hasName(); /** * required string Name = 1; + * @return The name. */ java.lang.String getName(); /** * required string Name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * required bool IsAllowed = 2; + * @return Whether the isAllowed field is set. */ boolean hasIsAllowed(); /** * required bool IsAllowed = 2; + * @return The isAllowed. */ boolean getIsAllowed(); } @@ -2643,80 +2952,31 @@ public interface EmployeeActionOrBuilder extends public static final class EmployeeAction extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeAction) - EmployeeActionOrBuilder { - // Use EmployeeAction.newBuilder() to construct. - private EmployeeAction(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeeAction(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeAction defaultInstance; - public static EmployeeAction getDefaultInstance() { - return defaultInstance; - } - - public EmployeeAction getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeAction( - 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; - name_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - isAllowed_ = input.readBool(); - 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(); - } + EmployeeActionOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeAction.class.getName()); + } + // Use EmployeeAction.newBuilder() to construct. + private EmployeeAction(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EmployeeAction() { + name_ = ""; } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeAction_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeAction_fieldAccessorTable @@ -2724,33 +2984,23 @@ private EmployeeAction( Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.class, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeAction(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * required string Name = 1; + * @return Whether the name field is set. */ + @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -2767,7 +3017,9 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -2783,25 +3035,26 @@ public java.lang.String getName() { } public static final int ISALLOWED_FIELD_NUMBER = 2; - private boolean isAllowed_; + private boolean isAllowed_ = false; /** * required bool IsAllowed = 2; + * @return Whether the isAllowed field is set. */ + @java.lang.Override public boolean hasIsAllowed() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsAllowed = 2; + * @return The isAllowed. */ + @java.lang.Override public boolean getIsAllowed() { return isAllowed_; } - private void initFields() { - name_ = ""; - isAllowed_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2819,44 +3072,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, isAllowed_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isAllowed_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction other = (Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasIsAllowed() != other.hasIsAllowed()) return false; + if (hasIsAllowed()) { + if (getIsAllowed() + != other.getIsAllowed()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasIsAllowed()) { + hash = (37 * hash) + ISALLOWED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAllowed()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2880,42 +3181,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parseFrom } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2935,6 +3251,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeAction_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeAction_fieldAccessorTable @@ -2944,44 +3261,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); isAllowed_ = false; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeAction_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction build() { Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction result = buildPartial(); if (!result.isInitialized()) { @@ -2990,23 +3298,29 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction buildPartial() { Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction result = new Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; to_bitField0_ |= 0x00000001; } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isAllowed_ = isAllowed_; to_bitField0_ |= 0x00000002; } - result.isAllowed_ = isAllowed_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction)other); @@ -3019,44 +3333,68 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction other) { if (other == Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasIsAllowed()) { setIsAllowed(other.getIsAllowed()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasName()) { - return false; } if (!hasIsAllowed()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isAllowed_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3064,12 +3402,14 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** * required string Name = 1; + * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -3087,6 +3427,7 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -3103,36 +3444,37 @@ public java.lang.String getName() { } /** * required string Name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Name = 1; + * @return This builder for chaining. */ public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3140,27 +3482,35 @@ public Builder setNameBytes( private boolean isAllowed_ ; /** * required bool IsAllowed = 2; + * @return Whether the isAllowed field is set. */ + @java.lang.Override public boolean hasIsAllowed() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsAllowed = 2; + * @return The isAllowed. */ + @java.lang.Override public boolean getIsAllowed() { return isAllowed_; } /** * required bool IsAllowed = 2; + * @param value The isAllowed to set. + * @return This builder for chaining. */ public Builder setIsAllowed(boolean value) { - bitField0_ |= 0x00000002; + isAllowed_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool IsAllowed = 2; + * @return This builder for chaining. */ public Builder clearIsAllowed() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3172,12 +3522,52 @@ public Builder clearIsAllowed() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeAction) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeAction) + private static final Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeAction(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeAction) } public interface EmployeeListOrBuilder extends @@ -3210,10 +3600,12 @@ Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeOrBuilder getEmployeesOrBuilde /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ boolean hasTotalCount(); /** * required int32 TotalCount = 2; + * @return The totalCount. */ int getTotalCount(); } @@ -3224,84 +3616,30 @@ public static final class EmployeeList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeList) EmployeeListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeList.class.getName()); + } // Use EmployeeList.newBuilder() to construct. private EmployeeList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeeList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeList defaultInstance; - public static EmployeeList getDefaultInstance() { - return defaultInstance; } - - public EmployeeList getDefaultInstanceForType() { - return defaultInstance; + private EmployeeList() { + employees_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeList( - 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)) { - employees_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - employees_.add(input.readMessage(Diadoc.Api.Proto.Employees.EmployeeProtos.Employee.PARSER, extensionRegistry)); - break; - } - case 16: { - bitField0_ |= 0x00000001; - totalCount_ = input.readInt32(); - 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)) { - employees_ = java.util.Collections.unmodifiableList(employees_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeList_fieldAccessorTable @@ -3309,33 +3647,21 @@ private EmployeeList( Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList.class, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int EMPLOYEES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List employees_; /** * repeated .Diadoc.Api.Proto.Employees.Employee Employees = 1; */ + @java.lang.Override public java.util.List getEmployeesList() { return employees_; } /** * repeated .Diadoc.Api.Proto.Employees.Employee Employees = 1; */ + @java.lang.Override public java.util.List getEmployeesOrBuilderList() { return employees_; @@ -3343,43 +3669,47 @@ public java.util.List getEmp /** * repeated .Diadoc.Api.Proto.Employees.Employee Employees = 1; */ + @java.lang.Override public int getEmployeesCount() { return employees_.size(); } /** * repeated .Diadoc.Api.Proto.Employees.Employee Employees = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.Employee getEmployees(int index) { return employees_.get(index); } /** * repeated .Diadoc.Api.Proto.Employees.Employee Employees = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeOrBuilder getEmployeesOrBuilder( int index) { return employees_.get(index); } public static final int TOTALCOUNT_FIELD_NUMBER = 2; - private int totalCount_; + private int totalCount_ = 0; /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } - private void initFields() { - employees_ = java.util.Collections.emptyList(); - totalCount_ = 0; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3399,21 +3729,21 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < employees_.size(); i++) { output.writeMessage(1, employees_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(2, totalCount_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -3421,22 +3751,67 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, employees_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, totalCount_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList other = (Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList) obj; + + if (!getEmployeesList() + .equals(other.getEmployeesList())) return false; + if (hasTotalCount() != other.hasTotalCount()) return false; + if (hasTotalCount()) { + if (getTotalCount() + != other.getTotalCount()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEmployeesCount() > 0) { + hash = (37 * hash) + EMPLOYEES_FIELD_NUMBER; + hash = (53 * hash) + getEmployeesList().hashCode(); + } + if (hasTotalCount()) { + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3460,42 +3835,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parseFrom( } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3515,6 +3905,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeList_fieldAccessorTable @@ -3524,49 +3915,41 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getEmployeesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (employeesBuilder_ == null) { employees_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + employees_ = null; employeesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); totalCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList build() { Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList result = buildPartial(); if (!result.isInitialized()) { @@ -3575,12 +3958,18 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList buildPartial() { Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList result = new Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList result) { if (employeesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { employees_ = java.util.Collections.unmodifiableList(employees_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -3588,15 +3977,19 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList buildPartial() { } else { result.employees_ = employeesBuilder_.build(); } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalCount_ = totalCount_; to_bitField0_ |= 0x00000001; } - result.totalCount_ = totalCount_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList)other); @@ -3638,38 +4031,70 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList setTotalCount(other.getTotalCount()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotalCount()) { - return false; } for (int i = 0; i < getEmployeesCount(); i++) { if (!getEmployees(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Employees.EmployeeProtos.Employee m = + input.readMessage( + Diadoc.Api.Proto.Employees.EmployeeProtos.Employee.parser(), + extensionRegistry); + if (employeesBuilder_ == null) { + ensureEmployeesIsMutable(); + employees_.add(m); + } else { + employeesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3677,7 +4102,7 @@ public Builder mergeFrom( private java.util.List employees_ = java.util.Collections.emptyList(); private void ensureEmployeesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { employees_ = new java.util.ArrayList(employees_); bitField0_ |= 0x00000001; } @@ -3906,7 +4331,7 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.Employee.Builder addEmployeesBu employeesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeProtos.Employee, Diadoc.Api.Proto.Employees.EmployeeProtos.Employee.Builder, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeOrBuilder>( employees_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); employees_ = null; @@ -3917,27 +4342,35 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.Employee.Builder addEmployeesBu private int totalCount_ ; /** * required int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } /** * required int32 TotalCount = 2; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - bitField0_ |= 0x00000002; + totalCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int32 TotalCount = 2; + * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3949,32 +4382,72 @@ public Builder clearTotalCount() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeList) + private static final Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeList) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_Employee_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_Employee_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeePermissions_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeePermissions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeAction_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeAction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeList_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeList_fieldAccessorTable; @@ -3982,7 +4455,7 @@ public Builder clearTotalCount() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -3995,7 +4468,7 @@ public Builder clearTotalCount() { "s\022\020\n\010Position\030\003 \002(\t\022\033\n\023CanBeInvitedForCh" + "at\030\004 \002(\010\0226\n\021CreationTimestamp\030\005 \001(\0132\033.Di" + "adoc.Api.Proto.Timestamp\"\320\002\n\023EmployeePer" + - "missions\022\030\n\020UserDepartmentId\030\001 \002(\t\022\027\n\017Is", + "missions\022\030\n\020UserDepartmentId\030\001 \002(\t\022\027\n\017Is" + "Administrator\030\002 \002(\010\022^\n\023DocumentAccessLev" + "el\030\003 \002(\0162%.Diadoc.Api.Proto.DocumentAcce" + "ssLevel:\032UnknownDocumentAccessLevel\022\035\n\025S" + @@ -4005,25 +4478,17 @@ public Builder clearTotalCount() { "2).Diadoc.Api.Proto.AuthorizationPermiss" + "ion\"1\n\016EmployeeAction\022\014\n\004Name\030\001 \002(\t\022\021\n\tI" + "sAllowed\030\002 \002(\010\"[\n\014EmployeeList\0227\n\tEmploy" + - "ees\030\001 \003(\0132$.Diadoc.Api.Proto.Employees.E", + "ees\030\001 \003(\0132$.Diadoc.Api.Proto.Employees.E" + "mployee\022\022\n\nTotalCount\030\002 \002(\005B\020B\016EmployeeP" + "rotos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.UserProtos.getDescriptor(), Diadoc.Api.Proto.OrganizationUserPermissionsProtos.getDescriptor(), Diadoc.Api.Proto.TimestampProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Employees_Employee_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Employees_Employee_fieldAccessorTable = new @@ -4048,6 +4513,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Employees_EmployeeList_descriptor, new java.lang.String[] { "Employees", "TotalCount", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.UserProtos.getDescriptor(); Diadoc.Api.Proto.OrganizationUserPermissionsProtos.getDescriptor(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Employees/EmployeeToCreateProtos.java b/src/main/java/Diadoc/Api/Proto/Employees/EmployeeToCreateProtos.java index a9311908..84518554 100644 --- a/src/main/java/Diadoc/Api/Proto/Employees/EmployeeToCreateProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Employees/EmployeeToCreateProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Employees/EmployeeToCreate.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Employees; public final class EmployeeToCreateProtos { private EmployeeToCreateProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeToCreateProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface EmployeeToCreateOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Employees.EmployeeToCreate) @@ -14,10 +31,12 @@ public interface EmployeeToCreateOrBuilder extends /** * required .Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials Credentials = 1; + * @return Whether the credentials field is set. */ boolean hasCredentials(); /** * required .Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials Credentials = 1; + * @return The credentials. */ Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials getCredentials(); /** @@ -27,33 +46,40 @@ public interface EmployeeToCreateOrBuilder extends /** * optional string Position = 2; + * @return Whether the position field is set. */ boolean hasPosition(); /** * optional string Position = 2; + * @return The position. */ java.lang.String getPosition(); /** * optional string Position = 2; + * @return The bytes for position. */ com.google.protobuf.ByteString getPositionBytes(); /** * required bool CanBeInvitedForChat = 3; + * @return Whether the canBeInvitedForChat field is set. */ boolean hasCanBeInvitedForChat(); /** * required bool CanBeInvitedForChat = 3; + * @return The canBeInvitedForChat. */ boolean getCanBeInvitedForChat(); /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 4; + * @return Whether the permissions field is set. */ boolean hasPermissions(); /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 4; + * @return The permissions. */ Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions getPermissions(); /** @@ -68,105 +94,30 @@ public static final class EmployeeToCreate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeToCreate) EmployeeToCreateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeToCreate.class.getName()); + } // Use EmployeeToCreate.newBuilder() to construct. private EmployeeToCreate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeeToCreate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeToCreate defaultInstance; - public static EmployeeToCreate getDefaultInstance() { - return defaultInstance; } - - public EmployeeToCreate getDefaultInstanceForType() { - return defaultInstance; + private EmployeeToCreate() { + position_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeToCreate( - 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: { - Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = credentials_.toBuilder(); - } - credentials_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(credentials_); - credentials_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - position_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - canBeInvitedForChat_ = input.readBool(); - break; - } - case 34: { - Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = permissions_.toBuilder(); - } - permissions_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permissions_); - permissions_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - 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.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreate_fieldAccessorTable @@ -174,54 +125,49 @@ private EmployeeToCreate( Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate.class, Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeToCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeToCreate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CREDENTIALS_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials credentials_; /** * required .Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials Credentials = 1; + * @return Whether the credentials field is set. */ + @java.lang.Override public boolean hasCredentials() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials Credentials = 1; + * @return The credentials. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials getCredentials() { - return credentials_; + return credentials_ == null ? Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance() : credentials_; } /** * required .Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials Credentials = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentialsOrBuilder getCredentialsOrBuilder() { - return credentials_; + return credentials_ == null ? Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance() : credentials_; } public static final int POSITION_FIELD_NUMBER = 2; - private java.lang.Object position_; + @SuppressWarnings("serial") + private volatile java.lang.Object position_ = ""; /** * optional string Position = 2; + * @return Whether the position field is set. */ + @java.lang.Override public boolean hasPosition() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Position = 2; + * @return The position. */ + @java.lang.Override public java.lang.String getPosition() { java.lang.Object ref = position_; if (ref instanceof java.lang.String) { @@ -238,7 +184,9 @@ public java.lang.String getPosition() { } /** * optional string Position = 2; + * @return The bytes for position. */ + @java.lang.Override public com.google.protobuf.ByteString getPositionBytes() { java.lang.Object ref = position_; @@ -254,16 +202,20 @@ public java.lang.String getPosition() { } public static final int CANBEINVITEDFORCHAT_FIELD_NUMBER = 3; - private boolean canBeInvitedForChat_; + private boolean canBeInvitedForChat_ = false; /** * required bool CanBeInvitedForChat = 3; + * @return Whether the canBeInvitedForChat field is set. */ + @java.lang.Override public boolean hasCanBeInvitedForChat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required bool CanBeInvitedForChat = 3; + * @return The canBeInvitedForChat. */ + @java.lang.Override public boolean getCanBeInvitedForChat() { return canBeInvitedForChat_; } @@ -272,30 +224,30 @@ public boolean getCanBeInvitedForChat() { private Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions permissions_; /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 4; + * @return Whether the permissions field is set. */ + @java.lang.Override public boolean hasPermissions() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 4; + * @return The permissions. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions getPermissions() { - return permissions_; + return permissions_ == null ? Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance() : permissions_; } /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissionsOrBuilder getPermissionsOrBuilder() { - return permissions_; + return permissions_ == null ? Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance() : permissions_; } - private void initFields() { - credentials_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance(); - position_ = ""; - canBeInvitedForChat_ = false; - permissions_ = Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -325,58 +277,124 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, credentials_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCredentials()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getPositionBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, position_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, canBeInvitedForChat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, permissions_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getPermissions()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, credentials_); + .computeMessageSize(1, getCredentials()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getPositionBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, position_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, canBeInvitedForChat_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, permissions_); + .computeMessageSize(4, getPermissions()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate other = (Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate) obj; + + if (hasCredentials() != other.hasCredentials()) return false; + if (hasCredentials()) { + if (!getCredentials() + .equals(other.getCredentials())) return false; + } + if (hasPosition() != other.hasPosition()) return false; + if (hasPosition()) { + if (!getPosition() + .equals(other.getPosition())) return false; + } + if (hasCanBeInvitedForChat() != other.hasCanBeInvitedForChat()) return false; + if (hasCanBeInvitedForChat()) { + if (getCanBeInvitedForChat() + != other.getCanBeInvitedForChat()) return false; + } + if (hasPermissions() != other.hasPermissions()) return false; + if (hasPermissions()) { + if (!getPermissions() + .equals(other.getPermissions())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCredentials()) { + hash = (37 * hash) + CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getCredentials().hashCode(); + } + if (hasPosition()) { + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition().hashCode(); + } + if (hasCanBeInvitedForChat()) { + hash = (37 * hash) + CANBEINVITEDFORCHAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanBeInvitedForChat()); + } + if (hasPermissions()) { + hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getPermissions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -400,42 +418,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -455,6 +488,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreate_fieldAccessorTable @@ -473,49 +507,43 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getCredentialsFieldBuilder(); getPermissionsFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (credentialsBuilder_ == null) { - credentials_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance(); - } else { - credentialsBuilder_.clear(); + bitField0_ = 0; + credentials_ = null; + if (credentialsBuilder_ != null) { + credentialsBuilder_.dispose(); + credentialsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); position_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); canBeInvitedForChat_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - if (permissionsBuilder_ == null) { - permissions_ = Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance(); - } else { - permissionsBuilder_.clear(); + permissions_ = null; + if (permissionsBuilder_ != null) { + permissionsBuilder_.dispose(); + permissionsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreate_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate build() { Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate result = buildPartial(); if (!result.isInitialized()) { @@ -524,39 +552,41 @@ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate result = new Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.credentials_ = credentialsBuilder_ == null + ? credentials_ + : credentialsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (credentialsBuilder_ == null) { - result.credentials_ = credentials_; - } else { - result.credentials_ = credentialsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.position_ = position_; to_bitField0_ |= 0x00000002; } - result.position_ = position_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.canBeInvitedForChat_ = canBeInvitedForChat_; to_bitField0_ |= 0x00000004; } - result.canBeInvitedForChat_ = canBeInvitedForChat_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.permissions_ = permissionsBuilder_ == null + ? permissions_ + : permissionsBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (permissionsBuilder_ == null) { - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate)other); @@ -572,8 +602,8 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.Emplo mergeCredentials(other.getCredentials()); } if (other.hasPosition()) { - bitField0_ |= 0x00000002; position_ = other.position_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCanBeInvitedForChat()) { @@ -583,67 +613,104 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.Emplo mergePermissions(other.getPermissions()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasCredentials()) { - return false; } if (!hasCanBeInvitedForChat()) { - return false; } if (!hasPermissions()) { - return false; } if (!getCredentials().isInitialized()) { - return false; } if (!getPermissions().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCredentialsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + position_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + canBeInvitedForChat_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getPermissionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials credentials_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials credentials_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials, Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.Builder, Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentialsOrBuilder> credentialsBuilder_; /** * required .Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials Credentials = 1; + * @return Whether the credentials field is set. */ public boolean hasCredentials() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials Credentials = 1; + * @return The credentials. */ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials getCredentials() { if (credentialsBuilder_ == null) { - return credentials_; + return credentials_ == null ? Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance() : credentials_; } else { return credentialsBuilder_.getMessage(); } @@ -657,11 +724,11 @@ public Builder setCredentials(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos. throw new NullPointerException(); } credentials_ = value; - onChanged(); } else { credentialsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -671,11 +738,11 @@ public Builder setCredentials( Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.Builder builderForValue) { if (credentialsBuilder_ == null) { credentials_ = builderForValue.build(); - onChanged(); } else { credentialsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -683,31 +750,33 @@ public Builder setCredentials( */ public Builder mergeCredentials(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials value) { if (credentialsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - credentials_ != Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance()) { - credentials_ = - Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.newBuilder(credentials_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + credentials_ != null && + credentials_ != Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance()) { + getCredentialsBuilder().mergeFrom(value); } else { credentials_ = value; } - onChanged(); } else { credentialsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (credentials_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials Credentials = 1; */ public Builder clearCredentials() { - if (credentialsBuilder_ == null) { - credentials_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance(); - onChanged(); - } else { - credentialsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + credentials_ = null; + if (credentialsBuilder_ != null) { + credentialsBuilder_.dispose(); + credentialsBuilder_ = null; + } + onChanged(); return this; } /** @@ -725,7 +794,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredent if (credentialsBuilder_ != null) { return credentialsBuilder_.getMessageOrBuilder(); } else { - return credentials_; + return credentials_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance() : credentials_; } } /** @@ -748,12 +818,14 @@ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredent private java.lang.Object position_ = ""; /** * optional string Position = 2; + * @return Whether the position field is set. */ public boolean hasPosition() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Position = 2; + * @return The position. */ public java.lang.String getPosition() { java.lang.Object ref = position_; @@ -771,6 +843,7 @@ public java.lang.String getPosition() { } /** * optional string Position = 2; + * @return The bytes for position. */ public com.google.protobuf.ByteString getPositionBytes() { @@ -787,36 +860,37 @@ public java.lang.String getPosition() { } /** * optional string Position = 2; + * @param value The position to set. + * @return This builder for chaining. */ public Builder setPosition( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } position_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string Position = 2; + * @return This builder for chaining. */ public Builder clearPosition() { - bitField0_ = (bitField0_ & ~0x00000002); position_ = getDefaultInstance().getPosition(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string Position = 2; + * @param value The bytes for position to set. + * @return This builder for chaining. */ public Builder setPositionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } position_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -824,27 +898,35 @@ public Builder setPositionBytes( private boolean canBeInvitedForChat_ ; /** * required bool CanBeInvitedForChat = 3; + * @return Whether the canBeInvitedForChat field is set. */ + @java.lang.Override public boolean hasCanBeInvitedForChat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required bool CanBeInvitedForChat = 3; + * @return The canBeInvitedForChat. */ + @java.lang.Override public boolean getCanBeInvitedForChat() { return canBeInvitedForChat_; } /** * required bool CanBeInvitedForChat = 3; + * @param value The canBeInvitedForChat to set. + * @return This builder for chaining. */ public Builder setCanBeInvitedForChat(boolean value) { - bitField0_ |= 0x00000004; + canBeInvitedForChat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required bool CanBeInvitedForChat = 3; + * @return This builder for chaining. */ public Builder clearCanBeInvitedForChat() { bitField0_ = (bitField0_ & ~0x00000004); @@ -853,21 +935,23 @@ public Builder clearCanBeInvitedForChat() { return this; } - private Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions permissions_ = Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions permissions_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.Builder, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissionsOrBuilder> permissionsBuilder_; /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 4; + * @return Whether the permissions field is set. */ public boolean hasPermissions() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 4; + * @return The permissions. */ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions getPermissions() { if (permissionsBuilder_ == null) { - return permissions_; + return permissions_ == null ? Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance() : permissions_; } else { return permissionsBuilder_.getMessage(); } @@ -881,11 +965,11 @@ public Builder setPermissions(Diadoc.Api.Proto.Employees.EmployeeProtos.Employee throw new NullPointerException(); } permissions_ = value; - onChanged(); } else { permissionsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -895,11 +979,11 @@ public Builder setPermissions( Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.Builder builderForValue) { if (permissionsBuilder_ == null) { permissions_ = builderForValue.build(); - onChanged(); } else { permissionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -907,31 +991,33 @@ public Builder setPermissions( */ public Builder mergePermissions(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions value) { if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - permissions_ != Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance()) { - permissions_ = - Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.newBuilder(permissions_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + permissions_ != null && + permissions_ != Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance()) { + getPermissionsBuilder().mergeFrom(value); } else { permissions_ = value; } - onChanged(); } else { permissionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (permissions_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.Employees.EmployeePermissions Permissions = 4; */ public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance(); - onChanged(); - } else { - permissionsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + permissions_ = null; + if (permissionsBuilder_ != null) { + permissionsBuilder_.dispose(); + permissionsBuilder_ = null; + } + onChanged(); return this; } /** @@ -949,7 +1035,8 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissionsOrBuilder ge if (permissionsBuilder_ != null) { return permissionsBuilder_.getMessageOrBuilder(); } else { - return permissions_; + return permissions_ == null ? + Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissions.getDefaultInstance() : permissions_; } } /** @@ -972,12 +1059,52 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeePermissionsOrBuilder ge // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeToCreate) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeToCreate) + private static final Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeToCreate(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeToCreate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeToCreate) } public interface EmployeeToCreateCredentialsOrBuilder extends @@ -986,10 +1113,12 @@ public interface EmployeeToCreateCredentialsOrBuilder extends /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin Login = 1; + * @return Whether the login field is set. */ boolean hasLogin(); /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin Login = 1; + * @return The login. */ Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin getLogin(); /** @@ -999,10 +1128,12 @@ public interface EmployeeToCreateCredentialsOrBuilder extends /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate Certificate = 2; + * @return Whether the certificate field is set. */ boolean hasCertificate(); /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate Certificate = 2; + * @return The certificate. */ Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate getCertificate(); /** @@ -1017,94 +1148,29 @@ public static final class EmployeeToCreateCredentials extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials) EmployeeToCreateCredentialsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeToCreateCredentials.class.getName()); + } // Use EmployeeToCreateCredentials.newBuilder() to construct. private EmployeeToCreateCredentials(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private EmployeeToCreateCredentials(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeToCreateCredentials defaultInstance; - public static EmployeeToCreateCredentials getDefaultInstance() { - return defaultInstance; - } - - public EmployeeToCreateCredentials getDefaultInstanceForType() { - return defaultInstance; + private EmployeeToCreateCredentials() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeToCreateCredentials( - 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: { - Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = login_.toBuilder(); - } - login_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(login_); - login_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateCredentials_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateCredentials_fieldAccessorTable @@ -1112,69 +1178,61 @@ private EmployeeToCreateCredentials( Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.class, Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeToCreateCredentials parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeToCreateCredentials(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int LOGIN_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin login_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin Login = 1; + * @return Whether the login field is set. */ + @java.lang.Override public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin Login = 1; + * @return The login. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin getLogin() { - return login_; + return login_ == null ? Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance() : login_; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin Login = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLoginOrBuilder getLoginOrBuilder() { - return login_; + return login_ == null ? Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance() : login_; } public static final int CERTIFICATE_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate certificate_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate Certificate = 2; + * @return Whether the certificate field is set. */ + @java.lang.Override public boolean hasCertificate() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate Certificate = 2; + * @return The certificate. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate getCertificate() { - return certificate_; + return certificate_ == null ? Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance() : certificate_; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate Certificate = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificateOrBuilder getCertificateOrBuilder() { - return certificate_; + return certificate_ == null ? Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance() : certificate_; } - private void initFields() { - login_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance(); - certificate_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1196,44 +1254,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, login_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLogin()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, certificate_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getCertificate()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, login_); + .computeMessageSize(1, getLogin()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, certificate_); + .computeMessageSize(2, getCertificate()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials other = (Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials) obj; + + if (hasLogin() != other.hasLogin()) return false; + if (hasLogin()) { + if (!getLogin() + .equals(other.getLogin())) return false; + } + if (hasCertificate() != other.hasCertificate()) return false; + if (hasCertificate()) { + if (!getCertificate() + .equals(other.getCertificate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLogin()) { + hash = (37 * hash) + LOGIN_FIELD_NUMBER; + hash = (53 * hash) + getLogin().hashCode(); + } + if (hasCertificate()) { + hash = (37 * hash) + CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getCertificate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1257,42 +1363,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1312,6 +1433,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateCredentials_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateCredentials_fieldAccessorTable @@ -1330,45 +1452,41 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getLoginFieldBuilder(); getCertificateFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (loginBuilder_ == null) { - login_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance(); - } else { - loginBuilder_.clear(); + bitField0_ = 0; + login_ = null; + if (loginBuilder_ != null) { + loginBuilder_.dispose(); + loginBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (certificateBuilder_ == null) { - certificate_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance(); - } else { - certificateBuilder_.clear(); + certificate_ = null; + if (certificateBuilder_ != null) { + certificateBuilder_.dispose(); + certificateBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateCredentials_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials build() { Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials result = buildPartial(); if (!result.isInitialized()) { @@ -1377,31 +1495,33 @@ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredent return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials result = new Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.login_ = loginBuilder_ == null + ? login_ + : loginBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (loginBuilder_ == null) { - result.login_ = login_; - } else { - result.login_ = loginBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.certificate_ = certificateBuilder_ == null + ? certificate_ + : certificateBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (certificateBuilder_ == null) { - result.certificate_ = certificate_; - } else { - result.certificate_ = certificateBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials)other); @@ -1420,59 +1540,89 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.Emplo mergeCertificate(other.getCertificate()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasLogin()) { if (!getLogin().isInitialized()) { - return false; } } if (hasCertificate()) { if (!getCertificate().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getLoginFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCertificateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin login_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin login_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin, Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.Builder, Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLoginOrBuilder> loginBuilder_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin Login = 1; + * @return Whether the login field is set. */ public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin Login = 1; + * @return The login. */ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin getLogin() { if (loginBuilder_ == null) { - return login_; + return login_ == null ? Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance() : login_; } else { return loginBuilder_.getMessage(); } @@ -1486,11 +1636,11 @@ public Builder setLogin(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.Employ throw new NullPointerException(); } login_ = value; - onChanged(); } else { loginBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1500,11 +1650,11 @@ public Builder setLogin( Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.Builder builderForValue) { if (loginBuilder_ == null) { login_ = builderForValue.build(); - onChanged(); } else { loginBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1512,31 +1662,33 @@ public Builder setLogin( */ public Builder mergeLogin(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin value) { if (loginBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - login_ != Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance()) { - login_ = - Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.newBuilder(login_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + login_ != null && + login_ != Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance()) { + getLoginBuilder().mergeFrom(value); } else { login_ = value; } - onChanged(); } else { loginBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (login_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin Login = 1; */ public Builder clearLogin() { - if (loginBuilder_ == null) { - login_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance(); - onChanged(); - } else { - loginBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + login_ = null; + if (loginBuilder_ != null) { + loginBuilder_.dispose(); + loginBuilder_ = null; + } + onChanged(); return this; } /** @@ -1554,7 +1706,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin if (loginBuilder_ != null) { return loginBuilder_.getMessageOrBuilder(); } else { - return login_; + return login_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance() : login_; } } /** @@ -1574,21 +1727,23 @@ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin return loginBuilder_; } - private Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate certificate_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate certificate_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate, Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.Builder, Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificateOrBuilder> certificateBuilder_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate Certificate = 2; + * @return Whether the certificate field is set. */ public boolean hasCertificate() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate Certificate = 2; + * @return The certificate. */ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_; + return certificate_ == null ? Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance() : certificate_; } else { return certificateBuilder_.getMessage(); } @@ -1602,11 +1757,11 @@ public Builder setCertificate(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos. throw new NullPointerException(); } certificate_ = value; - onChanged(); } else { certificateBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1616,11 +1771,11 @@ public Builder setCertificate( Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.Builder builderForValue) { if (certificateBuilder_ == null) { certificate_ = builderForValue.build(); - onChanged(); } else { certificateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1628,31 +1783,33 @@ public Builder setCertificate( */ public Builder mergeCertificate(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate value) { if (certificateBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - certificate_ != Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance()) { - certificate_ = - Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + certificate_ != null && + certificate_ != Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance()) { + getCertificateBuilder().mergeFrom(value); } else { certificate_ = value; } - onChanged(); } else { certificateBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (certificate_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate Certificate = 2; */ public Builder clearCertificate() { - if (certificateBuilder_ == null) { - certificate_ = Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance(); - onChanged(); - } else { - certificateBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + certificate_ = null; + if (certificateBuilder_ != null) { + certificateBuilder_.dispose(); + certificateBuilder_ = null; + } + onChanged(); return this; } /** @@ -1670,7 +1827,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCerti if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_; + return certificate_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance() : certificate_; } } /** @@ -1693,12 +1851,52 @@ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCerti // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials) + private static final Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeToCreateCredentials(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeToCreateCredentials parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateCredentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeToCreateCredentials) } public interface EmployeeToCreateByLoginOrBuilder extends @@ -1707,24 +1905,29 @@ public interface EmployeeToCreateByLoginOrBuilder extends /** * required string Login = 1; + * @return Whether the login field is set. */ boolean hasLogin(); /** * required string Login = 1; + * @return The login. */ java.lang.String getLogin(); /** * required string Login = 1; + * @return The bytes for login. */ com.google.protobuf.ByteString getLoginBytes(); /** * optional .Diadoc.Api.Proto.FullName FullName = 2; + * @return Whether the fullName field is set. */ boolean hasFullName(); /** * optional .Diadoc.Api.Proto.FullName FullName = 2; + * @return The fullName. */ Diadoc.Api.Proto.UserProtos.FullName getFullName(); /** @@ -1739,87 +1942,30 @@ public static final class EmployeeToCreateByLogin extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin) EmployeeToCreateByLoginOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeToCreateByLogin.class.getName()); + } // Use EmployeeToCreateByLogin.newBuilder() to construct. private EmployeeToCreateByLogin(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private EmployeeToCreateByLogin(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeToCreateByLogin defaultInstance; - public static EmployeeToCreateByLogin getDefaultInstance() { - return defaultInstance; - } - - public EmployeeToCreateByLogin getDefaultInstanceForType() { - return defaultInstance; + private EmployeeToCreateByLogin() { + login_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeToCreateByLogin( - 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; - login_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.UserProtos.FullName.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = fullName_.toBuilder(); - } - fullName_ = input.readMessage(Diadoc.Api.Proto.UserProtos.FullName.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullName_); - fullName_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByLogin_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByLogin_fieldAccessorTable @@ -1827,33 +1973,23 @@ private EmployeeToCreateByLogin( Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.class, Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeToCreateByLogin parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeToCreateByLogin(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int LOGIN_FIELD_NUMBER = 1; - private java.lang.Object login_; + @SuppressWarnings("serial") + private volatile java.lang.Object login_ = ""; /** * required string Login = 1; + * @return Whether the login field is set. */ + @java.lang.Override public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Login = 1; + * @return The login. */ + @java.lang.Override public java.lang.String getLogin() { java.lang.Object ref = login_; if (ref instanceof java.lang.String) { @@ -1870,7 +2006,9 @@ public java.lang.String getLogin() { } /** * required string Login = 1; + * @return The bytes for login. */ + @java.lang.Override public com.google.protobuf.ByteString getLoginBytes() { java.lang.Object ref = login_; @@ -1889,28 +2027,30 @@ public java.lang.String getLogin() { private Diadoc.Api.Proto.UserProtos.FullName fullName_; /** * optional .Diadoc.Api.Proto.FullName FullName = 2; + * @return Whether the fullName field is set. */ + @java.lang.Override public boolean hasFullName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.FullName FullName = 2; + * @return The fullName. */ + @java.lang.Override public Diadoc.Api.Proto.UserProtos.FullName getFullName() { - return fullName_; + return fullName_ == null ? Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance() : fullName_; } /** * optional .Diadoc.Api.Proto.FullName FullName = 2; */ + @java.lang.Override public Diadoc.Api.Proto.UserProtos.FullNameOrBuilder getFullNameOrBuilder() { - return fullName_; + return fullName_ == null ? Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance() : fullName_; } - private void initFields() { - login_ = ""; - fullName_ = Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1930,44 +2070,91 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getLoginBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, login_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, fullName_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getFullName()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getLoginBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, login_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, fullName_); + .computeMessageSize(2, getFullName()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin other = (Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin) obj; + + if (hasLogin() != other.hasLogin()) return false; + if (hasLogin()) { + if (!getLogin() + .equals(other.getLogin())) return false; + } + if (hasFullName() != other.hasFullName()) return false; + if (hasFullName()) { + if (!getFullName() + .equals(other.getFullName())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLogin()) { + hash = (37 * hash) + LOGIN_FIELD_NUMBER; + hash = (53 * hash) + getLogin().hashCode(); + } + if (hasFullName()) { + hash = (37 * hash) + FULLNAME_FIELD_NUMBER; + hash = (53 * hash) + getFullName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1991,42 +2178,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2046,6 +2248,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByLogin_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByLogin_fieldAccessorTable @@ -2064,40 +2267,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getFullNameFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; login_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (fullNameBuilder_ == null) { - fullName_ = Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance(); - } else { - fullNameBuilder_.clear(); + fullName_ = null; + if (fullNameBuilder_ != null) { + fullNameBuilder_.dispose(); + fullNameBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByLogin_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin build() { Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin result = buildPartial(); if (!result.isInitialized()) { @@ -2106,27 +2305,31 @@ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin result = new Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.login_ = login_; to_bitField0_ |= 0x00000001; } - result.login_ = login_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fullName_ = fullNameBuilder_ == null + ? fullName_ + : fullNameBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (fullNameBuilder_ == null) { - result.fullName_ = fullName_; - } else { - result.fullName_ = fullNameBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin)other); @@ -2139,46 +2342,72 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin other) { if (other == Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin.getDefaultInstance()) return this; if (other.hasLogin()) { - bitField0_ |= 0x00000001; login_ = other.login_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFullName()) { mergeFullName(other.getFullName()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasLogin()) { - return false; } if (hasFullName()) { if (!getFullName().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + login_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getFullNameFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2186,12 +2415,14 @@ public Builder mergeFrom( private java.lang.Object login_ = ""; /** * required string Login = 1; + * @return Whether the login field is set. */ public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Login = 1; + * @return The login. */ public java.lang.String getLogin() { java.lang.Object ref = login_; @@ -2209,6 +2440,7 @@ public java.lang.String getLogin() { } /** * required string Login = 1; + * @return The bytes for login. */ public com.google.protobuf.ByteString getLoginBytes() { @@ -2225,55 +2457,58 @@ public java.lang.String getLogin() { } /** * required string Login = 1; + * @param value The login to set. + * @return This builder for chaining. */ public Builder setLogin( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } login_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Login = 1; + * @return This builder for chaining. */ public Builder clearLogin() { - bitField0_ = (bitField0_ & ~0x00000001); login_ = getDefaultInstance().getLogin(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Login = 1; + * @param value The bytes for login to set. + * @return This builder for chaining. */ public Builder setLoginBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } login_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.UserProtos.FullName fullName_ = Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance(); + private Diadoc.Api.Proto.UserProtos.FullName fullName_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.UserProtos.FullName, Diadoc.Api.Proto.UserProtos.FullName.Builder, Diadoc.Api.Proto.UserProtos.FullNameOrBuilder> fullNameBuilder_; /** * optional .Diadoc.Api.Proto.FullName FullName = 2; + * @return Whether the fullName field is set. */ public boolean hasFullName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.FullName FullName = 2; + * @return The fullName. */ public Diadoc.Api.Proto.UserProtos.FullName getFullName() { if (fullNameBuilder_ == null) { - return fullName_; + return fullName_ == null ? Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance() : fullName_; } else { return fullNameBuilder_.getMessage(); } @@ -2287,11 +2522,11 @@ public Builder setFullName(Diadoc.Api.Proto.UserProtos.FullName value) { throw new NullPointerException(); } fullName_ = value; - onChanged(); } else { fullNameBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2301,11 +2536,11 @@ public Builder setFullName( Diadoc.Api.Proto.UserProtos.FullName.Builder builderForValue) { if (fullNameBuilder_ == null) { fullName_ = builderForValue.build(); - onChanged(); } else { fullNameBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2313,31 +2548,33 @@ public Builder setFullName( */ public Builder mergeFullName(Diadoc.Api.Proto.UserProtos.FullName value) { if (fullNameBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - fullName_ != Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance()) { - fullName_ = - Diadoc.Api.Proto.UserProtos.FullName.newBuilder(fullName_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + fullName_ != null && + fullName_ != Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance()) { + getFullNameBuilder().mergeFrom(value); } else { fullName_ = value; } - onChanged(); } else { fullNameBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (fullName_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.FullName FullName = 2; */ public Builder clearFullName() { - if (fullNameBuilder_ == null) { - fullName_ = Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance(); - onChanged(); - } else { - fullNameBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + fullName_ = null; + if (fullNameBuilder_ != null) { + fullNameBuilder_.dispose(); + fullNameBuilder_ = null; + } + onChanged(); return this; } /** @@ -2355,7 +2592,8 @@ public Diadoc.Api.Proto.UserProtos.FullNameOrBuilder getFullNameOrBuilder() { if (fullNameBuilder_ != null) { return fullNameBuilder_.getMessageOrBuilder(); } else { - return fullName_; + return fullName_ == null ? + Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance() : fullName_; } } /** @@ -2378,12 +2616,52 @@ public Diadoc.Api.Proto.UserProtos.FullNameOrBuilder getFullNameOrBuilder() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin) + private static final Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeToCreateByLogin(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeToCreateByLogin parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByLogin getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeToCreateByLogin) } public interface EmployeeToCreateByCertificateOrBuilder extends @@ -2392,37 +2670,45 @@ public interface EmployeeToCreateByCertificateOrBuilder extends /** * required bytes Content = 1; + * @return Whether the content field is set. */ boolean hasContent(); /** * required bytes Content = 1; + * @return The content. */ com.google.protobuf.ByteString getContent(); /** * optional string AccessBasis = 2; + * @return Whether the accessBasis field is set. */ boolean hasAccessBasis(); /** * optional string AccessBasis = 2; + * @return The accessBasis. */ java.lang.String getAccessBasis(); /** * optional string AccessBasis = 2; + * @return The bytes for accessBasis. */ com.google.protobuf.ByteString getAccessBasisBytes(); /** * optional string Email = 3; + * @return Whether the email field is set. */ boolean hasEmail(); /** * optional string Email = 3; + * @return The email. */ java.lang.String getEmail(); /** * optional string Email = 3; + * @return The bytes for email. */ com.google.protobuf.ByteString getEmailBytes(); @@ -2434,85 +2720,32 @@ public static final class EmployeeToCreateByCertificate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate) EmployeeToCreateByCertificateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeToCreateByCertificate.class.getName()); + } // Use EmployeeToCreateByCertificate.newBuilder() to construct. private EmployeeToCreateByCertificate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeeToCreateByCertificate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeToCreateByCertificate defaultInstance; - public static EmployeeToCreateByCertificate getDefaultInstance() { - return defaultInstance; } - - public EmployeeToCreateByCertificate getDefaultInstanceForType() { - return defaultInstance; + private EmployeeToCreateByCertificate() { + content_ = com.google.protobuf.ByteString.EMPTY; + accessBasis_ = ""; + email_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeToCreateByCertificate( - 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: { - bitField0_ |= 0x00000001; - content_ = input.readBytes(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - accessBasis_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - email_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByCertificate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByCertificate_fieldAccessorTable @@ -2520,48 +2753,42 @@ private EmployeeToCreateByCertificate( Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.class, Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeToCreateByCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeToCreateByCertificate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CONTENT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString content_; + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes Content = 1; + * @return Whether the content field is set. */ + @java.lang.Override public boolean hasContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bytes Content = 1; + * @return The content. */ + @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } public static final int ACCESSBASIS_FIELD_NUMBER = 2; - private java.lang.Object accessBasis_; + @SuppressWarnings("serial") + private volatile java.lang.Object accessBasis_ = ""; /** * optional string AccessBasis = 2; + * @return Whether the accessBasis field is set. */ + @java.lang.Override public boolean hasAccessBasis() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string AccessBasis = 2; + * @return The accessBasis. */ + @java.lang.Override public java.lang.String getAccessBasis() { java.lang.Object ref = accessBasis_; if (ref instanceof java.lang.String) { @@ -2578,7 +2805,9 @@ public java.lang.String getAccessBasis() { } /** * optional string AccessBasis = 2; + * @return The bytes for accessBasis. */ + @java.lang.Override public com.google.protobuf.ByteString getAccessBasisBytes() { java.lang.Object ref = accessBasis_; @@ -2594,16 +2823,21 @@ public java.lang.String getAccessBasis() { } public static final int EMAIL_FIELD_NUMBER = 3; - private java.lang.Object email_; + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; /** * optional string Email = 3; + * @return Whether the email field is set. */ + @java.lang.Override public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Email = 3; + * @return The email. */ + @java.lang.Override public java.lang.String getEmail() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { @@ -2620,7 +2854,9 @@ public java.lang.String getEmail() { } /** * optional string Email = 3; + * @return The bytes for email. */ + @java.lang.Override public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; @@ -2635,12 +2871,8 @@ public java.lang.String getEmail() { } } - private void initFields() { - content_ = com.google.protobuf.ByteString.EMPTY; - accessBasis_ = ""; - email_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2654,51 +2886,106 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(1, content_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getAccessBasisBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, accessBasis_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getEmailBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, email_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, content_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getAccessBasisBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, accessBasis_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getEmailBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, email_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate other = (Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate) obj; + + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent() + .equals(other.getContent())) return false; + } + if (hasAccessBasis() != other.hasAccessBasis()) return false; + if (hasAccessBasis()) { + if (!getAccessBasis() + .equals(other.getAccessBasis())) return false; + } + if (hasEmail() != other.hasEmail()) return false; + if (hasEmail()) { + if (!getEmail() + .equals(other.getEmail())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasAccessBasis()) { + hash = (37 * hash) + ACCESSBASIS_FIELD_NUMBER; + hash = (53 * hash) + getAccessBasis().hashCode(); + } + if (hasEmail()) { + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2722,42 +3009,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreate } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2777,6 +3079,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByCertificate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByCertificate_fieldAccessorTable @@ -2786,46 +3089,36 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); accessBasis_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); email_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByCertificate_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate build() { Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate result = buildPartial(); if (!result.isInitialized()) { @@ -2834,27 +3127,33 @@ public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCerti return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate result = new Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; to_bitField0_ |= 0x00000001; } - result.content_ = content_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accessBasis_ = accessBasis_; to_bitField0_ |= 0x00000002; } - result.accessBasis_ = accessBasis_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.email_ = email_; to_bitField0_ |= 0x00000004; } - result.email_ = email_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate)other); @@ -2870,42 +3169,72 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.Emplo setContent(other.getContent()); } if (other.hasAccessBasis()) { - bitField0_ |= 0x00000002; accessBasis_ = other.accessBasis_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasEmail()) { - bitField0_ |= 0x00000004; email_ = other.email_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasContent()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + content_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + accessBasis_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + email_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2913,30 +3242,35 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes Content = 1; + * @return Whether the content field is set. */ + @java.lang.Override public boolean hasContent() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bytes Content = 1; + * @return The content. */ + @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } /** * required bytes Content = 1; + * @param value The content to set. + * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bytes Content = 1; + * @return This builder for chaining. */ public Builder clearContent() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2948,12 +3282,14 @@ public Builder clearContent() { private java.lang.Object accessBasis_ = ""; /** * optional string AccessBasis = 2; + * @return Whether the accessBasis field is set. */ public boolean hasAccessBasis() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string AccessBasis = 2; + * @return The accessBasis. */ public java.lang.String getAccessBasis() { java.lang.Object ref = accessBasis_; @@ -2971,6 +3307,7 @@ public java.lang.String getAccessBasis() { } /** * optional string AccessBasis = 2; + * @return The bytes for accessBasis. */ public com.google.protobuf.ByteString getAccessBasisBytes() { @@ -2987,36 +3324,37 @@ public java.lang.String getAccessBasis() { } /** * optional string AccessBasis = 2; + * @param value The accessBasis to set. + * @return This builder for chaining. */ public Builder setAccessBasis( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } accessBasis_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string AccessBasis = 2; + * @return This builder for chaining. */ public Builder clearAccessBasis() { - bitField0_ = (bitField0_ & ~0x00000002); accessBasis_ = getDefaultInstance().getAccessBasis(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string AccessBasis = 2; + * @param value The bytes for accessBasis to set. + * @return This builder for chaining. */ public Builder setAccessBasisBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } accessBasis_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3024,12 +3362,14 @@ public Builder setAccessBasisBytes( private java.lang.Object email_ = ""; /** * optional string Email = 3; + * @return Whether the email field is set. */ public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string Email = 3; + * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; @@ -3047,6 +3387,7 @@ public java.lang.String getEmail() { } /** * optional string Email = 3; + * @return The bytes for email. */ public com.google.protobuf.ByteString getEmailBytes() { @@ -3063,36 +3404,37 @@ public java.lang.String getEmail() { } /** * optional string Email = 3; + * @param value The email to set. + * @return This builder for chaining. */ public Builder setEmail( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } email_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string Email = 3; + * @return This builder for chaining. */ public Builder clearEmail() { - bitField0_ = (bitField0_ & ~0x00000004); email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string Email = 3; + * @param value The bytes for email to set. + * @return This builder for chaining. */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } email_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3100,32 +3442,72 @@ public Builder setEmailBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate) + private static final Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeToCreateByCertificate(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeToCreateByCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToCreateProtos.EmployeeToCreateByCertificate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeToCreateByCertificate) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreate_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateCredentials_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateCredentials_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByLogin_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByLogin_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByCertificate_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByCertificate_fieldAccessorTable; @@ -3133,7 +3515,7 @@ public Builder setEmailBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -3146,7 +3528,7 @@ public Builder setEmailBytes( "\030\003 \002(\010\022D\n\013Permissions\030\004 \002(\0132/.Diadoc.Api" + ".Proto.Employees.EmployeePermissions\"\261\001\n" + "\033EmployeeToCreateCredentials\022B\n\005Login\030\001 " + - "\001(\01323.Diadoc.Api.Proto.Employees.Employe", + "\001(\01323.Diadoc.Api.Proto.Employees.Employe" + "eToCreateByLogin\022N\n\013Certificate\030\002 \001(\01329." + "Diadoc.Api.Proto.Employees.EmployeeToCre" + "ateByCertificate\"V\n\027EmployeeToCreateByLo" + @@ -3156,20 +3538,12 @@ public Builder setEmailBytes( "cessBasis\030\002 \001(\t\022\r\n\005Email\030\003 \001(\tB\030B\026Employ" + "eeToCreateProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.UserProtos.getDescriptor(), Diadoc.Api.Proto.Employees.EmployeeProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreate_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreate_fieldAccessorTable = new @@ -3194,6 +3568,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Employees_EmployeeToCreateByCertificate_descriptor, new java.lang.String[] { "Content", "AccessBasis", "Email", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.UserProtos.getDescriptor(); Diadoc.Api.Proto.Employees.EmployeeProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Employees/EmployeeToUpdateProtos.java b/src/main/java/Diadoc/Api/Proto/Employees/EmployeeToUpdateProtos.java index ed636e13..f7fb0f96 100644 --- a/src/main/java/Diadoc/Api/Proto/Employees/EmployeeToUpdateProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Employees/EmployeeToUpdateProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Employees/EmployeeToUpdate.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Employees; public final class EmployeeToUpdateProtos { private EmployeeToUpdateProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeToUpdateProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface EmployeeToUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Employees.EmployeeToUpdate) @@ -14,10 +31,12 @@ public interface EmployeeToUpdateOrBuilder extends /** * optional .Diadoc.Api.Proto.Employees.EmployeePermissionsPatch Permissions = 1; + * @return Whether the permissions field is set. */ boolean hasPermissions(); /** * optional .Diadoc.Api.Proto.Employees.EmployeePermissionsPatch Permissions = 1; + * @return The permissions. */ Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch getPermissions(); /** @@ -27,10 +46,12 @@ public interface EmployeeToUpdateOrBuilder extends /** * optional .Diadoc.Api.Proto.Employees.EmployeePositionPatch Position = 2; + * @return Whether the position field is set. */ boolean hasPosition(); /** * optional .Diadoc.Api.Proto.Employees.EmployeePositionPatch Position = 2; + * @return The position. */ Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch getPosition(); /** @@ -40,10 +61,12 @@ public interface EmployeeToUpdateOrBuilder extends /** * optional .Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch CanBeInvitedForChat = 3; + * @return Whether the canBeInvitedForChat field is set. */ boolean hasCanBeInvitedForChat(); /** * optional .Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch CanBeInvitedForChat = 3; + * @return The canBeInvitedForChat. */ Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch getCanBeInvitedForChat(); /** @@ -58,107 +81,29 @@ public static final class EmployeeToUpdate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeToUpdate) EmployeeToUpdateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeToUpdate.class.getName()); + } // Use EmployeeToUpdate.newBuilder() to construct. private EmployeeToUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeeToUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeToUpdate defaultInstance; - public static EmployeeToUpdate getDefaultInstance() { - return defaultInstance; } - - public EmployeeToUpdate getDefaultInstanceForType() { - return defaultInstance; + private EmployeeToUpdate() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeToUpdate( - 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: { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = permissions_.toBuilder(); - } - permissions_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permissions_); - permissions_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = position_.toBuilder(); - } - position_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = canBeInvitedForChat_.toBuilder(); - } - canBeInvitedForChat_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(canBeInvitedForChat_); - canBeInvitedForChat_ = 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.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToUpdate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToUpdate_fieldAccessorTable @@ -166,91 +111,87 @@ private EmployeeToUpdate( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate.class, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeToUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeToUpdate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PERMISSIONS_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch permissions_; /** * optional .Diadoc.Api.Proto.Employees.EmployeePermissionsPatch Permissions = 1; + * @return Whether the permissions field is set. */ + @java.lang.Override public boolean hasPermissions() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeePermissionsPatch Permissions = 1; + * @return The permissions. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch getPermissions() { - return permissions_; + return permissions_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance() : permissions_; } /** * optional .Diadoc.Api.Proto.Employees.EmployeePermissionsPatch Permissions = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatchOrBuilder getPermissionsOrBuilder() { - return permissions_; + return permissions_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance() : permissions_; } public static final int POSITION_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch position_; /** * optional .Diadoc.Api.Proto.Employees.EmployeePositionPatch Position = 2; + * @return Whether the position field is set. */ + @java.lang.Override public boolean hasPosition() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeePositionPatch Position = 2; + * @return The position. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch getPosition() { - return position_; + return position_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance() : position_; } /** * optional .Diadoc.Api.Proto.Employees.EmployeePositionPatch Position = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatchOrBuilder getPositionOrBuilder() { - return position_; + return position_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance() : position_; } public static final int CANBEINVITEDFORCHAT_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch canBeInvitedForChat_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch CanBeInvitedForChat = 3; + * @return Whether the canBeInvitedForChat field is set. */ + @java.lang.Override public boolean hasCanBeInvitedForChat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch CanBeInvitedForChat = 3; + * @return The canBeInvitedForChat. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch getCanBeInvitedForChat() { - return canBeInvitedForChat_; + return canBeInvitedForChat_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance() : canBeInvitedForChat_; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch CanBeInvitedForChat = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatchOrBuilder getCanBeInvitedForChatOrBuilder() { - return canBeInvitedForChat_; + return canBeInvitedForChat_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance() : canBeInvitedForChat_; } - private void initFields() { - permissions_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance(); - position_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance(); - canBeInvitedForChat_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -272,51 +213,108 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, permissions_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPermissions()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, position_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPosition()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, canBeInvitedForChat_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getCanBeInvitedForChat()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, permissions_); + .computeMessageSize(1, getPermissions()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, position_); + .computeMessageSize(2, getPosition()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, canBeInvitedForChat_); + .computeMessageSize(3, getCanBeInvitedForChat()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate other = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate) obj; + + if (hasPermissions() != other.hasPermissions()) return false; + if (hasPermissions()) { + if (!getPermissions() + .equals(other.getPermissions())) return false; + } + if (hasPosition() != other.hasPosition()) return false; + if (hasPosition()) { + if (!getPosition() + .equals(other.getPosition())) return false; + } + if (hasCanBeInvitedForChat() != other.hasCanBeInvitedForChat()) return false; + if (hasCanBeInvitedForChat()) { + if (!getCanBeInvitedForChat() + .equals(other.getCanBeInvitedForChat())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPermissions()) { + hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getPermissions().hashCode(); + } + if (hasPosition()) { + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition().hashCode(); + } + if (hasCanBeInvitedForChat()) { + hash = (37 * hash) + CANBEINVITEDFORCHAT_FIELD_NUMBER; + hash = (53 * hash) + getCanBeInvitedForChat().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -340,42 +338,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -395,6 +408,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToUpdate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToUpdate_fieldAccessorTable @@ -413,52 +427,47 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getPermissionsFieldBuilder(); getPositionFieldBuilder(); getCanBeInvitedForChatFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (permissionsBuilder_ == null) { - permissions_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance(); - } else { - permissionsBuilder_.clear(); + bitField0_ = 0; + permissions_ = null; + if (permissionsBuilder_ != null) { + permissionsBuilder_.dispose(); + permissionsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (positionBuilder_ == null) { - position_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance(); - } else { - positionBuilder_.clear(); + position_ = null; + if (positionBuilder_ != null) { + positionBuilder_.dispose(); + positionBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (canBeInvitedForChatBuilder_ == null) { - canBeInvitedForChat_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance(); - } else { - canBeInvitedForChatBuilder_.clear(); + canBeInvitedForChat_ = null; + if (canBeInvitedForChatBuilder_ != null) { + canBeInvitedForChatBuilder_.dispose(); + canBeInvitedForChatBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeToUpdate_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate build() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate result = buildPartial(); if (!result.isInitialized()) { @@ -467,39 +476,39 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate build( return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate result = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.permissions_ = permissionsBuilder_ == null + ? permissions_ + : permissionsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (permissionsBuilder_ == null) { - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.position_ = positionBuilder_ == null + ? position_ + : positionBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (positionBuilder_ == null) { - result.position_ = position_; - } else { - result.position_ = positionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.canBeInvitedForChat_ = canBeInvitedForChatBuilder_ == null + ? canBeInvitedForChat_ + : canBeInvitedForChatBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (canBeInvitedForChatBuilder_ == null) { - result.canBeInvitedForChat_ = canBeInvitedForChat_; - } else { - result.canBeInvitedForChat_ = canBeInvitedForChatBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate)other); @@ -521,59 +530,96 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.Emplo mergeCanBeInvitedForChat(other.getCanBeInvitedForChat()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasPermissions()) { if (!getPermissions().isInitialized()) { - return false; } } if (hasCanBeInvitedForChat()) { if (!getCanBeInvitedForChat().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPermissionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPositionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCanBeInvitedForChatFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch permissions_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch permissions_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.Builder, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatchOrBuilder> permissionsBuilder_; /** * optional .Diadoc.Api.Proto.Employees.EmployeePermissionsPatch Permissions = 1; + * @return Whether the permissions field is set. */ public boolean hasPermissions() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeePermissionsPatch Permissions = 1; + * @return The permissions. */ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch getPermissions() { if (permissionsBuilder_ == null) { - return permissions_; + return permissions_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance() : permissions_; } else { return permissionsBuilder_.getMessage(); } @@ -587,11 +633,11 @@ public Builder setPermissions(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos. throw new NullPointerException(); } permissions_ = value; - onChanged(); } else { permissionsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -601,11 +647,11 @@ public Builder setPermissions( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.Builder builderForValue) { if (permissionsBuilder_ == null) { permissions_ = builderForValue.build(); - onChanged(); } else { permissionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -613,31 +659,33 @@ public Builder setPermissions( */ public Builder mergePermissions(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch value) { if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - permissions_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance()) { - permissions_ = - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.newBuilder(permissions_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + permissions_ != null && + permissions_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance()) { + getPermissionsBuilder().mergeFrom(value); } else { permissions_ = value; } - onChanged(); } else { permissionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (permissions_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.EmployeePermissionsPatch Permissions = 1; */ public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance(); - onChanged(); - } else { - permissionsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + permissions_ = null; + if (permissionsBuilder_ != null) { + permissionsBuilder_.dispose(); + permissionsBuilder_ = null; + } + onChanged(); return this; } /** @@ -655,7 +703,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatc if (permissionsBuilder_ != null) { return permissionsBuilder_.getMessageOrBuilder(); } else { - return permissions_; + return permissions_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance() : permissions_; } } /** @@ -675,21 +724,23 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatc return permissionsBuilder_; } - private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch position_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch position_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.Builder, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatchOrBuilder> positionBuilder_; /** * optional .Diadoc.Api.Proto.Employees.EmployeePositionPatch Position = 2; + * @return Whether the position field is set. */ public boolean hasPosition() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeePositionPatch Position = 2; + * @return The position. */ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch getPosition() { if (positionBuilder_ == null) { - return position_; + return position_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance() : position_; } else { return positionBuilder_.getMessage(); } @@ -703,11 +754,11 @@ public Builder setPosition(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.Emp throw new NullPointerException(); } position_ = value; - onChanged(); } else { positionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -717,11 +768,11 @@ public Builder setPosition( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.Builder builderForValue) { if (positionBuilder_ == null) { position_ = builderForValue.build(); - onChanged(); } else { positionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -729,31 +780,33 @@ public Builder setPosition( */ public Builder mergePosition(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch value) { if (positionBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - position_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance()) { - position_ = - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.newBuilder(position_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + position_ != null && + position_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance()) { + getPositionBuilder().mergeFrom(value); } else { position_ = value; } - onChanged(); } else { positionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (position_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.EmployeePositionPatch Position = 2; */ public Builder clearPosition() { - if (positionBuilder_ == null) { - position_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance(); - onChanged(); - } else { - positionBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + position_ = null; + if (positionBuilder_ != null) { + positionBuilder_.dispose(); + positionBuilder_ = null; + } + onChanged(); return this; } /** @@ -771,7 +824,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatchOr if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_; + return position_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance() : position_; } } /** @@ -791,21 +845,23 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatchOr return positionBuilder_; } - private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch canBeInvitedForChat_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch canBeInvitedForChat_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.Builder, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatchOrBuilder> canBeInvitedForChatBuilder_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch CanBeInvitedForChat = 3; + * @return Whether the canBeInvitedForChat field is set. */ public boolean hasCanBeInvitedForChat() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch CanBeInvitedForChat = 3; + * @return The canBeInvitedForChat. */ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch getCanBeInvitedForChat() { if (canBeInvitedForChatBuilder_ == null) { - return canBeInvitedForChat_; + return canBeInvitedForChat_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance() : canBeInvitedForChat_; } else { return canBeInvitedForChatBuilder_.getMessage(); } @@ -819,11 +875,11 @@ public Builder setCanBeInvitedForChat(Diadoc.Api.Proto.Employees.EmployeeToUpdat throw new NullPointerException(); } canBeInvitedForChat_ = value; - onChanged(); } else { canBeInvitedForChatBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -833,11 +889,11 @@ public Builder setCanBeInvitedForChat( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.Builder builderForValue) { if (canBeInvitedForChatBuilder_ == null) { canBeInvitedForChat_ = builderForValue.build(); - onChanged(); } else { canBeInvitedForChatBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -845,31 +901,33 @@ public Builder setCanBeInvitedForChat( */ public Builder mergeCanBeInvitedForChat(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch value) { if (canBeInvitedForChatBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - canBeInvitedForChat_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance()) { - canBeInvitedForChat_ = - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.newBuilder(canBeInvitedForChat_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + canBeInvitedForChat_ != null && + canBeInvitedForChat_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance()) { + getCanBeInvitedForChatBuilder().mergeFrom(value); } else { canBeInvitedForChat_ = value; } - onChanged(); } else { canBeInvitedForChatBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (canBeInvitedForChat_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch CanBeInvitedForChat = 3; */ public Builder clearCanBeInvitedForChat() { - if (canBeInvitedForChatBuilder_ == null) { - canBeInvitedForChat_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance(); - onChanged(); - } else { - canBeInvitedForChatBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + canBeInvitedForChat_ = null; + if (canBeInvitedForChatBuilder_ != null) { + canBeInvitedForChatBuilder_.dispose(); + canBeInvitedForChatBuilder_ = null; + } + onChanged(); return this; } /** @@ -887,7 +945,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedFor if (canBeInvitedForChatBuilder_ != null) { return canBeInvitedForChatBuilder_.getMessageOrBuilder(); } else { - return canBeInvitedForChat_; + return canBeInvitedForChat_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance() : canBeInvitedForChat_; } } /** @@ -910,12 +969,52 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedFor // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeToUpdate) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeToUpdate) + private static final Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeToUpdate(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeToUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeToUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeToUpdate) } public interface EmployeePermissionsPatchOrBuilder extends @@ -924,10 +1023,12 @@ public interface EmployeePermissionsPatchOrBuilder extends /** * optional .Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch Department = 1; + * @return Whether the department field is set. */ boolean hasDepartment(); /** * optional .Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch Department = 1; + * @return The department. */ Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch getDepartment(); /** @@ -937,10 +1038,12 @@ public interface EmployeePermissionsPatchOrBuilder extends /** * optional .Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch IsAdministrator = 2; + * @return Whether the isAdministrator field is set. */ boolean hasIsAdministrator(); /** * optional .Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch IsAdministrator = 2; + * @return The isAdministrator. */ Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch getIsAdministrator(); /** @@ -950,10 +1053,12 @@ public interface EmployeePermissionsPatchOrBuilder extends /** * optional .Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch DocumentAccessLevel = 3; + * @return Whether the documentAccessLevel field is set. */ boolean hasDocumentAccessLevel(); /** * optional .Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch DocumentAccessLevel = 3; + * @return The documentAccessLevel. */ Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch getDocumentAccessLevel(); /** @@ -963,10 +1068,12 @@ public interface EmployeePermissionsPatchOrBuilder extends /** * optional .Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch SelectedDepartments = 4; + * @return Whether the selectedDepartments field is set. */ boolean hasSelectedDepartments(); /** * optional .Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch SelectedDepartments = 4; + * @return The selectedDepartments. */ Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch getSelectedDepartments(); /** @@ -1000,10 +1107,12 @@ Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeActionOrBuilder getActionsOrBu /** * optional .Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch AuthorizationPermission = 6; + * @return Whether the authorizationPermission field is set. */ boolean hasAuthorizationPermission(); /** * optional .Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch AuthorizationPermission = 6; + * @return The authorizationPermission. */ Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch getAuthorizationPermission(); /** @@ -1018,144 +1127,30 @@ public static final class EmployeePermissionsPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeePermissionsPatch) EmployeePermissionsPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeePermissionsPatch.class.getName()); + } // Use EmployeePermissionsPatch.newBuilder() to construct. private EmployeePermissionsPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeePermissionsPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeePermissionsPatch defaultInstance; - public static EmployeePermissionsPatch getDefaultInstance() { - return defaultInstance; } - - public EmployeePermissionsPatch getDefaultInstanceForType() { - return defaultInstance; + private EmployeePermissionsPatch() { + actions_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeePermissionsPatch( - 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: { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = department_.toBuilder(); - } - department_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(department_); - department_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = isAdministrator_.toBuilder(); - } - isAdministrator_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isAdministrator_); - isAdministrator_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = documentAccessLevel_.toBuilder(); - } - documentAccessLevel_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentAccessLevel_); - documentAccessLevel_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = selectedDepartments_.toBuilder(); - } - selectedDepartments_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(selectedDepartments_); - selectedDepartments_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - actions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - actions_.add(input.readMessage(Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.PARSER, extensionRegistry)); - break; - } - case 50: { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = authorizationPermission_.toBuilder(); - } - authorizationPermission_ = input.readMessage(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authorizationPermission_); - authorizationPermission_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - 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_ & 0x00000010) == 0x00000010)) { - actions_ = java.util.Collections.unmodifiableList(actions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePermissionsPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePermissionsPatch_fieldAccessorTable @@ -1163,117 +1158,125 @@ private EmployeePermissionsPatch( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.class, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeePermissionsPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeePermissionsPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DEPARTMENT_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch department_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch Department = 1; + * @return Whether the department field is set. */ + @java.lang.Override public boolean hasDepartment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch Department = 1; + * @return The department. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch getDepartment() { - return department_; + return department_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance() : department_; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch Department = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatchOrBuilder getDepartmentOrBuilder() { - return department_; + return department_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance() : department_; } public static final int ISADMINISTRATOR_FIELD_NUMBER = 2; private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch isAdministrator_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch IsAdministrator = 2; + * @return Whether the isAdministrator field is set. */ + @java.lang.Override public boolean hasIsAdministrator() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch IsAdministrator = 2; + * @return The isAdministrator. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch getIsAdministrator() { - return isAdministrator_; + return isAdministrator_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance() : isAdministrator_; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch IsAdministrator = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatchOrBuilder getIsAdministratorOrBuilder() { - return isAdministrator_; + return isAdministrator_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance() : isAdministrator_; } public static final int DOCUMENTACCESSLEVEL_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch documentAccessLevel_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch DocumentAccessLevel = 3; + * @return Whether the documentAccessLevel field is set. */ + @java.lang.Override public boolean hasDocumentAccessLevel() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch DocumentAccessLevel = 3; + * @return The documentAccessLevel. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch getDocumentAccessLevel() { - return documentAccessLevel_; + return documentAccessLevel_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance() : documentAccessLevel_; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch DocumentAccessLevel = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatchOrBuilder getDocumentAccessLevelOrBuilder() { - return documentAccessLevel_; + return documentAccessLevel_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance() : documentAccessLevel_; } public static final int SELECTEDDEPARTMENTS_FIELD_NUMBER = 4; private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch selectedDepartments_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch SelectedDepartments = 4; + * @return Whether the selectedDepartments field is set. */ + @java.lang.Override public boolean hasSelectedDepartments() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch SelectedDepartments = 4; + * @return The selectedDepartments. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch getSelectedDepartments() { - return selectedDepartments_; + return selectedDepartments_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance() : selectedDepartments_; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch SelectedDepartments = 4; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatchOrBuilder getSelectedDepartmentsOrBuilder() { - return selectedDepartments_; + return selectedDepartments_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance() : selectedDepartments_; } public static final int ACTIONS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List actions_; /** * repeated .Diadoc.Api.Proto.Employees.EmployeeAction Actions = 5; */ + @java.lang.Override public java.util.List getActionsList() { return actions_; } /** * repeated .Diadoc.Api.Proto.Employees.EmployeeAction Actions = 5; */ + @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; @@ -1281,18 +1284,21 @@ public java.util.List /** * repeated .Diadoc.Api.Proto.Employees.EmployeeAction Actions = 5; */ + @java.lang.Override public int getActionsCount() { return actions_.size(); } /** * repeated .Diadoc.Api.Proto.Employees.EmployeeAction Actions = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction getActions(int index) { return actions_.get(index); } /** * repeated .Diadoc.Api.Proto.Employees.EmployeeAction Actions = 5; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeActionOrBuilder getActionsOrBuilder( int index) { return actions_.get(index); @@ -1302,32 +1308,30 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeActionOrBuilder getActi private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch authorizationPermission_; /** * optional .Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch AuthorizationPermission = 6; + * @return Whether the authorizationPermission field is set. */ + @java.lang.Override public boolean hasAuthorizationPermission() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch AuthorizationPermission = 6; + * @return The authorizationPermission. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch getAuthorizationPermission() { - return authorizationPermission_; + return authorizationPermission_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance() : authorizationPermission_; } /** * optional .Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch AuthorizationPermission = 6; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatchOrBuilder getAuthorizationPermissionOrBuilder() { - return authorizationPermission_; + return authorizationPermission_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance() : authorizationPermission_; } - private void initFields() { - department_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance(); - isAdministrator_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance(); - documentAccessLevel_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance(); - selectedDepartments_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance(); - actions_ = java.util.Collections.emptyList(); - authorizationPermission_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1367,72 +1371,153 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, department_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDepartment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, isAdministrator_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getIsAdministrator()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, documentAccessLevel_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDocumentAccessLevel()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, selectedDepartments_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getSelectedDepartments()); } for (int i = 0; i < actions_.size(); i++) { output.writeMessage(5, actions_.get(i)); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(6, authorizationPermission_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getAuthorizationPermission()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, department_); + .computeMessageSize(1, getDepartment()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, isAdministrator_); + .computeMessageSize(2, getIsAdministrator()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, documentAccessLevel_); + .computeMessageSize(3, getDocumentAccessLevel()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, selectedDepartments_); + .computeMessageSize(4, getSelectedDepartments()); } for (int i = 0; i < actions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, actions_.get(i)); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, authorizationPermission_); + .computeMessageSize(6, getAuthorizationPermission()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch other = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch) obj; + + if (hasDepartment() != other.hasDepartment()) return false; + if (hasDepartment()) { + if (!getDepartment() + .equals(other.getDepartment())) return false; + } + if (hasIsAdministrator() != other.hasIsAdministrator()) return false; + if (hasIsAdministrator()) { + if (!getIsAdministrator() + .equals(other.getIsAdministrator())) return false; + } + if (hasDocumentAccessLevel() != other.hasDocumentAccessLevel()) return false; + if (hasDocumentAccessLevel()) { + if (!getDocumentAccessLevel() + .equals(other.getDocumentAccessLevel())) return false; + } + if (hasSelectedDepartments() != other.hasSelectedDepartments()) return false; + if (hasSelectedDepartments()) { + if (!getSelectedDepartments() + .equals(other.getSelectedDepartments())) return false; + } + if (!getActionsList() + .equals(other.getActionsList())) return false; + if (hasAuthorizationPermission() != other.hasAuthorizationPermission()) return false; + if (hasAuthorizationPermission()) { + if (!getAuthorizationPermission() + .equals(other.getAuthorizationPermission())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDepartment()) { + hash = (37 * hash) + DEPARTMENT_FIELD_NUMBER; + hash = (53 * hash) + getDepartment().hashCode(); + } + if (hasIsAdministrator()) { + hash = (37 * hash) + ISADMINISTRATOR_FIELD_NUMBER; + hash = (53 * hash) + getIsAdministrator().hashCode(); + } + if (hasDocumentAccessLevel()) { + hash = (37 * hash) + DOCUMENTACCESSLEVEL_FIELD_NUMBER; + hash = (53 * hash) + getDocumentAccessLevel().hashCode(); + } + if (hasSelectedDepartments()) { + hash = (37 * hash) + SELECTEDDEPARTMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSelectedDepartments().hashCode(); + } + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + if (hasAuthorizationPermission()) { + hash = (37 * hash) + AUTHORIZATIONPERMISSION_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizationPermission().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1456,42 +1541,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissi } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1511,6 +1611,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePermissionsPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePermissionsPatch_fieldAccessorTable @@ -1529,7 +1630,8 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getDepartmentFieldBuilder(); getIsAdministratorFieldBuilder(); getDocumentAccessLevelFieldBuilder(); @@ -1538,64 +1640,57 @@ private void maybeForceBuilderInitialization() { getAuthorizationPermissionFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (departmentBuilder_ == null) { - department_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance(); - } else { - departmentBuilder_.clear(); + bitField0_ = 0; + department_ = null; + if (departmentBuilder_ != null) { + departmentBuilder_.dispose(); + departmentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); - if (isAdministratorBuilder_ == null) { - isAdministrator_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance(); - } else { - isAdministratorBuilder_.clear(); + isAdministrator_ = null; + if (isAdministratorBuilder_ != null) { + isAdministratorBuilder_.dispose(); + isAdministratorBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (documentAccessLevelBuilder_ == null) { - documentAccessLevel_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance(); - } else { - documentAccessLevelBuilder_.clear(); + documentAccessLevel_ = null; + if (documentAccessLevelBuilder_ != null) { + documentAccessLevelBuilder_.dispose(); + documentAccessLevelBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (selectedDepartmentsBuilder_ == null) { - selectedDepartments_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance(); - } else { - selectedDepartmentsBuilder_.clear(); + selectedDepartments_ = null; + if (selectedDepartmentsBuilder_ != null) { + selectedDepartmentsBuilder_.dispose(); + selectedDepartmentsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + actions_ = null; actionsBuilder_.clear(); } - if (authorizationPermissionBuilder_ == null) { - authorizationPermission_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance(); - } else { - authorizationPermissionBuilder_.clear(); + bitField0_ = (bitField0_ & ~0x00000010); + authorizationPermission_ = null; + if (authorizationPermissionBuilder_ != null) { + authorizationPermissionBuilder_.dispose(); + authorizationPermissionBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePermissionsPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch build() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch result = buildPartial(); if (!result.isInitialized()) { @@ -1604,64 +1699,64 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatc return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch result = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch result) { + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.department_ = departmentBuilder_ == null + ? department_ + : departmentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (departmentBuilder_ == null) { - result.department_ = department_; - } else { - result.department_ = departmentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isAdministrator_ = isAdministratorBuilder_ == null + ? isAdministrator_ + : isAdministratorBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (isAdministratorBuilder_ == null) { - result.isAdministrator_ = isAdministrator_; - } else { - result.isAdministrator_ = isAdministratorBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.documentAccessLevel_ = documentAccessLevelBuilder_ == null + ? documentAccessLevel_ + : documentAccessLevelBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (documentAccessLevelBuilder_ == null) { - result.documentAccessLevel_ = documentAccessLevel_; - } else { - result.documentAccessLevel_ = documentAccessLevelBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.selectedDepartments_ = selectedDepartmentsBuilder_ == null + ? selectedDepartments_ + : selectedDepartmentsBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (selectedDepartmentsBuilder_ == null) { - result.selectedDepartments_ = selectedDepartments_; - } else { - result.selectedDepartments_ = selectedDepartmentsBuilder_.build(); - } - if (actionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - actions_ = java.util.Collections.unmodifiableList(actions_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.actions_ = actions_; - } else { - result.actions_ = actionsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.authorizationPermission_ = authorizationPermissionBuilder_ == null + ? authorizationPermission_ + : authorizationPermissionBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (authorizationPermissionBuilder_ == null) { - result.authorizationPermission_ = authorizationPermission_; - } else { - result.authorizationPermission_ = authorizationPermissionBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch)other); @@ -1715,77 +1810,138 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.Emplo mergeAuthorizationPermission(other.getAuthorizationPermission()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasDepartment()) { if (!getDepartment().isInitialized()) { - return false; } } if (hasIsAdministrator()) { if (!getIsAdministrator().isInitialized()) { - return false; } } if (hasDocumentAccessLevel()) { if (!getDocumentAccessLevel().isInitialized()) { - return false; } } for (int i = 0; i < getActionsCount(); i++) { if (!getActions(i).isInitialized()) { - return false; } } if (hasAuthorizationPermission()) { if (!getAuthorizationPermission().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getDepartmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getIsAdministratorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDocumentAccessLevelFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getSelectedDepartmentsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction m = + input.readMessage( + Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.parser(), + extensionRegistry); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(m); + } else { + actionsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + input.readMessage( + getAuthorizationPermissionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch department_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch department_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.Builder, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatchOrBuilder> departmentBuilder_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch Department = 1; + * @return Whether the department field is set. */ public boolean hasDepartment() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch Department = 1; + * @return The department. */ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch getDepartment() { if (departmentBuilder_ == null) { - return department_; + return department_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance() : department_; } else { return departmentBuilder_.getMessage(); } @@ -1799,11 +1955,11 @@ public Builder setDepartment(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.E throw new NullPointerException(); } department_ = value; - onChanged(); } else { departmentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1813,11 +1969,11 @@ public Builder setDepartment( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.Builder builderForValue) { if (departmentBuilder_ == null) { department_ = builderForValue.build(); - onChanged(); } else { departmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1825,31 +1981,33 @@ public Builder setDepartment( */ public Builder mergeDepartment(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch value) { if (departmentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - department_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance()) { - department_ = - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.newBuilder(department_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + department_ != null && + department_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance()) { + getDepartmentBuilder().mergeFrom(value); } else { department_ = value; } - onChanged(); } else { departmentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (department_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch Department = 1; */ public Builder clearDepartment() { - if (departmentBuilder_ == null) { - department_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance(); - onChanged(); - } else { - departmentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + department_ = null; + if (departmentBuilder_ != null) { + departmentBuilder_.dispose(); + departmentBuilder_ = null; + } + onChanged(); return this; } /** @@ -1867,7 +2025,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch if (departmentBuilder_ != null) { return departmentBuilder_.getMessageOrBuilder(); } else { - return department_; + return department_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance() : department_; } } /** @@ -1887,21 +2046,23 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch return departmentBuilder_; } - private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch isAdministrator_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch isAdministrator_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.Builder, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatchOrBuilder> isAdministratorBuilder_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch IsAdministrator = 2; + * @return Whether the isAdministrator field is set. */ public boolean hasIsAdministrator() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch IsAdministrator = 2; + * @return The isAdministrator. */ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch getIsAdministrator() { if (isAdministratorBuilder_ == null) { - return isAdministrator_; + return isAdministrator_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance() : isAdministrator_; } else { return isAdministratorBuilder_.getMessage(); } @@ -1915,11 +2076,11 @@ public Builder setIsAdministrator(Diadoc.Api.Proto.Employees.EmployeeToUpdatePro throw new NullPointerException(); } isAdministrator_ = value; - onChanged(); } else { isAdministratorBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1929,11 +2090,11 @@ public Builder setIsAdministrator( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.Builder builderForValue) { if (isAdministratorBuilder_ == null) { isAdministrator_ = builderForValue.build(); - onChanged(); } else { isAdministratorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1941,31 +2102,33 @@ public Builder setIsAdministrator( */ public Builder mergeIsAdministrator(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch value) { if (isAdministratorBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - isAdministrator_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance()) { - isAdministrator_ = - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.newBuilder(isAdministrator_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + isAdministrator_ != null && + isAdministrator_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance()) { + getIsAdministratorBuilder().mergeFrom(value); } else { isAdministrator_ = value; } - onChanged(); } else { isAdministratorBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (isAdministrator_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch IsAdministrator = 2; */ public Builder clearIsAdministrator() { - if (isAdministratorBuilder_ == null) { - isAdministrator_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance(); - onChanged(); - } else { - isAdministratorBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + isAdministrator_ = null; + if (isAdministratorBuilder_ != null) { + isAdministratorBuilder_.dispose(); + isAdministratorBuilder_ = null; + } + onChanged(); return this; } /** @@ -1983,7 +2146,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministrator if (isAdministratorBuilder_ != null) { return isAdministratorBuilder_.getMessageOrBuilder(); } else { - return isAdministrator_; + return isAdministrator_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance() : isAdministrator_; } } /** @@ -2003,21 +2167,23 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministrator return isAdministratorBuilder_; } - private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch documentAccessLevel_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch documentAccessLevel_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.Builder, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatchOrBuilder> documentAccessLevelBuilder_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch DocumentAccessLevel = 3; + * @return Whether the documentAccessLevel field is set. */ public boolean hasDocumentAccessLevel() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch DocumentAccessLevel = 3; + * @return The documentAccessLevel. */ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch getDocumentAccessLevel() { if (documentAccessLevelBuilder_ == null) { - return documentAccessLevel_; + return documentAccessLevel_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance() : documentAccessLevel_; } else { return documentAccessLevelBuilder_.getMessage(); } @@ -2031,11 +2197,11 @@ public Builder setDocumentAccessLevel(Diadoc.Api.Proto.Employees.EmployeeToUpdat throw new NullPointerException(); } documentAccessLevel_ = value; - onChanged(); } else { documentAccessLevelBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2045,11 +2211,11 @@ public Builder setDocumentAccessLevel( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.Builder builderForValue) { if (documentAccessLevelBuilder_ == null) { documentAccessLevel_ = builderForValue.build(); - onChanged(); } else { documentAccessLevelBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2057,31 +2223,33 @@ public Builder setDocumentAccessLevel( */ public Builder mergeDocumentAccessLevel(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch value) { if (documentAccessLevelBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - documentAccessLevel_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance()) { - documentAccessLevel_ = - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.newBuilder(documentAccessLevel_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + documentAccessLevel_ != null && + documentAccessLevel_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance()) { + getDocumentAccessLevelBuilder().mergeFrom(value); } else { documentAccessLevel_ = value; } - onChanged(); } else { documentAccessLevelBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (documentAccessLevel_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch DocumentAccessLevel = 3; */ public Builder clearDocumentAccessLevel() { - if (documentAccessLevelBuilder_ == null) { - documentAccessLevel_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance(); - onChanged(); - } else { - documentAccessLevelBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + documentAccessLevel_ = null; + if (documentAccessLevelBuilder_ != null) { + documentAccessLevelBuilder_.dispose(); + documentAccessLevelBuilder_ = null; + } + onChanged(); return this; } /** @@ -2099,7 +2267,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessL if (documentAccessLevelBuilder_ != null) { return documentAccessLevelBuilder_.getMessageOrBuilder(); } else { - return documentAccessLevel_; + return documentAccessLevel_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance() : documentAccessLevel_; } } /** @@ -2119,21 +2288,23 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessL return documentAccessLevelBuilder_; } - private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch selectedDepartments_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch selectedDepartments_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.Builder, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatchOrBuilder> selectedDepartmentsBuilder_; /** * optional .Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch SelectedDepartments = 4; + * @return Whether the selectedDepartments field is set. */ public boolean hasSelectedDepartments() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch SelectedDepartments = 4; + * @return The selectedDepartments. */ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch getSelectedDepartments() { if (selectedDepartmentsBuilder_ == null) { - return selectedDepartments_; + return selectedDepartments_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance() : selectedDepartments_; } else { return selectedDepartmentsBuilder_.getMessage(); } @@ -2147,11 +2318,11 @@ public Builder setSelectedDepartments(Diadoc.Api.Proto.Employees.EmployeeToUpdat throw new NullPointerException(); } selectedDepartments_ = value; - onChanged(); } else { selectedDepartmentsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2161,11 +2332,11 @@ public Builder setSelectedDepartments( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.Builder builderForValue) { if (selectedDepartmentsBuilder_ == null) { selectedDepartments_ = builderForValue.build(); - onChanged(); } else { selectedDepartmentsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2173,31 +2344,33 @@ public Builder setSelectedDepartments( */ public Builder mergeSelectedDepartments(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch value) { if (selectedDepartmentsBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - selectedDepartments_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance()) { - selectedDepartments_ = - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.newBuilder(selectedDepartments_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + selectedDepartments_ != null && + selectedDepartments_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance()) { + getSelectedDepartmentsBuilder().mergeFrom(value); } else { selectedDepartments_ = value; } - onChanged(); } else { selectedDepartmentsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + if (selectedDepartments_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch SelectedDepartments = 4; */ public Builder clearSelectedDepartments() { - if (selectedDepartmentsBuilder_ == null) { - selectedDepartments_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance(); - onChanged(); - } else { - selectedDepartmentsBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000008); + selectedDepartments_ = null; + if (selectedDepartmentsBuilder_ != null) { + selectedDepartmentsBuilder_.dispose(); + selectedDepartmentsBuilder_ = null; + } + onChanged(); return this; } /** @@ -2215,7 +2388,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartm if (selectedDepartmentsBuilder_ != null) { return selectedDepartmentsBuilder_.getMessageOrBuilder(); } else { - return selectedDepartments_; + return selectedDepartments_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance() : selectedDepartments_; } } /** @@ -2238,7 +2412,7 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartm private java.util.List actions_ = java.util.Collections.emptyList(); private void ensureActionsIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { + if (!((bitField0_ & 0x00000010) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000010; } @@ -2467,7 +2641,7 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.Builder addActio actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.Builder, Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeActionOrBuilder>( actions_, - ((bitField0_ & 0x00000010) == 0x00000010), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); actions_ = null; @@ -2475,21 +2649,23 @@ public Diadoc.Api.Proto.Employees.EmployeeProtos.EmployeeAction.Builder addActio return actionsBuilder_; } - private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch authorizationPermission_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch authorizationPermission_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.Builder, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatchOrBuilder> authorizationPermissionBuilder_; /** * optional .Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch AuthorizationPermission = 6; + * @return Whether the authorizationPermission field is set. */ public boolean hasAuthorizationPermission() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch AuthorizationPermission = 6; + * @return The authorizationPermission. */ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch getAuthorizationPermission() { if (authorizationPermissionBuilder_ == null) { - return authorizationPermission_; + return authorizationPermission_ == null ? Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance() : authorizationPermission_; } else { return authorizationPermissionBuilder_.getMessage(); } @@ -2503,11 +2679,11 @@ public Builder setAuthorizationPermission(Diadoc.Api.Proto.Employees.EmployeeToU throw new NullPointerException(); } authorizationPermission_ = value; - onChanged(); } else { authorizationPermissionBuilder_.setMessage(value); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2517,11 +2693,11 @@ public Builder setAuthorizationPermission( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.Builder builderForValue) { if (authorizationPermissionBuilder_ == null) { authorizationPermission_ = builderForValue.build(); - onChanged(); } else { authorizationPermissionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2529,31 +2705,33 @@ public Builder setAuthorizationPermission( */ public Builder mergeAuthorizationPermission(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch value) { if (authorizationPermissionBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - authorizationPermission_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance()) { - authorizationPermission_ = - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.newBuilder(authorizationPermission_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) && + authorizationPermission_ != null && + authorizationPermission_ != Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance()) { + getAuthorizationPermissionBuilder().mergeFrom(value); } else { authorizationPermission_ = value; } - onChanged(); } else { authorizationPermissionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + if (authorizationPermission_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch AuthorizationPermission = 6; */ public Builder clearAuthorizationPermission() { - if (authorizationPermissionBuilder_ == null) { - authorizationPermission_ = Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance(); - onChanged(); - } else { - authorizationPermissionBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000020); + authorizationPermission_ = null; + if (authorizationPermissionBuilder_ != null) { + authorizationPermissionBuilder_.dispose(); + authorizationPermissionBuilder_ = null; + } + onChanged(); return this; } /** @@ -2571,7 +2749,8 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermission if (authorizationPermissionBuilder_ != null) { return authorizationPermissionBuilder_.getMessageOrBuilder(); } else { - return authorizationPermission_; + return authorizationPermission_ == null ? + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance() : authorizationPermission_; } } /** @@ -2594,12 +2773,52 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermission // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeePermissionsPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeePermissionsPatch) + private static final Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch DEFAULT_INSTANCE; static { - defaultInstance = new EmployeePermissionsPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeePermissionsPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePermissionsPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeePermissionsPatch) } public interface EmployeeDepartmentPatchOrBuilder extends @@ -2608,14 +2827,17 @@ public interface EmployeeDepartmentPatchOrBuilder extends /** * required string DepartmentId = 1; + * @return Whether the departmentId field is set. */ boolean hasDepartmentId(); /** * required string DepartmentId = 1; + * @return The departmentId. */ java.lang.String getDepartmentId(); /** * required string DepartmentId = 1; + * @return The bytes for departmentId. */ com.google.protobuf.ByteString getDepartmentIdBytes(); @@ -2627,74 +2849,30 @@ public static final class EmployeeDepartmentPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch) EmployeeDepartmentPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeDepartmentPatch.class.getName()); + } // Use EmployeeDepartmentPatch.newBuilder() to construct. private EmployeeDepartmentPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeeDepartmentPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeDepartmentPatch defaultInstance; - public static EmployeeDepartmentPatch getDefaultInstance() { - return defaultInstance; } - - public EmployeeDepartmentPatch getDefaultInstanceForType() { - return defaultInstance; + private EmployeeDepartmentPatch() { + departmentId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeDepartmentPatch( - 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; - departmentId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeDepartmentPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeDepartmentPatch_fieldAccessorTable @@ -2702,33 +2880,23 @@ private EmployeeDepartmentPatch( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.class, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeDepartmentPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeDepartmentPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DEPARTMENTID_FIELD_NUMBER = 1; - private java.lang.Object departmentId_; + @SuppressWarnings("serial") + private volatile java.lang.Object departmentId_ = ""; /** * required string DepartmentId = 1; + * @return Whether the departmentId field is set. */ + @java.lang.Override public boolean hasDepartmentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string DepartmentId = 1; + * @return The departmentId. */ + @java.lang.Override public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; if (ref instanceof java.lang.String) { @@ -2745,7 +2913,9 @@ public java.lang.String getDepartmentId() { } /** * required string DepartmentId = 1; + * @return The bytes for departmentId. */ + @java.lang.Override public com.google.protobuf.ByteString getDepartmentIdBytes() { java.lang.Object ref = departmentId_; @@ -2760,10 +2930,8 @@ public java.lang.String getDepartmentId() { } } - private void initFields() { - departmentId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2777,37 +2945,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getDepartmentIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, departmentId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getDepartmentIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, departmentId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch other = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch) obj; + + if (hasDepartmentId() != other.hasDepartmentId()) return false; + if (hasDepartmentId()) { + if (!getDepartmentId() + .equals(other.getDepartmentId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDepartmentId()) { + hash = (37 * hash) + DEPARTMENTID_FIELD_NUMBER; + hash = (53 * hash) + getDepartmentId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2831,42 +3037,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartme } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2886,6 +3107,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeDepartmentPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeDepartmentPatch_fieldAccessorTable @@ -2895,42 +3117,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; departmentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeDepartmentPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch build() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch result = buildPartial(); if (!result.isInitialized()) { @@ -2939,19 +3153,25 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch result = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.departmentId_ = departmentId_; to_bitField0_ |= 0x00000001; } - result.departmentId_ = departmentId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch)other); @@ -2964,37 +3184,57 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch other) { if (other == Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch.getDefaultInstance()) return this; if (other.hasDepartmentId()) { - bitField0_ |= 0x00000001; departmentId_ = other.departmentId_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDepartmentId()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + departmentId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3002,12 +3242,14 @@ public Builder mergeFrom( private java.lang.Object departmentId_ = ""; /** * required string DepartmentId = 1; + * @return Whether the departmentId field is set. */ public boolean hasDepartmentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string DepartmentId = 1; + * @return The departmentId. */ public java.lang.String getDepartmentId() { java.lang.Object ref = departmentId_; @@ -3025,6 +3267,7 @@ public java.lang.String getDepartmentId() { } /** * required string DepartmentId = 1; + * @return The bytes for departmentId. */ public com.google.protobuf.ByteString getDepartmentIdBytes() { @@ -3041,36 +3284,37 @@ public java.lang.String getDepartmentId() { } /** * required string DepartmentId = 1; + * @param value The departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string DepartmentId = 1; + * @return This builder for chaining. */ public Builder clearDepartmentId() { - bitField0_ = (bitField0_ & ~0x00000001); departmentId_ = getDefaultInstance().getDepartmentId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string DepartmentId = 1; + * @param value The bytes for departmentId to set. + * @return This builder for chaining. */ public Builder setDepartmentIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } departmentId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3078,12 +3322,52 @@ public Builder setDepartmentIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch) + private static final Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeDepartmentPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeDepartmentPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDepartmentPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeDepartmentPatch) } public interface EmployeeIsAdministratorPatchOrBuilder extends @@ -3092,10 +3376,12 @@ public interface EmployeeIsAdministratorPatchOrBuilder extends /** * required bool IsAdministrator = 1; + * @return Whether the isAdministrator field is set. */ boolean hasIsAdministrator(); /** * required bool IsAdministrator = 1; + * @return The isAdministrator. */ boolean getIsAdministrator(); } @@ -3106,73 +3392,29 @@ public static final class EmployeeIsAdministratorPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch) EmployeeIsAdministratorPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeIsAdministratorPatch.class.getName()); + } // Use EmployeeIsAdministratorPatch.newBuilder() to construct. private EmployeeIsAdministratorPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeeIsAdministratorPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeIsAdministratorPatch defaultInstance; - public static EmployeeIsAdministratorPatch getDefaultInstance() { - return defaultInstance; } - - public EmployeeIsAdministratorPatch getDefaultInstanceForType() { - return defaultInstance; + private EmployeeIsAdministratorPatch() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeIsAdministratorPatch( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isAdministrator_ = input.readBool(); - 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.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeIsAdministratorPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeIsAdministratorPatch_fieldAccessorTable @@ -3180,41 +3422,28 @@ private EmployeeIsAdministratorPatch( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.class, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeIsAdministratorPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeIsAdministratorPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISADMINISTRATOR_FIELD_NUMBER = 1; - private boolean isAdministrator_; + private boolean isAdministrator_ = false; /** * required bool IsAdministrator = 1; + * @return Whether the isAdministrator field is set. */ + @java.lang.Override public boolean hasIsAdministrator() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsAdministrator = 1; + * @return The isAdministrator. */ + @java.lang.Override public boolean getIsAdministrator() { return isAdministrator_; } - private void initFields() { - isAdministrator_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3228,37 +3457,77 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isAdministrator_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isAdministrator_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch other = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch) obj; + + if (hasIsAdministrator() != other.hasIsAdministrator()) return false; + if (hasIsAdministrator()) { + if (getIsAdministrator() + != other.getIsAdministrator()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsAdministrator()) { + hash = (37 * hash) + ISADMINISTRATOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAdministrator()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3282,42 +3551,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdmini } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3337,6 +3621,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeIsAdministratorPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeIsAdministratorPatch_fieldAccessorTable @@ -3346,42 +3631,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isAdministrator_ = false; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeIsAdministratorPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch build() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch result = buildPartial(); if (!result.isInitialized()) { @@ -3390,19 +3667,25 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministrator return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch result = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isAdministrator_ = isAdministrator_; to_bitField0_ |= 0x00000001; } - result.isAdministrator_ = isAdministrator_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch)other); @@ -3418,32 +3701,52 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.Emplo setIsAdministrator(other.getIsAdministrator()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsAdministrator()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isAdministrator_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -3451,27 +3754,35 @@ public Builder mergeFrom( private boolean isAdministrator_ ; /** * required bool IsAdministrator = 1; + * @return Whether the isAdministrator field is set. */ + @java.lang.Override public boolean hasIsAdministrator() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsAdministrator = 1; + * @return The isAdministrator. */ + @java.lang.Override public boolean getIsAdministrator() { return isAdministrator_; } /** * required bool IsAdministrator = 1; + * @param value The isAdministrator to set. + * @return This builder for chaining. */ public Builder setIsAdministrator(boolean value) { - bitField0_ |= 0x00000001; + isAdministrator_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsAdministrator = 1; + * @return This builder for chaining. */ public Builder clearIsAdministrator() { bitField0_ = (bitField0_ & ~0x00000001); @@ -3483,12 +3794,52 @@ public Builder clearIsAdministrator() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch) + private static final Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeIsAdministratorPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeIsAdministratorPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeIsAdministratorPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeIsAdministratorPatch) } public interface EmployeeDocumentAccessLevelPatchOrBuilder extends @@ -3497,10 +3848,12 @@ public interface EmployeeDocumentAccessLevelPatchOrBuilder extends /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 1; + * @return Whether the documentAccessLevel field is set. */ boolean hasDocumentAccessLevel(); /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 1; + * @return The documentAccessLevel. */ Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel getDocumentAccessLevel(); } @@ -3511,79 +3864,30 @@ public static final class EmployeeDocumentAccessLevelPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch) EmployeeDocumentAccessLevelPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeDocumentAccessLevelPatch.class.getName()); + } // Use EmployeeDocumentAccessLevelPatch.newBuilder() to construct. private EmployeeDocumentAccessLevelPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private EmployeeDocumentAccessLevelPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeDocumentAccessLevelPatch defaultInstance; - public static EmployeeDocumentAccessLevelPatch getDefaultInstance() { - return defaultInstance; + private EmployeeDocumentAccessLevelPatch() { + documentAccessLevel_ = -1; } - public EmployeeDocumentAccessLevelPatch getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeDocumentAccessLevelPatch( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel value = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - documentAccessLevel_ = value; - } - 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.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeDocumentAccessLevelPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeDocumentAccessLevelPatch_fieldAccessorTable @@ -3591,41 +3895,27 @@ private EmployeeDocumentAccessLevelPatch( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.class, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeDocumentAccessLevelPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeDocumentAccessLevelPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int DOCUMENTACCESSLEVEL_FIELD_NUMBER = 1; - private Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel documentAccessLevel_; + private int documentAccessLevel_ = -1; /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 1; + * @return Whether the documentAccessLevel field is set. */ - public boolean hasDocumentAccessLevel() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentAccessLevel() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 1; + * @return The documentAccessLevel. */ - public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel getDocumentAccessLevel() { - return documentAccessLevel_; + @java.lang.Override public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel getDocumentAccessLevel() { + Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel result = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.forNumber(documentAccessLevel_); + return result == null ? Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel : result; } - private void initFields() { - documentAccessLevel_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3639,37 +3929,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, documentAccessLevel_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, documentAccessLevel_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, documentAccessLevel_.getNumber()); + .computeEnumSize(1, documentAccessLevel_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch other = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch) obj; + + if (hasDocumentAccessLevel() != other.hasDocumentAccessLevel()) return false; + if (hasDocumentAccessLevel()) { + if (documentAccessLevel_ != other.documentAccessLevel_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocumentAccessLevel()) { + hash = (37 * hash) + DOCUMENTACCESSLEVEL_FIELD_NUMBER; + hash = (53 * hash) + documentAccessLevel_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3693,42 +4021,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocument } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -3748,6 +4091,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeDocumentAccessLevelPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeDocumentAccessLevelPatch_fieldAccessorTable @@ -3757,42 +4101,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - documentAccessLevel_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + documentAccessLevel_ = -1; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeDocumentAccessLevelPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch build() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch result = buildPartial(); if (!result.isInitialized()) { @@ -3801,19 +4137,25 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessL return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch result = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentAccessLevel_ = documentAccessLevel_; to_bitField0_ |= 0x00000001; } - result.documentAccessLevel_ = documentAccessLevel_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch)other); @@ -3829,67 +4171,101 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.Emplo setDocumentAccessLevel(other.getDocumentAccessLevel()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasDocumentAccessLevel()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel tmpValue = + Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + documentAccessLevel_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel documentAccessLevel_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel; + private int documentAccessLevel_ = -1; /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 1; + * @return Whether the documentAccessLevel field is set. */ - public boolean hasDocumentAccessLevel() { - return ((bitField0_ & 0x00000001) == 0x00000001); + @java.lang.Override public boolean hasDocumentAccessLevel() { + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 1; + * @return The documentAccessLevel. */ + @java.lang.Override public Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel getDocumentAccessLevel() { - return documentAccessLevel_; + Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel result = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.forNumber(documentAccessLevel_); + return result == null ? Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel : result; } /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 1; + * @param value The documentAccessLevel to set. + * @return This builder for chaining. */ public Builder setDocumentAccessLevel(Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - documentAccessLevel_ = value; + documentAccessLevel_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.DocumentAccessLevel DocumentAccessLevel = 1; + * @return This builder for chaining. */ public Builder clearDocumentAccessLevel() { bitField0_ = (bitField0_ & ~0x00000001); - documentAccessLevel_ = Diadoc.Api.Proto.OrganizationUserPermissionsProtos.DocumentAccessLevel.UnknownDocumentAccessLevel; + documentAccessLevel_ = -1; onChanged(); return this; } @@ -3897,12 +4273,52 @@ public Builder clearDocumentAccessLevel() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch) } - static { - defaultInstance = new EmployeeDocumentAccessLevelPatch(true); - defaultInstance.initFields(); + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch) + private static final Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeDocumentAccessLevelPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeDocumentAccessLevelPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeDocumentAccessLevelPatch) } public interface EmployeeSelectedDepartmentsPatchOrBuilder extends @@ -3911,19 +4327,25 @@ public interface EmployeeSelectedDepartmentsPatchOrBuilder extends /** * repeated string SelectedDepartmentIds = 1; + * @return A list containing the selectedDepartmentIds. */ - com.google.protobuf.ProtocolStringList + java.util.List getSelectedDepartmentIdsList(); /** * repeated string SelectedDepartmentIds = 1; + * @return The count of selectedDepartmentIds. */ int getSelectedDepartmentIdsCount(); /** * repeated string SelectedDepartmentIds = 1; + * @param index The index of the element to return. + * @return The selectedDepartmentIds at the given index. */ java.lang.String getSelectedDepartmentIds(int index); /** * repeated string SelectedDepartmentIds = 1; + * @param index The index of the value to return. + * @return The bytes of the selectedDepartmentIds at the given index. */ com.google.protobuf.ByteString getSelectedDepartmentIdsBytes(int index); @@ -3935,80 +4357,31 @@ public static final class EmployeeSelectedDepartmentsPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch) EmployeeSelectedDepartmentsPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeSelectedDepartmentsPatch.class.getName()); + } // Use EmployeeSelectedDepartmentsPatch.newBuilder() to construct. private EmployeeSelectedDepartmentsPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private EmployeeSelectedDepartmentsPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeSelectedDepartmentsPatch defaultInstance; - public static EmployeeSelectedDepartmentsPatch getDefaultInstance() { - return defaultInstance; - } - - public EmployeeSelectedDepartmentsPatch getDefaultInstanceForType() { - return defaultInstance; + private EmployeeSelectedDepartmentsPatch() { + selectedDepartmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeSelectedDepartmentsPatch( - 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(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - selectedDepartmentIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - selectedDepartmentIds_.add(bs); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - selectedDepartmentIds_ = selectedDepartmentIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeSelectedDepartmentsPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeSelectedDepartmentsPatch_fieldAccessorTable @@ -4016,25 +4389,13 @@ private EmployeeSelectedDepartmentsPatch( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.class, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeSelectedDepartmentsPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeSelectedDepartmentsPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int SELECTEDDEPARTMENTIDS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList selectedDepartmentIds_; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList selectedDepartmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string SelectedDepartmentIds = 1; + * @return A list containing the selectedDepartmentIds. */ public com.google.protobuf.ProtocolStringList getSelectedDepartmentIdsList() { @@ -4042,28 +4403,31 @@ public com.google.protobuf.Parser getParserFor } /** * repeated string SelectedDepartmentIds = 1; + * @return The count of selectedDepartmentIds. */ public int getSelectedDepartmentIdsCount() { return selectedDepartmentIds_.size(); } /** * repeated string SelectedDepartmentIds = 1; + * @param index The index of the element to return. + * @return The selectedDepartmentIds at the given index. */ public java.lang.String getSelectedDepartmentIds(int index) { return selectedDepartmentIds_.get(index); } /** * repeated string SelectedDepartmentIds = 1; + * @param index The index of the value to return. + * @return The bytes of the selectedDepartmentIds at the given index. */ public com.google.protobuf.ByteString getSelectedDepartmentIdsBytes(int index) { return selectedDepartmentIds_.getByteString(index); } - private void initFields() { - selectedDepartmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4073,42 +4437,77 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < selectedDepartmentIds_.size(); i++) { - output.writeBytes(1, selectedDepartmentIds_.getByteString(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, selectedDepartmentIds_.getRaw(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < selectedDepartmentIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(selectedDepartmentIds_.getByteString(i)); + dataSize += computeStringSizeNoTag(selectedDepartmentIds_.getRaw(i)); } size += dataSize; size += 1 * getSelectedDepartmentIdsList().size(); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch other = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch) obj; + + if (!getSelectedDepartmentIdsList() + .equals(other.getSelectedDepartmentIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSelectedDepartmentIdsCount() > 0) { + hash = (37 * hash) + SELECTEDDEPARTMENTIDS_FIELD_NUMBER; + hash = (53 * hash) + getSelectedDepartmentIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4132,42 +4531,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelected } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4187,6 +4601,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeSelectedDepartmentsPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeSelectedDepartmentsPatch_fieldAccessorTable @@ -4196,42 +4611,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); - selectedDepartmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + selectedDepartmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeSelectedDepartmentsPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch build() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch result = buildPartial(); if (!result.isInitialized()) { @@ -4240,18 +4648,23 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartm return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch result = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - selectedDepartmentIds_ = selectedDepartmentIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.selectedDepartmentIds_ = selectedDepartmentIds_; + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + selectedDepartmentIds_.makeImmutable(); + result.selectedDepartmentIds_ = selectedDepartmentIds_; + } + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch)other); @@ -4266,7 +4679,7 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.Emplo if (!other.selectedDepartmentIds_.isEmpty()) { if (selectedDepartmentIds_.isEmpty()) { selectedDepartmentIds_ = other.selectedDepartmentIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureSelectedDepartmentIdsIsMutable(); selectedDepartmentIds_.addAll(other.selectedDepartmentIds_); @@ -4274,60 +4687,90 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.Emplo onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureSelectedDepartmentIdsIsMutable(); + selectedDepartmentIds_.add(bs); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private com.google.protobuf.LazyStringList selectedDepartmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList selectedDepartmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSelectedDepartmentIdsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!selectedDepartmentIds_.isModifiable()) { selectedDepartmentIds_ = new com.google.protobuf.LazyStringArrayList(selectedDepartmentIds_); - bitField0_ |= 0x00000001; - } + } + bitField0_ |= 0x00000001; } /** * repeated string SelectedDepartmentIds = 1; + * @return A list containing the selectedDepartmentIds. */ public com.google.protobuf.ProtocolStringList getSelectedDepartmentIdsList() { - return selectedDepartmentIds_.getUnmodifiableView(); + selectedDepartmentIds_.makeImmutable(); + return selectedDepartmentIds_; } /** * repeated string SelectedDepartmentIds = 1; + * @return The count of selectedDepartmentIds. */ public int getSelectedDepartmentIdsCount() { return selectedDepartmentIds_.size(); } /** * repeated string SelectedDepartmentIds = 1; + * @param index The index of the element to return. + * @return The selectedDepartmentIds at the given index. */ public java.lang.String getSelectedDepartmentIds(int index) { return selectedDepartmentIds_.get(index); } /** * repeated string SelectedDepartmentIds = 1; + * @param index The index of the value to return. + * @return The bytes of the selectedDepartmentIds at the given index. */ public com.google.protobuf.ByteString getSelectedDepartmentIdsBytes(int index) { @@ -4335,60 +4778,69 @@ public java.lang.String getSelectedDepartmentIds(int index) { } /** * repeated string SelectedDepartmentIds = 1; + * @param index The index to set the value at. + * @param value The selectedDepartmentIds to set. + * @return This builder for chaining. */ public Builder setSelectedDepartmentIds( int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectedDepartmentIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureSelectedDepartmentIdsIsMutable(); selectedDepartmentIds_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string SelectedDepartmentIds = 1; + * @param value The selectedDepartmentIds to add. + * @return This builder for chaining. */ public Builder addSelectedDepartmentIds( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectedDepartmentIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureSelectedDepartmentIdsIsMutable(); selectedDepartmentIds_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string SelectedDepartmentIds = 1; + * @param values The selectedDepartmentIds to add. + * @return This builder for chaining. */ public Builder addAllSelectedDepartmentIds( java.lang.Iterable values) { ensureSelectedDepartmentIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, selectedDepartmentIds_); + bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string SelectedDepartmentIds = 1; + * @return This builder for chaining. */ public Builder clearSelectedDepartmentIds() { - selectedDepartmentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + selectedDepartmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** * repeated string SelectedDepartmentIds = 1; + * @param value The bytes of the selectedDepartmentIds to add. + * @return This builder for chaining. */ public Builder addSelectedDepartmentIdsBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectedDepartmentIdsIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureSelectedDepartmentIdsIsMutable(); selectedDepartmentIds_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4396,12 +4848,52 @@ public Builder addSelectedDepartmentIdsBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch) + private static final Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeSelectedDepartmentsPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeSelectedDepartmentsPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeSelectedDepartmentsPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeSelectedDepartmentsPatch) } public interface EmployeePositionPatchOrBuilder extends @@ -4410,14 +4902,17 @@ public interface EmployeePositionPatchOrBuilder extends /** * optional string Position = 1; + * @return Whether the position field is set. */ boolean hasPosition(); /** * optional string Position = 1; + * @return The position. */ java.lang.String getPosition(); /** * optional string Position = 1; + * @return The bytes for position. */ com.google.protobuf.ByteString getPositionBytes(); @@ -4429,74 +4924,30 @@ public static final class EmployeePositionPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeePositionPatch) EmployeePositionPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeePositionPatch.class.getName()); + } // Use EmployeePositionPatch.newBuilder() to construct. private EmployeePositionPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeePositionPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeePositionPatch defaultInstance; - public static EmployeePositionPatch getDefaultInstance() { - return defaultInstance; } - - public EmployeePositionPatch getDefaultInstanceForType() { - return defaultInstance; + private EmployeePositionPatch() { + position_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeePositionPatch( - 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; - position_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePositionPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePositionPatch_fieldAccessorTable @@ -4504,33 +4955,23 @@ private EmployeePositionPatch( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.class, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeePositionPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeePositionPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int POSITION_FIELD_NUMBER = 1; - private java.lang.Object position_; + @SuppressWarnings("serial") + private volatile java.lang.Object position_ = ""; /** * optional string Position = 1; + * @return Whether the position field is set. */ + @java.lang.Override public boolean hasPosition() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Position = 1; + * @return The position. */ + @java.lang.Override public java.lang.String getPosition() { java.lang.Object ref = position_; if (ref instanceof java.lang.String) { @@ -4547,7 +4988,9 @@ public java.lang.String getPosition() { } /** * optional string Position = 1; + * @return The bytes for position. */ + @java.lang.Override public com.google.protobuf.ByteString getPositionBytes() { java.lang.Object ref = position_; @@ -4562,10 +5005,8 @@ public java.lang.String getPosition() { } } - private void initFields() { - position_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4575,37 +5016,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getPositionBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, position_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getPositionBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, position_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch other = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch) obj; + + if (hasPosition() != other.hasPosition()) return false; + if (hasPosition()) { + if (!getPosition() + .equals(other.getPosition())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPosition()) { + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4629,42 +5108,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePosition } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4684,6 +5178,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePositionPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePositionPatch_fieldAccessorTable @@ -4693,42 +5188,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; position_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeePositionPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch build() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch result = buildPartial(); if (!result.isInitialized()) { @@ -4737,19 +5224,25 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch b return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch result = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.position_ = position_; to_bitField0_ |= 0x00000001; } - result.position_ = position_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch)other); @@ -4762,33 +5255,54 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch other) { if (other == Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch.getDefaultInstance()) return this; if (other.hasPosition()) { - bitField0_ |= 0x00000001; position_ = other.position_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + position_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -4796,12 +5310,14 @@ public Builder mergeFrom( private java.lang.Object position_ = ""; /** * optional string Position = 1; + * @return Whether the position field is set. */ public boolean hasPosition() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string Position = 1; + * @return The position. */ public java.lang.String getPosition() { java.lang.Object ref = position_; @@ -4819,6 +5335,7 @@ public java.lang.String getPosition() { } /** * optional string Position = 1; + * @return The bytes for position. */ public com.google.protobuf.ByteString getPositionBytes() { @@ -4835,36 +5352,37 @@ public java.lang.String getPosition() { } /** * optional string Position = 1; + * @param value The position to set. + * @return This builder for chaining. */ public Builder setPosition( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } position_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string Position = 1; + * @return This builder for chaining. */ public Builder clearPosition() { - bitField0_ = (bitField0_ & ~0x00000001); position_ = getDefaultInstance().getPosition(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string Position = 1; + * @param value The bytes for position to set. + * @return This builder for chaining. */ public Builder setPositionBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } position_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4872,12 +5390,52 @@ public Builder setPositionBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeePositionPatch) } - static { - defaultInstance = new EmployeePositionPatch(true); - defaultInstance.initFields(); + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeePositionPatch) + private static final Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeePositionPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeePositionPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeePositionPatch) } public interface EmployeeCanBeInvitedForChatPatchOrBuilder extends @@ -4886,10 +5444,12 @@ public interface EmployeeCanBeInvitedForChatPatchOrBuilder extends /** * required bool CanBeInvitedForChat = 1; + * @return Whether the canBeInvitedForChat field is set. */ boolean hasCanBeInvitedForChat(); /** * required bool CanBeInvitedForChat = 1; + * @return The canBeInvitedForChat. */ boolean getCanBeInvitedForChat(); } @@ -4900,73 +5460,29 @@ public static final class EmployeeCanBeInvitedForChatPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch) EmployeeCanBeInvitedForChatPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeCanBeInvitedForChatPatch.class.getName()); + } // Use EmployeeCanBeInvitedForChatPatch.newBuilder() to construct. private EmployeeCanBeInvitedForChatPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeeCanBeInvitedForChatPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeCanBeInvitedForChatPatch defaultInstance; - public static EmployeeCanBeInvitedForChatPatch getDefaultInstance() { - return defaultInstance; } - - public EmployeeCanBeInvitedForChatPatch getDefaultInstanceForType() { - return defaultInstance; + private EmployeeCanBeInvitedForChatPatch() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeCanBeInvitedForChatPatch( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - canBeInvitedForChat_ = input.readBool(); - 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.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeCanBeInvitedForChatPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeCanBeInvitedForChatPatch_fieldAccessorTable @@ -4974,41 +5490,28 @@ private EmployeeCanBeInvitedForChatPatch( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.class, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeCanBeInvitedForChatPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeCanBeInvitedForChatPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int CANBEINVITEDFORCHAT_FIELD_NUMBER = 1; - private boolean canBeInvitedForChat_; + private boolean canBeInvitedForChat_ = false; /** * required bool CanBeInvitedForChat = 1; + * @return Whether the canBeInvitedForChat field is set. */ + @java.lang.Override public boolean hasCanBeInvitedForChat() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool CanBeInvitedForChat = 1; + * @return The canBeInvitedForChat. */ + @java.lang.Override public boolean getCanBeInvitedForChat() { return canBeInvitedForChat_; } - private void initFields() { - canBeInvitedForChat_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5022,37 +5525,77 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, canBeInvitedForChat_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, canBeInvitedForChat_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch other = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch) obj; + + if (hasCanBeInvitedForChat() != other.hasCanBeInvitedForChat()) return false; + if (hasCanBeInvitedForChat()) { + if (getCanBeInvitedForChat() + != other.getCanBeInvitedForChat()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCanBeInvitedForChat()) { + hash = (37 * hash) + CANBEINVITEDFORCHAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanBeInvitedForChat()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5076,42 +5619,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInv } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5131,6 +5689,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeCanBeInvitedForChatPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeCanBeInvitedForChatPatch_fieldAccessorTable @@ -5140,42 +5699,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; canBeInvitedForChat_ = false; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_EmployeeCanBeInvitedForChatPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch build() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch result = buildPartial(); if (!result.isInitialized()) { @@ -5184,19 +5735,25 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedFor return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch result = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.canBeInvitedForChat_ = canBeInvitedForChat_; to_bitField0_ |= 0x00000001; } - result.canBeInvitedForChat_ = canBeInvitedForChat_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch)other); @@ -5212,32 +5769,52 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.Emplo setCanBeInvitedForChat(other.getCanBeInvitedForChat()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasCanBeInvitedForChat()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + canBeInvitedForChat_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -5245,27 +5822,35 @@ public Builder mergeFrom( private boolean canBeInvitedForChat_ ; /** * required bool CanBeInvitedForChat = 1; + * @return Whether the canBeInvitedForChat field is set. */ + @java.lang.Override public boolean hasCanBeInvitedForChat() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool CanBeInvitedForChat = 1; + * @return The canBeInvitedForChat. */ + @java.lang.Override public boolean getCanBeInvitedForChat() { return canBeInvitedForChat_; } /** * required bool CanBeInvitedForChat = 1; + * @param value The canBeInvitedForChat to set. + * @return This builder for chaining. */ public Builder setCanBeInvitedForChat(boolean value) { - bitField0_ |= 0x00000001; + canBeInvitedForChat_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool CanBeInvitedForChat = 1; + * @return This builder for chaining. */ public Builder clearCanBeInvitedForChat() { bitField0_ = (bitField0_ & ~0x00000001); @@ -5277,12 +5862,52 @@ public Builder clearCanBeInvitedForChat() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch) + private static final Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeCanBeInvitedForChatPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeCanBeInvitedForChatPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.EmployeeCanBeInvitedForChatPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.EmployeeCanBeInvitedForChatPatch) } public interface AuthorizationPermissionPatchOrBuilder extends @@ -5291,23 +5916,28 @@ public interface AuthorizationPermissionPatchOrBuilder extends /** * required bool IsBlocked = 1; + * @return Whether the isBlocked field is set. */ boolean hasIsBlocked(); /** * required bool IsBlocked = 1; + * @return The isBlocked. */ boolean getIsBlocked(); /** * optional string Comment = 2; + * @return Whether the comment field is set. */ boolean hasComment(); /** * optional string Comment = 2; + * @return The comment. */ java.lang.String getComment(); /** * optional string Comment = 2; + * @return The bytes for comment. */ com.google.protobuf.ByteString getCommentBytes(); @@ -5319,79 +5949,30 @@ public static final class AuthorizationPermissionPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch) AuthorizationPermissionPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AuthorizationPermissionPatch.class.getName()); + } // Use AuthorizationPermissionPatch.newBuilder() to construct. private AuthorizationPermissionPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private AuthorizationPermissionPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AuthorizationPermissionPatch defaultInstance; - public static AuthorizationPermissionPatch getDefaultInstance() { - return defaultInstance; } - - public AuthorizationPermissionPatch getDefaultInstanceForType() { - return defaultInstance; + private AuthorizationPermissionPatch() { + comment_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AuthorizationPermissionPatch( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isBlocked_ = input.readBool(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - comment_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_AuthorizationPermissionPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_AuthorizationPermissionPatch_fieldAccessorTable @@ -5399,48 +5980,42 @@ private AuthorizationPermissionPatch( Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.class, Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AuthorizationPermissionPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthorizationPermissionPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISBLOCKED_FIELD_NUMBER = 1; - private boolean isBlocked_; + private boolean isBlocked_ = false; /** * required bool IsBlocked = 1; + * @return Whether the isBlocked field is set. */ + @java.lang.Override public boolean hasIsBlocked() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsBlocked = 1; + * @return The isBlocked. */ + @java.lang.Override public boolean getIsBlocked() { return isBlocked_; } public static final int COMMENT_FIELD_NUMBER = 2; - private java.lang.Object comment_; + @SuppressWarnings("serial") + private volatile java.lang.Object comment_ = ""; /** * optional string Comment = 2; + * @return Whether the comment field is set. */ + @java.lang.Override public boolean hasComment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Comment = 2; + * @return The comment. */ + @java.lang.Override public java.lang.String getComment() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { @@ -5457,7 +6032,9 @@ public java.lang.String getComment() { } /** * optional string Comment = 2; + * @return The bytes for comment. */ + @java.lang.Override public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; @@ -5472,11 +6049,8 @@ public java.lang.String getComment() { } } - private void initFields() { - isBlocked_ = false; - comment_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -5490,44 +6064,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isBlocked_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getCommentBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, comment_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isBlocked_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getCommentBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, comment_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch other = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch) obj; + + if (hasIsBlocked() != other.hasIsBlocked()) return false; + if (hasIsBlocked()) { + if (getIsBlocked() + != other.getIsBlocked()) return false; + } + if (hasComment() != other.hasComment()) return false; + if (hasComment()) { + if (!getComment() + .equals(other.getComment())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsBlocked()) { + hash = (37 * hash) + ISBLOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsBlocked()); + } + if (hasComment()) { + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5551,42 +6173,57 @@ public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPer } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -5606,6 +6243,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_AuthorizationPermissionPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_AuthorizationPermissionPatch_fieldAccessorTable @@ -5615,44 +6253,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isBlocked_ = false; - bitField0_ = (bitField0_ & ~0x00000001); comment_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.internal_static_Diadoc_Api_Proto_Employees_AuthorizationPermissionPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch build() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch result = buildPartial(); if (!result.isInitialized()) { @@ -5661,23 +6290,29 @@ public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermission return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch buildPartial() { Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch result = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isBlocked_ = isBlocked_; to_bitField0_ |= 0x00000001; } - result.isBlocked_ = isBlocked_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.comment_ = comment_; to_bitField0_ |= 0x00000002; } - result.comment_ = comment_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch) { return mergeFrom((Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch)other); @@ -5693,37 +6328,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.Autho setIsBlocked(other.getIsBlocked()); } if (other.hasComment()) { - bitField0_ |= 0x00000002; comment_ = other.comment_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsBlocked()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isBlocked_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + comment_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -5731,27 +6391,35 @@ public Builder mergeFrom( private boolean isBlocked_ ; /** * required bool IsBlocked = 1; + * @return Whether the isBlocked field is set. */ + @java.lang.Override public boolean hasIsBlocked() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsBlocked = 1; + * @return The isBlocked. */ + @java.lang.Override public boolean getIsBlocked() { return isBlocked_; } /** * required bool IsBlocked = 1; + * @param value The isBlocked to set. + * @return This builder for chaining. */ public Builder setIsBlocked(boolean value) { - bitField0_ |= 0x00000001; + isBlocked_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsBlocked = 1; + * @return This builder for chaining. */ public Builder clearIsBlocked() { bitField0_ = (bitField0_ & ~0x00000001); @@ -5763,12 +6431,14 @@ public Builder clearIsBlocked() { private java.lang.Object comment_ = ""; /** * optional string Comment = 2; + * @return Whether the comment field is set. */ public boolean hasComment() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string Comment = 2; + * @return The comment. */ public java.lang.String getComment() { java.lang.Object ref = comment_; @@ -5786,6 +6456,7 @@ public java.lang.String getComment() { } /** * optional string Comment = 2; + * @return The bytes for comment. */ public com.google.protobuf.ByteString getCommentBytes() { @@ -5802,36 +6473,37 @@ public java.lang.String getComment() { } /** * optional string Comment = 2; + * @param value The comment to set. + * @return This builder for chaining. */ public Builder setComment( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } comment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string Comment = 2; + * @return This builder for chaining. */ public Builder clearComment() { - bitField0_ = (bitField0_ & ~0x00000002); comment_ = getDefaultInstance().getComment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string Comment = 2; + * @param value The bytes for comment to set. + * @return This builder for chaining. */ public Builder setCommentBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + if (value == null) { throw new NullPointerException(); } comment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5839,57 +6511,97 @@ public Builder setCommentBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch) + private static final Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch DEFAULT_INSTANCE; static { - defaultInstance = new AuthorizationPermissionPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch(); + } + + public static Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthorizationPermissionPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.EmployeeToUpdateProtos.AuthorizationPermissionPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.AuthorizationPermissionPatch) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeToUpdate_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeToUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeePermissionsPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeePermissionsPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeDepartmentPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeDepartmentPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeIsAdministratorPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeIsAdministratorPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeDocumentAccessLevelPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeDocumentAccessLevelPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeSelectedDepartmentsPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeSelectedDepartmentsPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeePositionPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeePositionPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_EmployeeCanBeInvitedForChatPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_EmployeeCanBeInvitedForChatPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_AuthorizationPermissionPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_AuthorizationPermissionPatch_fieldAccessorTable; @@ -5897,7 +6609,7 @@ public Builder setCommentBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -5910,7 +6622,7 @@ public Builder setCommentBytes( "Diadoc.Api.Proto.Employees.EmployeePosit" + "ionPatch\022Y\n\023CanBeInvitedForChat\030\003 \001(\0132<." + "Diadoc.Api.Proto.Employees.EmployeeCanBe" + - "InvitedForChatPatch\"\204\004\n\030EmployeePermissi", + "InvitedForChatPatch\"\204\004\n\030EmployeePermissi" + "onsPatch\022G\n\nDepartment\030\001 \001(\01323.Diadoc.Ap" + "i.Proto.Employees.EmployeeDepartmentPatc" + "h\022Q\n\017IsAdministrator\030\002 \001(\01328.Diadoc.Api." + @@ -5920,7 +6632,7 @@ public Builder setCommentBytes( "ccessLevelPatch\022Y\n\023SelectedDepartments\030\004" + " \001(\0132<.Diadoc.Api.Proto.Employees.Employ" + "eeSelectedDepartmentsPatch\022;\n\007Actions\030\005 " + - "\003(\0132*.Diadoc.Api.Proto.Employees.Employe", + "\003(\0132*.Diadoc.Api.Proto.Employees.Employe" + "eAction\022Y\n\027AuthorizationPermission\030\006 \001(\013" + "28.Diadoc.Api.Proto.Employees.Authorizat" + "ionPermissionPatch\"/\n\027EmployeeDepartment" + @@ -5930,27 +6642,19 @@ public Builder setCommentBytes( "\022B\n\023DocumentAccessLevel\030\001 \002(\0162%.Diadoc.A" + "pi.Proto.DocumentAccessLevel\"A\n Employee" + "SelectedDepartmentsPatch\022\035\n\025SelectedDepa" + - "rtmentIds\030\001 \003(\t\")\n\025EmployeePositionPatch", + "rtmentIds\030\001 \003(\t\")\n\025EmployeePositionPatch" + "\022\020\n\010Position\030\001 \001(\t\"?\n EmployeeCanBeInvit" + "edForChatPatch\022\033\n\023CanBeInvitedForChat\030\001 " + "\002(\010\"B\n\034AuthorizationPermissionPatch\022\021\n\tI" + "sBlocked\030\001 \002(\010\022\017\n\007Comment\030\002 \001(\tB\030B\026Emplo" + "yeeToUpdateProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.Employees.EmployeeProtos.getDescriptor(), Diadoc.Api.Proto.OrganizationUserPermissionsProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Employees_EmployeeToUpdate_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Employees_EmployeeToUpdate_fieldAccessorTable = new @@ -6005,6 +6709,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Employees_AuthorizationPermissionPatch_descriptor, new java.lang.String[] { "IsBlocked", "Comment", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Employees.EmployeeProtos.getDescriptor(); Diadoc.Api.Proto.OrganizationUserPermissionsProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Employees/PowersOfAttorney/EmployeePowerOfAttorneyProtos.java b/src/main/java/Diadoc/Api/Proto/Employees/PowersOfAttorney/EmployeePowerOfAttorneyProtos.java index dd8b880a..4d0a8396 100644 --- a/src/main/java/Diadoc/Api/Proto/Employees/PowersOfAttorney/EmployeePowerOfAttorneyProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Employees/PowersOfAttorney/EmployeePowerOfAttorneyProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Employees/PowersOfAttorney/EmployeePowerOfAttorney.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Employees.PowersOfAttorney; public final class EmployeePowerOfAttorneyProtos { private EmployeePowerOfAttorneyProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeePowerOfAttorneyProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface EmployeePowerOfAttorneyListOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyList) @@ -43,79 +60,30 @@ public static final class EmployeePowerOfAttorneyList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyList) EmployeePowerOfAttorneyListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeePowerOfAttorneyList.class.getName()); + } // Use EmployeePowerOfAttorneyList.newBuilder() to construct. private EmployeePowerOfAttorneyList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeePowerOfAttorneyList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeePowerOfAttorneyList defaultInstance; - public static EmployeePowerOfAttorneyList getDefaultInstance() { - return defaultInstance; } - - public EmployeePowerOfAttorneyList getDefaultInstanceForType() { - return defaultInstance; + private EmployeePowerOfAttorneyList() { + powersOfAttorney_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeePowerOfAttorneyList( - 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)) { - powersOfAttorney_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - powersOfAttorney_.add(input.readMessage(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney.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)) { - powersOfAttorney_ = java.util.Collections.unmodifiableList(powersOfAttorney_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyList_fieldAccessorTable @@ -123,32 +91,20 @@ private EmployeePowerOfAttorneyList( Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList.class, Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeePowerOfAttorneyList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeePowerOfAttorneyList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int POWERSOFATTORNEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List powersOfAttorney_; /** * repeated .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorney PowersOfAttorney = 1; */ + @java.lang.Override public java.util.List getPowersOfAttorneyList() { return powersOfAttorney_; } /** * repeated .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorney PowersOfAttorney = 1; */ + @java.lang.Override public java.util.List getPowersOfAttorneyOrBuilderList() { return powersOfAttorney_; @@ -156,27 +112,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorney PowersOfAttorney = 1; */ + @java.lang.Override public int getPowersOfAttorneyCount() { return powersOfAttorney_.size(); } /** * repeated .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorney PowersOfAttorney = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney getPowersOfAttorney(int index) { return powersOfAttorney_.get(index); } /** * repeated .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorney PowersOfAttorney = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyOrBuilder getPowersOfAttorneyOrBuilder( int index) { return powersOfAttorney_.get(index); } - private void initFields() { - powersOfAttorney_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,18 +149,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < powersOfAttorney_.size(); i++) { output.writeMessage(1, powersOfAttorney_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -212,17 +169,53 @@ public int getSerializedSize() { .computeMessageSize(1, powersOfAttorney_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList other = (Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList) obj; + + if (!getPowersOfAttorneyList() + .equals(other.getPowersOfAttorneyList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPowersOfAttorneyCount() > 0) { + hash = (37 * hash) + POWERSOFATTORNEY_FIELD_NUMBER; + hash = (53 * hash) + getPowersOfAttorneyList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorne } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -301,6 +309,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyList_fieldAccessorTable @@ -310,47 +319,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPowersOfAttorneyFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (powersOfAttorneyBuilder_ == null) { powersOfAttorney_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + powersOfAttorney_ = null; powersOfAttorneyBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList build() { Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList result = buildPartial(); if (!result.isInitialized()) { @@ -359,11 +361,18 @@ public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList buildPartial() { Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList result = new Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList result) { if (powersOfAttorneyBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { powersOfAttorney_ = java.util.Collections.unmodifiableList(powersOfAttorney_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,10 +380,13 @@ public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos } else { result.powersOfAttorney_ = powersOfAttorneyBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList) { return mergeFrom((Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList)other); @@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePow } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getPowersOfAttorneyCount(); i++) { if (!getPowersOfAttorney(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney m = + input.readMessage( + Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney.parser(), + extensionRegistry); + if (powersOfAttorneyBuilder_ == null) { + ensurePowersOfAttorneyIsMutable(); + powersOfAttorney_.add(m); + } else { + powersOfAttorneyBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -448,7 +488,7 @@ public Builder mergeFrom( private java.util.List powersOfAttorney_ = java.util.Collections.emptyList(); private void ensurePowersOfAttorneyIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { powersOfAttorney_ = new java.util.ArrayList(powersOfAttorney_); bitField0_ |= 0x00000001; } @@ -677,7 +717,7 @@ public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos powersOfAttorneyBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney, Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney.Builder, Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyOrBuilder>( powersOfAttorney_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); powersOfAttorney_ = null; @@ -688,12 +728,52 @@ public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyList) + private static final Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList DEFAULT_INSTANCE; static { - defaultInstance = new EmployeePowerOfAttorneyList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList(); + } + + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeePowerOfAttorneyList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyList) } public interface EmployeePowerOfAttorneyOrBuilder extends @@ -702,10 +782,12 @@ public interface EmployeePowerOfAttorneyOrBuilder extends /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney PowerOfAttorney = 1; + * @return Whether the powerOfAttorney field is set. */ boolean hasPowerOfAttorney(); /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney PowerOfAttorney = 1; + * @return The powerOfAttorney. */ Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney getPowerOfAttorney(); /** @@ -715,10 +797,12 @@ public interface EmployeePowerOfAttorneyOrBuilder extends /** * required bool IsDefault = 2; + * @return Whether the isDefault field is set. */ boolean hasIsDefault(); /** * required bool IsDefault = 2; + * @return The isDefault. */ boolean getIsDefault(); } @@ -729,86 +813,29 @@ public static final class EmployeePowerOfAttorney extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorney) EmployeePowerOfAttorneyOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeePowerOfAttorney.class.getName()); + } // Use EmployeePowerOfAttorney.newBuilder() to construct. private EmployeePowerOfAttorney(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeePowerOfAttorney(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeePowerOfAttorney defaultInstance; - public static EmployeePowerOfAttorney getDefaultInstance() { - return defaultInstance; } - - public EmployeePowerOfAttorney getDefaultInstanceForType() { - return defaultInstance; + private EmployeePowerOfAttorney() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeePowerOfAttorney( - 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: { - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = powerOfAttorney_.toBuilder(); - } - powerOfAttorney_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(powerOfAttorney_); - powerOfAttorney_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: { - bitField0_ |= 0x00000002; - isDefault_ = input.readBool(); - 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.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorney_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorney_fieldAccessorTable @@ -816,63 +843,54 @@ private EmployeePowerOfAttorney( Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney.class, Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeePowerOfAttorney parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeePowerOfAttorney(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int POWEROFATTORNEY_FIELD_NUMBER = 1; private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney powerOfAttorney_; /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney PowerOfAttorney = 1; + * @return Whether the powerOfAttorney field is set. */ + @java.lang.Override public boolean hasPowerOfAttorney() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney PowerOfAttorney = 1; + * @return The powerOfAttorney. */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney getPowerOfAttorney() { - return powerOfAttorney_; + return powerOfAttorney_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.getDefaultInstance() : powerOfAttorney_; } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney PowerOfAttorney = 1; */ + @java.lang.Override public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyOrBuilder getPowerOfAttorneyOrBuilder() { - return powerOfAttorney_; + return powerOfAttorney_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.getDefaultInstance() : powerOfAttorney_; } public static final int ISDEFAULT_FIELD_NUMBER = 2; - private boolean isDefault_; + private boolean isDefault_ = false; /** * required bool IsDefault = 2; + * @return Whether the isDefault field is set. */ + @java.lang.Override public boolean hasIsDefault() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsDefault = 2; + * @return The isDefault. */ + @java.lang.Override public boolean getIsDefault() { return isDefault_; } - private void initFields() { - powerOfAttorney_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.getDefaultInstance(); - isDefault_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -894,44 +912,93 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, powerOfAttorney_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPowerOfAttorney()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, isDefault_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, powerOfAttorney_); + .computeMessageSize(1, getPowerOfAttorney()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isDefault_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney other = (Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney) obj; + + if (hasPowerOfAttorney() != other.hasPowerOfAttorney()) return false; + if (hasPowerOfAttorney()) { + if (!getPowerOfAttorney() + .equals(other.getPowerOfAttorney())) return false; + } + if (hasIsDefault() != other.hasIsDefault()) return false; + if (hasIsDefault()) { + if (getIsDefault() + != other.getIsDefault()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPowerOfAttorney()) { + hash = (37 * hash) + POWEROFATTORNEY_FIELD_NUMBER; + hash = (53 * hash) + getPowerOfAttorney().hashCode(); + } + if (hasIsDefault()) { + hash = (37 * hash) + ISDEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDefault()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -955,42 +1022,57 @@ public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorne } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1010,6 +1092,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorney_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorney_fieldAccessorTable @@ -1028,40 +1111,36 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getPowerOfAttorneyFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (powerOfAttorneyBuilder_ == null) { - powerOfAttorney_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.getDefaultInstance(); - } else { - powerOfAttorneyBuilder_.clear(); + bitField0_ = 0; + powerOfAttorney_ = null; + if (powerOfAttorneyBuilder_ != null) { + powerOfAttorneyBuilder_.dispose(); + powerOfAttorneyBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); isDefault_ = false; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorney_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney build() { Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney result = buildPartial(); if (!result.isInitialized()) { @@ -1070,27 +1149,31 @@ public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney buildPartial() { Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney result = new Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.powerOfAttorney_ = powerOfAttorneyBuilder_ == null + ? powerOfAttorney_ + : powerOfAttorneyBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (powerOfAttorneyBuilder_ == null) { - result.powerOfAttorney_ = powerOfAttorney_; - } else { - result.powerOfAttorney_ = powerOfAttorneyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isDefault_ = isDefault_; to_bitField0_ |= 0x00000002; } - result.isDefault_ = isDefault_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney) { return mergeFrom((Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney)other); @@ -1109,59 +1192,86 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePow setIsDefault(other.getIsDefault()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasPowerOfAttorney()) { - return false; } if (!hasIsDefault()) { - return false; } if (!getPowerOfAttorney().isInitialized()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPowerOfAttorneyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isDefault_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney powerOfAttorney_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.getDefaultInstance(); + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney powerOfAttorney_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyOrBuilder> powerOfAttorneyBuilder_; /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney PowerOfAttorney = 1; + * @return Whether the powerOfAttorney field is set. */ public boolean hasPowerOfAttorney() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney PowerOfAttorney = 1; + * @return The powerOfAttorney. */ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney getPowerOfAttorney() { if (powerOfAttorneyBuilder_ == null) { - return powerOfAttorney_; + return powerOfAttorney_ == null ? Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.getDefaultInstance() : powerOfAttorney_; } else { return powerOfAttorneyBuilder_.getMessage(); } @@ -1175,11 +1285,11 @@ public Builder setPowerOfAttorney(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttor throw new NullPointerException(); } powerOfAttorney_ = value; - onChanged(); } else { powerOfAttorneyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1189,11 +1299,11 @@ public Builder setPowerOfAttorney( Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.Builder builderForValue) { if (powerOfAttorneyBuilder_ == null) { powerOfAttorney_ = builderForValue.build(); - onChanged(); } else { powerOfAttorneyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1201,31 +1311,33 @@ public Builder setPowerOfAttorney( */ public Builder mergePowerOfAttorney(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney value) { if (powerOfAttorneyBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - powerOfAttorney_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.getDefaultInstance()) { - powerOfAttorney_ = - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.newBuilder(powerOfAttorney_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + powerOfAttorney_ != null && + powerOfAttorney_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.getDefaultInstance()) { + getPowerOfAttorneyBuilder().mergeFrom(value); } else { powerOfAttorney_ = value; } - onChanged(); } else { powerOfAttorneyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (powerOfAttorney_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * required .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney PowerOfAttorney = 1; */ public Builder clearPowerOfAttorney() { - if (powerOfAttorneyBuilder_ == null) { - powerOfAttorney_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.getDefaultInstance(); - onChanged(); - } else { - powerOfAttorneyBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + powerOfAttorney_ = null; + if (powerOfAttorneyBuilder_ != null) { + powerOfAttorneyBuilder_.dispose(); + powerOfAttorneyBuilder_ = null; + } + onChanged(); return this; } /** @@ -1243,7 +1355,8 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyOr if (powerOfAttorneyBuilder_ != null) { return powerOfAttorneyBuilder_.getMessageOrBuilder(); } else { - return powerOfAttorney_; + return powerOfAttorney_ == null ? + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney.getDefaultInstance() : powerOfAttorney_; } } /** @@ -1266,27 +1379,35 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyOr private boolean isDefault_ ; /** * required bool IsDefault = 2; + * @return Whether the isDefault field is set. */ + @java.lang.Override public boolean hasIsDefault() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsDefault = 2; + * @return The isDefault. */ + @java.lang.Override public boolean getIsDefault() { return isDefault_; } /** * required bool IsDefault = 2; + * @param value The isDefault to set. + * @return This builder for chaining. */ public Builder setIsDefault(boolean value) { - bitField0_ |= 0x00000002; + isDefault_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool IsDefault = 2; + * @return This builder for chaining. */ public Builder clearIsDefault() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1298,12 +1419,52 @@ public Builder clearIsDefault() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorney) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorney) + private static final Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney DEFAULT_INSTANCE; static { - defaultInstance = new EmployeePowerOfAttorney(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney(); + } + + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeePowerOfAttorney parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorney getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorney) } public interface EmployeePowerOfAttorneyToUpdateOrBuilder extends @@ -1312,10 +1473,12 @@ public interface EmployeePowerOfAttorneyToUpdateOrBuilder extends /** * optional .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch IsDefaultPatch = 1; + * @return Whether the isDefaultPatch field is set. */ boolean hasIsDefaultPatch(); /** * optional .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch IsDefaultPatch = 1; + * @return The isDefaultPatch. */ Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch getIsDefaultPatch(); /** @@ -1330,81 +1493,29 @@ public static final class EmployeePowerOfAttorneyToUpdate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyToUpdate) EmployeePowerOfAttorneyToUpdateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeePowerOfAttorneyToUpdate.class.getName()); + } // Use EmployeePowerOfAttorneyToUpdate.newBuilder() to construct. private EmployeePowerOfAttorneyToUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeePowerOfAttorneyToUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeePowerOfAttorneyToUpdate defaultInstance; - public static EmployeePowerOfAttorneyToUpdate getDefaultInstance() { - return defaultInstance; } - - public EmployeePowerOfAttorneyToUpdate getDefaultInstanceForType() { - return defaultInstance; + private EmployeePowerOfAttorneyToUpdate() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeePowerOfAttorneyToUpdate( - 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: { - Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = isDefaultPatch_.toBuilder(); - } - isDefaultPatch_ = input.readMessage(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isDefaultPatch_); - isDefaultPatch_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - 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.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyToUpdate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyToUpdate_fieldAccessorTable @@ -1412,47 +1523,35 @@ private EmployeePowerOfAttorneyToUpdate( Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate.class, Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeePowerOfAttorneyToUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeePowerOfAttorneyToUpdate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISDEFAULTPATCH_FIELD_NUMBER = 1; private Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch isDefaultPatch_; /** * optional .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch IsDefaultPatch = 1; + * @return Whether the isDefaultPatch field is set. */ + @java.lang.Override public boolean hasIsDefaultPatch() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch IsDefaultPatch = 1; + * @return The isDefaultPatch. */ + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch getIsDefaultPatch() { - return isDefaultPatch_; + return isDefaultPatch_ == null ? Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance() : isDefaultPatch_; } /** * optional .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch IsDefaultPatch = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatchOrBuilder getIsDefaultPatchOrBuilder() { - return isDefaultPatch_; + return isDefaultPatch_ == null ? Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance() : isDefaultPatch_; } - private void initFields() { - isDefaultPatch_ = Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1468,37 +1567,76 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, isDefaultPatch_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getIsDefaultPatch()); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, isDefaultPatch_); + .computeMessageSize(1, getIsDefaultPatch()); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate other = (Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate) obj; + + if (hasIsDefaultPatch() != other.hasIsDefaultPatch()) return false; + if (hasIsDefaultPatch()) { + if (!getIsDefaultPatch() + .equals(other.getIsDefaultPatch())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsDefaultPatch()) { + hash = (37 * hash) + ISDEFAULTPATCH_FIELD_NUMBER; + hash = (53 * hash) + getIsDefaultPatch().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1522,42 +1660,57 @@ public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorne } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1577,6 +1730,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyToUpdate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyToUpdate_fieldAccessorTable @@ -1595,38 +1749,35 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getIsDefaultPatchFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); - if (isDefaultPatchBuilder_ == null) { - isDefaultPatch_ = Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance(); - } else { - isDefaultPatchBuilder_.clear(); + bitField0_ = 0; + isDefaultPatch_ = null; + if (isDefaultPatchBuilder_ != null) { + isDefaultPatchBuilder_.dispose(); + isDefaultPatchBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyToUpdate_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate build() { Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate result = buildPartial(); if (!result.isInitialized()) { @@ -1635,23 +1786,27 @@ public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate buildPartial() { Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate result = new Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isDefaultPatch_ = isDefaultPatchBuilder_ == null + ? isDefaultPatch_ + : isDefaultPatchBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (isDefaultPatchBuilder_ == null) { - result.isDefaultPatch_ = isDefaultPatch_; - } else { - result.isDefaultPatch_ = isDefaultPatchBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate) { return mergeFrom((Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate)other); @@ -1667,53 +1822,77 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePow mergeIsDefaultPatch(other.getIsDefaultPatch()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (hasIsDefaultPatch()) { if (!getIsDefaultPatch().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getIsDefaultPatchFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch isDefaultPatch_ = Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance(); + private Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch isDefaultPatch_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch, Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.Builder, Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatchOrBuilder> isDefaultPatchBuilder_; /** * optional .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch IsDefaultPatch = 1; + * @return Whether the isDefaultPatch field is set. */ public boolean hasIsDefaultPatch() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch IsDefaultPatch = 1; + * @return The isDefaultPatch. */ public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch getIsDefaultPatch() { if (isDefaultPatchBuilder_ == null) { - return isDefaultPatch_; + return isDefaultPatch_ == null ? Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance() : isDefaultPatch_; } else { return isDefaultPatchBuilder_.getMessage(); } @@ -1727,11 +1906,11 @@ public Builder setIsDefaultPatch(Diadoc.Api.Proto.Employees.PowersOfAttorney.Emp throw new NullPointerException(); } isDefaultPatch_ = value; - onChanged(); } else { isDefaultPatchBuilder_.setMessage(value); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1741,11 +1920,11 @@ public Builder setIsDefaultPatch( Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.Builder builderForValue) { if (isDefaultPatchBuilder_ == null) { isDefaultPatch_ = builderForValue.build(); - onChanged(); } else { isDefaultPatchBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1753,31 +1932,33 @@ public Builder setIsDefaultPatch( */ public Builder mergeIsDefaultPatch(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch value) { if (isDefaultPatchBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - isDefaultPatch_ != Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance()) { - isDefaultPatch_ = - Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.newBuilder(isDefaultPatch_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + isDefaultPatch_ != null && + isDefaultPatch_ != Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance()) { + getIsDefaultPatchBuilder().mergeFrom(value); } else { isDefaultPatch_ = value; } - onChanged(); } else { isDefaultPatchBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + if (isDefaultPatch_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch IsDefaultPatch = 1; */ public Builder clearIsDefaultPatch() { - if (isDefaultPatchBuilder_ == null) { - isDefaultPatch_ = Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance(); - onChanged(); - } else { - isDefaultPatchBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000001); + isDefaultPatch_ = null; + if (isDefaultPatchBuilder_ != null) { + isDefaultPatchBuilder_.dispose(); + isDefaultPatchBuilder_ = null; + } + onChanged(); return this; } /** @@ -1795,7 +1976,8 @@ public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos if (isDefaultPatchBuilder_ != null) { return isDefaultPatchBuilder_.getMessageOrBuilder(); } else { - return isDefaultPatch_; + return isDefaultPatch_ == null ? + Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance() : isDefaultPatch_; } } /** @@ -1818,12 +2000,52 @@ public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyToUpdate) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyToUpdate) + private static final Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate DEFAULT_INSTANCE; static { - defaultInstance = new EmployeePowerOfAttorneyToUpdate(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate(); + } + + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeePowerOfAttorneyToUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyToUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyToUpdate) } public interface EmployeePowerOfAttorneyIsDefaultPatchOrBuilder extends @@ -1832,10 +2054,12 @@ public interface EmployeePowerOfAttorneyIsDefaultPatchOrBuilder extends /** * required bool IsDefault = 1; + * @return Whether the isDefault field is set. */ boolean hasIsDefault(); /** * required bool IsDefault = 1; + * @return The isDefault. */ boolean getIsDefault(); } @@ -1846,73 +2070,29 @@ public static final class EmployeePowerOfAttorneyIsDefaultPatch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch) EmployeePowerOfAttorneyIsDefaultPatchOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeePowerOfAttorneyIsDefaultPatch.class.getName()); + } // Use EmployeePowerOfAttorneyIsDefaultPatch.newBuilder() to construct. private EmployeePowerOfAttorneyIsDefaultPatch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeePowerOfAttorneyIsDefaultPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeePowerOfAttorneyIsDefaultPatch defaultInstance; - public static EmployeePowerOfAttorneyIsDefaultPatch getDefaultInstance() { - return defaultInstance; } - - public EmployeePowerOfAttorneyIsDefaultPatch getDefaultInstanceForType() { - return defaultInstance; + private EmployeePowerOfAttorneyIsDefaultPatch() { } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeePowerOfAttorneyIsDefaultPatch( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - isDefault_ = input.readBool(); - 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.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyIsDefaultPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyIsDefaultPatch_fieldAccessorTable @@ -1920,41 +2100,28 @@ private EmployeePowerOfAttorneyIsDefaultPatch( Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.class, Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeePowerOfAttorneyIsDefaultPatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeePowerOfAttorneyIsDefaultPatch(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ISDEFAULT_FIELD_NUMBER = 1; - private boolean isDefault_; + private boolean isDefault_ = false; /** * required bool IsDefault = 1; + * @return Whether the isDefault field is set. */ + @java.lang.Override public boolean hasIsDefault() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsDefault = 1; + * @return The isDefault. */ + @java.lang.Override public boolean getIsDefault() { return isDefault_; } - private void initFields() { - isDefault_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1968,37 +2135,77 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isDefault_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isDefault_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch other = (Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch) obj; + + if (hasIsDefault() != other.hasIsDefault()) return false; + if (hasIsDefault()) { + if (getIsDefault() + != other.getIsDefault()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIsDefault()) { + hash = (37 * hash) + ISDEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDefault()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2022,42 +2229,57 @@ public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorne } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2077,6 +2299,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyIsDefaultPatch_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyIsDefaultPatch_fieldAccessorTable @@ -2086,42 +2309,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; isDefault_ = false; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyIsDefaultPatch_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch build() { Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch result = buildPartial(); if (!result.isInitialized()) { @@ -2130,19 +2345,25 @@ public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch buildPartial() { Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch result = new Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isDefault_ = isDefault_; to_bitField0_ |= 0x00000001; } - result.isDefault_ = isDefault_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch) { return mergeFrom((Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch)other); @@ -2158,32 +2379,52 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePow setIsDefault(other.getIsDefault()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasIsDefault()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + isDefault_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2191,27 +2432,35 @@ public Builder mergeFrom( private boolean isDefault_ ; /** * required bool IsDefault = 1; + * @return Whether the isDefault field is set. */ + @java.lang.Override public boolean hasIsDefault() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bool IsDefault = 1; + * @return The isDefault. */ + @java.lang.Override public boolean getIsDefault() { return isDefault_; } /** * required bool IsDefault = 1; + * @param value The isDefault to set. + * @return This builder for chaining. */ public Builder setIsDefault(boolean value) { - bitField0_ |= 0x00000001; + isDefault_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required bool IsDefault = 1; + * @return This builder for chaining. */ public Builder clearIsDefault() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2223,32 +2472,72 @@ public Builder clearIsDefault() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch) + private static final Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch DEFAULT_INSTANCE; static { - defaultInstance = new EmployeePowerOfAttorneyIsDefaultPatch(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch(); + } + + public static Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeePowerOfAttorneyIsDefaultPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyProtos.EmployeePowerOfAttorneyIsDefaultPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.PowersOfAttorney.EmployeePowerOfAttorneyIsDefaultPatch) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyList_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorney_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorney_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyToUpdate_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyToUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyIsDefaultPatch_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyIsDefaultPatch_fieldAccessorTable; @@ -2256,7 +2545,7 @@ public Builder clearIsDefault() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -2269,7 +2558,7 @@ public Builder clearIsDefault() { "torney.EmployeePowerOfAttorney\"y\n\027Employ" + "eePowerOfAttorney\022K\n\017PowerOfAttorney\030\001 \002" + "(\01322.Diadoc.Api.Proto.PowersOfAttorney.P" + - "owerOfAttorney\022\021\n\tIsDefault\030\002 \002(\010\"\215\001\n\037Em", + "owerOfAttorney\022\021\n\tIsDefault\030\002 \002(\010\"\215\001\n\037Em" + "ployeePowerOfAttorneyToUpdate\022j\n\016IsDefau" + "ltPatch\030\001 \001(\0132R.Diadoc.Api.Proto.Employe" + "es.PowersOfAttorney.EmployeePowerOfAttor" + @@ -2277,19 +2566,11 @@ public Builder clearIsDefault() { "rneyIsDefaultPatch\022\021\n\tIsDefault\030\001 \002(\010B\037B" + "\035EmployeePowerOfAttorneyProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyList_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyList_fieldAccessorTable = new @@ -2314,6 +2595,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Employees_PowersOfAttorney_EmployeePowerOfAttorneyIsDefaultPatch_descriptor, new java.lang.String[] { "IsDefault", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.getDescriptor(); } diff --git a/src/main/java/Diadoc/Api/Proto/Employees/Subscriptions/SubscriptionProtos.java b/src/main/java/Diadoc/Api/Proto/Employees/Subscriptions/SubscriptionProtos.java index 1e5153c0..2454b44e 100644 --- a/src/main/java/Diadoc/Api/Proto/Employees/Subscriptions/SubscriptionProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Employees/Subscriptions/SubscriptionProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Employees/Subscriptions/Subscription.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Employees.Subscriptions; public final class SubscriptionProtos { private SubscriptionProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SubscriptionProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface EmployeeSubscriptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Employees.Subscriptions.EmployeeSubscriptions) @@ -43,79 +60,30 @@ public static final class EmployeeSubscriptions extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.Subscriptions.EmployeeSubscriptions) EmployeeSubscriptionsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EmployeeSubscriptions.class.getName()); + } // Use EmployeeSubscriptions.newBuilder() to construct. private EmployeeSubscriptions(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmployeeSubscriptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmployeeSubscriptions defaultInstance; - public static EmployeeSubscriptions getDefaultInstance() { - return defaultInstance; } - - public EmployeeSubscriptions getDefaultInstanceForType() { - return defaultInstance; + private EmployeeSubscriptions() { + subscriptions_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmployeeSubscriptions( - 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)) { - subscriptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - subscriptions_.add(input.readMessage(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.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)) { - subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_EmployeeSubscriptions_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_EmployeeSubscriptions_fieldAccessorTable @@ -123,32 +91,20 @@ private EmployeeSubscriptions( Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions.class, Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmployeeSubscriptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployeeSubscriptions(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List subscriptions_; /** * repeated .Diadoc.Api.Proto.Employees.Subscriptions.Subscription Subscriptions = 1; */ + @java.lang.Override public java.util.List getSubscriptionsList() { return subscriptions_; } /** * repeated .Diadoc.Api.Proto.Employees.Subscriptions.Subscription Subscriptions = 1; */ + @java.lang.Override public java.util.List getSubscriptionsOrBuilderList() { return subscriptions_; @@ -156,27 +112,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Employees.Subscriptions.Subscription Subscriptions = 1; */ + @java.lang.Override public int getSubscriptionsCount() { return subscriptions_.size(); } /** * repeated .Diadoc.Api.Proto.Employees.Subscriptions.Subscription Subscriptions = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription getSubscriptions(int index) { return subscriptions_.get(index); } /** * repeated .Diadoc.Api.Proto.Employees.Subscriptions.Subscription Subscriptions = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionOrBuilder getSubscriptionsOrBuilder( int index) { return subscriptions_.get(index); } - private void initFields() { - subscriptions_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,18 +149,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < subscriptions_.size(); i++) { output.writeMessage(1, subscriptions_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -212,17 +169,53 @@ public int getSerializedSize() { .computeMessageSize(1, subscriptions_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions other = (Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions) obj; + + if (!getSubscriptionsList() + .equals(other.getSubscriptionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubscriptionsCount() > 0) { + hash = (37 * hash) + SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSubscriptionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Employ } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -301,6 +309,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_EmployeeSubscriptions_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_EmployeeSubscriptions_fieldAccessorTable @@ -310,47 +319,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getSubscriptionsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (subscriptionsBuilder_ == null) { subscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + subscriptions_ = null; subscriptionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_EmployeeSubscriptions_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions build() { Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions result = buildPartial(); if (!result.isInitialized()) { @@ -359,11 +361,18 @@ public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubsc return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions buildPartial() { Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions result = new Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions result) { if (subscriptionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,10 +380,13 @@ public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubsc } else { result.subscriptions_ = subscriptionsBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions) { return mergeFrom((Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions)other); @@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionPr } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getSubscriptionsCount(); i++) { if (!getSubscriptions(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription m = + input.readMessage( + Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.parser(), + extensionRegistry); + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + subscriptions_.add(m); + } else { + subscriptionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -448,7 +488,7 @@ public Builder mergeFrom( private java.util.List subscriptions_ = java.util.Collections.emptyList(); private void ensureSubscriptionsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { subscriptions_ = new java.util.ArrayList(subscriptions_); bitField0_ |= 0x00000001; } @@ -677,7 +717,7 @@ public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription. subscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription, Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.Builder, Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionOrBuilder>( subscriptions_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); subscriptions_ = null; @@ -688,12 +728,52 @@ public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription. // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.Subscriptions.EmployeeSubscriptions) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.Subscriptions.EmployeeSubscriptions) + private static final Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions DEFAULT_INSTANCE; static { - defaultInstance = new EmployeeSubscriptions(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions(); + } + + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployeeSubscriptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.EmployeeSubscriptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.Subscriptions.EmployeeSubscriptions) } public interface SubscriptionsToUpdateOrBuilder extends @@ -731,79 +811,30 @@ public static final class SubscriptionsToUpdate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionsToUpdate) SubscriptionsToUpdateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + SubscriptionsToUpdate.class.getName()); + } // Use SubscriptionsToUpdate.newBuilder() to construct. private SubscriptionsToUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SubscriptionsToUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SubscriptionsToUpdate defaultInstance; - public static SubscriptionsToUpdate getDefaultInstance() { - return defaultInstance; } - - public SubscriptionsToUpdate getDefaultInstanceForType() { - return defaultInstance; + private SubscriptionsToUpdate() { + subscriptions_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SubscriptionsToUpdate( - 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)) { - subscriptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - subscriptions_.add(input.readMessage(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.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)) { - subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_SubscriptionsToUpdate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_SubscriptionsToUpdate_fieldAccessorTable @@ -811,32 +842,20 @@ private SubscriptionsToUpdate( Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate.class, Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SubscriptionsToUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubscriptionsToUpdate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List subscriptions_; /** * repeated .Diadoc.Api.Proto.Employees.Subscriptions.Subscription Subscriptions = 1; */ + @java.lang.Override public java.util.List getSubscriptionsList() { return subscriptions_; } /** * repeated .Diadoc.Api.Proto.Employees.Subscriptions.Subscription Subscriptions = 1; */ + @java.lang.Override public java.util.List getSubscriptionsOrBuilderList() { return subscriptions_; @@ -844,27 +863,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Employees.Subscriptions.Subscription Subscriptions = 1; */ + @java.lang.Override public int getSubscriptionsCount() { return subscriptions_.size(); } /** * repeated .Diadoc.Api.Proto.Employees.Subscriptions.Subscription Subscriptions = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription getSubscriptions(int index) { return subscriptions_.get(index); } /** * repeated .Diadoc.Api.Proto.Employees.Subscriptions.Subscription Subscriptions = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionOrBuilder getSubscriptionsOrBuilder( int index) { return subscriptions_.get(index); } - private void initFields() { - subscriptions_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -880,18 +900,18 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < subscriptions_.size(); i++) { output.writeMessage(1, subscriptions_.get(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -900,17 +920,53 @@ public int getSerializedSize() { .computeMessageSize(1, subscriptions_.get(i)); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate other = (Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate) obj; + + if (!getSubscriptionsList() + .equals(other.getSubscriptionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubscriptionsCount() > 0) { + hash = (37 * hash) + SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSubscriptionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -934,42 +990,57 @@ public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscr } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -989,6 +1060,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_SubscriptionsToUpdate_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_SubscriptionsToUpdate_fieldAccessorTable @@ -998,47 +1070,40 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getSubscriptionsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (subscriptionsBuilder_ == null) { subscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + subscriptions_ = null; subscriptionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_SubscriptionsToUpdate_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate build() { Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate result = buildPartial(); if (!result.isInitialized()) { @@ -1047,11 +1112,18 @@ public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscriptions return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate buildPartial() { Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate result = new Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate result) { if (subscriptionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1059,10 +1131,13 @@ public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscriptions } else { result.subscriptions_ = subscriptionsBuilder_.build(); } - onBuilt(); - return result; } + private void buildPartial0(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate) { return mergeFrom((Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate)other); @@ -1101,34 +1176,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionPr } } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getSubscriptionsCount(); i++) { if (!getSubscriptions(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription m = + input.readMessage( + Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.parser(), + extensionRegistry); + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + subscriptions_.add(m); + } else { + subscriptionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1136,7 +1239,7 @@ public Builder mergeFrom( private java.util.List subscriptions_ = java.util.Collections.emptyList(); private void ensureSubscriptionsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { subscriptions_ = new java.util.ArrayList(subscriptions_); bitField0_ |= 0x00000001; } @@ -1365,7 +1468,7 @@ public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription. subscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription, Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.Builder, Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionOrBuilder>( subscriptions_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); subscriptions_ = null; @@ -1376,12 +1479,52 @@ public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription. // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionsToUpdate) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionsToUpdate) + private static final Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate DEFAULT_INSTANCE; static { - defaultInstance = new SubscriptionsToUpdate(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate(); + } + + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscriptionsToUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.SubscriptionsToUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionsToUpdate) } public interface SubscriptionOrBuilder extends @@ -1390,24 +1533,29 @@ public interface SubscriptionOrBuilder extends /** * required string Id = 1; + * @return Whether the id field is set. */ boolean hasId(); /** * required string Id = 1; + * @return The id. */ java.lang.String getId(); /** * required string Id = 1; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * required bool IsSubscribed = 2; + * @return Whether the isSubscribed field is set. */ boolean hasIsSubscribed(); /** * required bool IsSubscribed = 2; + * @return The isSubscribed. */ boolean getIsSubscribed(); } @@ -1418,79 +1566,30 @@ public static final class Subscription extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Employees.Subscriptions.Subscription) SubscriptionOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Subscription.class.getName()); + } // Use Subscription.newBuilder() to construct. private Subscription(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Subscription(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Subscription defaultInstance; - public static Subscription getDefaultInstance() { - return defaultInstance; } - - public Subscription getDefaultInstanceForType() { - return defaultInstance; + private Subscription() { + id_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Subscription( - 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; - id_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - isSubscribed_ = input.readBool(); - 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.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_Subscription_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_Subscription_fieldAccessorTable @@ -1498,33 +1597,23 @@ private Subscription( Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.class, Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Subscription parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Subscription(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * required string Id = 1; + * @return Whether the id field is set. */ + @java.lang.Override public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Id = 1; + * @return The id. */ + @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { @@ -1541,7 +1630,9 @@ public java.lang.String getId() { } /** * required string Id = 1; + * @return The bytes for id. */ + @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; @@ -1557,25 +1648,26 @@ public java.lang.String getId() { } public static final int ISSUBSCRIBED_FIELD_NUMBER = 2; - private boolean isSubscribed_; + private boolean isSubscribed_ = false; /** * required bool IsSubscribed = 2; + * @return Whether the isSubscribed field is set. */ + @java.lang.Override public boolean hasIsSubscribed() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsSubscribed = 2; + * @return The isSubscribed. */ + @java.lang.Override public boolean getIsSubscribed() { return isSubscribed_; } - private void initFields() { - id_ = ""; - isSubscribed_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1593,44 +1685,92 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, isSubscribed_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isSubscribed_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription other = (Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasIsSubscribed() != other.hasIsSubscribed()) return false; + if (hasIsSubscribed()) { + if (getIsSubscribed() + != other.getIsSubscribed()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasIsSubscribed()) { + hash = (37 * hash) + ISSUBSCRIBED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsSubscribed()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1654,42 +1794,57 @@ public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscr } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1709,6 +1864,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_Subscription_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_Subscription_fieldAccessorTable @@ -1718,44 +1874,35 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); isSubscribed_ = false; - bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.internal_static_Diadoc_Api_Proto_Employees_Subscriptions_Subscription_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription getDefaultInstanceForType() { return Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription build() { Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription result = buildPartial(); if (!result.isInitialized()) { @@ -1764,23 +1911,29 @@ public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription return result; } + @java.lang.Override public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription buildPartial() { Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription result = new Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; to_bitField0_ |= 0x00000001; } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isSubscribed_ = isSubscribed_; to_bitField0_ |= 0x00000002; } - result.isSubscribed_ = isSubscribed_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription) { return mergeFrom((Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription)other); @@ -1793,44 +1946,68 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription other) { if (other == Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription.getDefaultInstance()) return this; if (other.hasId()) { - bitField0_ |= 0x00000001; id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasIsSubscribed()) { setIsSubscribed(other.getIsSubscribed()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasId()) { - return false; } if (!hasIsSubscribed()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isSubscribed_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1838,12 +2015,14 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** * required string Id = 1; + * @return Whether the id field is set. */ public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Id = 1; + * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -1861,6 +2040,7 @@ public java.lang.String getId() { } /** * required string Id = 1; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -1877,36 +2057,37 @@ public java.lang.String getId() { } /** * required string Id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Id = 1; + * @return This builder for chaining. */ public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1914,27 +2095,35 @@ public Builder setIdBytes( private boolean isSubscribed_ ; /** * required bool IsSubscribed = 2; + * @return Whether the isSubscribed field is set. */ + @java.lang.Override public boolean hasIsSubscribed() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bool IsSubscribed = 2; + * @return The isSubscribed. */ + @java.lang.Override public boolean getIsSubscribed() { return isSubscribed_; } /** * required bool IsSubscribed = 2; + * @param value The isSubscribed to set. + * @return This builder for chaining. */ public Builder setIsSubscribed(boolean value) { - bitField0_ |= 0x00000002; + isSubscribed_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * required bool IsSubscribed = 2; + * @return This builder for chaining. */ public Builder clearIsSubscribed() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1946,27 +2135,67 @@ public Builder clearIsSubscribed() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Employees.Subscriptions.Subscription) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.Subscriptions.Subscription) + private static final Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription DEFAULT_INSTANCE; static { - defaultInstance = new Subscription(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription(); + } + + public static Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subscription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Employees.Subscriptions.SubscriptionProtos.Subscription getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Employees.Subscriptions.Subscription) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_Subscriptions_EmployeeSubscriptions_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_Subscriptions_EmployeeSubscriptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_Subscriptions_SubscriptionsToUpdate_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_Subscriptions_SubscriptionsToUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Employees_Subscriptions_Subscription_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Employees_Subscriptions_Subscription_fieldAccessorTable; @@ -1974,7 +2203,7 @@ public Builder clearIsSubscribed() { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -1989,18 +2218,10 @@ public Builder clearIsSubscribed() { "(\t\022\024\n\014IsSubscribed\030\002 \002(\010B\024B\022Subscription" + "Protos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Employees_Subscriptions_EmployeeSubscriptions_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Employees_Subscriptions_EmployeeSubscriptions_fieldAccessorTable = new @@ -2019,6 +2240,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Employees_Subscriptions_Subscription_descriptor, new java.lang.String[] { "Id", "IsSubscribed", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Events/CancellationInfoProtos.java b/src/main/java/Diadoc/Api/Proto/Events/CancellationInfoProtos.java index 7bb7656b..3539a936 100644 --- a/src/main/java/Diadoc/Api/Proto/Events/CancellationInfoProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Events/CancellationInfoProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Events/CancellationInfo.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Events; public final class CancellationInfoProtos { private CancellationInfoProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CancellationInfoProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CancellationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Events.CancellationInfo) @@ -14,14 +31,17 @@ public interface CancellationInfoOrBuilder extends /** * required string Author = 1; + * @return Whether the author field is set. */ boolean hasAuthor(); /** * required string Author = 1; + * @return The author. */ java.lang.String getAuthor(); /** * required string Author = 1; + * @return The bytes for author. */ com.google.protobuf.ByteString getAuthorBytes(); @@ -33,74 +53,30 @@ public static final class CancellationInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Events.CancellationInfo) CancellationInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CancellationInfo.class.getName()); + } // Use CancellationInfo.newBuilder() to construct. private CancellationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private CancellationInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CancellationInfo defaultInstance; - public static CancellationInfo getDefaultInstance() { - return defaultInstance; - } - - public CancellationInfo getDefaultInstanceForType() { - return defaultInstance; + private CancellationInfo() { + author_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CancellationInfo( - 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; - author_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Events.CancellationInfoProtos.internal_static_Diadoc_Api_Proto_Events_CancellationInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.CancellationInfoProtos.internal_static_Diadoc_Api_Proto_Events_CancellationInfo_fieldAccessorTable @@ -108,33 +84,23 @@ private CancellationInfo( Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo.class, Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CancellationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CancellationInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int AUTHOR_FIELD_NUMBER = 1; - private java.lang.Object author_; + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; /** * required string Author = 1; + * @return Whether the author field is set. */ + @java.lang.Override public boolean hasAuthor() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Author = 1; + * @return The author. */ + @java.lang.Override public java.lang.String getAuthor() { java.lang.Object ref = author_; if (ref instanceof java.lang.String) { @@ -151,7 +117,9 @@ public java.lang.String getAuthor() { } /** * required string Author = 1; + * @return The bytes for author. */ + @java.lang.Override public com.google.protobuf.ByteString getAuthorBytes() { java.lang.Object ref = author_; @@ -166,10 +134,8 @@ public java.lang.String getAuthor() { } } - private void initFields() { - author_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -183,37 +149,75 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getAuthorBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, author_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getAuthorBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, author_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo other = (Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo) obj; + + if (hasAuthor() != other.hasAuthor()) return false; + if (hasAuthor()) { + if (!getAuthor() + .equals(other.getAuthor())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAuthor()) { + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -237,42 +241,57 @@ public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo pa } public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -292,6 +311,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Events.CancellationInfoProtos.internal_static_Diadoc_Api_Proto_Events_CancellationInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.CancellationInfoProtos.internal_static_Diadoc_Api_Proto_Events_CancellationInfo_fieldAccessorTable @@ -301,42 +321,34 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; author_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Events.CancellationInfoProtos.internal_static_Diadoc_Api_Proto_Events_CancellationInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo build() { Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo result = buildPartial(); if (!result.isInitialized()) { @@ -345,19 +357,25 @@ public Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo buildPartial() { Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo result = new Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.author_ = author_; to_bitField0_ |= 0x00000001; } - result.author_ = author_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo) { return mergeFrom((Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo)other); @@ -370,37 +388,57 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo other) { if (other == Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo.getDefaultInstance()) return this; if (other.hasAuthor()) { - bitField0_ |= 0x00000001; author_ = other.author_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasAuthor()) { - return false; } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + author_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -408,12 +446,14 @@ public Builder mergeFrom( private java.lang.Object author_ = ""; /** * required string Author = 1; + * @return Whether the author field is set. */ public boolean hasAuthor() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string Author = 1; + * @return The author. */ public java.lang.String getAuthor() { java.lang.Object ref = author_; @@ -431,6 +471,7 @@ public java.lang.String getAuthor() { } /** * required string Author = 1; + * @return The bytes for author. */ public com.google.protobuf.ByteString getAuthorBytes() { @@ -447,36 +488,37 @@ public java.lang.String getAuthor() { } /** * required string Author = 1; + * @param value The author to set. + * @return This builder for chaining. */ public Builder setAuthor( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } author_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string Author = 1; + * @return This builder for chaining. */ public Builder clearAuthor() { - bitField0_ = (bitField0_ & ~0x00000001); author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string Author = 1; + * @param value The bytes for author to set. + * @return This builder for chaining. */ public Builder setAuthorBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } author_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -484,17 +526,57 @@ public Builder setAuthorBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Events.CancellationInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.CancellationInfo) + private static final Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo DEFAULT_INSTANCE; static { - defaultInstance = new CancellationInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo(); + } + + public static Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancellationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Events.CancellationInfoProtos.CancellationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.CancellationInfo) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Events_CancellationInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Events_CancellationInfo_fieldAccessorTable; @@ -502,7 +584,7 @@ public Builder setAuthorBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -510,24 +592,17 @@ public Builder setAuthorBytes( "Api.Proto.Events\"\"\n\020CancellationInfo\022\016\n\006" + "Author\030\001 \002(\tB\030B\026CancellationInfoProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); internal_static_Diadoc_Api_Proto_Events_CancellationInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Events_CancellationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Events_CancellationInfo_descriptor, new java.lang.String[] { "Author", }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Events/CounteragentEventTypeProtos.java b/src/main/java/Diadoc/Api/Proto/Events/CounteragentEventTypeProtos.java index 364c2dab..bf6c04ae 100644 --- a/src/main/java/Diadoc/Api/Proto/Events/CounteragentEventTypeProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Events/CounteragentEventTypeProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Events/CounteragentEventType.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Events; public final class CounteragentEventTypeProtos { private CounteragentEventTypeProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentEventTypeProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Events.CounteragentEventType} @@ -16,65 +33,74 @@ public enum CounteragentEventType /** * UnknownCounteragentEventType = 0; */ - UnknownCounteragentEventType(0, 0), + UnknownCounteragentEventType(0), /** * IInvitedCounteragent = 1; */ - IInvitedCounteragent(1, 1), + IInvitedCounteragent(1), /** * CounteragentInvitedMe = 2; */ - CounteragentInvitedMe(2, 2), + CounteragentInvitedMe(2), /** * CounteragentAcceptedInvitation = 3; */ - CounteragentAcceptedInvitation(3, 3), + CounteragentAcceptedInvitation(3), /** * IAcceptedInvitation = 4; */ - IAcceptedInvitation(4, 4), + IAcceptedInvitation(4), /** * IWithdrewInvitation = 5; */ - IWithdrewInvitation(5, 5), + IWithdrewInvitation(5), /** * CounteragentWithdrewInvitation = 6; */ - CounteragentWithdrewInvitation(6, 6), + CounteragentWithdrewInvitation(6), /** * IRejectedInvitation = 7; */ - IRejectedInvitation(7, 7), + IRejectedInvitation(7), /** * CounteragentRejectedInvitation = 8; */ - CounteragentRejectedInvitation(8, 8), + CounteragentRejectedInvitation(8), /** * IBrokeUpWithCounteragent = 9; */ - IBrokeUpWithCounteragent(9, 9), + IBrokeUpWithCounteragent(9), /** * CounteragentBrokeUpWithMe = 10; */ - CounteragentBrokeUpWithMe(10, 10), + CounteragentBrokeUpWithMe(10), /** * IForgotCounteragent = 11; */ - IForgotCounteragent(11, 11), + IForgotCounteragent(11), /** * CounteragentForgotMe = 12; */ - CounteragentForgotMe(12, 12), + CounteragentForgotMe(12), /** * IMadeCounteragent = 13; */ - IMadeCounteragent(13, 13), + IMadeCounteragent(13), /** * CounteragentMadeMe = 14; */ - CounteragentMadeMe(14, 14), + CounteragentMadeMe(14), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentEventType.class.getName()); + } /** * UnknownCounteragentEventType = 0; */ @@ -137,9 +163,25 @@ public enum CounteragentEventType public static final int CounteragentMadeMe_VALUE = 14; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static CounteragentEventType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CounteragentEventType forNumber(int value) { switch (value) { case 0: return UnknownCounteragentEventType; case 1: return IInvitedCounteragent; @@ -164,17 +206,17 @@ public static CounteragentEventType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + CounteragentEventType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CounteragentEventType findValueByNumber(int number) { - return CounteragentEventType.valueOf(number); + return CounteragentEventType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -196,11 +238,9 @@ public static CounteragentEventType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private CounteragentEventType(int index, int value) { - this.index = index; + private CounteragentEventType(int value) { this.value = value; } @@ -212,7 +252,7 @@ private CounteragentEventType(int index, int value) { getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -225,24 +265,17 @@ private CounteragentEventType(int index, int value) { "WithdrewInvitation\020\005\022\"\n\036CounteragentWith" + "drewInvitation\020\006\022\027\n\023IRejectedInvitation\020" + "\007\022\"\n\036CounteragentRejectedInvitation\020\010\022\034\n" + - "\030IBrokeUpWithCounteragent\020\t\022\035\n\031Counterag", + "\030IBrokeUpWithCounteragent\020\t\022\035\n\031Counterag" + "entBrokeUpWithMe\020\n\022\027\n\023IForgotCounteragen" + "t\020\013\022\030\n\024CounteragentForgotMe\020\014\022\025\n\021IMadeCo" + "unteragent\020\r\022\026\n\022CounteragentMadeMe\020\016B\035B\033" + "CounteragentEventTypeProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + }); + descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/Diadoc/Api/Proto/Events/DiadocCounteragent_GetApiProtos.java b/src/main/java/Diadoc/Api/Proto/Events/DiadocCounteragent_GetApiProtos.java index 86e08d88..17f0c3c1 100644 --- a/src/main/java/Diadoc/Api/Proto/Events/DiadocCounteragent_GetApiProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Events/DiadocCounteragent_GetApiProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Events/DiadocCounteragent-GetApi.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Events; public final class DiadocCounteragent_GetApiProtos { private DiadocCounteragent_GetApiProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DiadocCounteragent_GetApiProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } public interface BoxCounteragentEventListOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Events.BoxCounteragentEventList) @@ -38,19 +55,23 @@ Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventOrBu /** * optional int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ boolean hasTotalCount(); /** * optional int32 TotalCount = 2; + * @return The totalCount. */ int getTotalCount(); /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ boolean hasTotalCountType(); /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType(); } @@ -61,95 +82,31 @@ public static final class BoxCounteragentEventList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Events.BoxCounteragentEventList) BoxCounteragentEventListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BoxCounteragentEventList.class.getName()); + } // Use BoxCounteragentEventList.newBuilder() to construct. private BoxCounteragentEventList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private BoxCounteragentEventList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final BoxCounteragentEventList defaultInstance; - public static BoxCounteragentEventList getDefaultInstance() { - return defaultInstance; } - - public BoxCounteragentEventList getDefaultInstanceForType() { - return defaultInstance; + private BoxCounteragentEventList() { + events_ = java.util.Collections.emptyList(); + totalCountType_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BoxCounteragentEventList( - 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)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add(input.readMessage(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent.PARSER, extensionRegistry)); - break; - } - case 16: { - bitField0_ |= 0x00000001; - totalCount_ = input.readInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType value = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000002; - totalCountType_ = value; - } - 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)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEventList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEventList_fieldAccessorTable @@ -157,33 +114,21 @@ private BoxCounteragentEventList( Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList.class, Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BoxCounteragentEventList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoxCounteragentEventList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int EVENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List events_; /** * repeated .Diadoc.Api.Proto.Events.BoxCounteragentEvent Events = 1; */ + @java.lang.Override public java.util.List getEventsList() { return events_; } /** * repeated .Diadoc.Api.Proto.Events.BoxCounteragentEvent Events = 1; */ + @java.lang.Override public java.util.List getEventsOrBuilderList() { return events_; @@ -191,59 +136,65 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Events.BoxCounteragentEvent Events = 1; */ + @java.lang.Override public int getEventsCount() { return events_.size(); } /** * repeated .Diadoc.Api.Proto.Events.BoxCounteragentEvent Events = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent getEvents(int index) { return events_.get(index); } /** * repeated .Diadoc.Api.Proto.Events.BoxCounteragentEvent Events = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } public static final int TOTALCOUNT_FIELD_NUMBER = 2; - private int totalCount_; + private int totalCount_ = 0; /** * optional int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } public static final int TOTALCOUNTTYPE_FIELD_NUMBER = 3; - private Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType totalCountType_; + private int totalCountType_ = 0; /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ - public boolean hasTotalCountType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasTotalCountType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ - public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { - return totalCountType_; + @java.lang.Override public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType result = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(totalCountType_); + return result == null ? Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType : result; } - private void initFields() { - events_ = java.util.Collections.emptyList(); - totalCount_ = 0; - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -263,24 +214,24 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < events_.size(); i++) { output.writeMessage(1, events_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(2, totalCount_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(3, totalCountType_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, totalCountType_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -288,26 +239,79 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, events_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, totalCount_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, totalCountType_.getNumber()); + .computeEnumSize(3, totalCountType_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList other = (Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList) obj; + + if (!getEventsList() + .equals(other.getEventsList())) return false; + if (hasTotalCount() != other.hasTotalCount()) return false; + if (hasTotalCount()) { + if (getTotalCount() + != other.getTotalCount()) return false; + } + if (hasTotalCountType() != other.hasTotalCountType()) return false; + if (hasTotalCountType()) { + if (totalCountType_ != other.totalCountType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + if (hasTotalCount()) { + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + } + if (hasTotalCountType()) { + hash = (37 * hash) + TOTALCOUNTTYPE_FIELD_NUMBER; + hash = (53 * hash) + totalCountType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -331,42 +335,57 @@ public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounter } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -386,6 +405,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEventList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEventList_fieldAccessorTable @@ -395,51 +415,42 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getEventsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + events_ = null; eventsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); totalCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; - bitField0_ = (bitField0_ & ~0x00000004); + totalCountType_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEventList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList getDefaultInstanceForType() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList build() { Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList result = buildPartial(); if (!result.isInitialized()) { @@ -448,12 +459,18 @@ public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEv return result; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList buildPartial() { Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList result = new Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList result) { if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -461,19 +478,23 @@ public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEv } else { result.events_ = eventsBuilder_.build(); } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalCount_ = totalCount_; to_bitField0_ |= 0x00000001; } - result.totalCount_ = totalCount_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalCountType_ = totalCountType_; to_bitField0_ |= 0x00000002; } - result.totalCountType_ = totalCountType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList) { return mergeFrom((Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList)other); @@ -518,38 +539,82 @@ public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos setTotalCountType(other.getTotalCountType()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotalCountType()) { - return false; } for (int i = 0; i < getEventsCount(); i++) { if (!getEvents(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent m = + input.readMessage( + Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent.parser(), + extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType tmpValue = + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + totalCountType_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -557,7 +622,7 @@ public Builder mergeFrom( private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; } @@ -786,7 +851,7 @@ public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEv eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent, Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent.Builder, Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventOrBuilder>( events_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); events_ = null; @@ -797,27 +862,35 @@ public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEv private int totalCount_ ; /** * optional int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } /** * optional int32 TotalCount = 2; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - bitField0_ |= 0x00000002; + totalCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int32 TotalCount = 2; + * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000002); @@ -826,37 +899,44 @@ public Builder clearTotalCount() { return this; } - private Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; + private int totalCountType_ = 0; /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ - public boolean hasTotalCountType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasTotalCountType() { + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ + @java.lang.Override public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { - return totalCountType_; + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType result = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(totalCountType_); + return result == null ? Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType : result; } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @param value The totalCountType to set. + * @return This builder for chaining. */ public Builder setTotalCountType(Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - totalCountType_ = value; + totalCountType_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return This builder for chaining. */ public Builder clearTotalCountType() { bitField0_ = (bitField0_ & ~0x00000004); - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; + totalCountType_ = 0; onChanged(); return this; } @@ -864,12 +944,52 @@ public Builder clearTotalCountType() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Events.BoxCounteragentEventList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.BoxCounteragentEventList) + private static final Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList DEFAULT_INSTANCE; static { - defaultInstance = new BoxCounteragentEventList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList(); + } + + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoxCounteragentEventList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEventList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.BoxCounteragentEventList) } public interface BoxCounteragentEventOrBuilder extends @@ -878,24 +998,29 @@ public interface BoxCounteragentEventOrBuilder extends /** * required string EventId = 1; + * @return Whether the eventId field is set. */ boolean hasEventId(); /** * required string EventId = 1; + * @return The eventId. */ java.lang.String getEventId(); /** * required string EventId = 1; + * @return The bytes for eventId. */ com.google.protobuf.ByteString getEventIdBytes(); /** * optional .Diadoc.Api.Proto.Events.CounteragentInfo Counteragent = 2; + * @return Whether the counteragent field is set. */ boolean hasCounteragent(); /** * optional .Diadoc.Api.Proto.Events.CounteragentInfo Counteragent = 2; + * @return The counteragent. */ Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo getCounteragent(); /** @@ -905,28 +1030,35 @@ public interface BoxCounteragentEventOrBuilder extends /** * optional string IndexKey = 3; + * @return Whether the indexKey field is set. */ boolean hasIndexKey(); /** * optional string IndexKey = 3; + * @return The indexKey. */ java.lang.String getIndexKey(); /** * optional string IndexKey = 3; + * @return The bytes for indexKey. */ com.google.protobuf.ByteString getIndexKeyBytes(); /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @return A list containing the eventTypes. */ java.util.List getEventTypesList(); /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @return The count of eventTypes. */ int getEventTypesCount(); /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @param index The index of the element to return. + * @return The eventTypes at the given index. */ Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType getEventTypes(int index); } @@ -937,129 +1069,32 @@ public static final class BoxCounteragentEvent extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Events.BoxCounteragentEvent) BoxCounteragentEventOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BoxCounteragentEvent.class.getName()); + } // Use BoxCounteragentEvent.newBuilder() to construct. private BoxCounteragentEvent(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private BoxCounteragentEvent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final BoxCounteragentEvent defaultInstance; - public static BoxCounteragentEvent getDefaultInstance() { - return defaultInstance; - } - - public BoxCounteragentEvent getDefaultInstanceForType() { - return defaultInstance; + private BoxCounteragentEvent() { + eventId_ = ""; + indexKey_ = ""; + eventTypes_ = emptyIntList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BoxCounteragentEvent( - 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; - eventId_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = counteragent_.toBuilder(); - } - counteragent_ = input.readMessage(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(counteragent_); - counteragent_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - indexKey_ = bs; - break; - } - case 32: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType value = Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - eventTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - eventTypes_.add(value); - } - break; - } - case 34: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType value = Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - eventTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - eventTypes_.add(value); - } - } - input.popLimit(oldLimit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - eventTypes_ = java.util.Collections.unmodifiableList(eventTypes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEvent_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEvent_fieldAccessorTable @@ -1067,33 +1102,23 @@ private BoxCounteragentEvent( Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent.class, Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BoxCounteragentEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoxCounteragentEvent(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int EVENTID_FIELD_NUMBER = 1; - private java.lang.Object eventId_; + @SuppressWarnings("serial") + private volatile java.lang.Object eventId_ = ""; /** * required string EventId = 1; + * @return Whether the eventId field is set. */ + @java.lang.Override public boolean hasEventId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string EventId = 1; + * @return The eventId. */ + @java.lang.Override public java.lang.String getEventId() { java.lang.Object ref = eventId_; if (ref instanceof java.lang.String) { @@ -1110,7 +1135,9 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @return The bytes for eventId. */ + @java.lang.Override public com.google.protobuf.ByteString getEventIdBytes() { java.lang.Object ref = eventId_; @@ -1129,34 +1156,44 @@ public java.lang.String getEventId() { private Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo counteragent_; /** * optional .Diadoc.Api.Proto.Events.CounteragentInfo Counteragent = 2; + * @return Whether the counteragent field is set. */ + @java.lang.Override public boolean hasCounteragent() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Events.CounteragentInfo Counteragent = 2; + * @return The counteragent. */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo getCounteragent() { - return counteragent_; + return counteragent_ == null ? Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance() : counteragent_; } /** * optional .Diadoc.Api.Proto.Events.CounteragentInfo Counteragent = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfoOrBuilder getCounteragentOrBuilder() { - return counteragent_; + return counteragent_ == null ? Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance() : counteragent_; } public static final int INDEXKEY_FIELD_NUMBER = 3; - private java.lang.Object indexKey_; + @SuppressWarnings("serial") + private volatile java.lang.Object indexKey_ = ""; /** * optional string IndexKey = 3; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string IndexKey = 3; + * @return The indexKey. */ + @java.lang.Override public java.lang.String getIndexKey() { java.lang.Object ref = indexKey_; if (ref instanceof java.lang.String) { @@ -1173,7 +1210,9 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 3; + * @return The bytes for indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKeyBytes() { java.lang.Object ref = indexKey_; @@ -1189,33 +1228,46 @@ public java.lang.String getIndexKey() { } public static final int EVENTTYPES_FIELD_NUMBER = 4; - private java.util.List eventTypes_; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList eventTypes_; + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType> eventTypes_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType>() { + public Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType convert(int from) { + Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType result = Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType.forNumber(from); + return result == null ? Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType.UnknownCounteragentEventType : result; + } + }; /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @return A list containing the eventTypes. */ + @java.lang.Override public java.util.List getEventTypesList() { - return eventTypes_; + return new com.google.protobuf.Internal.IntListAdapter< + Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType>(eventTypes_, eventTypes_converter_); } /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @return The count of eventTypes. */ + @java.lang.Override public int getEventTypesCount() { return eventTypes_.size(); } /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @param index The index of the element to return. + * @return The eventTypes at the given index. */ + @java.lang.Override public Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType getEventTypes(int index) { - return eventTypes_.get(index); + return eventTypes_converter_.convert(eventTypes_.getInt(index)); } - private void initFields() { - eventId_ = ""; - counteragent_ = Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance(); - indexKey_ = ""; - eventTypes_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1235,63 +1287,123 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getEventIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, eventId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, counteragent_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getCounteragent()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getIndexKeyBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, indexKey_); } for (int i = 0; i < eventTypes_.size(); i++) { - output.writeEnum(4, eventTypes_.get(i).getNumber()); + output.writeEnum(4, eventTypes_.getInt(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getEventIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, eventId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, counteragent_); + .computeMessageSize(2, getCounteragent()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getIndexKeyBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, indexKey_); } { int dataSize = 0; for (int i = 0; i < eventTypes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(eventTypes_.get(i).getNumber()); + .computeEnumSizeNoTag(eventTypes_.getInt(i)); } size += dataSize; size += 1 * eventTypes_.size(); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent other = (Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent) obj; + + if (hasEventId() != other.hasEventId()) return false; + if (hasEventId()) { + if (!getEventId() + .equals(other.getEventId())) return false; + } + if (hasCounteragent() != other.hasCounteragent()) return false; + if (hasCounteragent()) { + if (!getCounteragent() + .equals(other.getCounteragent())) return false; + } + if (hasIndexKey() != other.hasIndexKey()) return false; + if (hasIndexKey()) { + if (!getIndexKey() + .equals(other.getIndexKey())) return false; + } + if (!eventTypes_.equals(other.eventTypes_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEventId()) { + hash = (37 * hash) + EVENTID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + } + if (hasCounteragent()) { + hash = (37 * hash) + COUNTERAGENT_FIELD_NUMBER; + hash = (53 * hash) + getCounteragent().hashCode(); + } + if (hasIndexKey()) { + hash = (37 * hash) + INDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getIndexKey().hashCode(); + } + if (getEventTypesCount() > 0) { + hash = (37 * hash) + EVENTTYPES_FIELD_NUMBER; + hash = (53 * hash) + eventTypes_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1315,42 +1427,57 @@ public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounter } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1370,6 +1497,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEvent_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEvent_fieldAccessorTable @@ -1388,44 +1516,39 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getCounteragentFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; eventId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (counteragentBuilder_ == null) { - counteragent_ = Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance(); - } else { - counteragentBuilder_.clear(); + counteragent_ = null; + if (counteragentBuilder_ != null) { + counteragentBuilder_.dispose(); + counteragentBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); indexKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - eventTypes_ = java.util.Collections.emptyList(); + eventTypes_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEvent_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent getDefaultInstanceForType() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent build() { Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent result = buildPartial(); if (!result.isInitialized()) { @@ -1434,36 +1557,44 @@ public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEv return result; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent buildPartial() { Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent result = new Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent result) { + if (((bitField0_ & 0x00000008) != 0)) { + eventTypes_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.eventTypes_ = eventTypes_; + } + + private void buildPartial0(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eventId_ = eventId_; to_bitField0_ |= 0x00000001; } - result.eventId_ = eventId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.counteragent_ = counteragentBuilder_ == null + ? counteragent_ + : counteragentBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (counteragentBuilder_ == null) { - result.counteragent_ = counteragent_; - } else { - result.counteragent_ = counteragentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.indexKey_ = indexKey_; to_bitField0_ |= 0x00000004; } - result.indexKey_ = indexKey_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - eventTypes_ = java.util.Collections.unmodifiableList(eventTypes_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.eventTypes_ = eventTypes_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent) { return mergeFrom((Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent)other); @@ -1476,16 +1607,16 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent other) { if (other == Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent.getDefaultInstance()) return this; if (other.hasEventId()) { - bitField0_ |= 0x00000001; eventId_ = other.eventId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCounteragent()) { mergeCounteragent(other.getCounteragent()); } if (other.hasIndexKey()) { - bitField0_ |= 0x00000004; indexKey_ = other.indexKey_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.eventTypes_.isEmpty()) { @@ -1499,38 +1630,98 @@ public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasEventId()) { - return false; } if (hasCounteragent()) { if (!getCounteragent().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + eventId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCounteragentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + indexKey_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType tmpValue = + Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(4, tmpRaw); + } else { + ensureEventTypesIsMutable(); + eventTypes_.addInt(tmpRaw); + } + break; + } // case 32 + case 34: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType tmpValue = + Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(4, tmpRaw); + } else { + ensureEventTypesIsMutable(); + eventTypes_.addInt(tmpRaw); + } + } + input.popLimit(oldLimit); + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1538,12 +1729,14 @@ public Builder mergeFrom( private java.lang.Object eventId_ = ""; /** * required string EventId = 1; + * @return Whether the eventId field is set. */ public boolean hasEventId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string EventId = 1; + * @return The eventId. */ public java.lang.String getEventId() { java.lang.Object ref = eventId_; @@ -1561,6 +1754,7 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @return The bytes for eventId. */ public com.google.protobuf.ByteString getEventIdBytes() { @@ -1577,55 +1771,58 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @param value The eventId to set. + * @return This builder for chaining. */ public Builder setEventId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } eventId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string EventId = 1; + * @return This builder for chaining. */ public Builder clearEventId() { - bitField0_ = (bitField0_ & ~0x00000001); eventId_ = getDefaultInstance().getEventId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string EventId = 1; + * @param value The bytes for eventId to set. + * @return This builder for chaining. */ public Builder setEventIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } eventId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo counteragent_ = Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo counteragent_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo, Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.Builder, Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfoOrBuilder> counteragentBuilder_; /** * optional .Diadoc.Api.Proto.Events.CounteragentInfo Counteragent = 2; + * @return Whether the counteragent field is set. */ public boolean hasCounteragent() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Events.CounteragentInfo Counteragent = 2; + * @return The counteragent. */ public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo getCounteragent() { if (counteragentBuilder_ == null) { - return counteragent_; + return counteragent_ == null ? Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance() : counteragent_; } else { return counteragentBuilder_.getMessage(); } @@ -1639,11 +1836,11 @@ public Builder setCounteragent(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApi throw new NullPointerException(); } counteragent_ = value; - onChanged(); } else { counteragentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1653,11 +1850,11 @@ public Builder setCounteragent( Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.Builder builderForValue) { if (counteragentBuilder_ == null) { counteragent_ = builderForValue.build(); - onChanged(); } else { counteragentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1665,31 +1862,33 @@ public Builder setCounteragent( */ public Builder mergeCounteragent(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo value) { if (counteragentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - counteragent_ != Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance()) { - counteragent_ = - Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.newBuilder(counteragent_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + counteragent_ != null && + counteragent_ != Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance()) { + getCounteragentBuilder().mergeFrom(value); } else { counteragent_ = value; } - onChanged(); } else { counteragentBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (counteragent_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Events.CounteragentInfo Counteragent = 2; */ public Builder clearCounteragent() { - if (counteragentBuilder_ == null) { - counteragent_ = Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance(); - onChanged(); - } else { - counteragentBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + counteragent_ = null; + if (counteragentBuilder_ != null) { + counteragentBuilder_.dispose(); + counteragentBuilder_ = null; + } + onChanged(); return this; } /** @@ -1707,7 +1906,8 @@ public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfoO if (counteragentBuilder_ != null) { return counteragentBuilder_.getMessageOrBuilder(); } else { - return counteragent_; + return counteragent_ == null ? + Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance() : counteragent_; } } /** @@ -1730,12 +1930,14 @@ public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfoO private java.lang.Object indexKey_ = ""; /** * optional string IndexKey = 3; + * @return Whether the indexKey field is set. */ public boolean hasIndexKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string IndexKey = 3; + * @return The indexKey. */ public java.lang.String getIndexKey() { java.lang.Object ref = indexKey_; @@ -1753,6 +1955,7 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 3; + * @return The bytes for indexKey. */ public com.google.protobuf.ByteString getIndexKeyBytes() { @@ -1769,68 +1972,77 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 3; + * @param value The indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKey( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string IndexKey = 3; + * @return This builder for chaining. */ public Builder clearIndexKey() { - bitField0_ = (bitField0_ & ~0x00000004); indexKey_ = getDefaultInstance().getIndexKey(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string IndexKey = 3; + * @param value The bytes for indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKeyBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private java.util.List eventTypes_ = - java.util.Collections.emptyList(); + private com.google.protobuf.Internal.IntList eventTypes_ = + emptyIntList(); private void ensureEventTypesIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - eventTypes_ = new java.util.ArrayList(eventTypes_); + if (!((bitField0_ & 0x00000008) != 0)) { + eventTypes_ = makeMutableCopy(eventTypes_); bitField0_ |= 0x00000008; } } /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @return A list containing the eventTypes. */ public java.util.List getEventTypesList() { - return java.util.Collections.unmodifiableList(eventTypes_); + return new com.google.protobuf.Internal.IntListAdapter< + Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType>(eventTypes_, eventTypes_converter_); } /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @return The count of eventTypes. */ public int getEventTypesCount() { return eventTypes_.size(); } /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @param index The index of the element to return. + * @return The eventTypes at the given index. */ public Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType getEventTypes(int index) { - return eventTypes_.get(index); + return eventTypes_converter_.convert(eventTypes_.getInt(index)); } /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @param index The index to set the value at. + * @param value The eventTypes to set. + * @return This builder for chaining. */ public Builder setEventTypes( int index, Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType value) { @@ -1838,52 +2050,98 @@ public Builder setEventTypes( throw new NullPointerException(); } ensureEventTypesIsMutable(); - eventTypes_.set(index, value); + eventTypes_.setInt(index, value.getNumber()); onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @param value The eventTypes to add. + * @return This builder for chaining. */ public Builder addEventTypes(Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType value) { if (value == null) { throw new NullPointerException(); } ensureEventTypesIsMutable(); - eventTypes_.add(value); + eventTypes_.addInt(value.getNumber()); onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @param values The eventTypes to add. + * @return This builder for chaining. */ public Builder addAllEventTypes( java.lang.Iterable values) { ensureEventTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventTypes_); + for (Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.CounteragentEventType value : values) { + eventTypes_.addInt(value.getNumber()); + } onChanged(); return this; } /** * repeated .Diadoc.Api.Proto.Events.CounteragentEventType EventTypes = 4; + * @return This builder for chaining. */ public Builder clearEventTypes() { - eventTypes_ = java.util.Collections.emptyList(); + eventTypes_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Events.BoxCounteragentEvent) + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Events.BoxCounteragentEvent) + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.BoxCounteragentEvent) + private static final Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent(); + } + + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoxCounteragentEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - static { - defaultInstance = new BoxCounteragentEvent(true); - defaultInstance.initFields(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.BoxCounteragentEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.BoxCounteragentEvent) } public interface CounteragentInfoOrBuilder extends @@ -1892,84 +2150,102 @@ public interface CounteragentInfoOrBuilder extends /** * required string CounteragentBoxId = 1; + * @return Whether the counteragentBoxId field is set. */ boolean hasCounteragentBoxId(); /** * required string CounteragentBoxId = 1; + * @return The counteragentBoxId. */ java.lang.String getCounteragentBoxId(); /** * required string CounteragentBoxId = 1; + * @return The bytes for counteragentBoxId. */ com.google.protobuf.ByteString getCounteragentBoxIdBytes(); /** * required .Diadoc.Api.Proto.CounteragentStatus Status = 2; + * @return Whether the status field is set. */ boolean hasStatus(); /** * required .Diadoc.Api.Proto.CounteragentStatus Status = 2; + * @return The status. */ Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus getStatus(); /** * required sfixed64 EventTimestampTicks = 3; + * @return Whether the eventTimestampTicks field is set. */ boolean hasEventTimestampTicks(); /** * required sfixed64 EventTimestampTicks = 3; + * @return The eventTimestampTicks. */ long getEventTimestampTicks(); /** * optional string LastEventComment = 4; + * @return Whether the lastEventComment field is set. */ boolean hasLastEventComment(); /** * optional string LastEventComment = 4; + * @return The lastEventComment. */ java.lang.String getLastEventComment(); /** * optional string LastEventComment = 4; + * @return The bytes for lastEventComment. */ com.google.protobuf.ByteString getLastEventCommentBytes(); /** * optional string MessageFromCounteragent = 5; + * @return Whether the messageFromCounteragent field is set. */ boolean hasMessageFromCounteragent(); /** * optional string MessageFromCounteragent = 5; + * @return The messageFromCounteragent. */ java.lang.String getMessageFromCounteragent(); /** * optional string MessageFromCounteragent = 5; + * @return The bytes for messageFromCounteragent. */ com.google.protobuf.ByteString getMessageFromCounteragentBytes(); /** * optional string MessageToCounteragent = 6; + * @return Whether the messageToCounteragent field is set. */ boolean hasMessageToCounteragent(); /** * optional string MessageToCounteragent = 6; + * @return The messageToCounteragent. */ java.lang.String getMessageToCounteragent(); /** * optional string MessageToCounteragent = 6; + * @return The bytes for messageToCounteragent. */ com.google.protobuf.ByteString getMessageToCounteragentBytes(); /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 7; + * @return Whether the invitationDocumentId field is set. */ boolean hasInvitationDocumentId(); /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 7; + * @return The invitationDocumentId. */ Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId(); /** @@ -1979,14 +2255,17 @@ public interface CounteragentInfoOrBuilder extends /** * optional string CounteragentGroupId = 8; + * @return Whether the counteragentGroupId field is set. */ boolean hasCounteragentGroupId(); /** * optional string CounteragentGroupId = 8; + * @return The counteragentGroupId. */ java.lang.String getCounteragentGroupId(); /** * optional string CounteragentGroupId = 8; + * @return The bytes for counteragentGroupId. */ com.google.protobuf.ByteString getCounteragentGroupIdBytes(); @@ -1998,127 +2277,35 @@ public static final class CounteragentInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Events.CounteragentInfo) CounteragentInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CounteragentInfo.class.getName()); + } // Use CounteragentInfo.newBuilder() to construct. private CounteragentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private CounteragentInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final CounteragentInfo defaultInstance; - public static CounteragentInfo getDefaultInstance() { - return defaultInstance; } - - public CounteragentInfo getDefaultInstanceForType() { - return defaultInstance; + private CounteragentInfo() { + counteragentBoxId_ = ""; + status_ = 0; + lastEventComment_ = ""; + messageFromCounteragent_ = ""; + messageToCounteragent_ = ""; + counteragentGroupId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CounteragentInfo( - 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; - counteragentBoxId_ = bs; - break; - } - case 16: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus value = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - status_ = value; - } - break; - } - case 25: { - bitField0_ |= 0x00000004; - eventTimestampTicks_ = input.readSFixed64(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - lastEventComment_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - messageFromCounteragent_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - messageToCounteragent_ = bs; - break; - } - case 58: { - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = invitationDocumentId_.toBuilder(); - } - invitationDocumentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invitationDocumentId_); - invitationDocumentId_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - counteragentGroupId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_CounteragentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_CounteragentInfo_fieldAccessorTable @@ -2126,33 +2313,23 @@ private CounteragentInfo( Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.class, Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CounteragentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CounteragentInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int COUNTERAGENTBOXID_FIELD_NUMBER = 1; - private java.lang.Object counteragentBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object counteragentBoxId_ = ""; /** * required string CounteragentBoxId = 1; + * @return Whether the counteragentBoxId field is set. */ + @java.lang.Override public boolean hasCounteragentBoxId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string CounteragentBoxId = 1; + * @return The counteragentBoxId. */ + @java.lang.Override public java.lang.String getCounteragentBoxId() { java.lang.Object ref = counteragentBoxId_; if (ref instanceof java.lang.String) { @@ -2169,7 +2346,9 @@ public java.lang.String getCounteragentBoxId() { } /** * required string CounteragentBoxId = 1; + * @return The bytes for counteragentBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getCounteragentBoxIdBytes() { java.lang.Object ref = counteragentBoxId_; @@ -2185,46 +2364,58 @@ public java.lang.String getCounteragentBoxId() { } public static final int STATUS_FIELD_NUMBER = 2; - private Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus status_; + private int status_ = 0; /** * required .Diadoc.Api.Proto.CounteragentStatus Status = 2; + * @return Whether the status field is set. */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.CounteragentStatus Status = 2; + * @return The status. */ - public Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus getStatus() { - return status_; + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus getStatus() { + Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus result = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.forNumber(status_); + return result == null ? Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus : result; } public static final int EVENTTIMESTAMPTICKS_FIELD_NUMBER = 3; - private long eventTimestampTicks_; + private long eventTimestampTicks_ = 0L; /** * required sfixed64 EventTimestampTicks = 3; + * @return Whether the eventTimestampTicks field is set. */ + @java.lang.Override public boolean hasEventTimestampTicks() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required sfixed64 EventTimestampTicks = 3; + * @return The eventTimestampTicks. */ + @java.lang.Override public long getEventTimestampTicks() { return eventTimestampTicks_; } public static final int LASTEVENTCOMMENT_FIELD_NUMBER = 4; - private java.lang.Object lastEventComment_; + @SuppressWarnings("serial") + private volatile java.lang.Object lastEventComment_ = ""; /** * optional string LastEventComment = 4; + * @return Whether the lastEventComment field is set. */ + @java.lang.Override public boolean hasLastEventComment() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string LastEventComment = 4; + * @return The lastEventComment. */ + @java.lang.Override public java.lang.String getLastEventComment() { java.lang.Object ref = lastEventComment_; if (ref instanceof java.lang.String) { @@ -2241,7 +2432,9 @@ public java.lang.String getLastEventComment() { } /** * optional string LastEventComment = 4; + * @return The bytes for lastEventComment. */ + @java.lang.Override public com.google.protobuf.ByteString getLastEventCommentBytes() { java.lang.Object ref = lastEventComment_; @@ -2257,16 +2450,21 @@ public java.lang.String getLastEventComment() { } public static final int MESSAGEFROMCOUNTERAGENT_FIELD_NUMBER = 5; - private java.lang.Object messageFromCounteragent_; + @SuppressWarnings("serial") + private volatile java.lang.Object messageFromCounteragent_ = ""; /** * optional string MessageFromCounteragent = 5; + * @return Whether the messageFromCounteragent field is set. */ + @java.lang.Override public boolean hasMessageFromCounteragent() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string MessageFromCounteragent = 5; + * @return The messageFromCounteragent. */ + @java.lang.Override public java.lang.String getMessageFromCounteragent() { java.lang.Object ref = messageFromCounteragent_; if (ref instanceof java.lang.String) { @@ -2283,7 +2481,9 @@ public java.lang.String getMessageFromCounteragent() { } /** * optional string MessageFromCounteragent = 5; + * @return The bytes for messageFromCounteragent. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageFromCounteragentBytes() { java.lang.Object ref = messageFromCounteragent_; @@ -2299,16 +2499,21 @@ public java.lang.String getMessageFromCounteragent() { } public static final int MESSAGETOCOUNTERAGENT_FIELD_NUMBER = 6; - private java.lang.Object messageToCounteragent_; + @SuppressWarnings("serial") + private volatile java.lang.Object messageToCounteragent_ = ""; /** * optional string MessageToCounteragent = 6; + * @return Whether the messageToCounteragent field is set. */ + @java.lang.Override public boolean hasMessageToCounteragent() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string MessageToCounteragent = 6; + * @return The messageToCounteragent. */ + @java.lang.Override public java.lang.String getMessageToCounteragent() { java.lang.Object ref = messageToCounteragent_; if (ref instanceof java.lang.String) { @@ -2325,7 +2530,9 @@ public java.lang.String getMessageToCounteragent() { } /** * optional string MessageToCounteragent = 6; + * @return The bytes for messageToCounteragent. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageToCounteragentBytes() { java.lang.Object ref = messageToCounteragent_; @@ -2344,34 +2551,44 @@ public java.lang.String getMessageToCounteragent() { private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_; /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 7; + * @return Whether the invitationDocumentId field is set. */ + @java.lang.Override public boolean hasInvitationDocumentId() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 7; + * @return The invitationDocumentId. */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 7; */ + @java.lang.Override public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocumentIdOrBuilder() { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } public static final int COUNTERAGENTGROUPID_FIELD_NUMBER = 8; - private java.lang.Object counteragentGroupId_; + @SuppressWarnings("serial") + private volatile java.lang.Object counteragentGroupId_ = ""; /** * optional string CounteragentGroupId = 8; + * @return Whether the counteragentGroupId field is set. */ + @java.lang.Override public boolean hasCounteragentGroupId() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional string CounteragentGroupId = 8; + * @return The counteragentGroupId. */ + @java.lang.Override public java.lang.String getCounteragentGroupId() { java.lang.Object ref = counteragentGroupId_; if (ref instanceof java.lang.String) { @@ -2388,7 +2605,9 @@ public java.lang.String getCounteragentGroupId() { } /** * optional string CounteragentGroupId = 8; + * @return The bytes for counteragentGroupId. */ + @java.lang.Override public com.google.protobuf.ByteString getCounteragentGroupIdBytes() { java.lang.Object ref = counteragentGroupId_; @@ -2403,17 +2622,8 @@ public java.lang.String getCounteragentGroupId() { } } - private void initFields() { - counteragentBoxId_ = ""; - status_ = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus; - eventTimestampTicks_ = 0L; - lastEventComment_ = ""; - messageFromCounteragent_ = ""; - messageToCounteragent_ = ""; - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - counteragentGroupId_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2441,86 +2651,183 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getCounteragentBoxIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, counteragentBoxId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, status_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, status_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeSFixed64(3, eventTimestampTicks_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getLastEventCommentBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, lastEventComment_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getMessageFromCounteragentBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, messageFromCounteragent_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getMessageToCounteragentBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, messageToCounteragent_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, invitationDocumentId_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getInvitationDocumentId()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getCounteragentGroupIdBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, counteragentGroupId_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getCounteragentBoxIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, counteragentBoxId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, status_.getNumber()); + .computeEnumSize(2, status_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(3, eventTimestampTicks_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getLastEventCommentBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, lastEventComment_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getMessageFromCounteragentBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, messageFromCounteragent_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getMessageToCounteragentBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, messageToCounteragent_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, invitationDocumentId_); + .computeMessageSize(7, getInvitationDocumentId()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getCounteragentGroupIdBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, counteragentGroupId_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo other = (Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo) obj; + + if (hasCounteragentBoxId() != other.hasCounteragentBoxId()) return false; + if (hasCounteragentBoxId()) { + if (!getCounteragentBoxId() + .equals(other.getCounteragentBoxId())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasEventTimestampTicks() != other.hasEventTimestampTicks()) return false; + if (hasEventTimestampTicks()) { + if (getEventTimestampTicks() + != other.getEventTimestampTicks()) return false; + } + if (hasLastEventComment() != other.hasLastEventComment()) return false; + if (hasLastEventComment()) { + if (!getLastEventComment() + .equals(other.getLastEventComment())) return false; + } + if (hasMessageFromCounteragent() != other.hasMessageFromCounteragent()) return false; + if (hasMessageFromCounteragent()) { + if (!getMessageFromCounteragent() + .equals(other.getMessageFromCounteragent())) return false; + } + if (hasMessageToCounteragent() != other.hasMessageToCounteragent()) return false; + if (hasMessageToCounteragent()) { + if (!getMessageToCounteragent() + .equals(other.getMessageToCounteragent())) return false; + } + if (hasInvitationDocumentId() != other.hasInvitationDocumentId()) return false; + if (hasInvitationDocumentId()) { + if (!getInvitationDocumentId() + .equals(other.getInvitationDocumentId())) return false; + } + if (hasCounteragentGroupId() != other.hasCounteragentGroupId()) return false; + if (hasCounteragentGroupId()) { + if (!getCounteragentGroupId() + .equals(other.getCounteragentGroupId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCounteragentBoxId()) { + hash = (37 * hash) + COUNTERAGENTBOXID_FIELD_NUMBER; + hash = (53 * hash) + getCounteragentBoxId().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasEventTimestampTicks()) { + hash = (37 * hash) + EVENTTIMESTAMPTICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEventTimestampTicks()); + } + if (hasLastEventComment()) { + hash = (37 * hash) + LASTEVENTCOMMENT_FIELD_NUMBER; + hash = (53 * hash) + getLastEventComment().hashCode(); + } + if (hasMessageFromCounteragent()) { + hash = (37 * hash) + MESSAGEFROMCOUNTERAGENT_FIELD_NUMBER; + hash = (53 * hash) + getMessageFromCounteragent().hashCode(); + } + if (hasMessageToCounteragent()) { + hash = (37 * hash) + MESSAGETOCOUNTERAGENT_FIELD_NUMBER; + hash = (53 * hash) + getMessageToCounteragent().hashCode(); + } + if (hasInvitationDocumentId()) { + hash = (37 * hash) + INVITATIONDOCUMENTID_FIELD_NUMBER; + hash = (53 * hash) + getInvitationDocumentId().hashCode(); + } + if (hasCounteragentGroupId()) { + hash = (37 * hash) + COUNTERAGENTGROUPID_FIELD_NUMBER; + hash = (53 * hash) + getCounteragentGroupId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2544,42 +2851,57 @@ public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.Counterage } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2599,6 +2921,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_CounteragentInfo_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_CounteragentInfo_fieldAccessorTable @@ -2617,52 +2940,42 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getInvitationDocumentIdFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; counteragentBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - status_ = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus; - bitField0_ = (bitField0_ & ~0x00000002); + status_ = 0; eventTimestampTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); lastEventComment_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); messageFromCounteragent_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); messageToCounteragent_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - if (invitationDocumentIdBuilder_ == null) { - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - } else { - invitationDocumentIdBuilder_.clear(); + invitationDocumentId_ = null; + if (invitationDocumentIdBuilder_ != null) { + invitationDocumentIdBuilder_.dispose(); + invitationDocumentIdBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000040); counteragentGroupId_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_CounteragentInfo_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo getDefaultInstanceForType() { return Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo build() { Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo result = buildPartial(); if (!result.isInitialized()) { @@ -2671,51 +2984,55 @@ public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo return result; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo buildPartial() { Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo result = new Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.counteragentBoxId_ = counteragentBoxId_; to_bitField0_ |= 0x00000001; } - result.counteragentBoxId_ = counteragentBoxId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; to_bitField0_ |= 0x00000002; } - result.status_ = status_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTimestampTicks_ = eventTimestampTicks_; to_bitField0_ |= 0x00000004; } - result.eventTimestampTicks_ = eventTimestampTicks_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lastEventComment_ = lastEventComment_; to_bitField0_ |= 0x00000008; } - result.lastEventComment_ = lastEventComment_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.messageFromCounteragent_ = messageFromCounteragent_; to_bitField0_ |= 0x00000010; } - result.messageFromCounteragent_ = messageFromCounteragent_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.messageToCounteragent_ = messageToCounteragent_; to_bitField0_ |= 0x00000020; } - result.messageToCounteragent_ = messageToCounteragent_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.invitationDocumentId_ = invitationDocumentIdBuilder_ == null + ? invitationDocumentId_ + : invitationDocumentIdBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (invitationDocumentIdBuilder_ == null) { - result.invitationDocumentId_ = invitationDocumentId_; - } else { - result.invitationDocumentId_ = invitationDocumentIdBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.counteragentGroupId_ = counteragentGroupId_; to_bitField0_ |= 0x00000080; } - result.counteragentGroupId_ = counteragentGroupId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo) { return mergeFrom((Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo)other); @@ -2728,8 +3045,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo other) { if (other == Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo.getDefaultInstance()) return this; if (other.hasCounteragentBoxId()) { - bitField0_ |= 0x00000001; counteragentBoxId_ = other.counteragentBoxId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasStatus()) { @@ -2739,69 +3056,130 @@ public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos setEventTimestampTicks(other.getEventTimestampTicks()); } if (other.hasLastEventComment()) { - bitField0_ |= 0x00000008; lastEventComment_ = other.lastEventComment_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasMessageFromCounteragent()) { - bitField0_ |= 0x00000010; messageFromCounteragent_ = other.messageFromCounteragent_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasMessageToCounteragent()) { - bitField0_ |= 0x00000020; messageToCounteragent_ = other.messageToCounteragent_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasInvitationDocumentId()) { mergeInvitationDocumentId(other.getInvitationDocumentId()); } if (other.hasCounteragentGroupId()) { - bitField0_ |= 0x00000080; counteragentGroupId_ = other.counteragentGroupId_; + bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasCounteragentBoxId()) { - return false; } if (!hasStatus()) { - return false; } if (!hasEventTimestampTicks()) { - return false; } if (hasInvitationDocumentId()) { if (!getInvitationDocumentId().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + counteragentBoxId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus tmpValue = + Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + status_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + case 25: { + eventTimestampTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: { + lastEventComment_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + messageFromCounteragent_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + messageToCounteragent_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getInvitationDocumentIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + counteragentGroupId_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2809,12 +3187,14 @@ public Builder mergeFrom( private java.lang.Object counteragentBoxId_ = ""; /** * required string CounteragentBoxId = 1; + * @return Whether the counteragentBoxId field is set. */ public boolean hasCounteragentBoxId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string CounteragentBoxId = 1; + * @return The counteragentBoxId. */ public java.lang.String getCounteragentBoxId() { java.lang.Object ref = counteragentBoxId_; @@ -2832,6 +3212,7 @@ public java.lang.String getCounteragentBoxId() { } /** * required string CounteragentBoxId = 1; + * @return The bytes for counteragentBoxId. */ public com.google.protobuf.ByteString getCounteragentBoxIdBytes() { @@ -2848,71 +3229,79 @@ public java.lang.String getCounteragentBoxId() { } /** * required string CounteragentBoxId = 1; + * @param value The counteragentBoxId to set. + * @return This builder for chaining. */ public Builder setCounteragentBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } counteragentBoxId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string CounteragentBoxId = 1; + * @return This builder for chaining. */ public Builder clearCounteragentBoxId() { - bitField0_ = (bitField0_ & ~0x00000001); counteragentBoxId_ = getDefaultInstance().getCounteragentBoxId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string CounteragentBoxId = 1; + * @param value The bytes for counteragentBoxId to set. + * @return This builder for chaining. */ public Builder setCounteragentBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } counteragentBoxId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus status_ = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus; + private int status_ = 0; /** * required .Diadoc.Api.Proto.CounteragentStatus Status = 2; + * @return Whether the status field is set. */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.CounteragentStatus Status = 2; + * @return The status. */ + @java.lang.Override public Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus getStatus() { - return status_; + Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus result = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.forNumber(status_); + return result == null ? Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus : result; } /** * required .Diadoc.Api.Proto.CounteragentStatus Status = 2; + * @param value The status to set. + * @return This builder for chaining. */ public Builder setStatus(Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - status_ = value; + status_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.CounteragentStatus Status = 2; + * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); - status_ = Diadoc.Api.Proto.CounteragentProtos.CounteragentStatus.UnknownCounteragentStatus; + status_ = 0; onChanged(); return this; } @@ -2920,27 +3309,35 @@ public Builder clearStatus() { private long eventTimestampTicks_ ; /** * required sfixed64 EventTimestampTicks = 3; + * @return Whether the eventTimestampTicks field is set. */ + @java.lang.Override public boolean hasEventTimestampTicks() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required sfixed64 EventTimestampTicks = 3; + * @return The eventTimestampTicks. */ + @java.lang.Override public long getEventTimestampTicks() { return eventTimestampTicks_; } /** * required sfixed64 EventTimestampTicks = 3; + * @param value The eventTimestampTicks to set. + * @return This builder for chaining. */ public Builder setEventTimestampTicks(long value) { - bitField0_ |= 0x00000004; + eventTimestampTicks_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** * required sfixed64 EventTimestampTicks = 3; + * @return This builder for chaining. */ public Builder clearEventTimestampTicks() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2952,12 +3349,14 @@ public Builder clearEventTimestampTicks() { private java.lang.Object lastEventComment_ = ""; /** * optional string LastEventComment = 4; + * @return Whether the lastEventComment field is set. */ public boolean hasLastEventComment() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string LastEventComment = 4; + * @return The lastEventComment. */ public java.lang.String getLastEventComment() { java.lang.Object ref = lastEventComment_; @@ -2975,6 +3374,7 @@ public java.lang.String getLastEventComment() { } /** * optional string LastEventComment = 4; + * @return The bytes for lastEventComment. */ public com.google.protobuf.ByteString getLastEventCommentBytes() { @@ -2991,36 +3391,37 @@ public java.lang.String getLastEventComment() { } /** * optional string LastEventComment = 4; + * @param value The lastEventComment to set. + * @return This builder for chaining. */ public Builder setLastEventComment( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } lastEventComment_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string LastEventComment = 4; + * @return This builder for chaining. */ public Builder clearLastEventComment() { - bitField0_ = (bitField0_ & ~0x00000008); lastEventComment_ = getDefaultInstance().getLastEventComment(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string LastEventComment = 4; + * @param value The bytes for lastEventComment to set. + * @return This builder for chaining. */ public Builder setLastEventCommentBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } lastEventComment_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3028,12 +3429,14 @@ public Builder setLastEventCommentBytes( private java.lang.Object messageFromCounteragent_ = ""; /** * optional string MessageFromCounteragent = 5; + * @return Whether the messageFromCounteragent field is set. */ public boolean hasMessageFromCounteragent() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional string MessageFromCounteragent = 5; + * @return The messageFromCounteragent. */ public java.lang.String getMessageFromCounteragent() { java.lang.Object ref = messageFromCounteragent_; @@ -3051,6 +3454,7 @@ public java.lang.String getMessageFromCounteragent() { } /** * optional string MessageFromCounteragent = 5; + * @return The bytes for messageFromCounteragent. */ public com.google.protobuf.ByteString getMessageFromCounteragentBytes() { @@ -3067,36 +3471,37 @@ public java.lang.String getMessageFromCounteragent() { } /** * optional string MessageFromCounteragent = 5; + * @param value The messageFromCounteragent to set. + * @return This builder for chaining. */ public Builder setMessageFromCounteragent( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } messageFromCounteragent_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string MessageFromCounteragent = 5; + * @return This builder for chaining. */ public Builder clearMessageFromCounteragent() { - bitField0_ = (bitField0_ & ~0x00000010); messageFromCounteragent_ = getDefaultInstance().getMessageFromCounteragent(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string MessageFromCounteragent = 5; + * @param value The bytes for messageFromCounteragent to set. + * @return This builder for chaining. */ public Builder setMessageFromCounteragentBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } messageFromCounteragent_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3104,12 +3509,14 @@ public Builder setMessageFromCounteragentBytes( private java.lang.Object messageToCounteragent_ = ""; /** * optional string MessageToCounteragent = 6; + * @return Whether the messageToCounteragent field is set. */ public boolean hasMessageToCounteragent() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string MessageToCounteragent = 6; + * @return The messageToCounteragent. */ public java.lang.String getMessageToCounteragent() { java.lang.Object ref = messageToCounteragent_; @@ -3127,6 +3534,7 @@ public java.lang.String getMessageToCounteragent() { } /** * optional string MessageToCounteragent = 6; + * @return The bytes for messageToCounteragent. */ public com.google.protobuf.ByteString getMessageToCounteragentBytes() { @@ -3143,55 +3551,58 @@ public java.lang.String getMessageToCounteragent() { } /** * optional string MessageToCounteragent = 6; + * @param value The messageToCounteragent to set. + * @return This builder for chaining. */ public Builder setMessageToCounteragent( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } messageToCounteragent_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional string MessageToCounteragent = 6; + * @return This builder for chaining. */ public Builder clearMessageToCounteragent() { - bitField0_ = (bitField0_ & ~0x00000020); messageToCounteragent_ = getDefaultInstance().getMessageToCounteragent(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * optional string MessageToCounteragent = 6; + * @param value The bytes for messageToCounteragent to set. + * @return This builder for chaining. */ public Builder setMessageToCounteragentBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } messageToCounteragent_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); + private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> invitationDocumentIdBuilder_; /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 7; + * @return Whether the invitationDocumentId field is set. */ public boolean hasInvitationDocumentId() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 7; + * @return The invitationDocumentId. */ public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() { if (invitationDocumentIdBuilder_ == null) { - return invitationDocumentId_; + return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } else { return invitationDocumentIdBuilder_.getMessage(); } @@ -3205,11 +3616,11 @@ public Builder setInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.Documen throw new NullPointerException(); } invitationDocumentId_ = value; - onChanged(); } else { invitationDocumentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3219,11 +3630,11 @@ public Builder setInvitationDocumentId( Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) { if (invitationDocumentIdBuilder_ == null) { invitationDocumentId_ = builderForValue.build(); - onChanged(); } else { invitationDocumentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3231,31 +3642,33 @@ public Builder setInvitationDocumentId( */ public Builder mergeInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) { if (invitationDocumentIdBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { - invitationDocumentId_ = - Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(invitationDocumentId_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) && + invitationDocumentId_ != null && + invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) { + getInvitationDocumentIdBuilder().mergeFrom(value); } else { invitationDocumentId_ = value; } - onChanged(); } else { invitationDocumentIdBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + if (invitationDocumentId_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 7; */ public Builder clearInvitationDocumentId() { - if (invitationDocumentIdBuilder_ == null) { - invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance(); - onChanged(); - } else { - invitationDocumentIdBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000040); + invitationDocumentId_ = null; + if (invitationDocumentIdBuilder_ != null) { + invitationDocumentIdBuilder_.dispose(); + invitationDocumentIdBuilder_ = null; + } + onChanged(); return this; } /** @@ -3273,7 +3686,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume if (invitationDocumentIdBuilder_ != null) { return invitationDocumentIdBuilder_.getMessageOrBuilder(); } else { - return invitationDocumentId_; + return invitationDocumentId_ == null ? + Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_; } } /** @@ -3296,12 +3710,14 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume private java.lang.Object counteragentGroupId_ = ""; /** * optional string CounteragentGroupId = 8; + * @return Whether the counteragentGroupId field is set. */ public boolean hasCounteragentGroupId() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional string CounteragentGroupId = 8; + * @return The counteragentGroupId. */ public java.lang.String getCounteragentGroupId() { java.lang.Object ref = counteragentGroupId_; @@ -3319,6 +3735,7 @@ public java.lang.String getCounteragentGroupId() { } /** * optional string CounteragentGroupId = 8; + * @return The bytes for counteragentGroupId. */ public com.google.protobuf.ByteString getCounteragentGroupIdBytes() { @@ -3335,36 +3752,37 @@ public java.lang.String getCounteragentGroupId() { } /** * optional string CounteragentGroupId = 8; + * @param value The counteragentGroupId to set. + * @return This builder for chaining. */ public Builder setCounteragentGroupId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } counteragentGroupId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional string CounteragentGroupId = 8; + * @return This builder for chaining. */ public Builder clearCounteragentGroupId() { - bitField0_ = (bitField0_ & ~0x00000080); counteragentGroupId_ = getDefaultInstance().getCounteragentGroupId(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * optional string CounteragentGroupId = 8; + * @param value The bytes for counteragentGroupId to set. + * @return This builder for chaining. */ public Builder setCounteragentGroupIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + if (value == null) { throw new NullPointerException(); } counteragentGroupId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3372,27 +3790,67 @@ public Builder setCounteragentGroupIdBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Events.CounteragentInfo) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.CounteragentInfo) + private static final Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo DEFAULT_INSTANCE; static { - defaultInstance = new CounteragentInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo(); + } + + public static Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CounteragentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Events.DiadocCounteragent_GetApiProtos.CounteragentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.CounteragentInfo) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEventList_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEventList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEvent_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEvent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Diadoc_Api_Proto_Events_CounteragentInfo_descriptor; - private static + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_Events_CounteragentInfo_fieldAccessorTable; @@ -3400,7 +3858,7 @@ public Builder setCounteragentGroupIdBytes( getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { @@ -3413,7 +3871,7 @@ public Builder setCounteragentGroupIdBytes( "teragentEvent\022\022\n\nTotalCount\030\002 \001(\005\0228\n\016Tot" + "alCountType\030\003 \002(\0162 .Diadoc.Api.Proto.Tot" + "alCountType\"\276\001\n\024BoxCounteragentEvent\022\017\n\007" + - "EventId\030\001 \002(\t\022?\n\014Counteragent\030\002 \001(\0132).Di", + "EventId\030\001 \002(\t\022?\n\014Counteragent\030\002 \001(\0132).Di" + "adoc.Api.Proto.Events.CounteragentInfo\022\020" + "\n\010IndexKey\030\003 \001(\t\022B\n\nEventTypes\030\004 \003(\0162..D" + "iadoc.Api.Proto.Events.CounteragentEvent" + @@ -3423,26 +3881,18 @@ public Builder setCounteragentGroupIdBytes( "tampTicks\030\003 \002(\020\022\030\n\020LastEventComment\030\004 \001(" + "\t\022\037\n\027MessageFromCounteragent\030\005 \001(\t\022\035\n\025Me" + "ssageToCounteragent\030\006 \001(\t\022:\n\024InvitationD" + - "ocumentId\030\007 \001(\0132\034.Diadoc.Api.Proto.Docum", + "ocumentId\030\007 \001(\0132\034.Diadoc.Api.Proto.Docum" + "entId\022\033\n\023CounteragentGroupId\030\010 \001(\tB!B\037Di" + "adocCounteragent_GetApiProtos" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Diadoc.Api.Proto.CounteragentProtos.getDescriptor(), Diadoc.Api.Proto.TotalCountTypeProtos.getDescriptor(), Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(), Diadoc.Api.Proto.Events.CounteragentEventTypeProtos.getDescriptor(), - }, assigner); + }); internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEventList_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Diadoc_Api_Proto_Events_BoxCounteragentEventList_fieldAccessorTable = new @@ -3461,6 +3911,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Events_CounteragentInfo_descriptor, new java.lang.String[] { "CounteragentBoxId", "Status", "EventTimestampTicks", "LastEventComment", "MessageFromCounteragent", "MessageToCounteragent", "InvitationDocumentId", "CounteragentGroupId", }); + descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.CounteragentProtos.getDescriptor(); Diadoc.Api.Proto.TotalCountTypeProtos.getDescriptor(); Diadoc.Api.Proto.DocumentIdProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Events/DiadocMessage_GetApiProtos.java b/src/main/java/Diadoc/Api/Proto/Events/DiadocMessage_GetApiProtos.java index 690bc627..78831f00 100644 --- a/src/main/java/Diadoc/Api/Proto/Events/DiadocMessage_GetApiProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Events/DiadocMessage_GetApiProtos.java @@ -1,12 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: Events/DiadocMessage-GetApi.proto +// Protobuf Java Version: 4.28.1 package Diadoc.Api.Proto.Events; public final class DiadocMessage_GetApiProtos { private DiadocMessage_GetApiProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + DiadocMessage_GetApiProtos.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code Diadoc.Api.Proto.Events.TemplateRefusalType} @@ -16,17 +33,26 @@ public enum TemplateRefusalType /** * UnknownTemplateRefusalType = 0; */ - UnknownTemplateRefusalType(0, 0), + UnknownTemplateRefusalType(0), /** * Refusal = 1; */ - Refusal(1, 1), + Refusal(1), /** * Withdrawal = 2; */ - Withdrawal(2, 2), + Withdrawal(2), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + TemplateRefusalType.class.getName()); + } /** * UnknownTemplateRefusalType = 0; */ @@ -41,9 +67,25 @@ public enum TemplateRefusalType public static final int Withdrawal_VALUE = 2; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static TemplateRefusalType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TemplateRefusalType forNumber(int value) { switch (value) { case 0: return UnknownTemplateRefusalType; case 1: return Refusal; @@ -56,17 +98,17 @@ public static TemplateRefusalType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + TemplateRefusalType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TemplateRefusalType findValueByNumber(int number) { - return TemplateRefusalType.valueOf(number); + return TemplateRefusalType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -88,11 +130,9 @@ public static TemplateRefusalType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private TemplateRefusalType(int index, int value) { - this.index = index; + private TemplateRefusalType(int value) { this.value = value; } @@ -105,33 +145,42 @@ private TemplateRefusalType(int index, int value) { public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownEntityType = 0; - * *
      * Reserved type to report to legacy clients for newly introduced entity types
      * 
+ * + * UnknownEntityType = 0; */ - UnknownEntityType(0, 0), + UnknownEntityType(0), /** * Attachment = 1; */ - Attachment(1, 1), + Attachment(1), /** - * Signature = 2; - * *
-     *Неизвестные типы должны обрабатываться клиентом как сущность Attachment с типом вложения AttachmentType.Nonformalized
+     * Неизвестные типы должны обрабатываться клиентом как сущность Attachment с типом вложения AttachmentType.Nonformalized
      * 
+ * + * Signature = 2; */ - Signature(2, 2), + Signature(2), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + EntityType.class.getName()); + } /** - * UnknownEntityType = 0; - * *
      * Reserved type to report to legacy clients for newly introduced entity types
      * 
+ * + * UnknownEntityType = 0; */ public static final int UnknownEntityType_VALUE = 0; /** @@ -139,18 +188,34 @@ public enum EntityType */ public static final int Attachment_VALUE = 1; /** - * Signature = 2; - * *
-     *Неизвестные типы должны обрабатываться клиентом как сущность Attachment с типом вложения AttachmentType.Nonformalized
+     * Неизвестные типы должны обрабатываться клиентом как сущность Attachment с типом вложения AttachmentType.Nonformalized
      * 
+ * + * Signature = 2; */ public static final int Signature_VALUE = 2; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static EntityType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EntityType forNumber(int value) { switch (value) { case 0: return UnknownEntityType; case 1: return Attachment; @@ -163,17 +228,17 @@ public static EntityType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + EntityType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public EntityType findValueByNumber(int number) { - return EntityType.valueOf(number); + return EntityType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -195,11 +260,9 @@ public static EntityType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private EntityType(int index, int value) { - this.index = index; + private EntityType(int value) { this.value = value; } @@ -212,257 +275,266 @@ private EntityType(int index, int value) { public enum AttachmentType implements com.google.protobuf.ProtocolMessageEnum { /** - * UnknownAttachmentType = -1; - * *
      * Reserved attachment type to report to legacy clients for newly introduced attachment types
      * 
+ * + * UnknownAttachmentType = -1; */ - UnknownAttachmentType(0, -1), + UnknownAttachmentType(-1), /** * Nonformalized = 0; */ - Nonformalized(1, 0), + Nonformalized(0), /** * Invoice = 1; */ - Invoice(2, 1), + Invoice(1), /** * InvoiceReceipt = 2; */ - InvoiceReceipt(3, 2), + InvoiceReceipt(2), /** * InvoiceConfirmation = 3; */ - InvoiceConfirmation(4, 3), + InvoiceConfirmation(3), /** * InvoiceCorrectionRequest = 4; */ - InvoiceCorrectionRequest(5, 4), + InvoiceCorrectionRequest(4), /** * AttachmentComment = 5; */ - AttachmentComment(6, 5), + AttachmentComment(5), /** * DeliveryFailureNotification = 6; */ - DeliveryFailureNotification(7, 6), + DeliveryFailureNotification(6), /** * EancomInvoic = 7; */ - EancomInvoic(8, 7), + EancomInvoic(7), /** * SignatureRequestRejection = 8; */ - SignatureRequestRejection(9, 8), + SignatureRequestRejection(8), /** * EcrCatConformanceCertificateMetadata = 9; */ - EcrCatConformanceCertificateMetadata(10, 9), + EcrCatConformanceCertificateMetadata(9), /** * SignatureVerificationReport = 10; */ - SignatureVerificationReport(11, 10), + SignatureVerificationReport(10), /** * TrustConnectionRequest = 11; */ - TrustConnectionRequest(12, 11), + TrustConnectionRequest(11), /** * Torg12 = 12; */ - Torg12(13, 12), + Torg12(12), /** * InvoiceRevision = 13; */ - InvoiceRevision(14, 13), + InvoiceRevision(13), /** * InvoiceCorrection = 14; */ - InvoiceCorrection(15, 14), + InvoiceCorrection(14), /** * InvoiceCorrectionRevision = 15; */ - InvoiceCorrectionRevision(16, 15), + InvoiceCorrectionRevision(15), /** * AcceptanceCertificate = 16; */ - AcceptanceCertificate(17, 16), + AcceptanceCertificate(16), /** * StructuredData = 17; */ - StructuredData(18, 17), + StructuredData(17), /** * ProformaInvoice = 18; */ - ProformaInvoice(19, 18), + ProformaInvoice(18), /** * XmlTorg12 = 19; */ - XmlTorg12(20, 19), + XmlTorg12(19), /** * XmlAcceptanceCertificate = 20; */ - XmlAcceptanceCertificate(21, 20), + XmlAcceptanceCertificate(20), /** * XmlTorg12BuyerTitle = 21; */ - XmlTorg12BuyerTitle(22, 21), + XmlTorg12BuyerTitle(21), /** * XmlAcceptanceCertificateBuyerTitle = 22; */ - XmlAcceptanceCertificateBuyerTitle(23, 22), + XmlAcceptanceCertificateBuyerTitle(22), /** * Resolution = 23; */ - Resolution(24, 23), + Resolution(23), /** * ResolutionRequest = 24; */ - ResolutionRequest(25, 24), + ResolutionRequest(24), /** * ResolutionRequestDenial = 25; */ - ResolutionRequestDenial(26, 25), + ResolutionRequestDenial(25), /** * PriceList = 26; */ - PriceList(27, 26), + PriceList(26), /** * Receipt = 27; */ - Receipt(28, 27), + Receipt(27), /** * XmlSignatureRejection = 28; */ - XmlSignatureRejection(29, 28), + XmlSignatureRejection(28), /** * RevocationRequest = 29; */ - RevocationRequest(30, 29), + RevocationRequest(29), /** * PriceListAgreement = 30; */ - PriceListAgreement(31, 30), + PriceListAgreement(30), /** * CertificateRegistry = 34; */ - CertificateRegistry(32, 34), + CertificateRegistry(34), /** * ReconciliationAct = 35; */ - ReconciliationAct(33, 35), + ReconciliationAct(35), /** * Contract = 36; */ - Contract(34, 36), + Contract(36), /** * Torg13 = 37; */ - Torg13(35, 37), + Torg13(37), /** * ServiceDetails = 38; */ - ServiceDetails(36, 38), + ServiceDetails(38), /** * RoamingNotification = 39; */ - RoamingNotification(37, 39), + RoamingNotification(39), /** * SupplementaryAgreement = 40; */ - SupplementaryAgreement(38, 40), + SupplementaryAgreement(40), /** * UniversalTransferDocument = 41; */ - UniversalTransferDocument(39, 41), + UniversalTransferDocument(41), /** * UniversalTransferDocumentBuyerTitle = 42; */ - UniversalTransferDocumentBuyerTitle(40, 42), + UniversalTransferDocumentBuyerTitle(42), /** * UniversalTransferDocumentRevision = 45; */ - UniversalTransferDocumentRevision(41, 45), + UniversalTransferDocumentRevision(45), /** * UniversalCorrectionDocument = 49; */ - UniversalCorrectionDocument(42, 49), + UniversalCorrectionDocument(49), /** * UniversalCorrectionDocumentRevision = 50; */ - UniversalCorrectionDocumentRevision(43, 50), + UniversalCorrectionDocumentRevision(50), /** * UniversalCorrectionDocumentBuyerTitle = 51; */ - UniversalCorrectionDocumentBuyerTitle(44, 51), + UniversalCorrectionDocumentBuyerTitle(51), /** * CustomData = 64; */ - CustomData(45, 64), + CustomData(64), /** * MoveDocument = 65; */ - MoveDocument(46, 65), + MoveDocument(65), /** * ResolutionRouteAssignmentAttachment = 66; */ - ResolutionRouteAssignmentAttachment(47, 66), + ResolutionRouteAssignmentAttachment(66), /** * ResolutionRouteRemovalAttachment = 67; */ - ResolutionRouteRemovalAttachment(48, 67), + ResolutionRouteRemovalAttachment(67), /** * Title = 68; */ - Title(49, 68), + Title(68), /** * Cancellation = 69; */ - Cancellation(50, 69), + Cancellation(69), /** * Edition = 71; */ - Edition(51, 71), + Edition(71), /** * DeletionRestoration = 72; */ - DeletionRestoration(52, 72), + DeletionRestoration(72), /** * TemplateTransformation = 73; */ - TemplateTransformation(53, 73), + TemplateTransformation(73), /** * TemplateRefusal = 74; */ - TemplateRefusal(54, 74), + TemplateRefusal(74), /** * OuterDocflow = 75; */ - OuterDocflow(55, 75), + OuterDocflow(75), /** * RoamingConfirmation = 76; */ - RoamingConfirmation(56, 76), + RoamingConfirmation(76), /** * PowerOfAttorney = 77; */ - PowerOfAttorney(57, 77), + PowerOfAttorney(77), /** - * PowerOfAttorneyStatus = 78; - * *
-     *Неизвестные типы должны обрабатываться как Title
+     * Неизвестные типы должны обрабатываться как Title
      * 
+ * + * PowerOfAttorneyStatus = 78; */ - PowerOfAttorneyStatus(58, 78), + PowerOfAttorneyStatus(78), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + AttachmentType.class.getName()); + } /** - * UnknownAttachmentType = -1; - * *
      * Reserved attachment type to report to legacy clients for newly introduced attachment types
      * 
+ * + * UnknownAttachmentType = -1; */ public static final int UnknownAttachmentType_VALUE = -1; /** @@ -694,18 +766,34 @@ public enum AttachmentType */ public static final int PowerOfAttorney_VALUE = 77; /** - * PowerOfAttorneyStatus = 78; - * *
-     *Неизвестные типы должны обрабатываться как Title
+     * Неизвестные типы должны обрабатываться как Title
      * 
+ * + * PowerOfAttorneyStatus = 78; */ public static final int PowerOfAttorneyStatus_VALUE = 78; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static AttachmentType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AttachmentType forNumber(int value) { switch (value) { case -1: return UnknownAttachmentType; case 0: return Nonformalized; @@ -774,17 +862,17 @@ public static AttachmentType valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + AttachmentType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AttachmentType findValueByNumber(int number) { - return AttachmentType.valueOf(number); + return AttachmentType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -806,11 +894,9 @@ public static AttachmentType valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private AttachmentType(int index, int value) { - this.index = index; + private AttachmentType(int value) { this.value = value; } @@ -847,19 +933,23 @@ Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventOrBuilder getEventsOr /** * optional int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ boolean hasTotalCount(); /** * optional int32 TotalCount = 2; + * @return The totalCount. */ int getTotalCount(); /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ boolean hasTotalCountType(); /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType(); } @@ -870,95 +960,31 @@ public static final class BoxEventList extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Events.BoxEventList) BoxEventListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BoxEventList.class.getName()); + } // Use BoxEventList.newBuilder() to construct. private BoxEventList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private BoxEventList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final BoxEventList defaultInstance; - public static BoxEventList getDefaultInstance() { - return defaultInstance; } - - public BoxEventList getDefaultInstanceForType() { - return defaultInstance; + private BoxEventList() { + events_ = java.util.Collections.emptyList(); + totalCountType_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BoxEventList( - 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)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add(input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent.PARSER, extensionRegistry)); - break; - } - case 16: { - bitField0_ |= 0x00000001; - totalCount_ = input.readInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType value = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000002; - totalCountType_ = value; - } - 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)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxEventList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxEventList_fieldAccessorTable @@ -966,33 +992,21 @@ private BoxEventList( Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList.class, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BoxEventList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoxEventList(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int EVENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List events_; /** * repeated .Diadoc.Api.Proto.Events.BoxEvent Events = 1; */ + @java.lang.Override public java.util.List getEventsList() { return events_; } /** * repeated .Diadoc.Api.Proto.Events.BoxEvent Events = 1; */ + @java.lang.Override public java.util.List getEventsOrBuilderList() { return events_; @@ -1000,59 +1014,65 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Events.BoxEvent Events = 1; */ + @java.lang.Override public int getEventsCount() { return events_.size(); } /** * repeated .Diadoc.Api.Proto.Events.BoxEvent Events = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent getEvents(int index) { return events_.get(index); } /** * repeated .Diadoc.Api.Proto.Events.BoxEvent Events = 1; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } public static final int TOTALCOUNT_FIELD_NUMBER = 2; - private int totalCount_; + private int totalCount_ = 0; /** * optional int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } public static final int TOTALCOUNTTYPE_FIELD_NUMBER = 3; - private Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType totalCountType_; + private int totalCountType_ = 0; /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ - public boolean hasTotalCountType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + @java.lang.Override public boolean hasTotalCountType() { + return ((bitField0_ & 0x00000002) != 0); } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ - public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { - return totalCountType_; + @java.lang.Override public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType result = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(totalCountType_); + return result == null ? Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType : result; } - private void initFields() { - events_ = java.util.Collections.emptyList(); - totalCount_ = 0; - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1072,24 +1092,24 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < events_.size(); i++) { output.writeMessage(1, events_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(2, totalCount_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(3, totalCountType_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, totalCountType_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -1097,26 +1117,79 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, events_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, totalCount_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, totalCountType_.getNumber()); + .computeEnumSize(3, totalCountType_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList other = (Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList) obj; + + if (!getEventsList() + .equals(other.getEventsList())) return false; + if (hasTotalCount() != other.hasTotalCount()) return false; + if (hasTotalCount()) { + if (getTotalCount() + != other.getTotalCount()) return false; + } + if (hasTotalCountType() != other.hasTotalCountType()) return false; + if (hasTotalCountType()) { + if (totalCountType_ != other.totalCountType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + if (hasTotalCount()) { + hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + } + if (hasTotalCountType()) { + hash = (37 * hash) + TOTALCOUNTTYPE_FIELD_NUMBER; + hash = (53 * hash) + totalCountType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1140,42 +1213,57 @@ public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList pa } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -1195,6 +1283,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxEventList_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxEventList_fieldAccessorTable @@ -1204,51 +1293,42 @@ public static final class Builder extends // Construct using Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getEventsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + } + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + events_ = null; eventsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); totalCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; - bitField0_ = (bitField0_ & ~0x00000004); + totalCountType_ = 0; return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxEventList_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList getDefaultInstanceForType() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList build() { Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList result = buildPartial(); if (!result.isInitialized()) { @@ -1257,12 +1337,18 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList buildPartial() { Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList result = new Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList result) { if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1270,19 +1356,23 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList buildPart } else { result.events_ = eventsBuilder_.build(); } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + } + + private void buildPartial0(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalCount_ = totalCount_; to_bitField0_ |= 0x00000001; } - result.totalCount_ = totalCount_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalCountType_ = totalCountType_; to_bitField0_ |= 0x00000002; } - result.totalCountType_ = totalCountType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList) { return mergeFrom((Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList)other); @@ -1327,38 +1417,82 @@ public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxE setTotalCountType(other.getTotalCountType()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasTotalCountType()) { - return false; } for (int i = 0; i < getEventsCount(); i++) { if (!getEvents(i).isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent m = + input.readMessage( + Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent.parser(), + extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType tmpValue = + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + totalCountType_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1366,7 +1500,7 @@ public Builder mergeFrom( private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; } @@ -1595,7 +1729,7 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent.Builder addEv eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent.Builder, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventOrBuilder>( events_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); events_ = null; @@ -1606,27 +1740,35 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent.Builder addEv private int totalCount_ ; /** * optional int32 TotalCount = 2; + * @return Whether the totalCount field is set. */ + @java.lang.Override public boolean hasTotalCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 TotalCount = 2; + * @return The totalCount. */ + @java.lang.Override public int getTotalCount() { return totalCount_; } /** * optional int32 TotalCount = 2; + * @param value The totalCount to set. + * @return This builder for chaining. */ public Builder setTotalCount(int value) { - bitField0_ |= 0x00000002; + totalCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int32 TotalCount = 2; + * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1635,37 +1777,44 @@ public Builder clearTotalCount() { return this; } - private Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; + private int totalCountType_ = 0; /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return Whether the totalCountType field is set. */ - public boolean hasTotalCountType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + @java.lang.Override public boolean hasTotalCountType() { + return ((bitField0_ & 0x00000004) != 0); } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return The totalCountType. */ + @java.lang.Override public Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType getTotalCountType() { - return totalCountType_; + Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType result = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.forNumber(totalCountType_); + return result == null ? Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType : result; } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @param value The totalCountType to set. + * @return This builder for chaining. */ public Builder setTotalCountType(Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - totalCountType_ = value; + totalCountType_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.TotalCountType TotalCountType = 3; + * @return This builder for chaining. */ public Builder clearTotalCountType() { bitField0_ = (bitField0_ & ~0x00000004); - totalCountType_ = Diadoc.Api.Proto.TotalCountTypeProtos.TotalCountType.UnknownCountType; + totalCountType_ = 0; onChanged(); return this; } @@ -1673,12 +1822,52 @@ public Builder clearTotalCountType() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Events.BoxEventList) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.BoxEventList) + private static final Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList DEFAULT_INSTANCE; static { - defaultInstance = new BoxEventList(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList(); + } + + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoxEventList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEventList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.BoxEventList) } public interface BoxEventOrBuilder extends @@ -1687,24 +1876,29 @@ public interface BoxEventOrBuilder extends /** * required string EventId = 1; + * @return Whether the eventId field is set. */ boolean hasEventId(); /** * required string EventId = 1; + * @return The eventId. */ java.lang.String getEventId(); /** * required string EventId = 1; + * @return The bytes for eventId. */ com.google.protobuf.ByteString getEventIdBytes(); /** * optional .Diadoc.Api.Proto.Events.Message Message = 2; + * @return Whether the message field is set. */ boolean hasMessage(); /** * optional .Diadoc.Api.Proto.Events.Message Message = 2; + * @return The message. */ Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message getMessage(); /** @@ -1714,10 +1908,12 @@ public interface BoxEventOrBuilder extends /** * optional .Diadoc.Api.Proto.Events.MessagePatch Patch = 3; + * @return Whether the patch field is set. */ boolean hasPatch(); /** * optional .Diadoc.Api.Proto.Events.MessagePatch Patch = 3; + * @return The patch. */ Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch getPatch(); /** @@ -1727,14 +1923,17 @@ public interface BoxEventOrBuilder extends /** * optional string IndexKey = 4; + * @return Whether the indexKey field is set. */ boolean hasIndexKey(); /** * optional string IndexKey = 4; + * @return The indexKey. */ java.lang.String getIndexKey(); /** * optional string IndexKey = 4; + * @return The bytes for indexKey. */ com.google.protobuf.ByteString getIndexKeyBytes(); @@ -1746,106 +1945,31 @@ public static final class BoxEvent extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Events.BoxEvent) BoxEventOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + BoxEvent.class.getName()); + } // Use BoxEvent.newBuilder() to construct. private BoxEvent(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private BoxEvent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final BoxEvent defaultInstance; - public static BoxEvent getDefaultInstance() { - return defaultInstance; - } - - public BoxEvent getDefaultInstanceForType() { - return defaultInstance; + private BoxEvent() { + eventId_ = ""; + indexKey_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BoxEvent( - 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; - eventId_ = bs; - break; - } - case 18: { - Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = message_.toBuilder(); - } - message_ = input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(message_); - message_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = patch_.toBuilder(); - } - patch_ = input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(patch_); - patch_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - indexKey_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxEvent_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxEvent_fieldAccessorTable @@ -1853,33 +1977,23 @@ private BoxEvent( Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent.class, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BoxEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoxEvent(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int EVENTID_FIELD_NUMBER = 1; - private java.lang.Object eventId_; + @SuppressWarnings("serial") + private volatile java.lang.Object eventId_ = ""; /** * required string EventId = 1; + * @return Whether the eventId field is set. */ + @java.lang.Override public boolean hasEventId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string EventId = 1; + * @return The eventId. */ + @java.lang.Override public java.lang.String getEventId() { java.lang.Object ref = eventId_; if (ref instanceof java.lang.String) { @@ -1896,7 +2010,9 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @return The bytes for eventId. */ + @java.lang.Override public com.google.protobuf.ByteString getEventIdBytes() { java.lang.Object ref = eventId_; @@ -1915,55 +2031,70 @@ public java.lang.String getEventId() { private Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message message_; /** * optional .Diadoc.Api.Proto.Events.Message Message = 2; + * @return Whether the message field is set. */ + @java.lang.Override public boolean hasMessage() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Events.Message Message = 2; + * @return The message. */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message getMessage() { - return message_; + return message_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance() : message_; } /** * optional .Diadoc.Api.Proto.Events.Message Message = 2; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessageOrBuilder getMessageOrBuilder() { - return message_; + return message_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance() : message_; } public static final int PATCH_FIELD_NUMBER = 3; private Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch patch_; /** * optional .Diadoc.Api.Proto.Events.MessagePatch Patch = 3; + * @return Whether the patch field is set. */ + @java.lang.Override public boolean hasPatch() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Events.MessagePatch Patch = 3; + * @return The patch. */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch getPatch() { - return patch_; + return patch_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.getDefaultInstance() : patch_; } /** * optional .Diadoc.Api.Proto.Events.MessagePatch Patch = 3; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatchOrBuilder getPatchOrBuilder() { - return patch_; + return patch_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.getDefaultInstance() : patch_; } public static final int INDEXKEY_FIELD_NUMBER = 4; - private java.lang.Object indexKey_; + @SuppressWarnings("serial") + private volatile java.lang.Object indexKey_ = ""; /** * optional string IndexKey = 4; + * @return Whether the indexKey field is set. */ + @java.lang.Override public boolean hasIndexKey() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string IndexKey = 4; + * @return The indexKey. */ + @java.lang.Override public java.lang.String getIndexKey() { java.lang.Object ref = indexKey_; if (ref instanceof java.lang.String) { @@ -1980,7 +2111,9 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 4; + * @return The bytes for indexKey. */ + @java.lang.Override public com.google.protobuf.ByteString getIndexKeyBytes() { java.lang.Object ref = indexKey_; @@ -1995,13 +2128,8 @@ public java.lang.String getIndexKey() { } } - private void initFields() { - eventId_ = ""; - message_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance(); - patch_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.getDefaultInstance(); - indexKey_ = ""; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2027,58 +2155,122 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getEventIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, eventId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, message_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getMessage()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, patch_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getPatch()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getIndexKeyBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, indexKey_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getEventIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, eventId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, message_); + .computeMessageSize(2, getMessage()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, patch_); + .computeMessageSize(3, getPatch()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getIndexKeyBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, indexKey_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent other = (Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent) obj; + + if (hasEventId() != other.hasEventId()) return false; + if (hasEventId()) { + if (!getEventId() + .equals(other.getEventId())) return false; + } + if (hasMessage() != other.hasMessage()) return false; + if (hasMessage()) { + if (!getMessage() + .equals(other.getMessage())) return false; + } + if (hasPatch() != other.hasPatch()) return false; + if (hasPatch()) { + if (!getPatch() + .equals(other.getPatch())) return false; + } + if (hasIndexKey() != other.hasIndexKey()) return false; + if (hasIndexKey()) { + if (!getIndexKey() + .equals(other.getIndexKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEventId()) { + hash = (37 * hash) + EVENTID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + } + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + if (hasPatch()) { + hash = (37 * hash) + PATCH_FIELD_NUMBER; + hash = (53 * hash) + getPatch().hashCode(); + } + if (hasIndexKey()) { + hash = (37 * hash) + INDEXKEY_FIELD_NUMBER; + hash = (53 * hash) + getIndexKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2102,42 +2294,57 @@ public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parseF } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2157,6 +2364,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxEvent_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxEvent_fieldAccessorTable @@ -2175,49 +2383,43 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getMessageFieldBuilder(); getPatchFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; eventId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (messageBuilder_ == null) { - message_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance(); - } else { - messageBuilder_.clear(); + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (patchBuilder_ == null) { - patch_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.getDefaultInstance(); - } else { - patchBuilder_.clear(); + patch_ = null; + if (patchBuilder_ != null) { + patchBuilder_.dispose(); + patchBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); indexKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_BoxEvent_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent getDefaultInstanceForType() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent build() { Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent result = buildPartial(); if (!result.isInitialized()) { @@ -2226,39 +2428,41 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent buildPartial() { Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent result = new Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eventId_ = eventId_; to_bitField0_ |= 0x00000001; } - result.eventId_ = eventId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.message_ = messageBuilder_ == null + ? message_ + : messageBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (messageBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = messageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.patch_ = patchBuilder_ == null + ? patch_ + : patchBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (patchBuilder_ == null) { - result.patch_ = patch_; - } else { - result.patch_ = patchBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.indexKey_ = indexKey_; to_bitField0_ |= 0x00000008; } - result.indexKey_ = indexKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent) { return mergeFrom((Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent)other); @@ -2271,8 +2475,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent other) { if (other == Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent.getDefaultInstance()) return this; if (other.hasEventId()) { - bitField0_ |= 0x00000001; eventId_ = other.eventId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasMessage()) { @@ -2282,49 +2486,86 @@ public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxE mergePatch(other.getPatch()); } if (other.hasIndexKey()) { - bitField0_ |= 0x00000008; indexKey_ = other.indexKey_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasEventId()) { - return false; } if (hasMessage()) { if (!getMessage().isInitialized()) { - return false; } } if (hasPatch()) { if (!getPatch().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + eventId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMessageFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPatchFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + indexKey_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2332,12 +2573,14 @@ public Builder mergeFrom( private java.lang.Object eventId_ = ""; /** * required string EventId = 1; + * @return Whether the eventId field is set. */ public boolean hasEventId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string EventId = 1; + * @return The eventId. */ public java.lang.String getEventId() { java.lang.Object ref = eventId_; @@ -2355,6 +2598,7 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @return The bytes for eventId. */ public com.google.protobuf.ByteString getEventIdBytes() { @@ -2371,55 +2615,58 @@ public java.lang.String getEventId() { } /** * required string EventId = 1; + * @param value The eventId to set. + * @return This builder for chaining. */ public Builder setEventId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } eventId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string EventId = 1; + * @return This builder for chaining. */ public Builder clearEventId() { - bitField0_ = (bitField0_ & ~0x00000001); eventId_ = getDefaultInstance().getEventId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string EventId = 1; + * @param value The bytes for eventId to set. + * @return This builder for chaining. */ public Builder setEventIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } eventId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message message_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance(); + private Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message message_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.Builder, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessageOrBuilder> messageBuilder_; /** * optional .Diadoc.Api.Proto.Events.Message Message = 2; + * @return Whether the message field is set. */ public boolean hasMessage() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .Diadoc.Api.Proto.Events.Message Message = 2; + * @return The message. */ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message getMessage() { if (messageBuilder_ == null) { - return message_; + return message_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } @@ -2433,11 +2680,11 @@ public Builder setMessage(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Mes throw new NullPointerException(); } message_ = value; - onChanged(); } else { messageBuilder_.setMessage(value); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2447,11 +2694,11 @@ public Builder setMessage( Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); - onChanged(); } else { messageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2459,31 +2706,33 @@ public Builder setMessage( */ public Builder mergeMessage(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message value) { if (messageBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - message_ != Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance()) { - message_ = - Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.newBuilder(message_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + message_ != null && + message_ != Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance()) { + getMessageBuilder().mergeFrom(value); } else { message_ = value; } - onChanged(); } else { messageBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + if (message_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Events.Message Message = 2; */ public Builder clearMessage() { - if (messageBuilder_ == null) { - message_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance(); - onChanged(); - } else { - messageBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000002); + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + onChanged(); return this; } /** @@ -2501,7 +2750,8 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessageOrBuilder getMe if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { - return message_; + return message_ == null ? + Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance() : message_; } } /** @@ -2521,21 +2771,23 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessageOrBuilder getMe return messageBuilder_; } - private Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch patch_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.getDefaultInstance(); + private Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch patch_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.Builder, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatchOrBuilder> patchBuilder_; /** * optional .Diadoc.Api.Proto.Events.MessagePatch Patch = 3; + * @return Whether the patch field is set. */ public boolean hasPatch() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .Diadoc.Api.Proto.Events.MessagePatch Patch = 3; + * @return The patch. */ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch getPatch() { if (patchBuilder_ == null) { - return patch_; + return patch_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.getDefaultInstance() : patch_; } else { return patchBuilder_.getMessage(); } @@ -2549,11 +2801,11 @@ public Builder setPatch(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Messa throw new NullPointerException(); } patch_ = value; - onChanged(); } else { patchBuilder_.setMessage(value); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2563,11 +2815,11 @@ public Builder setPatch( Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.Builder builderForValue) { if (patchBuilder_ == null) { patch_ = builderForValue.build(); - onChanged(); } else { patchBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2575,31 +2827,33 @@ public Builder setPatch( */ public Builder mergePatch(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch value) { if (patchBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - patch_ != Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.getDefaultInstance()) { - patch_ = - Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.newBuilder(patch_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) && + patch_ != null && + patch_ != Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.getDefaultInstance()) { + getPatchBuilder().mergeFrom(value); } else { patch_ = value; } - onChanged(); } else { patchBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + if (patch_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Events.MessagePatch Patch = 3; */ public Builder clearPatch() { - if (patchBuilder_ == null) { - patch_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.getDefaultInstance(); - onChanged(); - } else { - patchBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00000004); + patch_ = null; + if (patchBuilder_ != null) { + patchBuilder_.dispose(); + patchBuilder_ = null; + } + onChanged(); return this; } /** @@ -2617,7 +2871,8 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatchOrBuilder if (patchBuilder_ != null) { return patchBuilder_.getMessageOrBuilder(); } else { - return patch_; + return patch_ == null ? + Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatch.getDefaultInstance() : patch_; } } /** @@ -2640,12 +2895,14 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.MessagePatchOrBuilder private java.lang.Object indexKey_ = ""; /** * optional string IndexKey = 4; + * @return Whether the indexKey field is set. */ public boolean hasIndexKey() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string IndexKey = 4; + * @return The indexKey. */ public java.lang.String getIndexKey() { java.lang.Object ref = indexKey_; @@ -2663,6 +2920,7 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 4; + * @return The bytes for indexKey. */ public com.google.protobuf.ByteString getIndexKeyBytes() { @@ -2679,36 +2937,37 @@ public java.lang.String getIndexKey() { } /** * optional string IndexKey = 4; + * @param value The indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKey( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string IndexKey = 4; + * @return This builder for chaining. */ public Builder clearIndexKey() { - bitField0_ = (bitField0_ & ~0x00000008); indexKey_ = getDefaultInstance().getIndexKey(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * optional string IndexKey = 4; + * @param value The bytes for indexKey to set. + * @return This builder for chaining. */ public Builder setIndexKeyBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } indexKey_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2716,12 +2975,52 @@ public Builder setIndexKeyBytes( // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Events.BoxEvent) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.BoxEvent) + private static final Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent DEFAULT_INSTANCE; static { - defaultInstance = new BoxEvent(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent(); + } + + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoxEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.BoxEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.BoxEvent) } public interface MessageOrBuilder extends @@ -2730,104 +3029,123 @@ public interface MessageOrBuilder extends /** * required string MessageId = 1; + * @return Whether the messageId field is set. */ boolean hasMessageId(); /** * required string MessageId = 1; + * @return The messageId. */ java.lang.String getMessageId(); /** * required string MessageId = 1; + * @return The bytes for messageId. */ com.google.protobuf.ByteString getMessageIdBytes(); /** - * required sfixed64 TimestampTicks = 2; - * *
      * DateTime.Ticks in UTC
      * 
+ * + * required sfixed64 TimestampTicks = 2; + * @return Whether the timestampTicks field is set. */ boolean hasTimestampTicks(); /** - * required sfixed64 TimestampTicks = 2; - * *
      * DateTime.Ticks in UTC
      * 
+ * + * required sfixed64 TimestampTicks = 2; + * @return The timestampTicks. */ long getTimestampTicks(); /** - * required sfixed64 LastPatchTimestampTicks = 3; - * *
      * DateTime.Ticks in UTC
      * 
+ * + * required sfixed64 LastPatchTimestampTicks = 3; + * @return Whether the lastPatchTimestampTicks field is set. */ boolean hasLastPatchTimestampTicks(); /** - * required sfixed64 LastPatchTimestampTicks = 3; - * *
      * DateTime.Ticks in UTC
      * 
+ * + * required sfixed64 LastPatchTimestampTicks = 3; + * @return The lastPatchTimestampTicks. */ long getLastPatchTimestampTicks(); /** * required string FromBoxId = 4; + * @return Whether the fromBoxId field is set. */ boolean hasFromBoxId(); /** * required string FromBoxId = 4; + * @return The fromBoxId. */ java.lang.String getFromBoxId(); /** * required string FromBoxId = 4; + * @return The bytes for fromBoxId. */ com.google.protobuf.ByteString getFromBoxIdBytes(); /** * required string FromTitle = 5; + * @return Whether the fromTitle field is set. */ boolean hasFromTitle(); /** * required string FromTitle = 5; + * @return The fromTitle. */ java.lang.String getFromTitle(); /** * required string FromTitle = 5; + * @return The bytes for fromTitle. */ com.google.protobuf.ByteString getFromTitleBytes(); /** * optional string ToBoxId = 6; + * @return Whether the toBoxId field is set. */ boolean hasToBoxId(); /** * optional string ToBoxId = 6; + * @return The toBoxId. */ java.lang.String getToBoxId(); /** * optional string ToBoxId = 6; + * @return The bytes for toBoxId. */ com.google.protobuf.ByteString getToBoxIdBytes(); /** * optional string ToTitle = 7; + * @return Whether the toTitle field is set. */ boolean hasToTitle(); /** * optional string ToTitle = 7; + * @return The toTitle. */ java.lang.String getToTitle(); /** * optional string ToTitle = 7; + * @return The bytes for toTitle. */ com.google.protobuf.ByteString getToTitleBytes(); @@ -2858,161 +3176,198 @@ Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.EntityOrBuilder getEntitiesOr /** * optional bool IsDraft = 9 [default = false]; + * @return Whether the isDraft field is set. */ boolean hasIsDraft(); /** * optional bool IsDraft = 9 [default = false]; + * @return The isDraft. */ boolean getIsDraft(); /** * optional bool DraftIsLocked = 10 [default = false]; + * @return Whether the draftIsLocked field is set. */ boolean hasDraftIsLocked(); /** * optional bool DraftIsLocked = 10 [default = false]; + * @return The draftIsLocked. */ boolean getDraftIsLocked(); /** * optional bool DraftIsRecycled = 11 [default = false]; + * @return Whether the draftIsRecycled field is set. */ boolean hasDraftIsRecycled(); /** * optional bool DraftIsRecycled = 11 [default = false]; + * @return The draftIsRecycled. */ boolean getDraftIsRecycled(); /** * optional string CreatedFromDraftId = 12; + * @return Whether the createdFromDraftId field is set. */ boolean hasCreatedFromDraftId(); /** * optional string CreatedFromDraftId = 12; + * @return The createdFromDraftId. */ java.lang.String getCreatedFromDraftId(); /** * optional string CreatedFromDraftId = 12; + * @return The bytes for createdFromDraftId. */ com.google.protobuf.ByteString getCreatedFromDraftIdBytes(); /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @return A list containing the draftIsTransformedToMessageIdList. */ - com.google.protobuf.ProtocolStringList + java.util.List getDraftIsTransformedToMessageIdListList(); /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @return The count of draftIsTransformedToMessageIdList. */ int getDraftIsTransformedToMessageIdListCount(); /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @param index The index of the element to return. + * @return The draftIsTransformedToMessageIdList at the given index. */ java.lang.String getDraftIsTransformedToMessageIdList(int index); /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @param index The index of the value to return. + * @return The bytes of the draftIsTransformedToMessageIdList at the given index. */ com.google.protobuf.ByteString getDraftIsTransformedToMessageIdListBytes(int index); /** * optional bool IsDeleted = 14 [default = false]; + * @return Whether the isDeleted field is set. */ boolean hasIsDeleted(); /** * optional bool IsDeleted = 14 [default = false]; + * @return The isDeleted. */ boolean getIsDeleted(); /** * optional bool IsTest = 15 [default = false]; + * @return Whether the isTest field is set. */ boolean hasIsTest(); /** * optional bool IsTest = 15 [default = false]; + * @return The isTest. */ boolean getIsTest(); /** * optional bool IsInternal = 16 [default = false]; + * @return Whether the isInternal field is set. */ boolean hasIsInternal(); /** * optional bool IsInternal = 16 [default = false]; + * @return The isInternal. */ boolean getIsInternal(); /** * optional bool IsProxified = 17 [default = false]; + * @return Whether the isProxified field is set. */ boolean hasIsProxified(); /** * optional bool IsProxified = 17 [default = false]; + * @return The isProxified. */ boolean getIsProxified(); /** * optional string ProxyBoxId = 18; + * @return Whether the proxyBoxId field is set. */ boolean hasProxyBoxId(); /** * optional string ProxyBoxId = 18; + * @return The proxyBoxId. */ java.lang.String getProxyBoxId(); /** * optional string ProxyBoxId = 18; + * @return The bytes for proxyBoxId. */ com.google.protobuf.ByteString getProxyBoxIdBytes(); /** * optional string ProxyTitle = 19; + * @return Whether the proxyTitle field is set. */ boolean hasProxyTitle(); /** * optional string ProxyTitle = 19; + * @return The proxyTitle. */ java.lang.String getProxyTitle(); /** * optional string ProxyTitle = 19; + * @return The bytes for proxyTitle. */ com.google.protobuf.ByteString getProxyTitleBytes(); /** * optional bool PacketIsLocked = 20 [default = false]; + * @return Whether the packetIsLocked field is set. */ boolean hasPacketIsLocked(); /** * optional bool PacketIsLocked = 20 [default = false]; + * @return The packetIsLocked. */ boolean getPacketIsLocked(); /** * required .Diadoc.Api.Proto.LockMode LockMode = 21 [default = None]; + * @return Whether the lockMode field is set. */ boolean hasLockMode(); /** * required .Diadoc.Api.Proto.LockMode LockMode = 21 [default = None]; + * @return The lockMode. */ Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode(); /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 22; + * @return Whether the messageType field is set. */ boolean hasMessageType(); /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 22; + * @return The messageType. */ Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType(); /** * optional .Diadoc.Api.Proto.Events.TemplateToLetterTransformationInfo TemplateToLetterTransformationInfo = 23; + * @return Whether the templateToLetterTransformationInfo field is set. */ boolean hasTemplateToLetterTransformationInfo(); /** * optional .Diadoc.Api.Proto.Events.TemplateToLetterTransformationInfo TemplateToLetterTransformationInfo = 23; + * @return The templateToLetterTransformationInfo. */ Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo getTemplateToLetterTransformationInfo(); /** @@ -3022,10 +3377,12 @@ Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.EntityOrBuilder getEntitiesOr /** * optional bool IsReusable = 24 [default = false]; + * @return Whether the isReusable field is set. */ boolean hasIsReusable(); /** * optional bool IsReusable = 24 [default = false]; + * @return The isReusable. */ boolean getIsReusable(); } @@ -3036,229 +3393,42 @@ public static final class Message extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Events.Message) MessageOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Message.class.getName()); + } // Use Message.newBuilder() to construct. private Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Message defaultInstance; - public static Message getDefaultInstance() { - return defaultInstance; } - - public Message getDefaultInstanceForType() { - return defaultInstance; + private Message() { + messageId_ = ""; + fromBoxId_ = ""; + fromTitle_ = ""; + toBoxId_ = ""; + toTitle_ = ""; + entities_ = java.util.Collections.emptyList(); + createdFromDraftId_ = ""; + draftIsTransformedToMessageIdList_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + proxyBoxId_ = ""; + proxyTitle_ = ""; + lockMode_ = 1; + messageType_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Message( - 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; - messageId_ = bs; - break; - } - case 17: { - bitField0_ |= 0x00000002; - timestampTicks_ = input.readSFixed64(); - break; - } - case 25: { - bitField0_ |= 0x00000004; - lastPatchTimestampTicks_ = input.readSFixed64(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - fromBoxId_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - fromTitle_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - toBoxId_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - toTitle_ = bs; - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - entities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - entities_.add(input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Entity.PARSER, extensionRegistry)); - break; - } - case 72: { - bitField0_ |= 0x00000080; - isDraft_ = input.readBool(); - break; - } - case 80: { - bitField0_ |= 0x00000100; - draftIsLocked_ = input.readBool(); - break; - } - case 88: { - bitField0_ |= 0x00000200; - draftIsRecycled_ = input.readBool(); - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - createdFromDraftId_ = bs; - break; - } - case 106: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { - draftIsTransformedToMessageIdList_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00001000; - } - draftIsTransformedToMessageIdList_.add(bs); - break; - } - case 112: { - bitField0_ |= 0x00000800; - isDeleted_ = input.readBool(); - break; - } - case 120: { - bitField0_ |= 0x00001000; - isTest_ = input.readBool(); - break; - } - case 128: { - bitField0_ |= 0x00002000; - isInternal_ = input.readBool(); - break; - } - case 136: { - bitField0_ |= 0x00004000; - isProxified_ = input.readBool(); - break; - } - case 146: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00008000; - proxyBoxId_ = bs; - break; - } - case 154: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00010000; - proxyTitle_ = bs; - break; - } - case 160: { - bitField0_ |= 0x00020000; - packetIsLocked_ = input.readBool(); - break; - } - case 168: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.LockModeProtos.LockMode value = Diadoc.Api.Proto.LockModeProtos.LockMode.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(21, rawValue); - } else { - bitField0_ |= 0x00040000; - lockMode_ = value; - } - break; - } - case 176: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.Documents.DocumentProtos.MessageType value = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(22, rawValue); - } else { - bitField0_ |= 0x00080000; - messageType_ = value; - } - break; - } - case 186: { - Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00100000) == 0x00100000)) { - subBuilder = templateToLetterTransformationInfo_.toBuilder(); - } - templateToLetterTransformationInfo_ = input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(templateToLetterTransformationInfo_); - templateToLetterTransformationInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00100000; - break; - } - case 192: { - bitField0_ |= 0x00200000; - isReusable_ = input.readBool(); - 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_ & 0x00000080) == 0x00000080)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - } - if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { - draftIsTransformedToMessageIdList_ = draftIsTransformedToMessageIdList_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_Message_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_Message_fieldAccessorTable @@ -3266,33 +3436,23 @@ private Message( Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.class, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Message parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Message(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int MESSAGEID_FIELD_NUMBER = 1; - private java.lang.Object messageId_; + @SuppressWarnings("serial") + private volatile java.lang.Object messageId_ = ""; /** * required string MessageId = 1; + * @return Whether the messageId field is set. */ + @java.lang.Override public boolean hasMessageId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string MessageId = 1; + * @return The messageId. */ + @java.lang.Override public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { @@ -3309,7 +3469,9 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 1; + * @return The bytes for messageId. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; @@ -3325,62 +3487,75 @@ public java.lang.String getMessageId() { } public static final int TIMESTAMPTICKS_FIELD_NUMBER = 2; - private long timestampTicks_; + private long timestampTicks_ = 0L; /** - * required sfixed64 TimestampTicks = 2; - * *
      * DateTime.Ticks in UTC
      * 
+ * + * required sfixed64 TimestampTicks = 2; + * @return Whether the timestampTicks field is set. */ + @java.lang.Override public boolean hasTimestampTicks() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * required sfixed64 TimestampTicks = 2; - * *
      * DateTime.Ticks in UTC
      * 
+ * + * required sfixed64 TimestampTicks = 2; + * @return The timestampTicks. */ + @java.lang.Override public long getTimestampTicks() { return timestampTicks_; } public static final int LASTPATCHTIMESTAMPTICKS_FIELD_NUMBER = 3; - private long lastPatchTimestampTicks_; + private long lastPatchTimestampTicks_ = 0L; /** - * required sfixed64 LastPatchTimestampTicks = 3; - * *
      * DateTime.Ticks in UTC
      * 
+ * + * required sfixed64 LastPatchTimestampTicks = 3; + * @return Whether the lastPatchTimestampTicks field is set. */ + @java.lang.Override public boolean hasLastPatchTimestampTicks() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** - * required sfixed64 LastPatchTimestampTicks = 3; - * *
      * DateTime.Ticks in UTC
      * 
+ * + * required sfixed64 LastPatchTimestampTicks = 3; + * @return The lastPatchTimestampTicks. */ + @java.lang.Override public long getLastPatchTimestampTicks() { return lastPatchTimestampTicks_; } public static final int FROMBOXID_FIELD_NUMBER = 4; - private java.lang.Object fromBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object fromBoxId_ = ""; /** * required string FromBoxId = 4; + * @return Whether the fromBoxId field is set. */ + @java.lang.Override public boolean hasFromBoxId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string FromBoxId = 4; + * @return The fromBoxId. */ + @java.lang.Override public java.lang.String getFromBoxId() { java.lang.Object ref = fromBoxId_; if (ref instanceof java.lang.String) { @@ -3397,7 +3572,9 @@ public java.lang.String getFromBoxId() { } /** * required string FromBoxId = 4; + * @return The bytes for fromBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getFromBoxIdBytes() { java.lang.Object ref = fromBoxId_; @@ -3413,16 +3590,21 @@ public java.lang.String getFromBoxId() { } public static final int FROMTITLE_FIELD_NUMBER = 5; - private java.lang.Object fromTitle_; + @SuppressWarnings("serial") + private volatile java.lang.Object fromTitle_ = ""; /** * required string FromTitle = 5; + * @return Whether the fromTitle field is set. */ + @java.lang.Override public boolean hasFromTitle() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string FromTitle = 5; + * @return The fromTitle. */ + @java.lang.Override public java.lang.String getFromTitle() { java.lang.Object ref = fromTitle_; if (ref instanceof java.lang.String) { @@ -3439,7 +3621,9 @@ public java.lang.String getFromTitle() { } /** * required string FromTitle = 5; + * @return The bytes for fromTitle. */ + @java.lang.Override public com.google.protobuf.ByteString getFromTitleBytes() { java.lang.Object ref = fromTitle_; @@ -3455,16 +3639,21 @@ public java.lang.String getFromTitle() { } public static final int TOBOXID_FIELD_NUMBER = 6; - private java.lang.Object toBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object toBoxId_ = ""; /** * optional string ToBoxId = 6; + * @return Whether the toBoxId field is set. */ + @java.lang.Override public boolean hasToBoxId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string ToBoxId = 6; + * @return The toBoxId. */ + @java.lang.Override public java.lang.String getToBoxId() { java.lang.Object ref = toBoxId_; if (ref instanceof java.lang.String) { @@ -3481,7 +3670,9 @@ public java.lang.String getToBoxId() { } /** * optional string ToBoxId = 6; + * @return The bytes for toBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getToBoxIdBytes() { java.lang.Object ref = toBoxId_; @@ -3497,16 +3688,21 @@ public java.lang.String getToBoxId() { } public static final int TOTITLE_FIELD_NUMBER = 7; - private java.lang.Object toTitle_; + @SuppressWarnings("serial") + private volatile java.lang.Object toTitle_ = ""; /** * optional string ToTitle = 7; + * @return Whether the toTitle field is set. */ + @java.lang.Override public boolean hasToTitle() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string ToTitle = 7; + * @return The toTitle. */ + @java.lang.Override public java.lang.String getToTitle() { java.lang.Object ref = toTitle_; if (ref instanceof java.lang.String) { @@ -3523,7 +3719,9 @@ public java.lang.String getToTitle() { } /** * optional string ToTitle = 7; + * @return The bytes for toTitle. */ + @java.lang.Override public com.google.protobuf.ByteString getToTitleBytes() { java.lang.Object ref = toTitle_; @@ -3539,16 +3737,19 @@ public java.lang.String getToTitle() { } public static final int ENTITIES_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private java.util.List entities_; /** * repeated .Diadoc.Api.Proto.Events.Entity Entities = 8; */ + @java.lang.Override public java.util.List getEntitiesList() { return entities_; } /** * repeated .Diadoc.Api.Proto.Events.Entity Entities = 8; */ + @java.lang.Override public java.util.List getEntitiesOrBuilderList() { return entities_; @@ -3556,79 +3757,99 @@ public java.util.List /** * repeated .Diadoc.Api.Proto.Events.Entity Entities = 8; */ + @java.lang.Override public int getEntitiesCount() { return entities_.size(); } /** * repeated .Diadoc.Api.Proto.Events.Entity Entities = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Entity getEntities(int index) { return entities_.get(index); } /** * repeated .Diadoc.Api.Proto.Events.Entity Entities = 8; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.EntityOrBuilder getEntitiesOrBuilder( int index) { return entities_.get(index); } public static final int ISDRAFT_FIELD_NUMBER = 9; - private boolean isDraft_; + private boolean isDraft_ = false; /** * optional bool IsDraft = 9 [default = false]; + * @return Whether the isDraft field is set. */ + @java.lang.Override public boolean hasIsDraft() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional bool IsDraft = 9 [default = false]; + * @return The isDraft. */ + @java.lang.Override public boolean getIsDraft() { return isDraft_; } public static final int DRAFTISLOCKED_FIELD_NUMBER = 10; - private boolean draftIsLocked_; + private boolean draftIsLocked_ = false; /** * optional bool DraftIsLocked = 10 [default = false]; + * @return Whether the draftIsLocked field is set. */ + @java.lang.Override public boolean hasDraftIsLocked() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional bool DraftIsLocked = 10 [default = false]; + * @return The draftIsLocked. */ + @java.lang.Override public boolean getDraftIsLocked() { return draftIsLocked_; } public static final int DRAFTISRECYCLED_FIELD_NUMBER = 11; - private boolean draftIsRecycled_; + private boolean draftIsRecycled_ = false; /** * optional bool DraftIsRecycled = 11 [default = false]; + * @return Whether the draftIsRecycled field is set. */ + @java.lang.Override public boolean hasDraftIsRecycled() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional bool DraftIsRecycled = 11 [default = false]; + * @return The draftIsRecycled. */ + @java.lang.Override public boolean getDraftIsRecycled() { return draftIsRecycled_; } public static final int CREATEDFROMDRAFTID_FIELD_NUMBER = 12; - private java.lang.Object createdFromDraftId_; + @SuppressWarnings("serial") + private volatile java.lang.Object createdFromDraftId_ = ""; /** * optional string CreatedFromDraftId = 12; + * @return Whether the createdFromDraftId field is set. */ + @java.lang.Override public boolean hasCreatedFromDraftId() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional string CreatedFromDraftId = 12; + * @return The createdFromDraftId. */ + @java.lang.Override public java.lang.String getCreatedFromDraftId() { java.lang.Object ref = createdFromDraftId_; if (ref instanceof java.lang.String) { @@ -3645,7 +3866,9 @@ public java.lang.String getCreatedFromDraftId() { } /** * optional string CreatedFromDraftId = 12; + * @return The bytes for createdFromDraftId. */ + @java.lang.Override public com.google.protobuf.ByteString getCreatedFromDraftIdBytes() { java.lang.Object ref = createdFromDraftId_; @@ -3661,9 +3884,12 @@ public java.lang.String getCreatedFromDraftId() { } public static final int DRAFTISTRANSFORMEDTOMESSAGEIDLIST_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList draftIsTransformedToMessageIdList_; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList draftIsTransformedToMessageIdList_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @return A list containing the draftIsTransformedToMessageIdList. */ public com.google.protobuf.ProtocolStringList getDraftIsTransformedToMessageIdListList() { @@ -3671,18 +3897,23 @@ public java.lang.String getCreatedFromDraftId() { } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @return The count of draftIsTransformedToMessageIdList. */ public int getDraftIsTransformedToMessageIdListCount() { return draftIsTransformedToMessageIdList_.size(); } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @param index The index of the element to return. + * @return The draftIsTransformedToMessageIdList at the given index. */ public java.lang.String getDraftIsTransformedToMessageIdList(int index) { return draftIsTransformedToMessageIdList_.get(index); } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @param index The index of the value to return. + * @return The bytes of the draftIsTransformedToMessageIdList at the given index. */ public com.google.protobuf.ByteString getDraftIsTransformedToMessageIdListBytes(int index) { @@ -3690,76 +3921,97 @@ public java.lang.String getDraftIsTransformedToMessageIdList(int index) { } public static final int ISDELETED_FIELD_NUMBER = 14; - private boolean isDeleted_; + private boolean isDeleted_ = false; /** * optional bool IsDeleted = 14 [default = false]; + * @return Whether the isDeleted field is set. */ + @java.lang.Override public boolean hasIsDeleted() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional bool IsDeleted = 14 [default = false]; + * @return The isDeleted. */ + @java.lang.Override public boolean getIsDeleted() { return isDeleted_; } public static final int ISTEST_FIELD_NUMBER = 15; - private boolean isTest_; + private boolean isTest_ = false; /** * optional bool IsTest = 15 [default = false]; + * @return Whether the isTest field is set. */ + @java.lang.Override public boolean hasIsTest() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional bool IsTest = 15 [default = false]; + * @return The isTest. */ + @java.lang.Override public boolean getIsTest() { return isTest_; } public static final int ISINTERNAL_FIELD_NUMBER = 16; - private boolean isInternal_; + private boolean isInternal_ = false; /** * optional bool IsInternal = 16 [default = false]; + * @return Whether the isInternal field is set. */ + @java.lang.Override public boolean hasIsInternal() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional bool IsInternal = 16 [default = false]; + * @return The isInternal. */ + @java.lang.Override public boolean getIsInternal() { return isInternal_; } public static final int ISPROXIFIED_FIELD_NUMBER = 17; - private boolean isProxified_; + private boolean isProxified_ = false; /** * optional bool IsProxified = 17 [default = false]; + * @return Whether the isProxified field is set. */ + @java.lang.Override public boolean hasIsProxified() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional bool IsProxified = 17 [default = false]; + * @return The isProxified. */ + @java.lang.Override public boolean getIsProxified() { return isProxified_; } public static final int PROXYBOXID_FIELD_NUMBER = 18; - private java.lang.Object proxyBoxId_; + @SuppressWarnings("serial") + private volatile java.lang.Object proxyBoxId_ = ""; /** * optional string ProxyBoxId = 18; + * @return Whether the proxyBoxId field is set. */ + @java.lang.Override public boolean hasProxyBoxId() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional string ProxyBoxId = 18; + * @return The proxyBoxId. */ + @java.lang.Override public java.lang.String getProxyBoxId() { java.lang.Object ref = proxyBoxId_; if (ref instanceof java.lang.String) { @@ -3776,7 +4028,9 @@ public java.lang.String getProxyBoxId() { } /** * optional string ProxyBoxId = 18; + * @return The bytes for proxyBoxId. */ + @java.lang.Override public com.google.protobuf.ByteString getProxyBoxIdBytes() { java.lang.Object ref = proxyBoxId_; @@ -3792,16 +4046,21 @@ public java.lang.String getProxyBoxId() { } public static final int PROXYTITLE_FIELD_NUMBER = 19; - private java.lang.Object proxyTitle_; + @SuppressWarnings("serial") + private volatile java.lang.Object proxyTitle_ = ""; /** * optional string ProxyTitle = 19; + * @return Whether the proxyTitle field is set. */ + @java.lang.Override public boolean hasProxyTitle() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional string ProxyTitle = 19; + * @return The proxyTitle. */ + @java.lang.Override public java.lang.String getProxyTitle() { java.lang.Object ref = proxyTitle_; if (ref instanceof java.lang.String) { @@ -3818,7 +4077,9 @@ public java.lang.String getProxyTitle() { } /** * optional string ProxyTitle = 19; + * @return The bytes for proxyTitle. */ + @java.lang.Override public com.google.protobuf.ByteString getProxyTitleBytes() { java.lang.Object ref = proxyTitle_; @@ -3834,113 +4095,107 @@ public java.lang.String getProxyTitle() { } public static final int PACKETISLOCKED_FIELD_NUMBER = 20; - private boolean packetIsLocked_; + private boolean packetIsLocked_ = false; /** * optional bool PacketIsLocked = 20 [default = false]; + * @return Whether the packetIsLocked field is set. */ + @java.lang.Override public boolean hasPacketIsLocked() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00020000) != 0); } /** * optional bool PacketIsLocked = 20 [default = false]; + * @return The packetIsLocked. */ + @java.lang.Override public boolean getPacketIsLocked() { return packetIsLocked_; } public static final int LOCKMODE_FIELD_NUMBER = 21; - private Diadoc.Api.Proto.LockModeProtos.LockMode lockMode_; + private int lockMode_ = 1; /** * required .Diadoc.Api.Proto.LockMode LockMode = 21 [default = None]; + * @return Whether the lockMode field is set. */ - public boolean hasLockMode() { - return ((bitField0_ & 0x00040000) == 0x00040000); + @java.lang.Override public boolean hasLockMode() { + return ((bitField0_ & 0x00040000) != 0); } /** * required .Diadoc.Api.Proto.LockMode LockMode = 21 [default = None]; + * @return The lockMode. */ - public Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode() { - return lockMode_; + @java.lang.Override public Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode() { + Diadoc.Api.Proto.LockModeProtos.LockMode result = Diadoc.Api.Proto.LockModeProtos.LockMode.forNumber(lockMode_); + return result == null ? Diadoc.Api.Proto.LockModeProtos.LockMode.None : result; } public static final int MESSAGETYPE_FIELD_NUMBER = 22; - private Diadoc.Api.Proto.Documents.DocumentProtos.MessageType messageType_; + private int messageType_ = 0; /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 22; + * @return Whether the messageType field is set. */ - public boolean hasMessageType() { - return ((bitField0_ & 0x00080000) == 0x00080000); + @java.lang.Override public boolean hasMessageType() { + return ((bitField0_ & 0x00080000) != 0); } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 22; + * @return The messageType. */ - public Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType() { - return messageType_; + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType() { + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType result = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.forNumber(messageType_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown : result; } public static final int TEMPLATETOLETTERTRANSFORMATIONINFO_FIELD_NUMBER = 23; private Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo templateToLetterTransformationInfo_; /** * optional .Diadoc.Api.Proto.Events.TemplateToLetterTransformationInfo TemplateToLetterTransformationInfo = 23; + * @return Whether the templateToLetterTransformationInfo field is set. */ + @java.lang.Override public boolean hasTemplateToLetterTransformationInfo() { - return ((bitField0_ & 0x00100000) == 0x00100000); + return ((bitField0_ & 0x00100000) != 0); } /** * optional .Diadoc.Api.Proto.Events.TemplateToLetterTransformationInfo TemplateToLetterTransformationInfo = 23; + * @return The templateToLetterTransformationInfo. */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo getTemplateToLetterTransformationInfo() { - return templateToLetterTransformationInfo_; + return templateToLetterTransformationInfo_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.getDefaultInstance() : templateToLetterTransformationInfo_; } /** * optional .Diadoc.Api.Proto.Events.TemplateToLetterTransformationInfo TemplateToLetterTransformationInfo = 23; */ + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfoOrBuilder getTemplateToLetterTransformationInfoOrBuilder() { - return templateToLetterTransformationInfo_; + return templateToLetterTransformationInfo_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.getDefaultInstance() : templateToLetterTransformationInfo_; } public static final int ISREUSABLE_FIELD_NUMBER = 24; - private boolean isReusable_; + private boolean isReusable_ = false; /** * optional bool IsReusable = 24 [default = false]; + * @return Whether the isReusable field is set. */ + @java.lang.Override public boolean hasIsReusable() { - return ((bitField0_ & 0x00200000) == 0x00200000); + return ((bitField0_ & 0x00200000) != 0); } /** * optional bool IsReusable = 24 [default = false]; + * @return The isReusable. */ + @java.lang.Override public boolean getIsReusable() { return isReusable_; } - private void initFields() { - messageId_ = ""; - timestampTicks_ = 0L; - lastPatchTimestampTicks_ = 0L; - fromBoxId_ = ""; - fromTitle_ = ""; - toBoxId_ = ""; - toTitle_ = ""; - entities_ = java.util.Collections.emptyList(); - isDraft_ = false; - draftIsLocked_ = false; - draftIsRecycled_ = false; - createdFromDraftId_ = ""; - draftIsTransformedToMessageIdList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - isDeleted_ = false; - isTest_ = false; - isInternal_ = false; - isProxified_ = false; - proxyBoxId_ = ""; - proxyTitle_ = ""; - packetIsLocked_ = false; - lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.None; - messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; - templateToLetterTransformationInfo_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.getDefaultInstance(); - isReusable_ = false; - } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -3990,203 +4245,443 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getMessageIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, messageId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeSFixed64(2, timestampTicks_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeSFixed64(3, lastPatchTimestampTicks_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getFromBoxIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, fromBoxId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getFromTitleBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, fromTitle_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getToBoxIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, toBoxId_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getToTitleBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, toTitle_); } for (int i = 0; i < entities_.size(); i++) { output.writeMessage(8, entities_.get(i)); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(9, isDraft_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(10, draftIsLocked_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(11, draftIsRecycled_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(12, getCreatedFromDraftIdBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, createdFromDraftId_); } for (int i = 0; i < draftIsTransformedToMessageIdList_.size(); i++) { - output.writeBytes(13, draftIsTransformedToMessageIdList_.getByteString(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 13, draftIsTransformedToMessageIdList_.getRaw(i)); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(14, isDeleted_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(15, isTest_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(16, isInternal_); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(17, isProxified_); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeBytes(18, getProxyBoxIdBytes()); + if (((bitField0_ & 0x00008000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, proxyBoxId_); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeBytes(19, getProxyTitleBytes()); + if (((bitField0_ & 0x00010000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19, proxyTitle_); } - if (((bitField0_ & 0x00020000) == 0x00020000)) { + if (((bitField0_ & 0x00020000) != 0)) { output.writeBool(20, packetIsLocked_); } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - output.writeEnum(21, lockMode_.getNumber()); + if (((bitField0_ & 0x00040000) != 0)) { + output.writeEnum(21, lockMode_); } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - output.writeEnum(22, messageType_.getNumber()); + if (((bitField0_ & 0x00080000) != 0)) { + output.writeEnum(22, messageType_); } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - output.writeMessage(23, templateToLetterTransformationInfo_); + if (((bitField0_ & 0x00100000) != 0)) { + output.writeMessage(23, getTemplateToLetterTransformationInfo()); } - if (((bitField0_ & 0x00200000) == 0x00200000)) { + if (((bitField0_ & 0x00200000) != 0)) { output.writeBool(24, isReusable_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getMessageIdBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, messageId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(2, timestampTicks_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(3, lastPatchTimestampTicks_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getFromBoxIdBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, fromBoxId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getFromTitleBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, fromTitle_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getToBoxIdBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, toBoxId_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getToTitleBytes()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, toTitle_); } for (int i = 0; i < entities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, entities_.get(i)); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, isDraft_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, draftIsLocked_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, draftIsRecycled_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getCreatedFromDraftIdBytes()); + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, createdFromDraftId_); } { int dataSize = 0; for (int i = 0; i < draftIsTransformedToMessageIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(draftIsTransformedToMessageIdList_.getByteString(i)); + dataSize += computeStringSizeNoTag(draftIsTransformedToMessageIdList_.getRaw(i)); } size += dataSize; size += 1 * getDraftIsTransformedToMessageIdListList().size(); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, isDeleted_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, isTest_); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, isInternal_); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, isProxified_); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(18, getProxyBoxIdBytes()); + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(18, proxyBoxId_); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(19, getProxyTitleBytes()); + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19, proxyTitle_); } - if (((bitField0_ & 0x00020000) == 0x00020000)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, packetIsLocked_); } - if (((bitField0_ & 0x00040000) == 0x00040000)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(21, lockMode_.getNumber()); + .computeEnumSize(21, lockMode_); } - if (((bitField0_ & 0x00080000) == 0x00080000)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(22, messageType_.getNumber()); + .computeEnumSize(22, messageType_); } - if (((bitField0_ & 0x00100000) == 0x00100000)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, templateToLetterTransformationInfo_); + .computeMessageSize(23, getTemplateToLetterTransformationInfo()); } - if (((bitField0_ & 0x00200000) == 0x00200000)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(24, isReusable_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message other = (Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message) obj; + + if (hasMessageId() != other.hasMessageId()) return false; + if (hasMessageId()) { + if (!getMessageId() + .equals(other.getMessageId())) return false; + } + if (hasTimestampTicks() != other.hasTimestampTicks()) return false; + if (hasTimestampTicks()) { + if (getTimestampTicks() + != other.getTimestampTicks()) return false; + } + if (hasLastPatchTimestampTicks() != other.hasLastPatchTimestampTicks()) return false; + if (hasLastPatchTimestampTicks()) { + if (getLastPatchTimestampTicks() + != other.getLastPatchTimestampTicks()) return false; + } + if (hasFromBoxId() != other.hasFromBoxId()) return false; + if (hasFromBoxId()) { + if (!getFromBoxId() + .equals(other.getFromBoxId())) return false; + } + if (hasFromTitle() != other.hasFromTitle()) return false; + if (hasFromTitle()) { + if (!getFromTitle() + .equals(other.getFromTitle())) return false; + } + if (hasToBoxId() != other.hasToBoxId()) return false; + if (hasToBoxId()) { + if (!getToBoxId() + .equals(other.getToBoxId())) return false; + } + if (hasToTitle() != other.hasToTitle()) return false; + if (hasToTitle()) { + if (!getToTitle() + .equals(other.getToTitle())) return false; + } + if (!getEntitiesList() + .equals(other.getEntitiesList())) return false; + if (hasIsDraft() != other.hasIsDraft()) return false; + if (hasIsDraft()) { + if (getIsDraft() + != other.getIsDraft()) return false; + } + if (hasDraftIsLocked() != other.hasDraftIsLocked()) return false; + if (hasDraftIsLocked()) { + if (getDraftIsLocked() + != other.getDraftIsLocked()) return false; + } + if (hasDraftIsRecycled() != other.hasDraftIsRecycled()) return false; + if (hasDraftIsRecycled()) { + if (getDraftIsRecycled() + != other.getDraftIsRecycled()) return false; + } + if (hasCreatedFromDraftId() != other.hasCreatedFromDraftId()) return false; + if (hasCreatedFromDraftId()) { + if (!getCreatedFromDraftId() + .equals(other.getCreatedFromDraftId())) return false; + } + if (!getDraftIsTransformedToMessageIdListList() + .equals(other.getDraftIsTransformedToMessageIdListList())) return false; + if (hasIsDeleted() != other.hasIsDeleted()) return false; + if (hasIsDeleted()) { + if (getIsDeleted() + != other.getIsDeleted()) return false; + } + if (hasIsTest() != other.hasIsTest()) return false; + if (hasIsTest()) { + if (getIsTest() + != other.getIsTest()) return false; + } + if (hasIsInternal() != other.hasIsInternal()) return false; + if (hasIsInternal()) { + if (getIsInternal() + != other.getIsInternal()) return false; + } + if (hasIsProxified() != other.hasIsProxified()) return false; + if (hasIsProxified()) { + if (getIsProxified() + != other.getIsProxified()) return false; + } + if (hasProxyBoxId() != other.hasProxyBoxId()) return false; + if (hasProxyBoxId()) { + if (!getProxyBoxId() + .equals(other.getProxyBoxId())) return false; + } + if (hasProxyTitle() != other.hasProxyTitle()) return false; + if (hasProxyTitle()) { + if (!getProxyTitle() + .equals(other.getProxyTitle())) return false; + } + if (hasPacketIsLocked() != other.hasPacketIsLocked()) return false; + if (hasPacketIsLocked()) { + if (getPacketIsLocked() + != other.getPacketIsLocked()) return false; + } + if (hasLockMode() != other.hasLockMode()) return false; + if (hasLockMode()) { + if (lockMode_ != other.lockMode_) return false; + } + if (hasMessageType() != other.hasMessageType()) return false; + if (hasMessageType()) { + if (messageType_ != other.messageType_) return false; + } + if (hasTemplateToLetterTransformationInfo() != other.hasTemplateToLetterTransformationInfo()) return false; + if (hasTemplateToLetterTransformationInfo()) { + if (!getTemplateToLetterTransformationInfo() + .equals(other.getTemplateToLetterTransformationInfo())) return false; + } + if (hasIsReusable() != other.hasIsReusable()) return false; + if (hasIsReusable()) { + if (getIsReusable() + != other.getIsReusable()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMessageId()) { + hash = (37 * hash) + MESSAGEID_FIELD_NUMBER; + hash = (53 * hash) + getMessageId().hashCode(); + } + if (hasTimestampTicks()) { + hash = (37 * hash) + TIMESTAMPTICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestampTicks()); + } + if (hasLastPatchTimestampTicks()) { + hash = (37 * hash) + LASTPATCHTIMESTAMPTICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastPatchTimestampTicks()); + } + if (hasFromBoxId()) { + hash = (37 * hash) + FROMBOXID_FIELD_NUMBER; + hash = (53 * hash) + getFromBoxId().hashCode(); + } + if (hasFromTitle()) { + hash = (37 * hash) + FROMTITLE_FIELD_NUMBER; + hash = (53 * hash) + getFromTitle().hashCode(); + } + if (hasToBoxId()) { + hash = (37 * hash) + TOBOXID_FIELD_NUMBER; + hash = (53 * hash) + getToBoxId().hashCode(); + } + if (hasToTitle()) { + hash = (37 * hash) + TOTITLE_FIELD_NUMBER; + hash = (53 * hash) + getToTitle().hashCode(); + } + if (getEntitiesCount() > 0) { + hash = (37 * hash) + ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getEntitiesList().hashCode(); + } + if (hasIsDraft()) { + hash = (37 * hash) + ISDRAFT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDraft()); + } + if (hasDraftIsLocked()) { + hash = (37 * hash) + DRAFTISLOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDraftIsLocked()); + } + if (hasDraftIsRecycled()) { + hash = (37 * hash) + DRAFTISRECYCLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDraftIsRecycled()); + } + if (hasCreatedFromDraftId()) { + hash = (37 * hash) + CREATEDFROMDRAFTID_FIELD_NUMBER; + hash = (53 * hash) + getCreatedFromDraftId().hashCode(); + } + if (getDraftIsTransformedToMessageIdListCount() > 0) { + hash = (37 * hash) + DRAFTISTRANSFORMEDTOMESSAGEIDLIST_FIELD_NUMBER; + hash = (53 * hash) + getDraftIsTransformedToMessageIdListList().hashCode(); + } + if (hasIsDeleted()) { + hash = (37 * hash) + ISDELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDeleted()); + } + if (hasIsTest()) { + hash = (37 * hash) + ISTEST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsTest()); + } + if (hasIsInternal()) { + hash = (37 * hash) + ISINTERNAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsInternal()); + } + if (hasIsProxified()) { + hash = (37 * hash) + ISPROXIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsProxified()); + } + if (hasProxyBoxId()) { + hash = (37 * hash) + PROXYBOXID_FIELD_NUMBER; + hash = (53 * hash) + getProxyBoxId().hashCode(); + } + if (hasProxyTitle()) { + hash = (37 * hash) + PROXYTITLE_FIELD_NUMBER; + hash = (53 * hash) + getProxyTitle().hashCode(); + } + if (hasPacketIsLocked()) { + hash = (37 * hash) + PACKETISLOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPacketIsLocked()); + } + if (hasLockMode()) { + hash = (37 * hash) + LOCKMODE_FIELD_NUMBER; + hash = (53 * hash) + lockMode_; + } + if (hasMessageType()) { + hash = (37 * hash) + MESSAGETYPE_FIELD_NUMBER; + hash = (53 * hash) + messageType_; + } + if (hasTemplateToLetterTransformationInfo()) { + hash = (37 * hash) + TEMPLATETOLETTERTRANSFORMATIONINFO_FIELD_NUMBER; + hash = (53 * hash) + getTemplateToLetterTransformationInfo().hashCode(); + } + if (hasIsReusable()) { + hash = (37 * hash) + ISREUSABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsReusable()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4210,42 +4705,57 @@ public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parseFr } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); } + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -4265,6 +4775,7 @@ public static final class Builder extends return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_Message_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_Message_fieldAccessorTable @@ -4283,89 +4794,66 @@ private Builder( maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { getEntitiesFieldBuilder(); getTemplateToLetterTransformationInfoFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; messageId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); timestampTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); lastPatchTimestampTicks_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); fromBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); fromTitle_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); toBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); toTitle_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); if (entitiesBuilder_ == null) { entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); } else { + entities_ = null; entitiesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000080); isDraft_ = false; - bitField0_ = (bitField0_ & ~0x00000100); draftIsLocked_ = false; - bitField0_ = (bitField0_ & ~0x00000200); draftIsRecycled_ = false; - bitField0_ = (bitField0_ & ~0x00000400); createdFromDraftId_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - draftIsTransformedToMessageIdList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00001000); + draftIsTransformedToMessageIdList_ = + com.google.protobuf.LazyStringArrayList.emptyList(); isDeleted_ = false; - bitField0_ = (bitField0_ & ~0x00002000); isTest_ = false; - bitField0_ = (bitField0_ & ~0x00004000); isInternal_ = false; - bitField0_ = (bitField0_ & ~0x00008000); isProxified_ = false; - bitField0_ = (bitField0_ & ~0x00010000); proxyBoxId_ = ""; - bitField0_ = (bitField0_ & ~0x00020000); proxyTitle_ = ""; - bitField0_ = (bitField0_ & ~0x00040000); packetIsLocked_ = false; - bitField0_ = (bitField0_ & ~0x00080000); - lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.None; - bitField0_ = (bitField0_ & ~0x00100000); - messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; - bitField0_ = (bitField0_ & ~0x00200000); - if (templateToLetterTransformationInfoBuilder_ == null) { - templateToLetterTransformationInfo_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.getDefaultInstance(); - } else { - templateToLetterTransformationInfoBuilder_.clear(); + lockMode_ = 1; + messageType_ = 0; + templateToLetterTransformationInfo_ = null; + if (templateToLetterTransformationInfoBuilder_ != null) { + templateToLetterTransformationInfoBuilder_.dispose(); + templateToLetterTransformationInfoBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00400000); isReusable_ = false; - bitField0_ = (bitField0_ & ~0x00800000); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_Message_descriptor; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message getDefaultInstanceForType() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance(); } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message build() { Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message result = buildPartial(); if (!result.isInitialized()) { @@ -4374,121 +4862,128 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message build() { return result; } + @java.lang.Override public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message buildPartial() { Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message result = new Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message result) { + if (entitiesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.entities_ = entities_; + } else { + result.entities_ = entitiesBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.messageId_ = messageId_; to_bitField0_ |= 0x00000001; } - result.messageId_ = messageId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timestampTicks_ = timestampTicks_; to_bitField0_ |= 0x00000002; } - result.timestampTicks_ = timestampTicks_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lastPatchTimestampTicks_ = lastPatchTimestampTicks_; to_bitField0_ |= 0x00000004; } - result.lastPatchTimestampTicks_ = lastPatchTimestampTicks_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fromBoxId_ = fromBoxId_; to_bitField0_ |= 0x00000008; } - result.fromBoxId_ = fromBoxId_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fromTitle_ = fromTitle_; to_bitField0_ |= 0x00000010; } - result.fromTitle_ = fromTitle_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.toBoxId_ = toBoxId_; to_bitField0_ |= 0x00000020; } - result.toBoxId_ = toBoxId_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.toTitle_ = toTitle_; to_bitField0_ |= 0x00000040; } - result.toTitle_ = toTitle_; - if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.entities_ = entities_; - } else { - result.entities_ = entitiesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.isDraft_ = isDraft_; to_bitField0_ |= 0x00000080; } - result.isDraft_ = isDraft_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.draftIsLocked_ = draftIsLocked_; to_bitField0_ |= 0x00000100; } - result.draftIsLocked_ = draftIsLocked_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + if (((from_bitField0_ & 0x00000400) != 0)) { + result.draftIsRecycled_ = draftIsRecycled_; to_bitField0_ |= 0x00000200; } - result.draftIsRecycled_ = draftIsRecycled_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000800) != 0)) { + result.createdFromDraftId_ = createdFromDraftId_; to_bitField0_ |= 0x00000400; } - result.createdFromDraftId_ = createdFromDraftId_; - if (((bitField0_ & 0x00001000) == 0x00001000)) { - draftIsTransformedToMessageIdList_ = draftIsTransformedToMessageIdList_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00001000); + if (((from_bitField0_ & 0x00001000) != 0)) { + draftIsTransformedToMessageIdList_.makeImmutable(); + result.draftIsTransformedToMessageIdList_ = draftIsTransformedToMessageIdList_; } - result.draftIsTransformedToMessageIdList_ = draftIsTransformedToMessageIdList_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.isDeleted_ = isDeleted_; to_bitField0_ |= 0x00000800; } - result.isDeleted_ = isDeleted_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + if (((from_bitField0_ & 0x00004000) != 0)) { + result.isTest_ = isTest_; to_bitField0_ |= 0x00001000; } - result.isTest_ = isTest_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00008000) != 0)) { + result.isInternal_ = isInternal_; to_bitField0_ |= 0x00002000; } - result.isInternal_ = isInternal_; - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { + if (((from_bitField0_ & 0x00010000) != 0)) { + result.isProxified_ = isProxified_; to_bitField0_ |= 0x00004000; } - result.isProxified_ = isProxified_; - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { + if (((from_bitField0_ & 0x00020000) != 0)) { + result.proxyBoxId_ = proxyBoxId_; to_bitField0_ |= 0x00008000; } - result.proxyBoxId_ = proxyBoxId_; - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { + if (((from_bitField0_ & 0x00040000) != 0)) { + result.proxyTitle_ = proxyTitle_; to_bitField0_ |= 0x00010000; } - result.proxyTitle_ = proxyTitle_; - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { + if (((from_bitField0_ & 0x00080000) != 0)) { + result.packetIsLocked_ = packetIsLocked_; to_bitField0_ |= 0x00020000; } - result.packetIsLocked_ = packetIsLocked_; - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { + if (((from_bitField0_ & 0x00100000) != 0)) { + result.lockMode_ = lockMode_; to_bitField0_ |= 0x00040000; } - result.lockMode_ = lockMode_; - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { + if (((from_bitField0_ & 0x00200000) != 0)) { + result.messageType_ = messageType_; to_bitField0_ |= 0x00080000; } - result.messageType_ = messageType_; - if (((from_bitField0_ & 0x00400000) == 0x00400000)) { + if (((from_bitField0_ & 0x00400000) != 0)) { + result.templateToLetterTransformationInfo_ = templateToLetterTransformationInfoBuilder_ == null + ? templateToLetterTransformationInfo_ + : templateToLetterTransformationInfoBuilder_.build(); to_bitField0_ |= 0x00100000; } - if (templateToLetterTransformationInfoBuilder_ == null) { - result.templateToLetterTransformationInfo_ = templateToLetterTransformationInfo_; - } else { - result.templateToLetterTransformationInfo_ = templateToLetterTransformationInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00800000) == 0x00800000)) { + if (((from_bitField0_ & 0x00800000) != 0)) { + result.isReusable_ = isReusable_; to_bitField0_ |= 0x00200000; } - result.isReusable_ = isReusable_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message) { return mergeFrom((Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message)other); @@ -4501,8 +4996,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message other) { if (other == Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message.getDefaultInstance()) return this; if (other.hasMessageId()) { - bitField0_ |= 0x00000001; messageId_ = other.messageId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTimestampTicks()) { @@ -4512,23 +5007,23 @@ public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Mess setLastPatchTimestampTicks(other.getLastPatchTimestampTicks()); } if (other.hasFromBoxId()) { - bitField0_ |= 0x00000008; fromBoxId_ = other.fromBoxId_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasFromTitle()) { - bitField0_ |= 0x00000010; fromTitle_ = other.fromTitle_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasToBoxId()) { - bitField0_ |= 0x00000020; toBoxId_ = other.toBoxId_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasToTitle()) { - bitField0_ |= 0x00000040; toTitle_ = other.toTitle_; + bitField0_ |= 0x00000040; onChanged(); } if (entitiesBuilder_ == null) { @@ -4567,14 +5062,14 @@ public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Mess setDraftIsRecycled(other.getDraftIsRecycled()); } if (other.hasCreatedFromDraftId()) { - bitField0_ |= 0x00000800; createdFromDraftId_ = other.createdFromDraftId_; + bitField0_ |= 0x00000800; onChanged(); } if (!other.draftIsTransformedToMessageIdList_.isEmpty()) { if (draftIsTransformedToMessageIdList_.isEmpty()) { draftIsTransformedToMessageIdList_ = other.draftIsTransformedToMessageIdList_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ |= 0x00001000; } else { ensureDraftIsTransformedToMessageIdListIsMutable(); draftIsTransformedToMessageIdList_.addAll(other.draftIsTransformedToMessageIdList_); @@ -4594,13 +5089,13 @@ public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Mess setIsProxified(other.getIsProxified()); } if (other.hasProxyBoxId()) { - bitField0_ |= 0x00020000; proxyBoxId_ = other.proxyBoxId_; + bitField0_ |= 0x00020000; onChanged(); } if (other.hasProxyTitle()) { - bitField0_ |= 0x00040000; proxyTitle_ = other.proxyTitle_; + bitField0_ |= 0x00040000; onChanged(); } if (other.hasPacketIsLocked()) { @@ -4619,68 +5114,220 @@ public Builder mergeFrom(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Mess setIsReusable(other.getIsReusable()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { if (!hasMessageId()) { - return false; } if (!hasTimestampTicks()) { - return false; } if (!hasLastPatchTimestampTicks()) { - return false; } if (!hasFromBoxId()) { - return false; } if (!hasFromTitle()) { - return false; } if (!hasLockMode()) { - return false; } if (!hasMessageType()) { - return false; } for (int i = 0; i < getEntitiesCount(); i++) { if (!getEntities(i).isInitialized()) { - return false; } } if (hasTemplateToLetterTransformationInfo()) { if (!getTemplateToLetterTransformationInfo().isInitialized()) { - return false; } } return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + messageId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + timestampTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + lastPatchTimestampTicks_ = input.readSFixed64(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: { + fromBoxId_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + fromTitle_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + toBoxId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + toTitle_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Entity m = + input.readMessage( + Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Entity.parser(), + extensionRegistry); + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(m); + } else { + entitiesBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: { + isDraft_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + draftIsLocked_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: { + draftIsRecycled_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: { + createdFromDraftId_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureDraftIsTransformedToMessageIdListIsMutable(); + draftIsTransformedToMessageIdList_.add(bs); + break; + } // case 106 + case 112: { + isDeleted_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: { + isTest_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128: { + isInternal_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136: { + isProxified_ = input.readBool(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 146: { + proxyBoxId_ = input.readBytes(); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 154: { + proxyTitle_ = input.readBytes(); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 160: { + packetIsLocked_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 160 + case 168: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.LockModeProtos.LockMode tmpValue = + Diadoc.Api.Proto.LockModeProtos.LockMode.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(21, tmpRaw); + } else { + lockMode_ = tmpRaw; + bitField0_ |= 0x00100000; + } + break; + } // case 168 + case 176: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType tmpValue = + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(22, tmpRaw); + } else { + messageType_ = tmpRaw; + bitField0_ |= 0x00200000; + } + break; + } // case 176 + case 186: { + input.readMessage( + getTemplateToLetterTransformationInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 186 + case 192: { + isReusable_ = input.readBool(); + bitField0_ |= 0x00800000; + break; + } // case 192 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -4688,12 +5335,14 @@ public Builder mergeFrom( private java.lang.Object messageId_ = ""; /** * required string MessageId = 1; + * @return Whether the messageId field is set. */ public boolean hasMessageId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string MessageId = 1; + * @return The messageId. */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; @@ -4711,6 +5360,7 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 1; + * @return The bytes for messageId. */ public com.google.protobuf.ByteString getMessageIdBytes() { @@ -4727,80 +5377,89 @@ public java.lang.String getMessageId() { } /** * required string MessageId = 1; + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } messageId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string MessageId = 1; + * @return This builder for chaining. */ public Builder clearMessageId() { - bitField0_ = (bitField0_ & ~0x00000001); messageId_ = getDefaultInstance().getMessageId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string MessageId = 1; + * @param value The bytes for messageId to set. + * @return This builder for chaining. */ public Builder setMessageIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + if (value == null) { throw new NullPointerException(); } messageId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private long timestampTicks_ ; /** - * required sfixed64 TimestampTicks = 2; - * *
        * DateTime.Ticks in UTC
        * 
+ * + * required sfixed64 TimestampTicks = 2; + * @return Whether the timestampTicks field is set. */ + @java.lang.Override public boolean hasTimestampTicks() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * required sfixed64 TimestampTicks = 2; - * *
        * DateTime.Ticks in UTC
        * 
+ * + * required sfixed64 TimestampTicks = 2; + * @return The timestampTicks. */ + @java.lang.Override public long getTimestampTicks() { return timestampTicks_; } /** - * required sfixed64 TimestampTicks = 2; - * *
        * DateTime.Ticks in UTC
        * 
+ * + * required sfixed64 TimestampTicks = 2; + * @param value The timestampTicks to set. + * @return This builder for chaining. */ public Builder setTimestampTicks(long value) { - bitField0_ |= 0x00000002; + timestampTicks_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * required sfixed64 TimestampTicks = 2; - * *
        * DateTime.Ticks in UTC
        * 
+ * + * required sfixed64 TimestampTicks = 2; + * @return This builder for chaining. */ public Builder clearTimestampTicks() { bitField0_ = (bitField0_ & ~0x00000002); @@ -4811,44 +5470,52 @@ public Builder clearTimestampTicks() { private long lastPatchTimestampTicks_ ; /** - * required sfixed64 LastPatchTimestampTicks = 3; - * *
        * DateTime.Ticks in UTC
        * 
+ * + * required sfixed64 LastPatchTimestampTicks = 3; + * @return Whether the lastPatchTimestampTicks field is set. */ + @java.lang.Override public boolean hasLastPatchTimestampTicks() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** - * required sfixed64 LastPatchTimestampTicks = 3; - * *
        * DateTime.Ticks in UTC
        * 
+ * + * required sfixed64 LastPatchTimestampTicks = 3; + * @return The lastPatchTimestampTicks. */ + @java.lang.Override public long getLastPatchTimestampTicks() { return lastPatchTimestampTicks_; } /** - * required sfixed64 LastPatchTimestampTicks = 3; - * *
        * DateTime.Ticks in UTC
        * 
+ * + * required sfixed64 LastPatchTimestampTicks = 3; + * @param value The lastPatchTimestampTicks to set. + * @return This builder for chaining. */ public Builder setLastPatchTimestampTicks(long value) { - bitField0_ |= 0x00000004; + lastPatchTimestampTicks_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * required sfixed64 LastPatchTimestampTicks = 3; - * *
        * DateTime.Ticks in UTC
        * 
+ * + * required sfixed64 LastPatchTimestampTicks = 3; + * @return This builder for chaining. */ public Builder clearLastPatchTimestampTicks() { bitField0_ = (bitField0_ & ~0x00000004); @@ -4860,12 +5527,14 @@ public Builder clearLastPatchTimestampTicks() { private java.lang.Object fromBoxId_ = ""; /** * required string FromBoxId = 4; + * @return Whether the fromBoxId field is set. */ public boolean hasFromBoxId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string FromBoxId = 4; + * @return The fromBoxId. */ public java.lang.String getFromBoxId() { java.lang.Object ref = fromBoxId_; @@ -4883,6 +5552,7 @@ public java.lang.String getFromBoxId() { } /** * required string FromBoxId = 4; + * @return The bytes for fromBoxId. */ public com.google.protobuf.ByteString getFromBoxIdBytes() { @@ -4899,36 +5569,37 @@ public java.lang.String getFromBoxId() { } /** * required string FromBoxId = 4; + * @param value The fromBoxId to set. + * @return This builder for chaining. */ public Builder setFromBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } fromBoxId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** * required string FromBoxId = 4; + * @return This builder for chaining. */ public Builder clearFromBoxId() { - bitField0_ = (bitField0_ & ~0x00000008); fromBoxId_ = getDefaultInstance().getFromBoxId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * required string FromBoxId = 4; + * @param value The bytes for fromBoxId to set. + * @return This builder for chaining. */ public Builder setFromBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + if (value == null) { throw new NullPointerException(); } fromBoxId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4936,12 +5607,14 @@ public Builder setFromBoxIdBytes( private java.lang.Object fromTitle_ = ""; /** * required string FromTitle = 5; + * @return Whether the fromTitle field is set. */ public boolean hasFromTitle() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required string FromTitle = 5; + * @return The fromTitle. */ public java.lang.String getFromTitle() { java.lang.Object ref = fromTitle_; @@ -4959,6 +5632,7 @@ public java.lang.String getFromTitle() { } /** * required string FromTitle = 5; + * @return The bytes for fromTitle. */ public com.google.protobuf.ByteString getFromTitleBytes() { @@ -4975,36 +5649,37 @@ public java.lang.String getFromTitle() { } /** * required string FromTitle = 5; + * @param value The fromTitle to set. + * @return This builder for chaining. */ public Builder setFromTitle( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } fromTitle_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** * required string FromTitle = 5; + * @return This builder for chaining. */ public Builder clearFromTitle() { - bitField0_ = (bitField0_ & ~0x00000010); fromTitle_ = getDefaultInstance().getFromTitle(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * required string FromTitle = 5; + * @param value The bytes for fromTitle to set. + * @return This builder for chaining. */ public Builder setFromTitleBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + if (value == null) { throw new NullPointerException(); } fromTitle_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5012,12 +5687,14 @@ public Builder setFromTitleBytes( private java.lang.Object toBoxId_ = ""; /** * optional string ToBoxId = 6; + * @return Whether the toBoxId field is set. */ public boolean hasToBoxId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional string ToBoxId = 6; + * @return The toBoxId. */ public java.lang.String getToBoxId() { java.lang.Object ref = toBoxId_; @@ -5035,6 +5712,7 @@ public java.lang.String getToBoxId() { } /** * optional string ToBoxId = 6; + * @return The bytes for toBoxId. */ public com.google.protobuf.ByteString getToBoxIdBytes() { @@ -5051,36 +5729,37 @@ public java.lang.String getToBoxId() { } /** * optional string ToBoxId = 6; + * @param value The toBoxId to set. + * @return This builder for chaining. */ public Builder setToBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } toBoxId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional string ToBoxId = 6; + * @return This builder for chaining. */ public Builder clearToBoxId() { - bitField0_ = (bitField0_ & ~0x00000020); toBoxId_ = getDefaultInstance().getToBoxId(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * optional string ToBoxId = 6; + * @param value The bytes for toBoxId to set. + * @return This builder for chaining. */ public Builder setToBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + if (value == null) { throw new NullPointerException(); } toBoxId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5088,12 +5767,14 @@ public Builder setToBoxIdBytes( private java.lang.Object toTitle_ = ""; /** * optional string ToTitle = 7; + * @return Whether the toTitle field is set. */ public boolean hasToTitle() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional string ToTitle = 7; + * @return The toTitle. */ public java.lang.String getToTitle() { java.lang.Object ref = toTitle_; @@ -5111,6 +5792,7 @@ public java.lang.String getToTitle() { } /** * optional string ToTitle = 7; + * @return The bytes for toTitle. */ public com.google.protobuf.ByteString getToTitleBytes() { @@ -5127,36 +5809,37 @@ public java.lang.String getToTitle() { } /** * optional string ToTitle = 7; + * @param value The toTitle to set. + * @return This builder for chaining. */ public Builder setToTitle( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } toTitle_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional string ToTitle = 7; + * @return This builder for chaining. */ public Builder clearToTitle() { - bitField0_ = (bitField0_ & ~0x00000040); toTitle_ = getDefaultInstance().getToTitle(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * optional string ToTitle = 7; + * @param value The bytes for toTitle to set. + * @return This builder for chaining. */ public Builder setToTitleBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + if (value == null) { throw new NullPointerException(); } toTitle_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5164,7 +5847,7 @@ public Builder setToTitleBytes( private java.util.List entities_ = java.util.Collections.emptyList(); private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { + if (!((bitField0_ & 0x00000080) != 0)) { entities_ = new java.util.ArrayList(entities_); bitField0_ |= 0x00000080; } @@ -5393,7 +6076,7 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Entity.Builder addEnti entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Entity, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Entity.Builder, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.EntityOrBuilder>( entities_, - ((bitField0_ & 0x00000080) == 0x00000080), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); entities_ = null; @@ -5404,27 +6087,35 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Entity.Builder addEnti private boolean isDraft_ ; /** * optional bool IsDraft = 9 [default = false]; + * @return Whether the isDraft field is set. */ + @java.lang.Override public boolean hasIsDraft() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional bool IsDraft = 9 [default = false]; + * @return The isDraft. */ + @java.lang.Override public boolean getIsDraft() { return isDraft_; } /** * optional bool IsDraft = 9 [default = false]; + * @param value The isDraft to set. + * @return This builder for chaining. */ public Builder setIsDraft(boolean value) { - bitField0_ |= 0x00000100; + isDraft_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional bool IsDraft = 9 [default = false]; + * @return This builder for chaining. */ public Builder clearIsDraft() { bitField0_ = (bitField0_ & ~0x00000100); @@ -5436,27 +6127,35 @@ public Builder clearIsDraft() { private boolean draftIsLocked_ ; /** * optional bool DraftIsLocked = 10 [default = false]; + * @return Whether the draftIsLocked field is set. */ + @java.lang.Override public boolean hasDraftIsLocked() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional bool DraftIsLocked = 10 [default = false]; + * @return The draftIsLocked. */ + @java.lang.Override public boolean getDraftIsLocked() { return draftIsLocked_; } /** * optional bool DraftIsLocked = 10 [default = false]; + * @param value The draftIsLocked to set. + * @return This builder for chaining. */ public Builder setDraftIsLocked(boolean value) { - bitField0_ |= 0x00000200; + draftIsLocked_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional bool DraftIsLocked = 10 [default = false]; + * @return This builder for chaining. */ public Builder clearDraftIsLocked() { bitField0_ = (bitField0_ & ~0x00000200); @@ -5468,27 +6167,35 @@ public Builder clearDraftIsLocked() { private boolean draftIsRecycled_ ; /** * optional bool DraftIsRecycled = 11 [default = false]; + * @return Whether the draftIsRecycled field is set. */ + @java.lang.Override public boolean hasDraftIsRecycled() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional bool DraftIsRecycled = 11 [default = false]; + * @return The draftIsRecycled. */ + @java.lang.Override public boolean getDraftIsRecycled() { return draftIsRecycled_; } /** * optional bool DraftIsRecycled = 11 [default = false]; + * @param value The draftIsRecycled to set. + * @return This builder for chaining. */ public Builder setDraftIsRecycled(boolean value) { - bitField0_ |= 0x00000400; + draftIsRecycled_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** * optional bool DraftIsRecycled = 11 [default = false]; + * @return This builder for chaining. */ public Builder clearDraftIsRecycled() { bitField0_ = (bitField0_ & ~0x00000400); @@ -5500,12 +6207,14 @@ public Builder clearDraftIsRecycled() { private java.lang.Object createdFromDraftId_ = ""; /** * optional string CreatedFromDraftId = 12; + * @return Whether the createdFromDraftId field is set. */ public boolean hasCreatedFromDraftId() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional string CreatedFromDraftId = 12; + * @return The createdFromDraftId. */ public java.lang.String getCreatedFromDraftId() { java.lang.Object ref = createdFromDraftId_; @@ -5523,6 +6232,7 @@ public java.lang.String getCreatedFromDraftId() { } /** * optional string CreatedFromDraftId = 12; + * @return The bytes for createdFromDraftId. */ public com.google.protobuf.ByteString getCreatedFromDraftIdBytes() { @@ -5539,68 +6249,77 @@ public java.lang.String getCreatedFromDraftId() { } /** * optional string CreatedFromDraftId = 12; + * @param value The createdFromDraftId to set. + * @return This builder for chaining. */ public Builder setCreatedFromDraftId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } createdFromDraftId_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** * optional string CreatedFromDraftId = 12; + * @return This builder for chaining. */ public Builder clearCreatedFromDraftId() { - bitField0_ = (bitField0_ & ~0x00000800); createdFromDraftId_ = getDefaultInstance().getCreatedFromDraftId(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * optional string CreatedFromDraftId = 12; + * @param value The bytes for createdFromDraftId to set. + * @return This builder for chaining. */ public Builder setCreatedFromDraftIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + if (value == null) { throw new NullPointerException(); } createdFromDraftId_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } - private com.google.protobuf.LazyStringList draftIsTransformedToMessageIdList_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList draftIsTransformedToMessageIdList_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDraftIsTransformedToMessageIdListIsMutable() { - if (!((bitField0_ & 0x00001000) == 0x00001000)) { + if (!draftIsTransformedToMessageIdList_.isModifiable()) { draftIsTransformedToMessageIdList_ = new com.google.protobuf.LazyStringArrayList(draftIsTransformedToMessageIdList_); - bitField0_ |= 0x00001000; - } + } + bitField0_ |= 0x00001000; } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @return A list containing the draftIsTransformedToMessageIdList. */ public com.google.protobuf.ProtocolStringList getDraftIsTransformedToMessageIdListList() { - return draftIsTransformedToMessageIdList_.getUnmodifiableView(); + draftIsTransformedToMessageIdList_.makeImmutable(); + return draftIsTransformedToMessageIdList_; } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @return The count of draftIsTransformedToMessageIdList. */ public int getDraftIsTransformedToMessageIdListCount() { return draftIsTransformedToMessageIdList_.size(); } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @param index The index of the element to return. + * @return The draftIsTransformedToMessageIdList at the given index. */ public java.lang.String getDraftIsTransformedToMessageIdList(int index) { return draftIsTransformedToMessageIdList_.get(index); } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @param index The index of the value to return. + * @return The bytes of the draftIsTransformedToMessageIdList at the given index. */ public com.google.protobuf.ByteString getDraftIsTransformedToMessageIdListBytes(int index) { @@ -5608,60 +6327,69 @@ public java.lang.String getDraftIsTransformedToMessageIdList(int index) { } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @param index The index to set the value at. + * @param value The draftIsTransformedToMessageIdList to set. + * @return This builder for chaining. */ public Builder setDraftIsTransformedToMessageIdList( int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDraftIsTransformedToMessageIdListIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureDraftIsTransformedToMessageIdListIsMutable(); draftIsTransformedToMessageIdList_.set(index, value); + bitField0_ |= 0x00001000; onChanged(); return this; } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @param value The draftIsTransformedToMessageIdList to add. + * @return This builder for chaining. */ public Builder addDraftIsTransformedToMessageIdList( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDraftIsTransformedToMessageIdListIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureDraftIsTransformedToMessageIdListIsMutable(); draftIsTransformedToMessageIdList_.add(value); + bitField0_ |= 0x00001000; onChanged(); return this; } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @param values The draftIsTransformedToMessageIdList to add. + * @return This builder for chaining. */ public Builder addAllDraftIsTransformedToMessageIdList( java.lang.Iterable values) { ensureDraftIsTransformedToMessageIdListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, draftIsTransformedToMessageIdList_); + bitField0_ |= 0x00001000; onChanged(); return this; } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @return This builder for chaining. */ public Builder clearDraftIsTransformedToMessageIdList() { - draftIsTransformedToMessageIdList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00001000); + draftIsTransformedToMessageIdList_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000);; onChanged(); return this; } /** * repeated string DraftIsTransformedToMessageIdList = 13; + * @param value The bytes of the draftIsTransformedToMessageIdList to add. + * @return This builder for chaining. */ public Builder addDraftIsTransformedToMessageIdListBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDraftIsTransformedToMessageIdListIsMutable(); + if (value == null) { throw new NullPointerException(); } + ensureDraftIsTransformedToMessageIdListIsMutable(); draftIsTransformedToMessageIdList_.add(value); + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5669,27 +6397,35 @@ public Builder addDraftIsTransformedToMessageIdListBytes( private boolean isDeleted_ ; /** * optional bool IsDeleted = 14 [default = false]; + * @return Whether the isDeleted field is set. */ + @java.lang.Override public boolean hasIsDeleted() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional bool IsDeleted = 14 [default = false]; + * @return The isDeleted. */ + @java.lang.Override public boolean getIsDeleted() { return isDeleted_; } /** * optional bool IsDeleted = 14 [default = false]; + * @param value The isDeleted to set. + * @return This builder for chaining. */ public Builder setIsDeleted(boolean value) { - bitField0_ |= 0x00002000; + isDeleted_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } /** * optional bool IsDeleted = 14 [default = false]; + * @return This builder for chaining. */ public Builder clearIsDeleted() { bitField0_ = (bitField0_ & ~0x00002000); @@ -5701,27 +6437,35 @@ public Builder clearIsDeleted() { private boolean isTest_ ; /** * optional bool IsTest = 15 [default = false]; + * @return Whether the isTest field is set. */ + @java.lang.Override public boolean hasIsTest() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional bool IsTest = 15 [default = false]; + * @return The isTest. */ + @java.lang.Override public boolean getIsTest() { return isTest_; } /** * optional bool IsTest = 15 [default = false]; + * @param value The isTest to set. + * @return This builder for chaining. */ public Builder setIsTest(boolean value) { - bitField0_ |= 0x00004000; + isTest_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } /** * optional bool IsTest = 15 [default = false]; + * @return This builder for chaining. */ public Builder clearIsTest() { bitField0_ = (bitField0_ & ~0x00004000); @@ -5733,27 +6477,35 @@ public Builder clearIsTest() { private boolean isInternal_ ; /** * optional bool IsInternal = 16 [default = false]; + * @return Whether the isInternal field is set. */ + @java.lang.Override public boolean hasIsInternal() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional bool IsInternal = 16 [default = false]; + * @return The isInternal. */ + @java.lang.Override public boolean getIsInternal() { return isInternal_; } /** * optional bool IsInternal = 16 [default = false]; + * @param value The isInternal to set. + * @return This builder for chaining. */ public Builder setIsInternal(boolean value) { - bitField0_ |= 0x00008000; + isInternal_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } /** * optional bool IsInternal = 16 [default = false]; + * @return This builder for chaining. */ public Builder clearIsInternal() { bitField0_ = (bitField0_ & ~0x00008000); @@ -5765,27 +6517,35 @@ public Builder clearIsInternal() { private boolean isProxified_ ; /** * optional bool IsProxified = 17 [default = false]; + * @return Whether the isProxified field is set. */ + @java.lang.Override public boolean hasIsProxified() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional bool IsProxified = 17 [default = false]; + * @return The isProxified. */ + @java.lang.Override public boolean getIsProxified() { return isProxified_; } /** * optional bool IsProxified = 17 [default = false]; + * @param value The isProxified to set. + * @return This builder for chaining. */ public Builder setIsProxified(boolean value) { - bitField0_ |= 0x00010000; + isProxified_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } /** * optional bool IsProxified = 17 [default = false]; + * @return This builder for chaining. */ public Builder clearIsProxified() { bitField0_ = (bitField0_ & ~0x00010000); @@ -5797,12 +6557,14 @@ public Builder clearIsProxified() { private java.lang.Object proxyBoxId_ = ""; /** * optional string ProxyBoxId = 18; + * @return Whether the proxyBoxId field is set. */ public boolean hasProxyBoxId() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00020000) != 0); } /** * optional string ProxyBoxId = 18; + * @return The proxyBoxId. */ public java.lang.String getProxyBoxId() { java.lang.Object ref = proxyBoxId_; @@ -5820,6 +6582,7 @@ public java.lang.String getProxyBoxId() { } /** * optional string ProxyBoxId = 18; + * @return The bytes for proxyBoxId. */ public com.google.protobuf.ByteString getProxyBoxIdBytes() { @@ -5836,36 +6599,37 @@ public java.lang.String getProxyBoxId() { } /** * optional string ProxyBoxId = 18; + * @param value The proxyBoxId to set. + * @return This builder for chaining. */ public Builder setProxyBoxId( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; + if (value == null) { throw new NullPointerException(); } proxyBoxId_ = value; + bitField0_ |= 0x00020000; onChanged(); return this; } /** * optional string ProxyBoxId = 18; + * @return This builder for chaining. */ public Builder clearProxyBoxId() { - bitField0_ = (bitField0_ & ~0x00020000); proxyBoxId_ = getDefaultInstance().getProxyBoxId(); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } /** * optional string ProxyBoxId = 18; + * @param value The bytes for proxyBoxId to set. + * @return This builder for chaining. */ public Builder setProxyBoxIdBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; + if (value == null) { throw new NullPointerException(); } proxyBoxId_ = value; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5873,12 +6637,14 @@ public Builder setProxyBoxIdBytes( private java.lang.Object proxyTitle_ = ""; /** * optional string ProxyTitle = 19; + * @return Whether the proxyTitle field is set. */ public boolean hasProxyTitle() { - return ((bitField0_ & 0x00040000) == 0x00040000); + return ((bitField0_ & 0x00040000) != 0); } /** * optional string ProxyTitle = 19; + * @return The proxyTitle. */ public java.lang.String getProxyTitle() { java.lang.Object ref = proxyTitle_; @@ -5896,6 +6662,7 @@ public java.lang.String getProxyTitle() { } /** * optional string ProxyTitle = 19; + * @return The bytes for proxyTitle. */ public com.google.protobuf.ByteString getProxyTitleBytes() { @@ -5912,36 +6679,37 @@ public java.lang.String getProxyTitle() { } /** * optional string ProxyTitle = 19; + * @param value The proxyTitle to set. + * @return This builder for chaining. */ public Builder setProxyTitle( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00040000; + if (value == null) { throw new NullPointerException(); } proxyTitle_ = value; + bitField0_ |= 0x00040000; onChanged(); return this; } /** * optional string ProxyTitle = 19; + * @return This builder for chaining. */ public Builder clearProxyTitle() { - bitField0_ = (bitField0_ & ~0x00040000); proxyTitle_ = getDefaultInstance().getProxyTitle(); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } /** * optional string ProxyTitle = 19; + * @param value The bytes for proxyTitle to set. + * @return This builder for chaining. */ public Builder setProxyTitleBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00040000; + if (value == null) { throw new NullPointerException(); } proxyTitle_ = value; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5949,27 +6717,35 @@ public Builder setProxyTitleBytes( private boolean packetIsLocked_ ; /** * optional bool PacketIsLocked = 20 [default = false]; + * @return Whether the packetIsLocked field is set. */ + @java.lang.Override public boolean hasPacketIsLocked() { - return ((bitField0_ & 0x00080000) == 0x00080000); + return ((bitField0_ & 0x00080000) != 0); } /** * optional bool PacketIsLocked = 20 [default = false]; + * @return The packetIsLocked. */ + @java.lang.Override public boolean getPacketIsLocked() { return packetIsLocked_; } /** * optional bool PacketIsLocked = 20 [default = false]; + * @param value The packetIsLocked to set. + * @return This builder for chaining. */ public Builder setPacketIsLocked(boolean value) { - bitField0_ |= 0x00080000; + packetIsLocked_ = value; + bitField0_ |= 0x00080000; onChanged(); return this; } /** * optional bool PacketIsLocked = 20 [default = false]; + * @return This builder for chaining. */ public Builder clearPacketIsLocked() { bitField0_ = (bitField0_ & ~0x00080000); @@ -5978,91 +6754,107 @@ public Builder clearPacketIsLocked() { return this; } - private Diadoc.Api.Proto.LockModeProtos.LockMode lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.None; + private int lockMode_ = 1; /** * required .Diadoc.Api.Proto.LockMode LockMode = 21 [default = None]; + * @return Whether the lockMode field is set. */ - public boolean hasLockMode() { - return ((bitField0_ & 0x00100000) == 0x00100000); + @java.lang.Override public boolean hasLockMode() { + return ((bitField0_ & 0x00100000) != 0); } /** * required .Diadoc.Api.Proto.LockMode LockMode = 21 [default = None]; + * @return The lockMode. */ + @java.lang.Override public Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode() { - return lockMode_; + Diadoc.Api.Proto.LockModeProtos.LockMode result = Diadoc.Api.Proto.LockModeProtos.LockMode.forNumber(lockMode_); + return result == null ? Diadoc.Api.Proto.LockModeProtos.LockMode.None : result; } /** * required .Diadoc.Api.Proto.LockMode LockMode = 21 [default = None]; + * @param value The lockMode to set. + * @return This builder for chaining. */ public Builder setLockMode(Diadoc.Api.Proto.LockModeProtos.LockMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00100000; - lockMode_ = value; + lockMode_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.LockMode LockMode = 21 [default = None]; + * @return This builder for chaining. */ public Builder clearLockMode() { bitField0_ = (bitField0_ & ~0x00100000); - lockMode_ = Diadoc.Api.Proto.LockModeProtos.LockMode.None; + lockMode_ = 1; onChanged(); return this; } - private Diadoc.Api.Proto.Documents.DocumentProtos.MessageType messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; + private int messageType_ = 0; /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 22; + * @return Whether the messageType field is set. */ - public boolean hasMessageType() { - return ((bitField0_ & 0x00200000) == 0x00200000); + @java.lang.Override public boolean hasMessageType() { + return ((bitField0_ & 0x00200000) != 0); } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 22; + * @return The messageType. */ + @java.lang.Override public Diadoc.Api.Proto.Documents.DocumentProtos.MessageType getMessageType() { - return messageType_; + Diadoc.Api.Proto.Documents.DocumentProtos.MessageType result = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.forNumber(messageType_); + return result == null ? Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown : result; } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 22; + * @param value The messageType to set. + * @return This builder for chaining. */ public Builder setMessageType(Diadoc.Api.Proto.Documents.DocumentProtos.MessageType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00200000; - messageType_ = value; + messageType_ = value.getNumber(); onChanged(); return this; } /** * required .Diadoc.Api.Proto.Documents.MessageType MessageType = 22; + * @return This builder for chaining. */ public Builder clearMessageType() { bitField0_ = (bitField0_ & ~0x00200000); - messageType_ = Diadoc.Api.Proto.Documents.DocumentProtos.MessageType.Unknown; + messageType_ = 0; onChanged(); return this; } - private Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo templateToLetterTransformationInfo_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.getDefaultInstance(); + private Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo templateToLetterTransformationInfo_; private com.google.protobuf.SingleFieldBuilder< Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.Builder, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfoOrBuilder> templateToLetterTransformationInfoBuilder_; /** * optional .Diadoc.Api.Proto.Events.TemplateToLetterTransformationInfo TemplateToLetterTransformationInfo = 23; + * @return Whether the templateToLetterTransformationInfo field is set. */ public boolean hasTemplateToLetterTransformationInfo() { - return ((bitField0_ & 0x00400000) == 0x00400000); + return ((bitField0_ & 0x00400000) != 0); } /** * optional .Diadoc.Api.Proto.Events.TemplateToLetterTransformationInfo TemplateToLetterTransformationInfo = 23; + * @return The templateToLetterTransformationInfo. */ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo getTemplateToLetterTransformationInfo() { if (templateToLetterTransformationInfoBuilder_ == null) { - return templateToLetterTransformationInfo_; + return templateToLetterTransformationInfo_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.getDefaultInstance() : templateToLetterTransformationInfo_; } else { return templateToLetterTransformationInfoBuilder_.getMessage(); } @@ -6076,11 +6868,11 @@ public Builder setTemplateToLetterTransformationInfo(Diadoc.Api.Proto.Events.Dia throw new NullPointerException(); } templateToLetterTransformationInfo_ = value; - onChanged(); } else { templateToLetterTransformationInfoBuilder_.setMessage(value); } bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -6090,11 +6882,11 @@ public Builder setTemplateToLetterTransformationInfo( Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.Builder builderForValue) { if (templateToLetterTransformationInfoBuilder_ == null) { templateToLetterTransformationInfo_ = builderForValue.build(); - onChanged(); } else { templateToLetterTransformationInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -6102,31 +6894,33 @@ public Builder setTemplateToLetterTransformationInfo( */ public Builder mergeTemplateToLetterTransformationInfo(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo value) { if (templateToLetterTransformationInfoBuilder_ == null) { - if (((bitField0_ & 0x00400000) == 0x00400000) && - templateToLetterTransformationInfo_ != Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.getDefaultInstance()) { - templateToLetterTransformationInfo_ = - Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.newBuilder(templateToLetterTransformationInfo_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00400000) != 0) && + templateToLetterTransformationInfo_ != null && + templateToLetterTransformationInfo_ != Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.getDefaultInstance()) { + getTemplateToLetterTransformationInfoBuilder().mergeFrom(value); } else { templateToLetterTransformationInfo_ = value; } - onChanged(); } else { templateToLetterTransformationInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00400000; + if (templateToLetterTransformationInfo_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } return this; } /** * optional .Diadoc.Api.Proto.Events.TemplateToLetterTransformationInfo TemplateToLetterTransformationInfo = 23; */ public Builder clearTemplateToLetterTransformationInfo() { - if (templateToLetterTransformationInfoBuilder_ == null) { - templateToLetterTransformationInfo_ = Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.getDefaultInstance(); - onChanged(); - } else { - templateToLetterTransformationInfoBuilder_.clear(); - } bitField0_ = (bitField0_ & ~0x00400000); + templateToLetterTransformationInfo_ = null; + if (templateToLetterTransformationInfoBuilder_ != null) { + templateToLetterTransformationInfoBuilder_.dispose(); + templateToLetterTransformationInfoBuilder_ = null; + } + onChanged(); return this; } /** @@ -6144,7 +6938,8 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransf if (templateToLetterTransformationInfoBuilder_ != null) { return templateToLetterTransformationInfoBuilder_.getMessageOrBuilder(); } else { - return templateToLetterTransformationInfo_; + return templateToLetterTransformationInfo_ == null ? + Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransformationInfo.getDefaultInstance() : templateToLetterTransformationInfo_; } } /** @@ -6167,27 +6962,35 @@ public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.TemplateToLetterTransf private boolean isReusable_ ; /** * optional bool IsReusable = 24 [default = false]; + * @return Whether the isReusable field is set. */ + @java.lang.Override public boolean hasIsReusable() { - return ((bitField0_ & 0x00800000) == 0x00800000); + return ((bitField0_ & 0x00800000) != 0); } /** * optional bool IsReusable = 24 [default = false]; + * @return The isReusable. */ + @java.lang.Override public boolean getIsReusable() { return isReusable_; } /** * optional bool IsReusable = 24 [default = false]; + * @param value The isReusable to set. + * @return This builder for chaining. */ public Builder setIsReusable(boolean value) { - bitField0_ |= 0x00800000; + isReusable_ = value; + bitField0_ |= 0x00800000; onChanged(); return this; } /** * optional bool IsReusable = 24 [default = false]; + * @return This builder for chaining. */ public Builder clearIsReusable() { bitField0_ = (bitField0_ & ~0x00800000); @@ -6199,12 +7002,52 @@ public Builder clearIsReusable() { // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Events.Message) } + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.Message) + private static final Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message DEFAULT_INSTANCE; static { - defaultInstance = new Message(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message(); + } + + public static Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Message parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Message getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Events.Message) } public interface TemplateOrBuilder extends @@ -6213,79 +7056,96 @@ public interface TemplateOrBuilder extends /** * required string MessageId = 1; + * @return Whether the messageId field is set. */ boolean hasMessageId(); /** * required string MessageId = 1; + * @return The messageId. */ java.lang.String getMessageId(); /** * required string MessageId = 1; + * @return The bytes for messageId. */ com.google.protobuf.ByteString getMessageIdBytes(); /** * required sfixed64 TimestampTicks = 2; + * @return Whether the timestampTicks field is set. */ boolean hasTimestampTicks(); /** * required sfixed64 TimestampTicks = 2; + * @return The timestampTicks. */ long getTimestampTicks(); /** * required string FromBoxId = 3; + * @return Whether the fromBoxId field is set. */ boolean hasFromBoxId(); /** * required string FromBoxId = 3; + * @return The fromBoxId. */ java.lang.String getFromBoxId(); /** * required string FromBoxId = 3; + * @return The bytes for fromBoxId. */ com.google.protobuf.ByteString getFromBoxIdBytes(); /** * required string ToBoxId = 4; + * @return Whether the toBoxId field is set. */ boolean hasToBoxId(); /** * required string ToBoxId = 4; + * @return The toBoxId. */ java.lang.String getToBoxId(); /** * required string ToBoxId = 4; + * @return The bytes for toBoxId. */ com.google.protobuf.ByteString getToBoxIdBytes(); /** * required string MessageFromBoxId = 5; + * @return Whether the messageFromBoxId field is set. */ boolean hasMessageFromBoxId(); /** * required string MessageFromBoxId = 5; + * @return The messageFromBoxId. */ java.lang.String getMessageFromBoxId(); /** * required string MessageFromBoxId = 5; + * @return The bytes for messageFromBoxId. */ com.google.protobuf.ByteString getMessageFromBoxIdBytes(); /** * required string MessageToBoxId = 6; + * @return Whether the messageToBoxId field is set. */ boolean hasMessageToBoxId(); /** * required string MessageToBoxId = 6; + * @return The messageToBoxId. */ java.lang.String getMessageToBoxId(); /** * required string MessageToBoxId = 6; + * @return The bytes for messageToBoxId. */ com.google.protobuf.ByteString getMessageToBoxIdBytes(); @@ -6316,70 +7176,85 @@ Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.EntityOrBuilder getEntitiesOr /** * optional bool IsDeleted = 8 [default = false]; + * @return Whether the isDeleted field is set. */ boolean hasIsDeleted(); /** * optional bool IsDeleted = 8 [default = false]; + * @return The isDeleted. */ boolean getIsDeleted(); /** * optional string MessageToDepartmentId = 9; + * @return Whether the messageToDepartmentId field is set. */ boolean hasMessageToDepartmentId(); /** * optional string MessageToDepartmentId = 9; + * @return The messageToDepartmentId. */ java.lang.String getMessageToDepartmentId(); /** * optional string MessageToDepartmentId = 9; + * @return The bytes for messageToDepartmentId. */ com.google.protobuf.ByteString getMessageToDepartmentIdBytes(); /** * required .Diadoc.Api.Proto.LockMode LockMode = 10; + * @return Whether the lockMode field is set. */ boolean hasLockMode(); /** * required .Diadoc.Api.Proto.LockMode LockMode = 10; + * @return The lockMode. */ Diadoc.Api.Proto.LockModeProtos.LockMode getLockMode(); /** * optional string MessageProxyBoxId = 11; + * @return Whether the messageProxyBoxId field is set. */ boolean hasMessageProxyBoxId(); /** * optional string MessageProxyBoxId = 11; + * @return The messageProxyBoxId. */ java.lang.String getMessageProxyBoxId(); /** * optional string MessageProxyBoxId = 11; + * @return The bytes for messageProxyBoxId. */ com.google.protobuf.ByteString getMessageProxyBoxIdBytes(); /** * optional string MessageProxyDepartmentId = 12; + * @return Whether the messageProxyDepartmentId field is set. */ boolean hasMessageProxyDepartmentId(); /** * optional string MessageProxyDepartmentId = 12; + * @return The messageProxyDepartmentId. */ java.lang.String getMessageProxyDepartmentId(); /** * optional string MessageProxyDepartmentId = 12; + * @return The bytes for messageProxyDepartmentId. */ com.google.protobuf.ByteString getMessageProxyDepartmentIdBytes(); /** * optional bool IsReusable = 13 [default = false]; + * @return Whether the isReusable field is set. */ boolean hasIsReusable(); /** * optional bool IsReusable = 13 [default = false]; + * @return The isReusable. */ boolean getIsReusable(); } @@ -6390,153 +7265,39 @@ public static final class Template extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Events.Template) TemplateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + Template.class.getName()); + } // Use Template.newBuilder() to construct. private Template(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Template(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Template defaultInstance; - public static Template getDefaultInstance() { - return defaultInstance; } - - public Template getDefaultInstanceForType() { - return defaultInstance; + private Template() { + messageId_ = ""; + fromBoxId_ = ""; + toBoxId_ = ""; + messageFromBoxId_ = ""; + messageToBoxId_ = ""; + entities_ = java.util.Collections.emptyList(); + messageToDepartmentId_ = ""; + lockMode_ = 0; + messageProxyBoxId_ = ""; + messageProxyDepartmentId_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Template( - 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; - messageId_ = bs; - break; - } - case 17: { - bitField0_ |= 0x00000002; - timestampTicks_ = input.readSFixed64(); - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - fromBoxId_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - toBoxId_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - messageFromBoxId_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - messageToBoxId_ = bs; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - entities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - entities_.add(input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Entity.PARSER, extensionRegistry)); - break; - } - case 64: { - bitField0_ |= 0x00000040; - isDeleted_ = input.readBool(); - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - messageToDepartmentId_ = bs; - break; - } - case 80: { - int rawValue = input.readEnum(); - Diadoc.Api.Proto.LockModeProtos.LockMode value = Diadoc.Api.Proto.LockModeProtos.LockMode.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(10, rawValue); - } else { - bitField0_ |= 0x00000100; - lockMode_ = value; - } - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - messageProxyBoxId_ = bs; - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - messageProxyDepartmentId_ = bs; - break; - } - case 104: { - bitField0_ |= 0x00000800; - isReusable_ = input.readBool(); - 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_ & 0x00000040) == 0x00000040)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_Template_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.internal_static_Diadoc_Api_Proto_Events_Template_fieldAccessorTable @@ -6544,33 +7305,23 @@ private Template( Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Template.class, Diadoc.Api.Proto.Events.DiadocMessage_GetApiProtos.Template.Builder.class); } - public static com.google.protobuf.Parser